:root {
    /* 60:30:10 Rule */
    /* 60% Dominant: Deep Space Blue/Black */
    --bg-dark: #02040a;
    --bg-card: rgba(10, 15, 30, 0.6);

    /* 30% Secondary: Electric Cyber Blue (AI Identity) */
    --secondary-color: #00d2ff;

    /* 10% Accent: Neon Purple/Pink (Impact) */
    --primary-color: #7000ff;

    /* Text */
    --text-main: #ffffff;
    --text-muted: #b0c4de;
    /* Lighter Blue-Gray for better readability */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    /* Fallback */
}

body {
    background-color: transparent;
    /* Changed for Three.js 3D Background */
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* For canvas z-index context */
}

/* #canvas-bg removed */

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 30px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}


/* -------------------------------------------------------------------------- */
/*                                   Navbar                                   */
/* -------------------------------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    /* Pushes Logo left, Links right */
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(2, 4, 10, 0.7);
    /* Darker, slightly blue tint */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
    /* Cyan hint */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-right: 40px;
    /* Extra space customized for user request */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-main);
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: center;
    /* Center Horizontally */
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

/* Atmospheric Glow */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 100px;
    /* Added spacing from Navbar */
    animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Massive Hero Name */
h1.glitch-name {
    font-size: 5rem;
    /* Statement Size */
    font-weight: 800;
    margin: 10px 0;
    letter-spacing: -2px;
    background: linear-gradient(to right, #ffffff, #a5a5a5);
    /* Metallic Text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

h1.glitch-name::before,
h1.glitch-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Fix: Remove black block to transparent */
}

h1.glitch-name::before {
    left: 2px;
    text-shadow: -2px 0 #00d2ff;
    /* Cyan Glitch (Kept) */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

h1.glitch-name::after {
    left: -2px;
    text-shadow: -2px 0 #e0e0e0;
    /* Silver/White (Replaces Dark Blue) */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Enhanced Attractive Glow - Metallic Edition */
h1.glitch-name {
    /* Restore Metallic Gradient */
    background: linear-gradient(to right, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Glow: Softer Cyan/White */
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
}

@keyframes glitch-anim {
    0% {
        clip: rect(33px, 9999px, 11px, 0);
    }

    20% {
        clip: rect(89px, 9999px, 77px, 0);
    }

    40% {
        clip: rect(12px, 9999px, 58px, 0);
    }

    60% {
        clip: rect(44px, 9999px, 35px, 0);
    }

    80% {
        clip: rect(66px, 9999px, 22px, 0);
    }

    100% {
        clip: rect(1px, 9999px, 92px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(12px, 9999px, 58px, 0);
    }

    20% {
        clip: rect(44px, 9999px, 35px, 0);
    }

    40% {
        clip: rect(1px, 9999px, 92px, 0);
    }

    60% {
        clip: rect(33px, 9999px, 11px, 0);
    }

    80% {
        clip: rect(89px, 9999px, 77px, 0);
    }

    100% {
        clip: rect(66px, 9999px, 22px, 0);
    }
}

.typed-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 20px 0;
    min-height: 3rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hero-desc strong {
    color: white;
    font-weight: 600;
}

/* Social Icons Animation */
.social-links {
    margin-top: 30px;
}

.social-links a {
    margin: 0 15px;
    display: inline-block;
}

.social-links i {
    font-size: 2.2rem;
    /* Increased size */
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

.social-links a:hover i {
    color: var(--primary-color);
    transform: scale(1.4) rotate(5deg);
    /* Large pop & tilt */
    text-shadow: 0 0 15px var(--primary-color);
}

/* Magnetic Buttons */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    h1.glitch-name {
        font-size: 3rem;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Removed static gradient to let canvas show through details */
    background: transparent;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}


/* -------------------------------------------------------------------------- */
/*                               Contact Section                              */
/* -------------------------------------------------------------------------- */
#contact {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* World Map Background */
.world-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500"><circle cx="200" cy="150" r="100" fill="%2300ff88"/><circle cx="500" cy="200" r="80" fill="%2300ff88"/><circle cx="800" cy="150" r="120" fill="%2300ff88"/></svg>');
    /* Ideally Replace with a real World Map SVG for best effect, using abstract dots here */
    /* background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 90%); REMOVED for 3D visibility */
}

.map-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#00ff88 1px, transparent 1px);
    background-size: 30px 30px;
    /* Grid of dots mimicking points of interest */
    opacity: 0.2;
}

/* Flight Paths */
.flight-path {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    width: 200px;
    border-radius: 50%;
    animation: flightMove 4s infinite linear;
}

.fp-1 {
    top: 30%;
    left: 10%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.fp-2 {
    top: 60%;
    left: 60%;
    transform: rotate(10deg);
    animation-delay: 1.5s;
    width: 300px;
}

.fp-3 {
    top: 40%;
    left: 40%;
    transform: rotate(-5deg);
    animation-delay: 2.5s;
    width: 150px;
}

@keyframes flightMove {
    0% {
        transform: translateX(-100%) rotate(-10deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(200%) rotate(-10deg);
        opacity: 0;
    }
}

.travel-plane {
    position: absolute;
    top: 20%;
    left: -50px;
    font-size: 2rem;
    color: var(--secondary-color);
    animation: planeFly 15s infinite linear;
    text-shadow: 0 0 10px var(--secondary-color);
}

@keyframes planeFly {
    0% {
        left: -50px;
        top: 40%;
        transform: rotate(15deg);
    }

    50% {
        top: 20%;
        transform: rotate(10deg);
    }

    100% {
        left: 110%;
        top: 30%;
        transform: rotate(15deg);
    }
}

/* Travel Status Header */
.travel-status {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-top: -30px;
    /* Pull closer to Title */
    margin-bottom: 40px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ff88;
    animation: blinkStatus 1.5s infinite;
}

@keyframes blinkStatus {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ccc;
}

/* Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

/* Info Cards (Boarding Pass Style) */
.info-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 20, 0.6));
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle top/right border */
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}

.info-card:hover {
    transform: translateX(10px);
    background: rgba(22, 22, 22, 0.9);
    border-left: 4px solid var(--secondary-color);
    /* Switch to Cyan on hover */
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    /* Cyan Glow */
}

.info-card::before {
    /* Dashed line decoration */
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 2px;
    border-right: 2px dashed #444;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 40px;
    text-align: center;
}

.card-details h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-details p {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Glass Postcard Form */
.glass-postcard {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Inner bezel */
}

/* Cyber Border Strip */
.glass-postcard::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    /* Cyber Stream Gradient */
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    box-shadow: 0 0 20px var(--primary-color);
    border-radius: 20px 20px 0 0;
    animation: borderFlow 3s infinite linear;
    background-size: 200% 100%;
}

@keyframes borderFlow {
    0% {
        background-position: 100% 0;
    }

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


/* -------------------------------------------------------------------------- */
/*                               Tech Stream (Stats Replacement)              */
/* -------------------------------------------------------------------------- */
.tech-stream-container {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* Fade Edges */
.tech-stream-container::before,
.tech-stream-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-stream-container::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.tech-stream-container::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.stream-track {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 50px;
}

.left-scroll {
    animation: scrollTextLeft 30s linear infinite;
}

.right-scroll {
    animation: scrollTextRight 30s linear infinite;
}

@keyframes scrollTextLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollTextRight {
    0% {
        transform: translateX(-50%);
    }

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

.stream-item {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.stream-item:hover {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    -webkit-text-stroke: 1px var(--primary-color);
    transform: scale(1.1);
    cursor: default;
}

.stream-item.tool {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    /* Tools are brighter but smaller */
    -webkit-text-stroke: 0;
    font-family: 'Courier New', monospace;
    /* Tech vibe */
}

.stream-item.tool:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--secondary-color);
}


.stream-dot {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Stats Dashboard Integration */
.tech-separator {
    height: 1px;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 20px auto;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    padding: 20px;
    z-index: 5;
    /* Above fade masks */
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    margin: 5px 0 25px 0;
    /* Increased bottom margin for space */
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    position: relative;
    display: inline-block;
}

/* The Bar */
.stat-item h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    /* Space between number and bar */
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 40px;
    }

    .stat-item {
        width: 40%;
    }
}


.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    /* Increased from 30px for safety */
}

.form-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.stamp {
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    padding: 5px 15px;
    font-weight: 700;
    letter-spacing: 2px;
    transform: rotate(-10deg);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Form Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 2px solid #333;
    /* Line style inputs */
    padding: 15px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .status-text {
        font-size: 0.8rem;
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Experience & Education - Neural Path */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Hide default line */
.timeline::after {
    display: none;
}

/* Custom Neural Lines */
.timeline-line-bg,
.timeline-line-progress {
    position: absolute;
    width: 4px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    border-radius: 4px;
}

.timeline-line-bg {
    background: rgba(255, 255, 255, 0.05);
    /* Dim background path */
    height: 100%;
}

.timeline-line-progress {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    height: 0%;
    /* JS will animate this */
    transition: height 0.2s ease-out;
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 1;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    background-color: transparent;
    width: 50%;
    opacity: 1;
    /* Force Visible */
    transform: none;
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid #333;
    /* Inactive color */
    border-radius: 50%;
    top: 40px;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Position nodes correctly */
.left .timeline-node {
    right: -10px;
    /* Center on line (width 50%) */
}

.right .timeline-node {
    left: -10px;
}

/* Active Node State */
.timeline-item.active .timeline-node {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.3);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

/* Content Box Styling - Tech Upgrade */
.content-box {
    padding: 25px 30px;
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.content-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Role Tech Stack */
.role-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.role-tech-stack span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.05);
    color: var(--primary-color);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #222;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}


.project-img {
    height: 220px;
    width: 100%;
    /* Standardized height */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: grayscale(30%) contrast(1.1) brightness(0.8);
    position: relative;
    border-bottom: 2px solid var(--primary-color);
}

.project-img::after {
    /* Overlay for text readability (if text is over image) or just depth */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.6;
    transition: 0.5s;
}

.project-card:hover .project-img {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    transform: scale(1.02);
    /* Slight zoom interaction */
}

.project-card:hover .project-img::after {
    opacity: 0.2;
}

.project-info {
    padding: 25px;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10, 10, 10, 1) 100%);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-tags {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid #333;
    color: white;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Stats Section */
.stat {
    background: var(--bg-card);
    margin-top: 50px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.container-stats {
    max-width: 1200px;
    margin: 0 auto;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.stat-items {
    text-align: center;
    padding: 30px;
}

.stat-items i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-items h2 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: white;
    /* Reset global h2 styles */
    display: block;
    position: static;
}

.stat-items h2::after {
    display: none;
}

/* Advanced Skills Animation */
.skill-category {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Glassmorphism subtle boost */
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.9), rgba(30, 30, 30, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 45px;
    text-align: center;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    /* Override */
    color: white;
    font-weight: 600;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.15);
    border-color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 6px;
    /* Less rounded, more techy */
    font-size: 0.85rem;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: black;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.skill-tag:hover::before {
    left: 100%;
}

.stat-items p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Owl Carousel Customization */
.owl-theme .owl-dots .owl-dot span {
    background: #333 !important;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--primary-color) !important;
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 50px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
        /* Add JS toggle later if needed */
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                               Modern UX Styles                             */
/* -------------------------------------------------------------------------- */

/* Spotlight Effect */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(0, 255, 136, 0.06), transparent 40%);
    z-index: 9999;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1002;
    transition: width 0.1s;
}

/* 3D Tilt Effect Base */
.project-card,
.skill-category,
.content-box,
.stat-items {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* -------------------------------------------------------------------------- */
/*                               Role Specific Themes                         */
/* -------------------------------------------------------------------------- */

/* Theme 1: AI / Agentic (ContractPodAi) */
/* Theme 1: AI / Agentic (ContractPodAi) */
.content-box.theme-agentic {
    border: 2px solid #00ff88 !important;
    /* Thicker border */
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    /* Stronger shadow */
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.content-box.theme-agentic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    /* Fixed size for pulse origin */
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.4) 0%, transparent 70%);
    animation: pulseAgentic 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above the pulse */
.content-box.theme-agentic>* {
    position: relative;
    z-index: 2;
}

@keyframes pulseAgentic {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(2.5);
    }

    /* Larger pulse */
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Theme 2: Data Scientist (SoftSensor) */
.content-box.theme-data {
    border: 1px solid #00d2ff !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    /* Grid Pattern */
    background-image:
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: rgba(10, 10, 10, 0.8);
}

.content-box.theme-data::after {
    /* Scanline */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00d2ff;
    opacity: 0.5;
    box-shadow: 0 0 10px #00d2ff;
    animation: scanData 6s linear infinite;
}

@keyframes scanData {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Theme 3: Creative / Web (General) */
.content-box.theme-creative {
    border: 1px solid #ff00ff !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    background: linear-gradient(135deg, rgba(20, 10, 20, 0.9), rgba(10, 10, 10, 0.95));
}

.content-box.theme-creative:hover {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

/* -------------------------------------------------------------------------- */
/*                            Project Specific Effects                        */
/* -------------------------------------------------------------------------- */

/* Common Effect Container */
.project-img {
    position: relative;
    overflow: hidden;
    /* Contain effects */
}

/* 1. Scanning Effect (HR, Face Rec) */
.effect-scan .project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 45%, rgba(0, 255, 255, 0.5) 50%, transparent 55%);
    background-size: 100% 200%;
    animation: scan-down 3s infinite linear;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes scan-down {
    0% {
        background-position: 0% -100%;
    }

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

/* 2. Glitch Effect (Flappy Bird) */
.effect-glitch .project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    mix-blend-mode: overlay;
    animation: glitch-flash 4s infinite step-end;
    pointer-events: none;
}

@keyframes glitch-flash {
    0% {
        opacity: 0;
    }

    92% {
        opacity: 0;
        transform: skewX(0);
    }

    93% {
        opacity: 1;
        transform: skewX(-10deg);
    }

    94% {
        opacity: 0;
        transform: skewX(0);
    }

    96% {
        opacity: 1;
        transform: skewX(10deg);
    }

    97% {
        opacity: 0;
        transform: skewX(0);
    }

    100% {
        opacity: 0;
    }
}

/* 3. Target/HUD Effect (Mask, Car Plate) */
.effect-target .project-img::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 1px dashed rgba(255, 50, 50, 0.6);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    animation: target-pulse 2s infinite ease-in-out;
    pointer-events: none;
}

/* Crosshairs */
.effect-target .project-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 50, 50, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes target-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* 4. Pulse/Organic Effect (Covid, Agri, Sentiment) */
.effect-pulse .project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: organic-pulse 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes organic-pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.9);
    }
}

/* -------------------------------------------------------------------------- */
/*                            About Section Image Split                       */
/* -------------------------------------------------------------------------- */

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Tech Frame Image */
.tech-frame {
    position: relative;
    width: 350px;
    height: 400px;
    /* Portrait aspect ratio */
    padding: 10px;
    background: rgba(10, 20, 30, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    /* Tech corners / angles */
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    transition: transform 0.3s ease;
}

.tech-frame::before {
    /* Glowing Corner Top Left */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    z-index: 2;
}

.tech-frame::after {
    /* Glowing Corner Bottom Right */
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    z-index: 2;
}

.tech-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Inner clip to match frame */
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    /* No dramatic filters as per user request, just standard quality */
    border-radius: 4px;
    /* Slight softening if clip-path isn't perfect */
}

/* Hover Effect - Lift only, no filter change */
.tech-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

/* Responsive Split */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    /* 3. Target/HUD Effect (Mask, Car Plate) */
    .effect-target .project-img::before {
        content: '';
        position: absolute;
        top: 10%;
        left: 10%;
        right: 10%;
        bottom: 10%;
        border: 1px dashed rgba(255, 50, 50, 0.6);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
        animation: target-pulse 2s infinite ease-in-out;
        pointer-events: none;
    }

    /* Crosshairs */
    .effect-target .project-img::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        border: 1px solid rgba(255, 50, 50, 0.8);
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    @keyframes target-pulse {
        0% {
            opacity: 0.5;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
        }

        100% {
            opacity: 0.5;
            transform: scale(1);
        }
    }

    /* 4. Pulse/Organic Effect (Covid, Agri, Sentiment) */
    .effect-pulse .project-img::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: organic-pulse 4s infinite ease-in-out;
        pointer-events: none;
    }

    @keyframes organic-pulse {
        0% {
            opacity: 0.2;
            transform: scale(0.9);
        }

        50% {
            opacity: 0.5;
            transform: scale(1.1);
        }

        100% {
            opacity: 0.2;
            transform: scale(0.9);
        }
    }

    /* -------------------------------------------------------------------------- */
    /*                            About Section Image Split                       */
    /* -------------------------------------------------------------------------- */

    .about-content {
        display: flex;
        align-items: center;
        gap: 50px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-text {
        flex: 1;
    }

    .about-visual {
        flex: 1;
        display: flex;
        justify-content: center;
        position: relative;
        z-index: 10;
    }

    /* Tech Frame Image */
    .tech-frame {
        position: relative;
        width: 350px;
        height: 400px;
        /* Portrait aspect ratio */
        padding: 10px;
        background: rgba(10, 20, 30, 0.6);
        border: 1px solid rgba(0, 255, 136, 0.3);
        /* Tech corners / angles */
        clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
        transition: transform 0.3s ease;
    }

    .tech-frame::before {
        /* Glowing Corner Top Left */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
        border-top: 3px solid var(--primary-color);
        border-left: 3px solid var(--primary-color);
        z-index: 2;
    }

    .tech-frame::after {
        /* Glowing Corner Bottom Right */
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 50px;
        border-bottom: 3px solid var(--primary-color);
        border-right: 3px solid var(--primary-color);
        z-index: 2;
    }

    .tech-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Inner clip to match frame */
        clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
        /* No dramatic filters as per user request, just standard quality */
        border-radius: 4px;
        /* Slight softening if clip-path isn't perfect */
    }

    /* Hover Effect - Lift only, no filter change */
    .tech-frame:hover {
        transform: translateY(-10px);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    }

    /* Responsive Split */
    @media (max-width: 900px) {
        .about-content {
            flex-direction: column;
            gap: 30px;
        }

        .tech-frame {
            width: 280px;
            height: 320px;
        }
    }

    /* -------------------------------------------------------------------------- */
    /*                            Responsive Design                               */
    /* -------------------------------------------------------------------------- */

    /* Tablet & Mobile (max-width: 1024px) */
    @media screen and (max-width: 1024px) {
        section {
            padding: 60px 20px;
        }

        h2 {
            font-size: 2rem;
        }

        .navbar {
            padding: 15px 30px;
        }
    }

    /* Mobile Devices (max-width: 768px) */
    @media screen and (max-width: 768px) {

        /* Navbar collapse */
        /* Navbar collapse */
        .navbar {
            flex-direction: column;
            padding: 15px;
            background: rgba(10, 10, 10, 0.95);
        }

        .logo {
            margin-right: 0;
            /* Remove right margin from desktop */
        }

        .nav-links {
            margin-top: 15px;
            display: flex !important;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
        }

        .nav-links a {
            font-size: 0.85rem;
            margin-left: 10px;
            margin-right: 10px;
        }

        /* Hero */
        #home {
            height: auto;
            min-height: 100vh;
            padding-top: 120px;
            padding-bottom: 50px;
        }

        h1.glitch-name {
            font-size: 2.8rem;
            letter-spacing: -1px;
        }

        .hero-desc {
            font-size: 1rem;
            padding: 0 10px;
        }

        .buttons {
            flex-direction: column;
            gap: 15px;
            padding: 0 40px;
        }

        .social-links {
            margin-bottom: 30px;
        }

        /* About */
        .about-content {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .tech-frame {
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }

        .about-stats {
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        /* Experience / Timeline */
        .timeline-line-bg,
        .timeline-line-progress {
            left: 30px !important;
            transform: translateX(0) !important;
        }

        .timeline-node {
            left: 30px !important;
        }

        .timeline-item {
            width: 100%;
            padding-left: 70px !important;
            padding-right: 25px !important;
        }

        .timeline-item.right {
            left: 0;
        }

        /* Remove arrows */
        .left::after,
        .right::after,
        .left::before,
        .right::before {
            display: none !important;
        }

        /* Skills */
        .skills-grid {
            grid-template-columns: 1fr !important;
        }

        /* Contact */
        .contact-content {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .glass-postcard {
            padding: 20px;
        }

        /* Stats */
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
    }

    /* Small Phones (max-width: 480px) */
    @media screen and (max-width: 480px) {
        h1.glitch-name {
            font-size: 2.2rem;
        }

        .logo {
            font-size: 1.5rem;
        }

        .stats-grid {
            grid-template-columns: 1fr;
        }
    }
}


/* Closing Main Media Query (Force Fix) */

/* -------------------------------------------------------------------------- */
/*                                Professional Spotlight                      */
/* -------------------------------------------------------------------------- */
.info-card {
    position: relative;
    overflow: hidden;
    /* For spotlight containment */
}

/* Spotlight Border Effect via pseudo-element */
.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    /* Match card radius */
    padding: 1.5px;
    /* Border width */
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(255, 255, 255, 0.6), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

/* Lift on hover for professional feel */
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------------------- */
/*                                Sound Toggle                                */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                                Sound Toggle                                */
/* -------------------------------------------------------------------------- */
.sound-toggle {
    cursor: pointer;
    margin-left: 20px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.sound-toggle:hover {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color);
}

@media screen and (max-width: 768px) {
    .sound-toggle {
        display: none;
        /* Hide on mobile often saves headaches, or style differently */
    }
}

/* -------------------------------------------------------------------------- */
/*                            Audio Consent Overlay                           */
/* -------------------------------------------------------------------------- */
#audio-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030305;
    /* Deep matte black */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#audio-consent-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    filter: blur(20px);
}

.overlay-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Audio Visualizer Graphic */
.audio-visualizer-lines {
    display: flex;
    gap: 6px;
    height: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.audio-visualizer-lines .line {
    width: 4px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: visualize 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px var(--primary-color);
}

.line:nth-child(2n) {
    animation-duration: 1.1s;
}

.line:nth-child(3n) {
    animation-duration: 1.3s;
}

.line:nth-child(4n) {
    animation-duration: 0.9s;
}

@keyframes visualize {

    0%,
    100% {
        height: 10px;
        opacity: 0.5;
    }

    50% {
        height: 50px;
        opacity: 1;
    }
}

/* Premium Entry Button */
.enter-btn {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 60px;
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: shimmerBorder 2s infinite linear;
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--secondary-color);
    letter-spacing: 6px;
    background: #ffffff;
    color: #000;
}

/* Advisory Text */
.advice-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.advice-text .separator {
    width: 40px;
    height: 1px;
    background: #444;
}

/* Skip Link */
.skip-link {
    background: none;
    border: none;
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
}

.skip-link:hover {
    color: #fff;
}

@keyframes shimmerBorder {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}