*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #000814;
    /* Deep space navy */
    --secondary: #001a2b;
    --accent: #00f2ff; /* Electric Cyan */
    --accent-hover: #b42878; /* Transitions to Magenta on hover */
    --text: #eaeaea;
    --nav-gray: #a5a5a5;

    /* Theme-aware Glass System */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 8, 20, 0.5);
    --navbar-bg: rgba(0, 8, 20, 0.6);
    --grid-color: rgba(0, 242, 255, 0.05);

    --divider-color: linear-gradient(90deg, transparent, #b42878, #00f2ff, transparent);
    --matrix-opacity: 0.15;
    --accent-rgb: 0, 242, 255;
    --secondary-accent-rgb: 180, 40, 120;
    --accent-glow: rgba(0, 242, 255, 0.35);
}

html {
    scrollbar-gutter: stable;
    /* Prevents navbar jump when scrollbar appearing */
    overflow-x: hidden;
    width: 100%;
}

.light {
    --bg: #eaebef;
    /* Premium cool-gray base */
    --secondary: #d1d5db;
    --accent: #3182ce;
    /* Cerulean Professional Blue */
    --accent-hover: #2b6cb0;
    --text: #2d3748;
    /* Darker gray for better contrast on #eaebef */
    --nav-gray: #4a5568;

    /* Light Theme Glass — Refined for #eaebef */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --navbar-bg: rgba(234, 235, 239, 0.85);
    --grid-color: rgba(49, 130, 206, 0.03);
    --divider-color: linear-gradient(90deg, transparent, rgba(49, 130, 206, 0.6), transparent);
    --accent-rgb: 49, 130, 206;
    --secondary-accent-rgb: 66, 153, 225;
    --matrix-opacity: 0.08;
    --glass-accent: rgba(49, 130, 206, 0.05);
    --accent-glow: rgba(49, 130, 206, 0.2);

    background: 
        radial-gradient(circle at 70% 95%, rgba(66, 153, 225, 0.18), transparent 45%),
        radial-gradient(circle at 15% 20%, rgba(180, 40, 120, 0.12), transparent 50%),
        linear-gradient(135deg, #eaebef, #f8f9fa) !important;
    background-attachment: fixed !important;
}

/* ============================= */
/* VANTA BACKGROUND */
/* ============================= */

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

/* ============================= */
/* GRID BACKGROUND */
/* ============================= */

.grid-bg {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);

    background-size: 40px 40px;

    animation: gridMove 40s linear infinite;

    z-index: -1;

}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}


/* ============================= */
/* LAYOUT */
/* ============================= */

body {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    background:
        radial-gradient(
            circle at 70% 95%,
            rgba(180, 40, 120, 0.4),
            transparent 40%
        ),
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 150, 180, 0.4),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #001a2b,
            #000814 70%
        );
    background-attachment: fixed; /* Keep gradient static during scroll */
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

section {
    text-align: center;
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}


/* ============================= */
/* SCROLL REVEAL */
/* ============================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ============================= */
/* DIVIDER */
/* ============================= */

/* Generic sibling divider for sections outside the glass pane */
section+section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: var(--divider-color);
}

/* Explicit divider for the certificates section inside the glass pane */
.glass-section .certificates::before {
    content: "";
    position: absolute;
    top: 5px;
    /* Offset safely inside the padding area boundary */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: var(--divider-color);

    /* Crucial stacking context fix: */
    z-index: 100;
    pointer-events: none;
    /* Make sure it doesn't block interaction */
}

.glass-section .certificates {
    position: relative;
    /* Establish relative stacking context for the pseudo-element */
    padding-top: 40px;
    margin-top: 0;
    /* Creates the gap for the divider */
}


/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Inner container */

.nav-container {
    max-width: 2560px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* Logo */

.logo {
    font-family: Orbitron;
    color: var(--accent);
    font-size: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--accent-glow));
    transition: transform 0.3s ease;
}

.logo:hover .nav-logo {
    transform: scale(1.1);
}


.logo:hover {
    transform: translateY(-3px);
}

.logo::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px var(--accent-glow);
    border-radius: 2px;
}

.logo:hover::before {
    transform: scaleY(1);
}

/* Right side (links + icons) */

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Navigation links */

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-gray);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    transform: translateY(-3px);
}

.nav-links a::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 5px;
    background-color: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px var(--accent-glow);
    border-radius: 2px;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleY(1);
}

/* Icons */

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================= */
/* TOGGLE ICON */
/* ============================= */

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    cursor: pointer;
    background: none;
    border: none;
}


/* ============================= */
/* PROFILE PICTURE */
/* ============================= */

.profile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
    max-width: 90vw;
    max-height: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.ring-bg {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.ring-active {
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 351.85;
    /* 2 * PI * 56 (viewBox units) */
    stroke-dashoffset: 351.85;
    transition: stroke-dashoffset 0.6s ease;
}

.profile-container:hover .ring-active {
    animation: profileLoad 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes profileLoad {
    0% {
        stroke-dashoffset: 351.85;
    }

    40% {
        stroke-dashoffset: 140;
        /* Proportional speedup */
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.profile-pic {
    width: 280px;
    height: 280px;
    max-width: 75vw;
    max-height: 75vw;
    background: rgba(255, 255, 255, 0.08);
    /* Re-sharpened profile inner */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 15vw, 6rem);
    color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Profile Scale down for mobile */
@media (max-width: 480px) {
    .profile-container {
        width: 260px;
        height: 260px;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 15px;
    padding: 60px 20px;
}

.subtitle {
    font-family: Orbitron, sans-serif;
    color: var(--accent);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    height: 1.5em;
    /* Maintain space while typing */
    display: flex;
    align-items: center;
}

/* Typewriter effects */
.typewriter {
    --caret: var(--accent);
}

.typewriter::before {
    content: "";
    animation: typing 13.5s infinite;
}

.typewriter::after {
    content: "";
    border-right: 2px solid var(--caret);
    margin-left: 4px;
    animation: blink 0.7s step-end infinite;
}

.typewriter.thick::after {
    border-right: 0.8ch solid var(--caret);
}

@keyframes typing {

    /* Slot 1: TAC */
    0.0000%,
    30.0000% {
        content: "";
    }

    2.0000%,
    28.0000% {
        content: "T";
    }

    4.0000%,
    26.0000% {
        content: "TA";
    }

    6.0000%,
    24.0000% {
        content: "TAC";
    }

    /* Slot 2: SOC */
    33.3333%,
    63.3333% {
        content: "";
    }

    35.3333%,
    61.3333% {
        content: "S";
    }

    37.3333%,
    59.3333% {
        content: "SO";
    }

    39.3333%,
    57.3333% {
        content: "SOC";
    }

    /* Slot 3: cyber. */
    66.6666%,
    96.6666% {
        content: "";
    }

    68.6666%,
    94.6666% {
        content: "c";
    }

    70.6666%,
    92.6666% {
        content: "cy";
    }

    72.6666%,
    90.6666% {
        content: "cyb";
    }

    74.6666%,
    88.6666% {
        content: "cybe";
    }

    76.6666%,
    86.6666% {
        content: "cyber";
    }

    78.6666%,
    84.6666% {
        content: "cyber.";
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion) {
    .typewriter::after {
        animation: none;
    }

    @keyframes sequencePopup {

        0%,
        100% {
            content: "TAC";
        }

        33% {
            content: "SOC";
        }

        66% {
            content: "cyber.";
        }
    }

    .typewriter::before {
        content: "TAC";
        animation: sequencePopup 12s linear infinite;
    }
}

.name {
    font-family: Orbitron;
    font-size: clamp(32px, 8vw, 64px);
    color: var(--accent);

    margin: 0;
    letter-spacing: 2px;
}

.hero-email {
    font-family: Orbitron, sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    margin-top: 25px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.hero-email a {
    color: var(--accent) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.hero-email a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
    opacity: 1;
}


/* ============================= */
/* HERO BUTTONS */
/* ============================= */

.hero-buttons {

    margin-top: 10px;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;

}

.primary-btn {

    background: var(--accent);
    color: var(--bg);
    /* Use background color for text contrast */

    padding: 14px 24px;
    border-radius: 8px;

    text-decoration: none;
    font-family: Orbitron, sans-serif;
    font-weight: bold;

    border: none;
    cursor: pointer;

    transition: all 0.25s ease;

}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.secondary-btn {

    display: inline-block;

    border: 1px solid var(--accent);
    color: var(--accent);

    padding: 14px 24px;
    border-radius: 8px;

    text-decoration: none;
    background: transparent;

    font-family: Orbitron, sans-serif;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition: all 0.25s ease;

}

.secondary-btn:hover {
    background: var(--glass-bg);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}


/* ============================= */
/* SVG GLOW BUTTON EFFECT */
/* ============================= */

.glow-effect {

    --glow-line-color: var(--accent);
    --glow-line-thickness: 2px;
    --glow-line-length: 20px;
    --glow-blur-color: var(--accent);
    --glow-blur-size: 6px;
    --glow-offset: 10px;
    --animation-speed: 1200ms;
    --container-offset: 100px;

    position: relative;

}

.glow-container {

    pointer-events: none;
    position: absolute;

    inset: calc(var(--container-offset) / -2);

    width: calc(100% + var(--container-offset));
    height: calc(100% + var(--container-offset));

    opacity: 0;

}

.glow-blur,
.glow-line {

    width: calc(100% - var(--container-offset) + var(--glow-offset));
    height: calc(100% - var(--container-offset) + var(--glow-offset));

    x: calc((var(--container-offset) / 2) + calc(var(--glow-offset) / -2));
    y: calc((var(--container-offset) / 2) + calc(var(--glow-offset) / -2));

    fill: transparent;

    stroke-dasharray: var(--glow-line-length) calc(50px - var(--glow-line-length));

}

.glow-line {
    stroke: var(--glow-line-color);
    stroke-width: var(--glow-line-thickness);
}

.glow-blur {
    filter: blur(var(--glow-blur-size));
    stroke: var(--glow-blur-color);
    stroke-width: var(--glow-blur-size);
}

.glow-effect:is(:hover, :focus) :is(.glow-line, .glow-blur) {

    stroke-dashoffset: -80px;
    transition: stroke-dashoffset var(--animation-speed) ease-in;

}

.glow-effect:is(:hover, :focus) .glow-container {

    animation: glow-visibility ease-in-out var(--animation-speed);

}

@keyframes glow-visibility {

    0%,
    100% {
        opacity: 0;
    }

    25%,
    75% {
        opacity: 1;
    }

}

/* ============================= */
/* INTRO OVERLAY */
/* ============================= */

.intro-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    backdrop-filter: blur(15px);
    /* Blurs the website content behind */
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    transition: opacity 2s ease, background 0.5s ease;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: introZoom 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.terminal-logs {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: var(--accent);
    opacity: 0.8;
    pointer-events: none;
    line-height: 1.6;
    text-shadow: 0 0 5px var(--accent-glow);
    animation: introZoom 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-name {
    font-family: Orbitron;
    font-size: clamp(32px, 8vw, 64px);
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0;
}

.intro-email {
    font-family: Orbitron, sans-serif;
    color: var(--accent);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 0.7;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* Progression Loader Box */
.loader-wrapper {
    width: min(300px, 80vw);
}

.loader {
    --clr: var(--accent);
    --load-time: 5s;
    /* Sync with introZoom */
    outline: 2px solid var(--clr);
    outline-offset: 4px;
    position: relative;
    overflow: hidden;
    border-radius: 5rem;
    padding: 0.6rem 0;
    /* Adjust height via padding */
}

.loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr);
    z-index: 2;
    animation: loading var(--load-time) ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes introZoom {
    0% {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(5px);
    }

    10% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
        filter: blur(25px);
        /* Increased blur for high-fidelity exit */
    }
}

.intro-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

/* ============================= */
/* GLASS CONTENT PANEL */
/* ============================= */

.glass-section {

    position: relative;
    overflow: visible;

    /* Immersive edge-to-edge layout */
    display: block;
    margin-top: 40px !important;
    margin-bottom: 80px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    padding: 650px clamp(15px, 5vw, 40px) clamp(20px, 4vw, 60px) clamp(15px, 5vw, 40px);
    /* Extreme vertical clearance for the 600px deep sweep */

    width: 100%;
    clear: both;

    background: var(--glass-bg);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Rounded only on bottom corners */
    border-radius: 0;

    border: 1px solid var(--glass-border);
    border-top: none;
    border-left: none;
    border-right: none;

    box-shadow:
        0 40px 100px var(--glass-shadow),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);

    /* Extreme, Absolute-Depth Sweep Polygon - Refined for Max Smoothness */
    clip-path: polygon(
        0% 600px, 0.5% 595px, 1% 585px, 2% 565px, 3% 545px, 4% 520px, 5% 500px, 7% 465px, 
        9% 435px, 12% 395px, 15% 365px, 18% 340px, 22% 315px, 26% 295px, 31% 280px, 
        38% 265px, 45% 255px, 55% 245px, 65% 230px, 72% 210px, 78% 185px, 83% 155px, 
        87% 125px, 90% 95px, 93% 65px, 95.5% 40px, 97.5% 20px, 98.8% 8px, 99.5% 3px, 100% 0px, 
        100% 100%, 0% 100%
    );
}

/* Dual-Accent Internal Glow */
.glass-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle at 90% 10%, rgba(var(--accent-rgb), 0.15), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(var(--secondary-accent-rgb), 0.15), transparent 50%);
    border-radius: inherit;
}

/* Subpages (no hero): push glass panel below the fixed navbar */
.glass-section--page {
    margin-top: 90px;
}

/* Pull the first section (Skills) up towards the sweeping edge */
.glass-section>section:first-of-type {
    margin-top: -300px;
    /* Nestled below the center-sweep (240px) to prevent clipping while staying tight to the rail */
    position: relative;
    z-index: 10;
    padding-top: 0;
}

/* ============================= */
/* MATRIX BG EFFECT */
/* ============================= */

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Ensures it sits under the text but inside the glass pane */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: var(--matrix-opacity);
    /* Theme-aware opacity: subtly visible green, more distinct red */
    border-radius: inherit;

    /* Mask to fade out the top and sides */
    mask-image: radial-gradient(ellipse at 50% 180%,
            black 20%,
            transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 180%,
            black 20%,
            transparent 80%);
}

/* ============================= */
/* PROJECTS PAGE */
/* ============================= */

.section-header {
    margin-bottom: 25px;
}

.section-header h1 {
    font-family: Orbitron;
    color: var(--accent);
    margin-bottom: 5px;
}

.section-sub {
    opacity: 0.7;
    font-size: 0.95rem;
}

.project-grid {

    margin-top: 25px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 25px;

    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;

}

.project-card,
.skill-card,
.cert-card,
.card {

    position: relative;
    overflow: hidden;

    /* Theme-aware Glassmorphism with subtle accent tint */
    background: rgba(var(--accent-rgb), 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 12px;
    border: 1px solid var(--glass-border);

    text-decoration: none;
    color: var(--text);

    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;

    opacity: 0.95;
    /* More opaque for stability */

    box-shadow:
        0 8px 24px var(--glass-shadow),
        /* Inward white glow for glassy feel */
        inset 0 0 12px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.project-card:hover,
.skill-card:hover,
.cert-card:hover {
    opacity: 1;
    background: rgba(var(--accent-rgb), 0.08);
    /* Match button hover fill */
    border-color: var(--accent);
    box-shadow:
        0 12px 32px var(--glass-shadow),
        0 0 20px rgba(var(--accent-rgb), 0.2),
        /* Subtle outer glow */
        inset 0 0 12px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover,
.skill-card:hover,
.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px var(--accent-glow);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Define a themed glow variable moved to root/light sections */

.project-card:hover img {
    transform: scale(1.08);
}

.project-content {

    padding: 18px;
    text-align: left;

}

.project-content h3 {

    margin: 0;
    font-size: 1.1rem;

    font-family: Orbitron;
    color: var(--accent);

}

.project-content p {

    margin-top: 8px;

    font-size: 0.9rem;
    line-height: 1.4;

    opacity: 0.75;

}

.project-card::after {

    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(90deg,
            transparent,
            var(--accent),
            transparent);

    opacity: 0;

    transition: opacity 0.4s ease, transform 0.4s ease;

    transform: scaleX(0.7);

}

.project-card:hover::after {

    opacity: 1;
    transform: scaleX(1);

}

/* ============================= */
/* SKILLS SECTION */
/* ============================= */

/* ============================= */
/* SKILLS RADAR GRAPH */
/* ============================= */

.skills-dashboard-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* Slightly tighter for prominence */
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0;
    /* Removed padding for absolute focus */
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Slide interaction: Graph moves right when carousel appears */
.skills.reveal.active .skills-dashboard-wrapper {
    justify-content: center;
    /* Balanced flex layout */
}

/* --- MISSION CAROUSEL --- */
.skills-carousel-card {
    flex: 0 0 320px;
    /* Slightly wider for better text flow */
    height: 580px;
    /* Match the radar card's min-height exactly */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    /* Removed tactical accent border */
    border-radius: 12px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    font-family: 'Inter', 'Courier New', monospace;
    color: var(--text);
    font-weight: 500;

    /* Reveal state: Emerging from the graph's right gridline */
    opacity: 0;
    transform: translateX(500px);
    clip-path: inset(0 0 0 100%);

    transition:
        transform 1.2s cubic-bezier(0.23, 1, 0.32, 1) 1s,
        opacity 0.8s ease 1.1s,
        clip-path 1.2s cubic-bezier(0.23, 1, 0.32, 1) 1s;

    box-shadow: 0 15px 45px var(--glass-shadow);
}

.skills.reveal.active .skills-carousel-card {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    /* Unfold completely */
}

.carousel-hud-top {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    color: var(--text);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-hud-top::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        box-shadow: 0 0 0 var(--accent);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 8px var(--accent);
    }
}

.carousel-track-viewport {
    width: 100%;
    overflow: hidden;
    flex-grow: 1;
    /* Pushes controls to bottom */
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300%;
    /* 3 Slides */
}

.carousel-slide {
    flex: 0 0 33.333%;
    padding-right: 10px;
}

.carousel-slide h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.carousel-slide p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 40px;
}

.carousel-stats {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carousel-stats li {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
    font-family: Orbitron, sans-serif;
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.carousel-controls {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.carousel-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: scale(1.3);
}

.skills-graph-container {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Coordinated start: centered to the viewport */
    transform: translateX(-170px);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1) 1s;
}

/* Graph slides right logic */
.skills.reveal.active .skills-graph-container {
    transform: translateX(0);
}

/* radar glass card */

.skills-radar-card {
    position: relative;
    padding: 20px;
    max-width: 1050px;
    /* Increased from 950px */
    width: 100%;
    user-select: none;
    min-height: 580px;
    /* Increased from 520px */
    /* Removed overflow: hidden to prevent labels from being clipped */
}

/* --- HUD DECORATIONS --- */
.hud-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--accent);
    opacity: 0.2;
    pointer-events: none;
}

.hud-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.hud-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.hud-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.hud-ticks-h {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    opacity: 0.15;
    background-image: repeating-linear-gradient(to right,
            var(--accent) 0, var(--accent) 1px,
            transparent 1px, transparent 15px);
    pointer-events: none;
}

.hud-top {
    top: 25px;
}

.hud-bottom {
    bottom: 25px;
}



/* Subtle pulse for HUD corners */
.hud-corner {
    animation: hudPulse 4s ease-in-out infinite alternate;
}

@keyframes hudPulse {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.35;
    }
}

/* --- SVG SIZING --- */

#radar {
    width: 100%;
    max-width: 900px;
    /* Increased graph size */
    height: auto;
    display: block;
    margin: 0 auto;
    aspect-ratio: 4/3;
    transition: transform 1s ease;
}

/* radar grid */

.grid {
    stroke: var(--accent);
    stroke-width: .6;
    fill: none;
    opacity: 0.3;
}

.axis {
    stroke: var(--text);
    stroke-width: .5;
    opacity: 0.2;
}

/* radar datasets */

.node {
    fill: var(--accent);
    filter: blur(.7px);
    opacity: .65;
}

.depth {
    opacity: .05;
}

.radar1 {
    fill: var(--accent);
    fill-opacity: 0.2;
    stroke: var(--accent);
    stroke-width: 2;
}

.radar2 {
    fill: var(--text);
    fill-opacity: 0.1;
    stroke: var(--text);
    stroke-width: 1.5;
    stroke-dasharray: 4;
}

/* data points */

.point1 {
    fill: var(--accent);
    stroke: var(--bg);
    stroke-width: 1.5;
}

.point2 {
    fill: var(--text);
    stroke: var(--bg);
    stroke-width: 1.5;
}

/* label system */

#labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    /* Bring labels to front of carousel */
}

.label {
    position: absolute;
    color: var(--text);
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 600;
    font-family: Orbitron, sans-serif;
    letter-spacing: 1px;
    border-radius: 4px;

    /* Glassmorphism to match the rest of the site */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px var(--glass-shadow);
    opacity: 0.95;
    /* Improved stability */

    white-space: nowrap;

    /* Parallelogram slant — right side labels lean forward (/) */
    transform: skewX(-14deg);
}

/* Left-side labels are mirrored (\) */
.label-left {
    transform: skewX(14deg);
}

/* Counter-skew the inner text so it stays upright */
.label span {
    display: inline-block;
    transform: skewX(14deg);
}

.label-left span {
    transform: skewX(-14deg);
}

.connector {
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.4;
}

.skills {
    padding: 40px 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1050px;
    /* Forces wrap after 3 items */
    margin: 30px auto 0 auto;
}

.tech-skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 20px auto 40px auto;
}

/* --- COLLAPSIBLE SECTION --- */
.collapse-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 40px auto 20px auto;
}

.collapse-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text);
    padding: 12px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    max-width: 600px;
}

.collapse-trigger:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2);
}

.chevron-group {
    display: flex;
    flex-direction: column;
    gap: -2px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.collapse-trigger.active .chevron-group {
    transform: rotate(180deg);
}

.chevron-group i {
    font-size: 10px;
    line-height: 0.8;
}

.collapse-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    overflow: hidden;
}

.collapse-content.active {
    grid-template-rows: 1fr;
}

.collapse-inner {
    min-height: 0;
}

.tech-card {
    flex: 1 1 240px;
    max-width: 300px;
    padding: 0 !important;
    /* Managed by card-inner */
    overflow: hidden;
}

.card-inner {
    display: flex;
    width: 200%;
    /* Front and Back side-by-side */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.tech-card:hover .card-inner {
    transform: translateX(-50%);
}

.card-front,
.card-back {
    width: 50%;
    padding: 16px 24px;
    /* Reduced vertical padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85px;
    /* Reduced min-height */
}

.card-back {
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    background: rgba(var(--accent-rgb), 0.03);
    /* Subtle tint */
}

/* Counter-skew the content back since the card is skewed */
.card-front,
.card-back {
    transform: skewX(14deg);
}

.tech-card:hover .card-back {
    opacity: 1;
}

.skill-card {
    position: relative;
    padding: 30px;
    flex: 1 1 310px;
    max-width: 320px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    transform: skewX(-14deg) !important;
}

.skill-title {
    font-family: Orbitron, sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.progress {
    background: rgba(0, 0, 0, 0.15);
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

/* 8-Segmented rounded look specifically for tech cards to match the 8 radar rings */
.tech-card .progress {
    background: rgba(0, 0, 0, 0.2);
    height: 14px;
    border-radius: 0;

    /* Custom SVG mask for rounded pill segments with larger gaps */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='12' y='0' width='76' height='100' rx='25' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='12' y='0' width='76' height='100' rx='25' fill='black'/%3E%3C/svg%3E");
    mask-size: 12.5% 100%;
    mask-repeat: repeat-x;
}

.progress div {
    height: 100%;
    width: 0%;

    /* High-Fidelity Volumetric Fill: Pattern + Depth Overlays + Base Color */
    background:
        /* Level 3: Subtle persistent stripe pattern */
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent),
        /* Level 2: Horizontal 'Vignette' (Dark edges, bright center) */
        linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.4) 100%),
        /* Level 1: Vertical 'Glow Tube' (Darker at top/bottom) */
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%),
        /* Level 0: The Base Accent Color */
        var(--accent);

    background-size: 15px 15px, 100% 100%, 100% 100%, 100% 100%;
    position: relative;
    overflow: hidden;

    /* Subtle Outer Neon Glow */
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);

    border-radius: inherit;
    transition: width 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated Glossy Sheen Overlay - Reduced Frequency */
.progress div::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    animation: glossySheen 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glossySheen {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes loadingStripe {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 0;
    }
}


/* ============================= */
/* CERTIFICATES */
/* ============================= */

.certificates {
    padding: 40px 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 15px auto 0 auto;
}

.cert-card {

    position: relative;

    padding: 25px;
    transform: skewX(-14deg) !important;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cert-card h3 {
    font-family: Orbitron, sans-serif;
    margin-bottom: 8px;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--accent-glow);
}


/* ============================= */
/* EMPLOYMENT HISTORY TIMELINE */
/* ============================= */

.employment-history {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 30px;
}

/* Timeline Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: var(--glass-border);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
    width: 18px;
    height: 18px;
    background: var(--glass-bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    z-index: 1;
}

/* Timeline Content Box */
.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: Orbitron, sans-serif;
    margin-bottom: 12px;
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    font-family: Orbitron, sans-serif;
    font-size: 1.3rem;
    color: var(--text);
}

.timeline-company {
    margin: 0 0 15px 0;
    font-family: Orbitron, sans-serif;
    font-size: 1rem;
    color: var(--nav-gray);
    font-weight: 500;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--nav-gray);
    line-height: 1.6;
}

/* ============================= */
/* CYBER SCAN EFFECT */
/* ============================= */

.project-card::after {

    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom,
            transparent,
            var(--accent),
            transparent);
    opacity: 0.15;
    /* Subtler scan color */

    transform: translateY(-120%);
    opacity: 0;

    pointer-events: none;

}


/* Animate only on hover */

.skill-card:hover::after,
.cert-card:hover::after,
.project-card:hover::after {

    opacity: 1;
    animation: cardScan 1.6s linear infinite;

}


/* Scan animation */

@keyframes cardScan {

    0% {
        transform: translateY(-120%);
    }

    100% {
        transform: translateY(120%);
    }

}

section h2 {
    font-family: Orbitron;
    margin: 0 0 10px 0;
}

/* Hero text mouse movement */

.parallax {
    display: inline-block;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* ===================================== */
/* FOOTER */
/* ===================================== */

.footer {
    background: var(--navbar-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: none;
    /* Removed to match header */

    padding: 30px 0;
    margin-top: 80px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 40px;
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    width: 100%;
}

.sitemap-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sitemap-title {
    font-family: Orbitron, sans-serif;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sitemap-links li a {
    text-decoration: none;
    color: var(--nav-gray);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-block;
}

.sitemap-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    width: 100%;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* ===================================== */
/* SOCIAL ICONS */
/* ===================================== */

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);

    color: var(--text);
    text-decoration: none;
    font-family: Orbitron, sans-serif;
    font-size: 16px;
    transition: all 0.25s ease;
}

.social-icon:hover {

    color: var(--accent);
    border-color: var(--accent);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

}


/* ===================================== */
/* TOGGLE ICON */
/* ===================================== */

.toggle-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#themeToggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#themeToggle i {
    font-size: 16px;
}

/* VANTA background (deepest layer) */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

/* Grid overlay */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {

    cursor: pointer;
    background: var(--glass-bg);

}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    /* Moved up from 30px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -10px;
    /* Adjusted for larger size */
    opacity: 0;
    visibility: hidden;
    color: var(--accent);
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 10;
}

.scroll-indicator.visible {
    opacity: 0.8;
    visibility: visible;
    animation: scrollBounce 2s infinite ease-in-out;
}

.scroll-indicator i {
    font-size: 1.8rem;
    /* Increased from 1.2rem */
    line-height: 0.5;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile adjustments for Skills Dashboard */
@media (max-width: 1100px) {
    .skills-dashboard-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .skills-carousel-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 600px;
    }

    .skills-graph-container {
        width: 100%;
    }
}

/* ============================= */
/* 404 ERROR PAGE */
/* ============================= */

.error-404-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    /* Adjust for nav and footer */
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.glitch-text {
    font-family: Orbitron, sans-serif;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--accent);
    position: relative;
    margin: 0;
    line-height: 1;
    letter-spacing: 5px;
}

.glitch-text::before,
.glitch-text::after {
    content: "404";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #ff00c1;
    z-index: -1;
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-text::after {
    color: #00fff9;
    z-index: -2;
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

.error-msg {
    font-family: Orbitron, sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-sub {
    font-family: Inter, sans-serif;
    font-size: 1.1rem;
    color: var(--nav-gray);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.back-home-btn {
    margin-top: 20px;
}

/* ===================================== */
/* RESPONSIVE DESIGN FOR PC & MOBILE */
/* ===================================== */

@media (max-width: 1024px) {
    /* PC / Tablet adjustments */
    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile Layout */
    .nav-container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .nav-right {
        gap: 15px;
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 0.95rem;
    }
    
    .nav-icons {
        justify-content: center;
    }

    /* Hero section push down for stacked navbar */
    .hero {
        padding-top: 180px; 
    }

    /* Glass section mobile sweep */
    .glass-section {
        padding-top: 300px !important;
        clip-path: polygon(
            0% 250px, 10% 200px, 30% 150px, 50% 100px, 70% 50px, 90% 20px, 100% 0px, 
            100% 100%, 0% 100%
        ) !important;
    }
    
    .glass-section > section:first-of-type {
        margin-top: -150px !important;
    }

    /* Skills Dashboard Wrap */
    .skills-dashboard-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .skills-carousel-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 450px !important;
    }

    /* Radar size */
    .skills-graph-container {
        width: 100% !important;
    }
    div#labels {
        font-size: 9px !important; 
    }
    .label {
        padding: 4px 8px !important;
    }
    
    /* Responsive Cards */
    .skill-card, .tech-card, .cert-card, .project-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    /* Timelines */
    .timeline {
        padding-left: 15px !important;
    }
    .timeline-content {
        padding: 15px !important;
    }
    
    /* Footer */
    .footer-sitemap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================= */
/* CONTACT FORM STYLES */
/* ============================= */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    text-align: left;
    max-width: 1200px;
    margin: 40px auto;
}

.contact-info-card {
    background: rgba(var(--accent-rgb), 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    height: fit-content;
}

.contact-info-card h2 {
    font-family: Orbitron, sans-serif;
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.contact-method-text h3 {
    font-family: Orbitron, sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-method-text p {
    margin: 0;
    color: var(--text);
    opacity: 0.8;
}

/* Form Styles */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nav-gray);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-group textarea + label {
    top: 25px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--bg);
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2);
    background: rgba(var(--accent-rgb), 0.05);
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: Orbitron, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================= */
/* PROJECT DETAILS */
/* ============================= */

.project-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.project-detail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.project-detail-hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.project-detail-hero-img:hover {
    transform: scale(1.02);
}

.project-text {
    text-align: left;
    line-height: 1.8;
    color: var(--text);
    font-size: 1.1rem;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px var(--glass-shadow);
}

.light .project-text {
    background: rgba(255, 255, 255, 0.5);
}

.project-text h2 {
    color: var(--accent);
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: Orbitron, sans-serif;
    letter-spacing: 1px;
}

.project-text h3 {
    color: var(--text);
    margin-top: 25px;
    margin-bottom: 10px;
    font-family: Orbitron, sans-serif;
}

.project-text p {
    margin-bottom: 20px;
}

.project-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-text li {
    margin-bottom: 10px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.stack-tag {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: Orbitron, sans-serif;
    transition: all 0.3s ease;
}

.stack-tag:hover {
    background: var(--accent);
    color: var(--bg);
}

.back-btn-container {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}