/* ==========================================================================
   AYUSH JAKHMOLA — SECURITY RESEARCHER & DEVELOPER PORTFOLIO
   Aesthetic Dark System, Cyber Emerald & Cyan Accents, Balanced Medium Typography
   ========================================================================== */

/* --- Custom Variables & Palette --- */
:root {
    /* Color Palette */
    --bg-base: #07090e;
    --bg-surface: #0c1017;
    --bg-card: rgba(14, 20, 31, 0.75);
    --bg-card-hover: rgba(20, 28, 44, 0.9);
    --bg-code: #05070c;

    /* Accents */
    --accent-green: #00ff9d;       /* Electric Cyber Emerald */
    --accent-cyan: #00d4ff;        /* Cyber Cyan */
    --accent-glow-green: rgba(0, 255, 157, 0.25);
    --accent-glow-cyan: rgba(0, 212, 255, 0.2);

    /* Text System */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #07090e;

    /* Borders & Outlines */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-green: rgba(0, 255, 157, 0.4);
    --border-cyan: rgba(0, 212, 255, 0.4);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout & Geometry */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --nav-height: 70px;
    --container-max: 1180px;

    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Basics --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #192233;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Focus Indicator */
:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
}

.skip-to-content {
    position: fixed;
    top: -100px;
    left: 20px;
    background: var(--accent-green);
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-to-content:focus {
    top: 20px;
}

/* Text Utility Colors */
.text-green { color: var(--accent-green) !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-muted { color: var(--text-muted) !important; }

.gradient-accent {
    background: linear-gradient(135deg, #ffffff 15%, var(--accent-green) 65%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* --- Ambient Background Lights & Grid --- */
.cyber-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 95%);
}

.glow-orb {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.12;
}
.glow-orb-1 {
    top: -10vw;
    right: -5vw;
    width: 45vw;
    height: 45vw;
    background: var(--accent-green);
}
.glow-orb-2 {
    bottom: 5vw;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    background: var(--accent-cyan);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(7, 9, 14, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
    background: rgba(7, 9, 14, 0.95);
    border-bottom-color: rgba(0, 255, 157, 0.2);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity var(--transition-fast);
}
.brand:hover { opacity: 0.9; }
.brand-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 157, 0.12);
    border: 1px solid rgba(0, 255, 157, 0.35);
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}
.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition-fast);
}
.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-green);
    border-radius: 2px;
    transition: width var(--transition-fast);
}
.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-resume-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.btn-resume-header:hover {
    background: var(--accent-cyan);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.35);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    padding: 6px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.mobile-toggle .bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.mobile-toggle.open .bar-top { transform: translateY(4px) rotate(45deg); }
.mobile-toggle.open .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px 44px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
    z-index: 999;
}
.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mobile-item {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}
.mobile-item:hover { color: var(--accent-green); }
.mobile-resume-btn {
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}
.btn-sm {
    padding: 7px 15px;
    font-size: 0.78rem;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-dark);
    box-shadow: 0 0 18px var(--accent-glow-green);
}
.btn-primary:hover {
    background: #05f292;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.45);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}
.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow-cyan);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 13px;
}

/* ==========================================================================
   HERO SECTION (Balanced Typography & Interactive 3D Card)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

/* Left: Intro */
.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 16, 23, 0.85);
    border: 1px solid rgba(0, 255, 157, 0.25);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-green);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.15;
}

/* Specific Medium Aesthetic Headline as Requested */
.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: 580px;
}

.hero-summary {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}
.hero-summary strong { color: var(--text-primary); }

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.hero-social-dock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}
.social-link:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    background: rgba(0, 255, 157, 0.08);
    transform: translateY(-2px);
}
.location-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* ==========================================================================
   RIGHT: CINEMATIC ENTRANCE IMAGE CARD
   ========================================================================== */
.hero-card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.8;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particles-canvas {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px) !important;
    height: calc(100% + 60px) !important;
    pointer-events: none;
    z-index: 1;
}

.card-scene {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.card-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    /* Entrance animation */
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    animation: cardEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92);
        border-color: transparent;
    }
    40% {
        opacity: 1;
        border-color: var(--accent-green);
        box-shadow: 0 0 40px rgba(0, 255, 157, 0.25), 0 20px 50px rgba(0, 0, 0, 0.6);
    }
    70% {
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        border-color: var(--border-card);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }
}

.card-frame:hover {
    border-color: rgba(0, 255, 157, 0.5);
    box-shadow: 0 25px 60px rgba(0, 255, 157, 0.15), 0 0 30px rgba(0, 255, 157, 0.08);
    transition: border-color 0.3s, box-shadow 0.4s;
}

/* HUD Status Bar */
.card-hud-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.92) 0%, transparent 100%);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    /* Entrance stagger */
    opacity: 0;
    animation: hudFadeIn 0.6s ease 1.2s forwards;
}

@keyframes hudFadeIn {
    to { opacity: 1; }
}

.hud-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-blink-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    animation: hudBlink 2s ease infinite;
}

@keyframes hudBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Holographic Shimmer Sweep */
.card-shimmer {
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(0, 255, 157, 0.08) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(0, 212, 255, 0.08) 55%,
        transparent 70%
    );
    background-size: 250% 100%;
    opacity: 0;
    animation: shimmerSweep 2.5s ease 1.5s forwards;
}

@keyframes shimmerSweep {
    0% {
        opacity: 1;
        background-position: 150% 0;
    }
    60% {
        opacity: 1;
        background-position: -50% 0;
    }
    100% {
        opacity: 0;
        background-position: -50% 0;
    }
}

.card-frame:hover .card-shimmer {
    opacity: 1;
    animation: shimmerHover 1.8s ease infinite;
}

@keyframes shimmerHover {
    0% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

/* Image Container */
.card-image-wrap {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    z-index: 2;
}
.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(106%) saturate(1.05);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.card-frame:hover .card-photo {
    transform: scale(1.04);
    filter: contrast(110%) saturate(1.1);
}

/* Phase Reticles & Scanline Reveal */
.card-phase-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    animation: phaseReveal 0.8s ease 0.8s forwards;
}

@keyframes phaseReveal {
    to { opacity: 1; }
}

.phase-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    animation: scanline 4s linear infinite;
    opacity: 0.7;
}
@keyframes scanline {
    0% { top: 0%; opacity: 0.8; }
    50% { opacity: 0.3; }
    100% { top: 100%; opacity: 0.8; }
}

.phase-reticle-tl,
.phase-reticle-tr,
.phase-reticle-bl,
.phase-reticle-br {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0;
    animation: reticleIn 0.4s ease forwards;
}
.phase-reticle-tl { top: 18px; left: 18px; border-top: 2px solid var(--accent-green); border-left: 2px solid var(--accent-green); animation-delay: 1s; }
.phase-reticle-tr { top: 18px; right: 18px; border-top: 2px solid var(--accent-green); border-right: 2px solid var(--accent-green); animation-delay: 1.1s; }
.phase-reticle-bl { bottom: 18px; left: 18px; border-bottom: 2px solid var(--accent-cyan); border-left: 2px solid var(--accent-cyan); animation-delay: 1.2s; }
.phase-reticle-br { bottom: 18px; right: 18px; border-bottom: 2px solid var(--accent-cyan); border-right: 2px solid var(--accent-cyan); animation-delay: 1.3s; }

@keyframes reticleIn {
    from { opacity: 0; transform: scale(2); }
    to   { opacity: 1; transform: scale(1); }
}

/* Floating Badges */
.card-floating-badge {
    position: absolute;
    z-index: 8;
    background: rgba(7, 9, 14, 0.85);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    opacity: 0;
    animation: badgeSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.badge-top {
    top: 40px;
    left: 16px;
    color: var(--text-primary);
    animation-delay: 1.5s;
    transform: translateX(-20px);
}
.badge-bottom {
    bottom: 20px;
    right: 16px;
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
    animation-delay: 1.7s;
    transform: translateX(20px);
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(var(--badge-dir, -20px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.badge-bottom { --badge-dir: 20px; }

.badge-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    animation: hudBlink 2s ease infinite;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
}
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title-wrap {
    margin-bottom: 48px;
}
.section-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.about-image-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.image-frame {
    aspect-ratio: 4 / 4.8;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-tag-strip {
    padding: 12px 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.about-tag-strip strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
}
.about-tag-strip span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-lead {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}
.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 10px;
}
.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 18px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--transition-fast);
}
.pillar-card:hover {
    border-color: var(--border-green);
    transform: translateY(-2px);
}
.pillar-icon {
    font-size: 1.25rem;
}
.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.pillar-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   SKILLS SECTION (Interactive Tab & Clean Grid)
   ========================================================================== */
.skills-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}
.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}
.tab-btn.active {
    background: rgba(0, 255, 157, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--transition-smooth);
}
.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-green);
    transform: translateY(-3px);
}
.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skill-icon { font-size: 1.5rem; }
.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.skill-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.skill-desc {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 30px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    transition: all var(--transition-smooth);
}
.project-item:hover {
    border-color: rgba(0, 255, 157, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.project-cat {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.project-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

/* Project Visuals */
.project-media {
    width: 100%;
}
.project-img-box {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: #000;
}
.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.project-item:hover .project-img-box img {
    transform: scale(1.03);
}

.code-preview-card {
    background: var(--bg-code);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.dots { display: flex; gap: 5px; }
.d-r, .d-y, .d-g { width: 9px; height: 9px; border-radius: 50%; }
.d-r { background: #ff5f56; } .d-y { background: #ffbd2e; } .d-g { background: #27c93f; }

.code-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.75rem;
    line-height: 1.5;
}
.c-comment { color: #64748b; }
.c-code { color: #cbd5e1; }
.c-code .k { color: #00ff9d; font-weight: 600; }
.c-code .s { color: #00d4ff; }
.c-res {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CERTIFICATES SECTION
   ========================================================================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.cert-card:hover,
.cert-card:focus-visible {
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cert-thumb {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #000;
}
.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cert-card:hover .cert-thumb img {
    transform: scale(1.04);
}
.cert-hover-icon {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.cert-card:hover .cert-hover-icon {
    opacity: 1;
}

.cert-meta {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}
.cert-org {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
}
.cert-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
}

.contact-details-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.details-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.details-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.direct-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all var(--transition-fast);
}
a.direct-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-card);
    transform: translateX(3px);
}
.link-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}
.link-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}
.link-text {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Form */
.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 28px;
}
.clean-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.input-elem {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 11px 14px;
    transition: all var(--transition-fast);
}
.textarea-elem {
    resize: vertical;
    min-height: 110px;
}
.input-elem:focus {
    border-color: var(--accent-green);
    background: #0d121c;
    box-shadow: 0 0 12px var(--accent-glow-green);
}
.input-elem.input-error {
    border-color: #ff4757;
}
.error-text {
    font-size: 0.7rem;
    color: #ff4757;
    min-height: 15px;
}

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
    line-height: 1.5;
}
.form-feedback.success {
    display: block;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #05070a;
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 24px;
    position: relative;
    z-index: 1;
}
.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-brand strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    display: block;
    color: var(--text-primary);
}
.footer-brand span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--accent-green);
}
.back-to-top {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}
.back-to-top:hover {
    color: var(--accent-green);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-icons {
    display: flex;
    gap: 12px;
}
.footer-icons a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}
.footer-icons a:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   MODALS (Resume, Cert, Intel)
   ========================================================================== */
.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-layer.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-dimmer {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(10px);
}

.modal-window {
    position: relative;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s ease;
    z-index: 2;
}
.modal-layer.open .modal-window {
    transform: scale(1);
}

.modal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}
.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}
.modal-close-x {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.modal-close-x:hover { color: var(--text-primary); }

/* Resume Modal */
.resume-window { max-width: 880px; }
.resume-container {
    position: relative;
    width: 100%;
    min-height: 480px;
    max-height: 72vh;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}
.resume-iframe {
    width: 100%;
    height: 72vh;
    border: none;
    display: block;
}
.resume-placeholder {
    position: absolute;
    inset: 0;
    background: #080c14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    gap: 12px;
    z-index: 2;
}
.resume-placeholder.hidden { display: none; }
.placeholder-icon { font-size: 3rem; }
.resume-placeholder h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.resume-placeholder p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 460px;
    line-height: 1.6;
}
.resume-placeholder code {
    color: var(--accent-green);
    background: rgba(0, 255, 157, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}
.pill-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

/* Cert Modal */
.cert-window { max-width: 840px; }
.cert-modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cert-view-wrap {
    max-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cert-view-img {
    max-width: 100%;
    max-height: 66vh;
    object-fit: contain;
}
.cert-modal-caption {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}
.cert-modal-org {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
}

/* Intel Modal */
.intel-window { max-width: 680px; }
.intel-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.intel-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-cyan);
}
.intel-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}
.tech-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}
.tech-chip-row span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-3d-wrapper {
        max-width: 380px;
        order: -1;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .about-visual {
        max-width: 380px;
        margin: 0 auto;
    }
    .project-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .nav { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-drawer { display: flex; }
    .section { padding: 64px 0; }
    .pillars-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-links { flex-wrap: wrap; gap: 12px; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn { width: 100%; }
    .hero-3d-wrapper { max-width: 300px; }
    .project-item { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .phase-scanline { display: none; }
}
