@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --accent: #00ff41;
    /* Terminal Green */
    --text-main: #e0e0e0;
    --text-dim: #888888;
    --border: #333333;
}

.theme-light {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --accent: #2563eb;
    --text-main: #1d1d1f;
    --text-dim: #6e6e73;
    --border: #d2d2d7;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    margin: 0;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* Animations */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent);
    top: 0;
    left: 0;
    opacity: 0.5;
    animation: scan 3s linear infinite;
    z-index: 50;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(120px) rotateX(25deg) scale(0.9);
    transform-origin: top;
    filter: blur(8px);
    transition:
        opacity 0.9s ease,
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s ease;
    perspective: 1000px;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0);
}

/* Certificate Gallery */
.cert-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: #111;
    border: 1px solid #222;
    transition: 0.4s ease;
    color: #fff;
}

.cert-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    transition: 0.4s ease;
    z-index: 0;
}

.cert-card:hover::before {
    height: 100%;
}

.cert-card:hover {
    color: #000;
    /* Accent light ho to black text */
}

.cert-card * {
    position: relative;
    z-index: 1;
}

.gate-overlay {
    backdrop-filter: blur(20px);
    z-index: 9999;
}

.btn-primary {
    background: var(--accent);
    color: black;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.form-input {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--accent);
}

.sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar.active {
    transform: translateX(0);
}

.skeleton {
    background: var(--bg-secondary);
    border-radius: 4px;
    height: 20px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* Binary Protection Tooltip */
#binary-hint {
    display: none;
}

nav {
    background: rgba(10, 10, 10, 0.5) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 30px rgba(0, 255, 65, 0.05);
}

#testimonial-content {
    transition: opacity 0.4s ease;
}

#cyber-popup {
    color: #ffffff;
}

#cert-status {
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}


#cert-status:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shine 0.8s linear;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

.tab-btn {
    position: relative;
    background: transparent;
}

.tab-btn.active {
    color: var(--accent);
}

#role {
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

#varify {
    color: #ffffff;
}

#navbar {
    color: #bebebe;
}

.cert-link {
    color: #4ade80;
    padding: 6px 10px;
    border: 1px solid #22c55e;
    overflow: hidden;
    position: relative;
    transition: 0.4s ease;
}

/* Dark + Accent mix fill */
.cert-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(34, 197, 94, 0.3),
            rgba(0, 0, 0, 0.8));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: 0.4s ease;
    z-index: 0;
}

.cert-link:hover::before {
    transform: scaleY(1);
}

/* Underline */
.cert-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0%;
    height: 1px;
    background: #4ade80;
    transition: 0.3s ease;
    z-index: 1;
}

.cert-link:hover::after {
    width: 100%;
}

.cert-link span,
.cert-link {
    position: relative;
    z-index: 2;
}

.nav-link {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    left: 50%;
    transform: translateX(-50%);

}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.mobile-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 8px var(--accent);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    cursor: pointer;
    color: #e5e7eb;
    /* light neutral */
    transition: opacity 0.2s ease;
}

.logo span {
    color: var(--accent);
    font-weight: 700;
}

.logo:hover {
    opacity: 0.75;
}

.stat-box {
    position: relative;
    padding: 10px 16px;
}

.stat-box::before,
.stat-box::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 1px solid transparent;
    transition: all 0.35s ease;
}

.stat-box::before {
    top: 0;
    left: 0;
}

.stat-box::after {
    bottom: 0;
    right: 0;
}

.stat-box:hover::before {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent);
    border-left-color: var(--accent);
}

.stat-box:hover::after {
    width: 100%;
    height: 100%;
    border-bottom-color: var(--accent);
    border-right-color: var(--accent);
}