/* ============================================================
        5pyd3r // Red Team Portfolio
        Author  : 5pyd3r (Samrat Dey)
        GitHub  : https://github.com/3rr0r-505
        Version : 2.0 — fully annotated build
        
        CTRL+F QUICK-INDEX
        ──────────────────────
        [CSS:ROOT]      — CSS custom properties / design tokens
        [CSS:RESET]     — Box-sizing, margin, padding reset
        [CSS:BODY]      — Base body styles
        [CSS:CURSOR]    — Custom cursor ring + dot
        [CSS:SCANLINE]  — body::before scanline overlay
        [CSS:GRAIN]     — body::after film grain overlay
        [CSS:SCROLLBAR] — Custom scrollbar (desktop/mouse only)
        [CSS:NAV]       — Fixed top navigation bar
        [CSS:HERO]      — Hero section + hex background
        [CSS:RADAR]     — Radar animation (hero right side)
        [CSS:GLITCH]    — Glitch effect on hero name
        [CSS:HEROCONTENT] — Hero text, role, desc, btns, stats
        [CSS:FADEUP]    — fadeUp keyframe animation
        [CSS:SECTIONS]  — Shared section styles + reveal animation
        [CSS:ABOUT]     — About section grid + identity card
        [CSS:SKILLS]    — Skills grid, tags, bars
        [CSS:PROJECTS]  — Project cards grid
        [CSS:CTF]       — CTF platforms section
        [CSS:EXPERIENCE]— Timeline / experience section
        [CSS:CERTS]     — Certifications grid
        [CSS:PUBLICATION]— Publication card
        [CSS:CONTACT]   — Contact section + terminal widget
        [CSS:FOOTER]    — Footer styles
        [CSS:RESPONSIVE]— Media queries (tablet + mobile)
        ============================================================ */

/* ═══════════════════════════════════════════════════════════
        [CSS:FONTS] — Self-hosted fonts
        ═══════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Share Tech Mono';
    src: url('/assets/fonts/share-tech-mono-v16-latin/share-tech-mono-v16-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('/assets/fonts/rajdhani-v17-latin/rajdhani-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('/assets/fonts/rajdhani-v17-latin/rajdhani-v17-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('/assets/fonts/rajdhani-v17-latin/rajdhani-v17-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/assets/fonts/orbitron-v35-latin/orbitron-v35-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/assets/fonts/orbitron-v35-latin/orbitron-v35-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
        [CSS:ROOT] — Design tokens (change these to retheme the site)
        ═══════════════════════════════════════════════════════════ */
    :root {
        --bg:      #030a0f;           /* Darkest background (main sections) */
        --bg2:     #061218;           /* Slightly lighter bg (alternate sections) */
        --surface: #0a1e28;           /* Card / panel background */
        --border:  #0f3d52;           /* Default border color */
        --accent:  #00ffe7;           /* Primary accent — cyan */
        --accent2: #ff003c;           /* Secondary accent — red (offensive/alert) */
        --accent3: #f0c040;           /* Tertiary accent — yellow (warning/resume) */
        --text:    #c8e8f0;           /* Body text color */
        --muted:   #4a7a8a;           /* Subdued / label text */
        --glow:    0 0 18px rgba(0,255,231,.35);   /* Cyan glow shadow */
        --glow2:   0 0 18px rgba(255,0,60,.35);    /* Red glow shadow */
        --mono:    'Share Tech Mono', monospace;   /* Monospace font stack */
        --head:    'Orbitron', sans-serif;         /* Heading font stack */
        --body:    'Rajdhani', sans-serif;         /* Body font stack */
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:RESET] — Universal box model reset
        ═══════════════════════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* Smooth anchor scrolling for nav links */
    html { scroll-behavior: smooth; scrollbar-width: none; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:BODY] — Base page styles
        cursor:auto is overridden to cursor:none on hover devices
        via the [CSS:CURSOR] media query below
        ═══════════════════════════════════════════════════════════ */
    body {
        background: var(--bg);
        color: var(--text);
        font-family: var(--body);
        font-size: 17px;
        line-height: 1.65;
        overflow-x: hidden; /* Prevent horizontal scroll from animations */
        cursor: auto;       /* Fallback for touch devices */
        -ms-overflow-style: none;
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:CURSOR] — Custom cursor (ring + dot)
        #cursor     = outer ring (expands on hoverable elements)
        #cursor-dot = inner filled dot (follows exact mouse pos)
        Only shown on true pointer/mouse devices via media query
        ═══════════════════════════════════════════════════════════ */
    #cursor {
        position: fixed; top: 0; left: 0; z-index: 9999;
        width: 16px; height: 16px;
        border: 1.5px solid var(--accent);
        border-radius: 50%;
        pointer-events: none;           /* Never blocks clicks */
        transform: translate(-50%,-50%);/* Center on mouse */
        transition: width .15s, height .15s, background .15s;
        box-shadow: var(--glow);
    }
    /* Expanded cursor state — added via JS on hoverable elements */
    #cursor.big { width: 40px; height: 40px; background: rgba(0,255,231,.07); }

    #cursor-dot {
        position: fixed; top: 0; left: 0; z-index: 9999;
        width: 4px; height: 4px; border-radius: 50%;
        background: var(--accent);
        pointer-events: none;
        transform: translate(-50%,-50%);
    }

    /* Show custom cursor only on mouse/trackpad devices */
    @media(hover: hover) {
        body { cursor: none; }
        #cursor, #cursor-dot { display: block; }
    }
    /* Hide custom cursor on touch screens (phone/tablet) */
    @media(hover: none) {
        #cursor, #cursor-dot { display: none; }
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:SCANLINE] — CRT scanline overlay (body::before)
        Sits above everything (z-index 10000), pointer-events:none
        so it never blocks interaction.
        Adjust rgba(0,0,0, X) to change scanline darkness.
        Adjust animation duration to speed up / slow down drift.
        ═══════════════════════════════════════════════════════════ */
    body::before {
        content: '';
        position: fixed; inset: 0; z-index: 10000;
        background: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(0,0,0,.07) 2px, rgba(0,0,0,.07) 4px  /* Line every 4px, 2px dark */
        );
        pointer-events: none;
        animation: scanMove 10s linear infinite; /* Drift speed: change 10s */
    }
    /* Moves the gradient downward continuously to simulate scan drift */
    @keyframes scanMove { to { background-position: 0 100vh; } }

    /* ═══════════════════════════════════════════════════════════
        [CSS:GRAIN] — Film grain texture overlay (body::after)
        Uses inline SVG feTurbulence filter as a data URI.
        opacity: .025 — very subtle, increase for heavier grain.
        animation: shifts position randomly every 0.4s (steps(1))
        ═══════════════════════════════════════════════════════════ */
    body::after {
        content: '';
        position: fixed; inset: 0; z-index: 10001; opacity: .025;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        background-size: 200px;
        pointer-events: none;
        animation: grainShift .4s steps(1) infinite; /* Frame rate of grain shift */
    }
    /* Randomly repositions grain texture on each frame step */
    @keyframes grainShift {
        0%  { transform: translate(0,0); }
        25% { transform: translate(-3px, 2px); }
        50% { transform: translate(2px, -2px); }
        75% { transform: translate(-1px, 3px); }
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:SCROLLBAR] — Custom scrollbar (mouse/desktop only)
        Firefox  → scrollbar-width + scrollbar-color (no gradient)
        Chrome/Brave/Safari → ::-webkit-scrollbar (full gradient)
        Media query ensures it NEVER shows on touch/tablet devices
        ═══════════════════════════════════════════════════════════ */
    ::-webkit-scrollbar { width: 0; display: none; }

    #scrollbar-track {
    position: fixed; right: 10px; top: 72px; bottom: 88px;
    width: 2px; z-index: 999;
    background: rgba(0,255,231,0.08);
    pointer-events: none;
    }
    #scrollbar-thumb {
        position: absolute; left: 50%; transform: translateX(-50%) skewY(-20deg);
        width: 10px;
        min-height: 28px;
        background: linear-gradient(
            to bottom,
            rgba(0,255,231,0.08) 0%,
            rgba(0,255,231,0.28) 40%,
            rgba(0,255,231,0.28) 60%,
            rgba(0,255,231,0.08) 100%
        );
        border: 1px solid var(--accent);
        box-shadow: var(--glow), inset 0 0 10px rgba(0,255,231,0.15);
        cursor: none;
        pointer-events: auto; /* explicitly allow mouse events on thumb */
        transition: top 0.08s ease-out, opacity .2s;
    }
    /* Vertical spine — runs through center */
    #scrollbar-thumb::before {
        content: '';
        position: absolute; left: 50%; top: 15%; bottom: 15%;
        width: 1px;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, transparent, var(--accent), transparent);
        opacity: 0.7;
    }
    /* Horizontal mid-notch — targeting tick */
    #scrollbar-thumb::after {
        content: '';
        position: absolute; top: 50%; left: 0; right: 0;
        height: 1px;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, var(--accent), transparent);
        opacity: 0.6;
    }
    @media(hover: none) {
        #scrollbar-track { display: none; }
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:NAV] — Fixed top navigation bar
        backdrop-filter: blur gives frosted glass effect on scroll.
        .nav-logo    → site alias branding
        .nav-links   → anchor links (hidden on mobile)
        .nav-cv      → download button (currently commented in HTML)
        a::before    → auto-prepends "./" to every nav link
        ═══════════════════════════════════════════════════════════ */
    nav {
        position: fixed; top: 0; width: 100%; z-index: 1000;
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 48px;                          /* Side padding: change 48px */
        background: rgba(3,10,15,.88);               /* Semi-transparent bg */
        backdrop-filter: blur(14px);                 /* Frosted glass blur */
        border-bottom: 1px solid var(--border);
    }
    /* Logo text — "5pyd3r" with <span> on "p" for red accent */
    .nav-logo { font-family: var(--head); font-size: 1.1rem; color: var(--accent); letter-spacing: 3px; text-shadow: var(--glow); }
    .nav-logo span { color: var(--accent2); text-shadow: var(--glow2); } /* Red "p" character */

    /* Nav link list */
    .nav-links { display: flex; gap: 28px; list-style: none; }
    .nav-links a {
        font-family: var(--mono); font-size: .72rem; color: var(--muted);
        text-decoration: none; letter-spacing: 2px; transition: color .2s;
    }
    .nav-links a:hover { color: var(--accent); }
    .nav-links a::before { content: './'; color: var(--accent2); opacity: .7; } /* "./" prefix on each link */

    /* Resume/CV download button (currently hidden in HTML via comment) */
    .nav-cv {
        font-family: var(--mono); font-size: .72rem; color: var(--bg);
        background: var(--accent); padding: 8px 18px; text-decoration: none; letter-spacing: 2px;
        clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%); /* Slanted corners */
        transition: background .2s;
    }
    .nav-cv:hover { background: var(--accent2); }

    /* ═══════════════════════════════════════════════════════════
        [CSS:HERO] — Full-height landing section
        Contains: hex-bg, particles canvas, radar, hero content
        ═══════════════════════════════════════════════════════════ */
    #hero {
        min-height: 100vh;
        display: flex; flex-direction: column; justify-content: center;
        padding: 120px 48px 80px; /* Top padding clears fixed nav */
        position: relative; overflow: hidden;
    }

    /* Hex grid background pattern (SVG inline data URI) */
    /* Opacity .06 — increase to make hex pattern more visible */
    .hex-bg {
        position: absolute; inset: 0; z-index: 0; opacity: .06;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V17L28 0l28 17v33zm0 34L0 84V51l28-17 28 17v33z' fill='none' stroke='%2300ffe7' stroke-width='.5'/%3E%3C/svg%3E");
        background-size: 56px 100px;
        animation: hexDrift 30s linear infinite; /* Drift speed: change 30s */
    }
    /* Slowly drifts the hex pattern diagonally */
    @keyframes hexDrift { to { background-position: 56px 100px; } }

    /* Particle canvas — JS draws dots + connection lines here */
    #particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:RADAR] — Radar animation widget (hero section, right side)
        Hidden on mobile via [CSS:RESPONSIVE]
        .radar-circle  → concentric rings that pulse outward
        .radar-sweep   → rotating sweep line (::after pseudo)
        .radar-blip    → dot targets that fade in/out
        ═══════════════════════════════════════════════════════════ */
    .radar {
        position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
        width: 320px; height: 320px; opacity: .13; /* Increase for more visible radar */
    }
    /* Each concentric circle pulses with staggered delay */
    .radar-circle {
        position: absolute; inset: 0; border-radius: 50%;
        border: 1px solid var(--accent);
        animation: radarPulse 2.5s ease-out infinite;
    }
    .radar-circle:nth-child(2) { inset: 20%; animation-delay: .6s; }  /* 2nd ring */
    .radar-circle:nth-child(3) { inset: 40%; animation-delay: 1.2s; } /* 3rd ring */
    .radar-circle:nth-child(4) { inset: 60%; animation-delay: 1.8s; } /* 4th ring */
    /* Rings fade from .6 opacity to 0 while scaling up slightly */
    @keyframes radarPulse { 0% { opacity: .6; } 100% { opacity: 0; transform: scale(1.06); } }

    /* Rotating sweep arm — gradient line from center rotating 360° */
    .radar-sweep { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
    .radar-sweep::after {
        content: ''; position: absolute; top: 50%; left: 50%;
        width: 50%; height: 2px;
        background: linear-gradient(to right, transparent, var(--accent));
        transform-origin: left center;
        animation: sweep 3s linear infinite; /* Rotation speed: change 3s */
    }
    @keyframes sweep { to { transform: rotate(360deg); } }

    /* Blip dots — enemy targets on radar */
    .radar-blip {
        position: absolute; width: 6px; height: 6px; border-radius: 50%;
        background: var(--accent); box-shadow: var(--glow);
        animation: blipFade 3s ease-out infinite;
    }
    /* Blip appears briefly then fades — synced loosely with sweep arm */
    @keyframes blipFade { 0%,100% { opacity: 0; } 20%,60% { opacity: 1; } 80% { opacity: .3; } }

    /* ═══════════════════════════════════════════════════════════
        [CSS:HEROCONTENT] — Hero text block
        .hero-tag    → small label above name (role descriptor)
        .hero-name   → giant display name "5pyd3r"
        .hero-role   → subtitle with blinking cursor
        .hero-desc   → bio paragraph
        .hero-btns   → CTA button row
        .hero-stats  → animated stat counters
        All elements use fadeUp animation with staggered delays
        ═══════════════════════════════════════════════════════════ */
    .hero-content { position: relative; z-index: 1; max-width: 700px; }

    /* Small tag line above the name — e.g. "// RED TEAM · PENETRATION TESTING" */
    .hero-tag {
        font-family: var(--mono); font-size: .73rem; color: var(--accent2);
        letter-spacing: 4px; margin-bottom: 14px;
        opacity: 0; animation: fadeUp .6s .2s forwards; /* delay: .2s */
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:GLITCH] — Glitch effect on hero "p" character
        .glitch::before → red ghost, offset right (+2px), slice top
        .glitch::after  → cyan ghost, offset left (-2px), slice bottom
        Both animate with g1/g2 keyframes that fire occasionally
        data-text attribute is required on the element in HTML
        ═══════════════════════════════════════════════════════════ */
    .hero-name {
        font-family: var(--head); font-size: clamp(3rem,7vw,5.5rem); font-weight: 900;
        line-height: 1; letter-spacing: 4px; color: #fff;
        opacity: 0; animation: fadeUp .6s .4s forwards; /* delay: .4s */
        display: block;
    }
    /* Cyan accent color utility */
    .accent-c { color: var(--accent); text-shadow: var(--glow); }
    /* Red accent color utility */
    .accent-r { color: var(--accent2); text-shadow: var(--glow2); }

    /* Glitch wrapper — both pseudo-elements clone the text */
    .glitch { position: relative; display: inline-block; }
    .glitch::before, .glitch::after {
        content: attr(data-text); /* Clones text from data-text attribute */
        position: absolute; top: 0; left: 0; width: 100%;
    }
    /* Red ghost — clips the middle band of the letter */
    .glitch::before {
        left: 2px; color: var(--accent2);
        clip-path: polygon(0 15%,100% 15%,100% 40%,0 40%); /* Top slice */
        animation: g1 5s infinite;
    }
    /* Cyan ghost — clips the bottom band */
    .glitch::after {
        left: -2px; color: var(--accent);
        clip-path: polygon(0 60%,100% 60%,100% 80%,0 80%); /* Bottom slice */
        animation: g2 5s infinite;
    }
    /* g1: fires at ~89% of the 5s cycle — brief flicker then gone */
    @keyframes g1 {
        0%,88%,100% { transform: translate(0); opacity: 0; }
        89%  { transform: translate(-3px,1px); opacity: 1; }
        90%  { transform: translate(3px,-1px); opacity: 1; }
        91%  { transform: translate(0); opacity: 0; }
        95%  { transform: translate(4px,2px); opacity: 1; }
        96%  { transform: translate(-2px,-1px); opacity: 1; }
        97%  { transform: translate(0); opacity: 0; }
    }
    /* g2: offset slightly from g1 for desync effect */
    @keyframes g2 {
        0%,86%,100% { transform: translate(0); opacity: 0; }
        87%  { transform: translate(3px,-2px); opacity: 1; }
        88%  { transform: translate(-3px,1px); opacity: 1; }
        89%  { transform: translate(0); opacity: 0; }
        93%  { transform: translate(-4px,2px); opacity: 1; }
        94%  { transform: translate(2px,-1px); opacity: 1; }
        95%  { transform: translate(0); opacity: 0; }
    }

    /* Role subtitle — "> Aspiring Red Teamer..." */
    .hero-role {
        font-family: var(--mono); font-size: 1rem; color: var(--muted); margin-top: 18px;
        opacity: 0; animation: fadeUp .6s .6s forwards; /* delay: .6s */
    }

    /* Blinking terminal cursor block — used in .hero-role and .terminal */
    .blink {
        display: inline-block; width: 10px; height: 1.1em;
        background: var(--accent); vertical-align: middle; margin-left: 4px;
        animation: blink .85s step-end infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }

    /* Hero description paragraph */
    .hero-desc {
        margin-top: 28px; font-size: 1.05rem; color: var(--text); max-width: 560px;
        opacity: 0; animation: fadeUp .6s .8s forwards; /* delay: .8s */
    }

    /* CTA button row — view_projects, contact_me, github, resume */
    .hero-btns {
        display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap;
        opacity: 0; animation: fadeUp .6s 1s forwards; /* delay: 1s */
    }

    /* Base button — slanted clip-path with slide-in fill on hover */
    .btn {
        font-family: var(--mono); font-size: .76rem; letter-spacing: 2px;
        padding: 12px 24px; border: 1px solid var(--accent); color: var(--accent);
        background: transparent; text-decoration: none;
        position: relative; overflow: hidden; transition: color .25s;
        clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%); /* Slanted ends */
    }
    /* Sliding fill — starts off-screen left, slides in on hover */
    .btn::before {
        content: ''; position: absolute; inset: 0;
        background: var(--accent); transform: translateX(-101%); transition: transform .25s ease;
    }
    .btn:hover::before { transform: translateX(0); }
    .btn:hover { color: var(--bg); } /* Text goes dark on filled background */

    /* Red variant button (./contact_me) */
    .btn-red { border-color: var(--accent2); color: var(--accent2); }
    .btn-red::before { background: var(--accent2); }
    .btn-red:hover { color: #fff; }

    /* Yellow variant button (./resume) */
    .btn-yellow { border-color: var(--accent3); color: var(--accent3); }
    .btn-yellow::before { background: var(--accent3); }
    .btn-yellow:hover { color: var(--bg); }

    /* Stats row — TOOLS BUILT / PUBLICATION / CERTS / CGPA */
    .hero-stats {
        display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap;
        opacity: 0; animation: fadeUp .6s 1.2s forwards; /* delay: 1.2s */
    }
    /* Animated number (see [JS:COUNTER]) */
    .stat-num { font-family: var(--head); font-size: 1.8rem; color: var(--accent); text-shadow: var(--glow); font-weight: 900; }
    .stat-label { font-family: var(--mono); font-size: .63rem; color: var(--muted); letter-spacing: 2px; margin-top: 2px; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:FADEUP] — Shared entrance animation
        Used by all hero child elements with staggered delays
        from{} starts invisible and 24px below final position
        ═══════════════════════════════════════════════════════════ */
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:SECTIONS] — Shared section layout + scroll reveal
        .reveal          → hidden by default (opacity 0, translated down)
        .reveal.visible  → JS adds this class when element enters viewport
        Threshold 0.08 in IntersectionObserver = triggers at 8% visible
        ═══════════════════════════════════════════════════════════ */
    section { padding: 100px 48px; position: relative; }

    /* Section header row: [number] [TITLE] [─────────────────] */
    .section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 56px; }
    .section-num   { font-family: var(--mono); font-size: .75rem; color: var(--accent2); letter-spacing: 2px; }
    .section-title { font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 3px; }
    .section-line  { flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

    /* Scroll reveal base state — JS toggles .visible */
    .reveal { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:ABOUT] — About section (01)
        Two-column grid: left = bio text, right = identity card
        .about-card  → info panel with clip-path + corner triangle
        .info-row    → each identity field (icon + label + value)
        ═══════════════════════════════════════════════════════════ */
    #about { background: var(--bg2); } /* Alternate background */

    /* Two-column layout — collapses to 1 col on mobile */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

    /* Bio paragraph text */
    .about-text p { color: var(--text); margin-bottom: 16px; font-size: 1.05rem; }
    .about-text .highlight { color: var(--accent); font-weight: 600; } /* Cyan highlight spans */
    .about-text .red { color: var(--accent2); }                        /* Red highlight spans */

    /* Identity card — "// IDENTITY.JSON" */
    .about-card {
        background: var(--surface); border: 1px solid var(--border); padding: 28px;
        position: relative;
        clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px));
    }
    /* Top-right corner triangle accent */
    .about-card::before {
        content: ''; position: absolute; top: 0; right: 0;
        width: 0; height: 0; border-style: solid;
        border-width: 0 16px 16px 0;
        border-color: transparent var(--accent) transparent transparent;
    }
    .card-title { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: 3px; margin-bottom: 18px; }

    /* Each row in the identity card */
    .info-row  { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
    .info-icon { color: var(--accent2); min-width: 20px; margin-top: 2px; } /* ◈ diamond icon */
    .info-label { font-family: var(--mono); font-size: .72rem; color: var(--muted); min-width: 80px; }
    .info-val   { font-size: .95rem; color: var(--text); }

    /* ═══════════════════════════════════════════════════════════
        [CSS:SKILLS] — Skills & Arsenal section (02)
        .skill-cat  → category card (offensive/defensive/programming/infra)
        .skill-tag  → individual pill tag inside each category
        .skill-bar  → proficiency level bars (animate on scroll)
        ═══════════════════════════════════════════════════════════ */
    #skills { background: var(--bg); }

    /* Responsive grid — min 280px per card, fills available space */
    .skills-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; }

    /* Category card */
    .skill-cat {
        background: var(--surface); border: 1px solid var(--border); padding: 26px;
        clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%); /* Top-right cut */
        transition: border-color .3s, box-shadow .3s;
    }
    .skill-cat:hover { border-color: var(--accent); box-shadow: var(--glow); }
    .skill-cat-title { font-family: var(--mono); font-size: .7rem; color: var(--accent2); letter-spacing: 3px; margin-bottom: 18px; }

    /* Skill pill tags */
    .skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
    .skill-tag {
        font-family: var(--mono); font-size: .72rem; color: var(--accent);
        border: 1px solid var(--border); padding: 5px 12px;
        transition: background .2s, border-color .2s; cursor: default;
    }
    .skill-tag:hover { background: rgba(0,255,231,.08); border-color: var(--accent); }
    .skill-tag.red   { color: var(--accent2); }   /* Red tags — offensive tools */
    .skill-tag.red:hover { background: rgba(255,0,60,.08); border-color: var(--accent2); }
    .skill-tag.yellow { color: var(--accent3); }  /* Yellow tags — platforms/infra */

    /* Proficiency bar container */
    .skill-bar { margin-top: 18px; }
    .skill-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .skill-bar-label { font-family: var(--mono); font-size: .72rem; color: var(--text); min-width: 90px; }
    .skill-bar-track { flex: 1; height: 4px; background: var(--border); overflow: hidden; }

    /* Fill element — starts scaleX(0), JS adds .animate → scaleX(1) */
    /* Change width% on each fill div in HTML to set proficiency level */
    .skill-bar-fill {
        height: 100%;
        background: linear-gradient(to right, var(--accent2), var(--accent)); /* Red → cyan */
        transform: scaleX(0); transform-origin: left;
        transition: transform 1.2s cubic-bezier(.4,0,.2,1);
    }
    .skill-bar-fill.animate { transform: scaleX(1); }
    .skill-bar-pct { font-family: var(--mono); font-size: .65rem; color: var(--muted); min-width: 32px; text-align: right; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:PROJECTS] — Projects section (03)
        .proj-card          → base card (clip-path hexagon-style)
        .proj-card.featured → adds red diagonal "FEATURED" banner
        .proj-card::after   → top-right corner triangle (border trick)
        Hover lifts card up and glows
        ═══════════════════════════════════════════════════════════ */
    #projects { background: var(--bg2); }

    /* Grid — min 340px per card */
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: 28px; }

    /* Project card */
    .proj-card {
        background: var(--surface); border: 1px solid var(--border); padding: 32px;
        position: relative; overflow: hidden;
        clip-path: polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px));
        transition: border-color .3s, transform .3s, box-shadow .3s;
    }
    /* Top-right corner triangle — color matches border, changes on hover */
    .proj-card::after {
        content: ''; position: absolute; top: 0; right: 0;
        width: 0; height: 0; border-style: solid;
        border-width: 0 20px 20px 0;
        border-color: transparent var(--border) transparent transparent;
        transition: border-color .3s;
    }
    .proj-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--glow); }
    .proj-card:hover::after { border-color: transparent var(--accent) transparent transparent; }

    /* Featured card has a slightly lit border by default */
    .proj-card.featured { border-color: rgba(0,255,231,.25); }
    /* Diagonal "FEATURED" ribbon — top-left corner, rotated -45deg */
    .proj-card.featured::before {
        content: 'FEATURED'; position: absolute; top: 16px; left: -30px;
        background: var(--accent2); color: #fff; font-family: var(--mono); font-size: .58rem;
        letter-spacing: 2px; padding: 4px 36px; transform: rotate(-45deg);
    }

    /* Card inner elements */
    .proj-id   { font-family: var(--mono); font-size: .68rem; color: var(--accent2); letter-spacing: 2px; margin-bottom: 10px; }
    .proj-name { font-family: var(--head); font-size: 1.15rem; color: #fff; letter-spacing: 2px; margin-bottom: 6px; }
    .proj-sub  { font-family: var(--mono); font-size: .73rem; color: var(--accent); margin-bottom: 14px; }
    .proj-desc { font-size: .95rem; color: var(--text); margin-bottom: 20px; line-height: 1.6; }
    .proj-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
    .proj-tool  { font-family: var(--mono); font-size: .67rem; color: var(--muted); border: 1px solid var(--border); padding: 3px 9px; }
    .proj-links { display: flex; gap: 14px; flex-wrap: wrap; }
    .proj-link  { font-family: var(--mono); font-size: .72rem; color: var(--accent); text-decoration: none; transition: color .2s; }
    .proj-link:hover { color: #fff; text-shadow: var(--glow); }
    .proj-link.paper { color: var(--accent3); } /* Research paper link — yellow */

    /* ═══════════════════════════════════════════════════════════
        [CSS:CTF] — CTF & Platforms section (04)
        .ctf-platform      → base platform card (TryHackMe / HTB)
        .ctf-thm           → TryHackMe specific green color overrides
        .ctf-stat          → mini stat box (certs earned, streak)
        .ctf-badge         → achievement badge pills
        .ctf-link          → CTA button (green → cyan on hover)
        .ctf-coming        → placeholder for HTB (dashed border)
        ═══════════════════════════════════════════════════════════ */
    #ctf { background: var(--bg); }

    /* Two equal-width columns — collapses to 1 on tablet */
    .ctf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

    .ctf-platform {
        background: var(--surface); border: 1px solid var(--border); padding: 28px;
        clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%);
        transition: border-color .3s, box-shadow .3s;
    }
    .ctf-platform:hover { border-color: var(--accent); box-shadow: var(--glow); }

    /* TryHackMe card — green themed */
    .ctf-thm { border-color: rgba(0,210,106,.2); }
    .ctf-thm:hover { border-color: #00d26a; box-shadow: 0 0 18px rgba(0,210,106,.25); }

    .ctf-platform-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
    .ctf-platform-icon   { font-size: 2rem; }
    .ctf-platform-name   { font-family: var(--head); font-size: 1rem; color: #fff; letter-spacing: 2px; }
    .ctf-thm .ctf-platform-name { color: #00d26a; } /* Green name for THM */
    .ctf-platform-url    { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

    /* Mini stat grid inside CTF card */
    .ctf-stats    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
    .ctf-stat     { text-align: center; padding: 16px; border: 1px solid var(--border); }
    .ctf-stat-num { font-family: var(--head); font-size: 1.5rem; color: var(--accent); text-shadow: var(--glow); }
    .ctf-thm .ctf-stat-num { color: #00d26a; text-shadow: none; } /* Green for THM */
    .ctf-stat-label { font-family: var(--mono); font-size: .6rem; color: var(--muted); letter-spacing: 2px; margin-top: 4px; }

    /* Achievement badge pills — colored by category */
    .ctf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
    .ctf-badge { font-family: var(--mono); font-size: .67rem; border: 1px solid; padding: 4px 10px; }
    .ctf-badge.green { color: #00d26a; border-color: rgba(0,210,106,.4); }
    .ctf-badge.red   { color: var(--accent2); border-color: rgba(255,0,60,.4); }
    .ctf-badge.cyan  { color: var(--accent); border-color: rgba(0,255,231,.4); }

    /* View Profile button — green fill, slanted clip-path */
    .ctf-link {
        display: inline-block; font-family: var(--mono); font-size: .75rem;
        color: var(--bg); background: #00d26a; padding: 10px 20px;
        text-decoration: none; letter-spacing: 2px;
        clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
        transition: background .2s;
    }
    .ctf-link:hover { background: var(--accent); } /* Switches to cyan on hover */

    /* HTB "coming soon" placeholder box */
    .ctf-coming { border: 1px dashed var(--border); padding: 28px; text-align: center; margin-bottom: 22px; }
    .ctf-coming-icon { font-size: 2rem; margin-bottom: 10px; opacity: .4; }
    .ctf-coming-text { font-family: var(--mono); font-size: .75rem; color: var(--muted); line-height: 2; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:EXPERIENCE] — Experience / Timeline section (05)
        .timeline        → container with left vertical line
        .timeline::before → the vertical line (cyan → transparent gradient)
        .tl-item         → single job entry
        .tl-dot          → glowing circle on the line
        .tl-points li    → bullet point with ▸ prefix
        ═══════════════════════════════════════════════════════════ */
    #experience { background: var(--bg2); }

    .timeline { position: relative; padding-left: 30px; }
    /* Vertical timeline spine */
    .timeline::before {
        content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
        background: linear-gradient(to bottom, var(--accent), transparent);
    }

    .tl-item { position: relative; margin-bottom: 48px; }

    /* Glowing dot on the timeline spine */
    .tl-dot { position: absolute; left: -34px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }

    .tl-date { font-family: var(--mono); font-size: .7rem; color: var(--accent2); letter-spacing: 2px; margin-bottom: 6px; }
    .tl-role { font-family: var(--head); font-size: 1.05rem; color: #fff; letter-spacing: 2px; margin-bottom: 2px; }
    .tl-org  { font-family: var(--mono); font-size: .75rem; color: var(--accent); margin-bottom: 14px; }

    /* Bullet points — no list-style, uses ::before pseudo ▸ */
    .tl-points { list-style: none; }
    .tl-points li { font-size: .98rem; color: var(--text); padding: 5px 0 5px 18px; position: relative; }
    .tl-points li::before { content: '▸'; position: absolute; left: 0; color: var(--accent2); }

    /* ═══════════════════════════════════════════════════════════
        [CSS:CERTS] — Certifications section (06)
        .cert-card  → clickable card linking to cert PDF
        Each card: icon | name + platform | "VIEW ↗" badge
        ═══════════════════════════════════════════════════════════ */
    #certifications { background: var(--bg); }

    /* Grid — min 260px per card */
    .certs-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }

    .cert-card {
        background: var(--surface); border: 1px solid var(--border); padding: 22px 24px;
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
        transition: border-color .3s, box-shadow .3s; text-decoration: none;
    }
    .cert-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
    .cert-icon     { font-size: 1.4rem; min-width: 28px; }
    .cert-info     { flex: 1; }
    .cert-name     { font-family: var(--body); font-weight: 700; font-size: .95rem; color: #fff; }
    .cert-platform { font-family: var(--mono); font-size: .68rem; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
    .cert-badge    { font-family: var(--mono); font-size: .65rem; color: var(--accent); border: 1px solid var(--accent); padding: 3px 8px; white-space: nowrap; }

    /* ═══════════════════════════════════════════════════════════
        [CSS:PUBLICATION] — Publications section (07)
        Single featured pub card with full cyan border + glow
        Corner triangle decoration (same border trick as proj-card)
        ═══════════════════════════════════════════════════════════ */
    #publications { background: var(--bg2); }

    .pub-card {
        background: var(--surface); border: 1px solid var(--accent); padding: 32px;
        position: relative; max-width: 900px; box-shadow: var(--glow);
        clip-path: polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px));
    }
    /* Corner triangle — cyan fill */
    .pub-card::before {
        content: ''; position: absolute; top: 0; right: 0;
        width: 0; height: 0; border-style: solid;
        border-width: 0 24px 24px 0;
        border-color: transparent var(--accent) transparent transparent;
    }
    .pub-label { font-family: var(--mono); font-size: .68rem; color: var(--accent2); letter-spacing: 3px; margin-bottom: 12px; }
    .pub-title { font-family: var(--body); font-weight: 700; font-size: 1.1rem; color: #fff; line-height: 1.5; margin-bottom: 10px; }
    .pub-meta  { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
    .pub-doi   { font-family: var(--mono); font-size: .75rem; color: var(--accent); text-decoration: none; }
    .pub-doi:hover { text-shadow: var(--glow); }

    /* ═══════════════════════════════════════════════════════════
        [CSS:CONTACT] — Contact section (08)
        Two-column: left = text + links, right = terminal widget
        .contact-link  → social/contact row with icon + label + value
        .terminal      → fake terminal UI (macOS-style traffic lights)
        .t-line        → each line of terminal output
        .t-cursor      → blinking terminal cursor
        ═══════════════════════════════════════════════════════════ */
    #contact { background: var(--bg); }

    /* Two-column layout — collapses on mobile */
    .contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

    .contact-text h3 { font-family: var(--head); font-size: 1.2rem; color: #fff; letter-spacing: 2px; margin-bottom: 16px; }
    .contact-text p  { color: var(--text); font-size: 1rem; }
    .contact-links   { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }

    /* Each contact method row (email, github, linkedin, THM) */
    .contact-link {
        display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: .82rem;
        color: var(--text); text-decoration: none; padding: 15px 20px;
        border: 1px solid var(--border); background: var(--surface);
        transition: border-color .25s, color .25s, box-shadow .25s;
        clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
    }
    .contact-link:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
    .cl-icon  { font-size: 1.1rem; min-width: 22px; }
    .cl-label { color: var(--muted); font-size: .65rem; letter-spacing: 2px; display: block; margin-bottom: 2px; }

    /* Terminal widget — fake CLI */
    .terminal {
        background: #010c12;           /* Darker than --bg for terminal feel */
        border: 1px solid var(--accent); font-family: var(--mono);
        box-shadow: var(--glow);
        clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%);
    }
    /* Terminal title bar — macOS-style traffic light dots */
    .terminal-bar {
        background: var(--surface); padding: 10px 16px; border-bottom: 1px solid var(--border);
        display: flex; align-items: center; gap: 8px;
    }
    /* Traffic light dots (red / yellow / green) */
    .t-dot   { width: 10px; height: 10px; border-radius: 50%; }
    .t-dot.r { background: var(--accent2); }    /* Red — close */
    .t-dot.y { background: var(--accent3); }    /* Yellow — minimize */
    .t-dot.g { background: #00d26a; }           /* Green — maximize */
    .t-title { font-size: .7rem; color: var(--muted); letter-spacing: 2px; margin-left: 8px; }

    /* Terminal output body */
    .terminal-body { padding: 22px; font-size: .8rem; line-height: 2.1; }
    .t-line   { display: block; }

    /* Terminal text color classes */
    .t-prompt { color: var(--accent2); }  /* "5pyd3r@kali" — red */
    .t-cmd    { color: var(--accent); }   /* Commands — cyan */
    .t-out    { color: var(--text); }     /* Standard output */
    .t-out.g  { color: #00d26a; }         /* Green output (● OPEN) */
    .t-out.y  { color: var(--accent3); }  /* Yellow output (targets) */
    .t-out.r  { color: var(--accent2); }  /* Red output (warnings) */

    /* Blinking terminal cursor block */
    .t-cursor {
        display: inline-block; width: 8px; height: 1em;
        background: var(--accent); vertical-align: middle;
        animation: blink .85s step-end infinite; /* Same blink as .blink */
    }

    /* ═══════════════════════════════════════════════════════════
        [CSS:FOOTER] — Site footer
        Simple two-element flex row (name + copyright)
        ═══════════════════════════════════════════════════════════ */
    footer {
        background: var(--bg); border-top: 1px solid var(--border);
        padding: 28px 48px;
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    }
    .footer-name { font-family: var(--head); font-size: .9rem; color: var(--accent); letter-spacing: 3px; text-shadow: var(--glow); }
    .footer-copy { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

    /* ═══════════════════════════════════════════════════════════
        [CSS:RESPONSIVE] — Media queries
        900px → CTF grid collapses to single column
        768px → Nav links hidden, sections repad, radar hidden,
                grids go single-column, footer centers
        ═══════════════════════════════════════════════════════════ */

    /* Tablet — CTF side-by-side collapses */
    @media(max-width:900px) {
        .ctf-grid { grid-template-columns: 1fr; }
    }

    /* Mobile — full single column layout */
    @media(max-width:768px) {
        nav             { padding: 14px 20px; }
        .nav-links      { display: none; }             /* Hide nav links — add hamburger menu if needed */
        section         { padding: 70px 20px; }         /* Reduce section padding */
        #hero           { padding: 100px 20px 60px; }
        .about-grid,
        .contact-inner  { grid-template-columns: 1fr; gap: 36px; } /* Stack columns */
        .radar          { display: none; }             /* Radar hidden on small screens */
        footer          { padding: 20px; flex-direction: column; text-align: center; }
    }