/* CSS Custom Properties - Monochrome Mathematical Theme */
:root {
    /* Monochrome Theme Colors */
    --primary-bg: #0a0a0a;
    --secondary-bg: #121212;
    --surface-bg: #1a1a1a;
    --card-bg: rgba(26, 26, 26, 0.9);
    
    /* Tech Palette with Subtle Colors */
    --accent-primary: #0084ff;    /* Electric Blue */
    --accent-secondary: #cccccc;  /* Secondary light gray */
    --accent-tertiary: #00bfff;   /* Deep Sky Blue */
    --accent-orange: #1e90ff;     /* Dodger Blue */
    --accent-quaternary: #666666; /* Quaternary dark gray */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #999999;
    --text-code: #cccccc;
    --text-math: #ffffff;
    
    /* Tech Gradients with Subtle Colors */
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #ffffff 100%);
    --gradient-secondary: linear-gradient(135deg, #00bfff 0%, #cccccc 100%);
    --gradient-ai: linear-gradient(135deg, #007bff 0%, #cccccc 50%, #00bfff 100%);
    --gradient-code: linear-gradient(90deg, #1e90ff 0%, #ffffff 100%);
    
    /* Mathematical/AI Constants */
    --golden-ratio: 1.618;
    --math-opacity: 0.08;
    --grid-size: 8px;
    
    /* Teen Engineering Motion */
    --te-ease: cubic-bezier(0.23, 1, 0.320, 1);
    --te-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --te-sharp: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Spacing System */
    --section-padding: clamp(3rem, 6vw, 6rem);
    --container-max-width: 1400px;
    --border-radius: 4px;
    
    /* Typography - Teen Engineering Monospace */
    --font-primary: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', monospace;
    --font-display: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', monospace;
    --font-code: 'Fira Code', 'JetBrains Mono', 'SF Mono', monospace;
    
    /* Tech Shadows & Effects */
    --shadow-primary: 0 2px 20px rgba(0, 110, 255, 0.1);
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px rgba(0, 89, 255, 0.3);
    --glow-secondary: 0 0 15px rgba(0, 255, 65, 0.2);
    --shadow-te: 0 20px 50px rgba(0, 68, 255, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: 
        linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%),
        radial-gradient(ellipse at center top, rgba(0, 255, 255, 0.02) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Enhanced Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

.cursor-main {
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease-out;
}

/* FIXED: Clean equation display without bounding boxes */
.cursor-calculation {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-primary);
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
    font-family: var(--font-code);
    opacity: 0;
    transition: all 0.5s ease-out;
    white-space: nowrap;
    background: none;
    border: none;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    pointer-events: none;
}

.custom-cursor.cursor-hover .cursor-main {
    transform: scale(2);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-secondary);
}

.custom-cursor.cursor-hover .cursor-calculation {
    opacity: 0;
    animation: equationFloatShow 0.5s ease-out forwards;
}

/* FIXED: Clean floating equation animation */
@keyframes equationFloatShow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px) scale(0.9);
    }
}

.custom-cursor.cursor-click .cursor-main {
    transform: scale(0.8);
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-tertiary);
}

/* FIXED: Improved code trail with cleaner animations */
.cursor-code-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    color: var(--accent-secondary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    opacity: 0.7;
    animation: codeTrailFloat 1.2s ease-out forwards;
    text-shadow: 0 0 8px currentColor;
}

@keyframes codeTrailFloat {
    0% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-25px) scale(0.7) rotate(5deg);
    }
}

/* New Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s var(--te-ease), visibility 0.8s var(--te-ease);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#lorenz-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Places it behind all other content */
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.loading-bar-container {
    width: 300px;
    max-width: 80vw;
    height: 8px;
    background-color: var(--surface-bg);
    border: 1px solid var(--accent-quaternary);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

.loading-percentage {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--accent-secondary);
}


/* Mathematical Background */
.math-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    border: 2px solid var(--accent-cyan);
    opacity: var(--math-opacity);
    animation: geometricFloat 20s linear infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    border-color: var(--accent-primary);
    animation-duration: 25s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    border-color: var(--accent-pink);
    transform: rotate(45deg);
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    border-color: var(--accent-lime);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-duration: 35s;
}

.floating-equation {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: var(--text-secondary);
    opacity: var(--math-opacity);
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    animation: equationFloat 15s ease-in-out infinite;
    white-space: nowrap;
}

.eq-1 { top: 15%; left: 20%; animation-delay: 0s; }
.eq-2 { top: 40%; right: 10%; animation-delay: 3s; }
.eq-3 { bottom: 30%; left: 15%; animation-delay: 6s; }
.eq-4 { top: 70%; right: 25%; animation-delay: 9s; }

@keyframes geometricFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

@keyframes equationFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: var(--math-opacity); }
    25% { transform: translateY(-15px) translateX(10px); opacity: 0.15; }
    50% { transform: translateY(0) translateX(20px); opacity: var(--math-opacity); }
    75% { transform: translateY(15px) translateX(10px); opacity: 0.05; }
}

/* AI Particles */
.ai-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
    box-shadow: 0 0 10px var(--accent-orange);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; animation-duration: 10s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; animation-duration: 18s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; animation-duration: 14s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    /* Prevent any transforms or animations that could cause flickering */
    transform: none;
    will-change: auto;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    height: 70px; /* Fixed height to prevent layout shifts */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: var(--font-display);
}

.logo-ai-indicator {
    width: 8px;
    height: 8px;
    background: linear-gradient(to right, #00ff95, rgba(81, 255, 0, 0.911));
    border-radius: 50%;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* FIXED: Stable Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    /* Prevent any layout shifts */
    min-height: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
    /* Stable transitions */
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

/* FIXED: Stable Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 180px;
    list-style: none;
    /* Prevent flickering with stable positioning */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    /* Force hardware acceleration */
    will-change: transform, opacity;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .nav-link {
    padding: 0.75rem 1.25rem;
    margin: 0;
    display: block;
    color: var(--text-secondary);
    border-radius: 0;
}

.dropdown-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
}

/* FIXED: Mobile-Stable Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1002;
    /* Prevent any unwanted transforms */
    transform: none;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    /* Stable transitions only */
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* FIXED: Mobile Navigation - Prevent Flickering */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        /* Ensure stable height on mobile */
        height: 60px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        /* FIXED: Prevent flickering with stable transforms */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        /* Force hardware acceleration to prevent flickering */
        will-change: transform, opacity;
        /* Prevent layout shifts */
        min-height: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        border-radius: 0;
        /* Remove any problematic transitions on mobile */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* FIXED: Mobile Dropdown Behavior */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        background: rgba(26, 26, 26, 0.9);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        /* Stable mobile dropdown */
        transform: none;
        opacity: 1;
        visibility: visible;
        /* Hide by default, show when parent is active */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 400px; /* Adjust based on content */
    }

    .dropdown-menu .nav-link {
        padding: 0.75rem 3rem;
        background: rgba(255, 255, 255, 0.02);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu .nav-link:last-child {
        border-bottom: none;
    }
}

/* Additional Mobile Stability */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
        height: 55px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hamburger {
        width: 20px;
        height: 15px;
    }

    .nav-menu {
        top: 55px;
        padding: 0.75rem 0;
    }
}

/* FIXED: Prevent Any Unwanted Animations on Navbar */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-menu,
    .dropdown-menu,
    .hamburger .bar {
        transition: none;
        animation: none;
    }
}

/* Main Content Styles */
.main-content {
    padding-top: 80px;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Intro Section */
.intro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.terminal-intro {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.terminal-title {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-orange);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close { background: linear-gradient(to right, red, rgb(255, 38, 38)); }
.control-min { background: linear-gradient(to right, rgb(0, 255, 0), rgb(0, 212, 0)); }
.control-max { background: linear-gradient(to right, yellow, rgb(255, 238, 0)); }

.terminal-content {
    padding: 1rem;
}

.type-animation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
}

.prompt {
    color: var(--accent-primary);
    font-weight: bold;
}

.typed-text {
    color: var(--text-code);
}

.typing-cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

.intro-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hello-text {
    display: block;
    color: var(--text-secondary);
    font-size: 0.6em;
}

.name-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.status-grid {
    display: grid;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.status-dot.processing {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Neural Network Animation */
.neural-network-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--accent-primary);
}

.neural-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.neural-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.ai-logo {
    width: 80px;
    height: 80px;
}

.ai-brain-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.616));
}

.data-stream {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.stream-line {
    font-family: var(--font-code);
    color: var(--accent-lime);
    font-size: 0.8rem;
    opacity: 0;
    animation: streamFlow 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes streamFlow {
    0%, 100% { opacity: 0; transform: translateX(-20px); }
    50% { opacity: 1; transform: translateX(0); }
}

.floating-math {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.math-eq {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: var(--text-math);
    font-size: 0.9rem;
    opacity: 0;
    animation: mathFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 1ms);
}

.math-eq:nth-child(1) { top: 10%; left: 10%; }
.math-eq:nth-child(2) { top: 20%; right: 15%; }
.math-eq:nth-child(3) { bottom: 30%; left: 20%; }
.math-eq:nth-child(4) { bottom: 10%; right: 10%; }

@keyframes mathFloat {
    0%, 100% { opacity: 0; transform: translateY(0); }
    25%, 75% { opacity: 0.7; }
    50% { opacity: 1; transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.code-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
    color: var(--text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-profile {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 81, 255, 0.5);
    transition: all 0.4s ease-in-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.profile-image::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 38, 255, 0.4), transparent 70%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.profile-image:hover::before {
    opacity: 1;
    animation: pulse-glow 1.2s ease-in-out infinite;
}

.profile-image:hover {
    transform: rotateZ(2deg) scale(1.05);
    border-color: rgb(0, 81, 255);
    box-shadow: 0 0 25px rgba(0, 47, 255, 0.7), 0 0 50px rgba(0, 255, 255, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    z-index: 1;
    position: relative;
}

.profile-image:hover .profile-img {
    transform: scale(1.1) rotateZ(-2deg);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 0, 255, 0.452);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 0, 255, 0.6);
    }
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s var(--te-ease);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-primary);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.whatsapp-btn:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: var(--primary-bg);
}

.email-btn:hover {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--primary-bg);
}

/* Work Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 1rem;
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border: 4px solid var(--primary-bg);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-orange);
}

.work-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--te-ease);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

.work-header h3 {
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.work-title {
    display: flex;
    align-items: center;
  }
  
  .work-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
  }
  
.company {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.date {
    display: block;
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-family: var(--font-code);
}

.work-description p {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(53, 134, 255, 0.1);
    color: var(--accent-orange);
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: var(--font-code);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-code);
    transition: all 0.3s var(--te-ease);
}

.skill-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.skill-badge:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

/* Programming Languages */
.skill-badge.python:hover { color: #6CA0DC; border-color: #6CA0DC; }
.skill-badge.cpp:hover { color: #007ACC; border-color: #007ACC; }

/* AI/ML Concepts */
.skill-badge.ml:hover { color: #FFD60A; border-color: #FFD60A; }
.skill-badge.dl:hover { color: #ffd591; border-color: #ffce91; }
.skill-badge.genai:hover { color: #FF8D6A; border-color: #FF8D6A; }
.skill-badge.agents:hover { color: #E94D74; border-color: #E94D74; }
.skill-badge.rag:hover { color: #dc7998; border-color: rgb(175, 29, 75); }

/* Libraries & Technologies */
.skill-badge.pytorch:hover { color: #FF6B47; border-color: #FF6B47; }
.skill-badge.langchain:hover { color: #5DDDAF; border-color: #5DDDAF; }
.skill-badge.fastapi:hover { color: #26A69A; border-color: #26A69A; }
.skill-badge.sql:hover { color: #FFB347; border-color: #FFB347; }
.skill-badge.nosql:hover { color: #837ADD; border-color: #837ADD; }
.skill-badge.pytest:hover { color: #00AAAA; border-color: #00AAAA; }
.skill-badge.streamlit:hover { color: #FF7575; border-color: #FF7575; }
.skill-badge.git:hover { color: #FF6B47; border-color: #FF6B47; }

/* Education Section */
.education-timeline {
    max-width: 600px;
    margin: 0 auto;
}

.education-item {
    margin-bottom: 2rem;
}

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--te-ease);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

.education-header h3 {
    font-size: 1.3rem;
    color: var(--accent-lime);
    margin-bottom: 0.5rem;
}

.institution {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-description p {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.education-stats {
    margin-top: 1rem;
}

.proj_stat {
    padding: 0.5rem 1rem;
    background: rgba(53, 134, 255, 0.11);
    color: var(--accent-primary);
    border-radius: 15px;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.stat {
    padding: 0.5rem 1rem;
    background: rgba(53, 134, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

/* Projects Section */
.projects-section {
    background: rgba(255, 255, 255, 0.02);
}

.projects-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    padding-left: 5px;
}

.projects-grid::-webkit-scrollbar {
    height: 7px; /* horizontal scrollbar height */
}

.projects-grid::-webkit-scrollbar-track {
    background: transparent;
}

.projects-grid::-webkit-scrollbar-thumb {
    background-color: rgba(185, 185, 185, 0.8); /* dark thumb */
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgb(99, 159, 255); /* darker on hover */
}


.project-card {
    flex: 0 0 auto; /* Prevent stretching */
    width: 350px; /* Set fixed or max width */
    background: var(--card-bg, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 65, 0.1) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-display);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link svg {
    width: 22px;
    height: 22px;
}

.project-link:hover {
    background: red;
    color: var(--primary-bg);
    transform: translateY(-2px);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s var(--te-ease);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-card h3 {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Volunteer Section */
.volunteer-content {
    max-width: 600px;
    margin: 0 auto;
}

.volunteer-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--te-ease);
}

.volunteer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

.volunteer-card h3 {
    font-size: 1.3rem;
    color: var(--accent-pink);
    margin-bottom: 1rem;
}

.volunteer-card p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.volunteer-impact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.volunteer-impact span {
    padding: 0.5rem 1rem;
    background: rgba(53, 134, 255, 0.075);
    color: var(--accent-primary);
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.9rem;
}


/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certification-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-te);
    border-color: var(--accent-primary);
}

.cert-badge {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cert-badge svg {
    width: 30px;
    height: 30px;
    color: var(--primary-bg);
}

.cert-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.cert-year {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-family: var(--font-code);
}

/* Testimonials Section - FIXED CAROUSEL */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 250px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s var(--te-ease);
    width: 500%; /* 5 testimonials = 500% */
}

.testimonial-card {
    flex: 0 0 20%; /* Each card takes 20% of track width (100% / 5) */
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s var(--te-ease);
}

.testimonial-card.active {
    opacity: 1;
}

.testimonial-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent-primary);
    line-height: 1;
}

.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-primary);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-info {
    text-align: center;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-family: var(--font-code);
}

.testimonial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.nav-dots {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--te-ease);
}

.nav-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s var(--te-ease);
}

.carousel-btn:hover {
    background: var(--accent-primary);
    color: var(--primary-bg);
    border-color: var(--accent-primary);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Social Section */
.social-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    background: #0077b5;
    color: var(--text-primary);
}

.social-link.github:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--primary-bg);
}

.social-link.email:hover {
    border-color: rgb(204, 0, 0);
    background: rgb(212, 0, 0);
    color: var(--text-primary);
}

.social-link.youtube:hover {
    border-color: red;
    background: red;
    color: var(--primary-bg);
}

.social-link.leetcode:hover {
    border-color: rgb(255, 119, 0);
    background: rgb(255, 119, 0);
    color: var(--text-primary);
}

.social-link.devpost:hover {
    border-color: rgb(0, 127, 97);
    background: rgb(0, 127, 97);
    color: var(--text-primary);
}

.social-link.gfg:hover {
    border-color: rgb(0, 188, 57);
    background: rgb(0, 188, 57);
    color: var(--text-primary);
}

.social-link.codechef:hover {
    border-color: rgb(162, 70, 0);
    background: rgb(162, 70, 0);
    color: var(--text-primary);
}

.social-link.linktree:hover {
    border-color: green;
    background: green;
    color: var(--text-primary);
}

.social-link.whatsapp:hover {
    border-color: #25d366;
    background: #25d366;
    color: var(--primary-bg);
}

.social-link.twitter:hover {
    border-color: #919191;
    background: #919191;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-right {
    text-align: right;
}

.footer-tech {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-tech span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tech-badges {
    display: flex;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(53, 134, 255, 0.199);
    color: var(--accent-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: var(--font-code);
}

/* FIXED: Responsive Design - Mobile Navigation */
@media (max-width: 768px) {
    /* FIXED: Stable navbar height and positioning */
    .navbar {
        height: 60px;
        padding: 0;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    /* FIXED: Mobile menu without pulsing animations */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--primary-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        transition: left 0.3s ease;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    /* Mobile section adjustments */
    .intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-image {
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .volunteer-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-link {
        justify-content: center;
    }

    .timeline::before {
        left: 15px; /* Move the timeline line to the left */
        transform: translateX(0);
    }

    .timeline-item {
        padding-left: 45px; /* Add space for the marker and line */
        padding-right: 0;   /* Reset right-side padding */
    }

    /* Override the desktop-specific padding for all items on mobile */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 45px; /* Ensure consistent padding for all cards */
        padding-right: 0;
    }

    .timeline-marker {
        left: 15px; /* Move the marker to align with the new line position */
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .terminal-intro {
        font-size: 0.8rem;
    }
    
    .work-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-stats {
        gap: 1rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* Utility animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}
