:root {
    /* Colors - Dark Theme (Default) */
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #988e9f;
    --accent: #00ffff; /* Cyan */
    --accent-glow: rgba(0, 255, 255, 0.4);
    --nav-bg: rgba(11, 15, 25, 0.9);
    --card-bg: #131a28;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Metrics */
    --nav-height: 80px;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --accent: #00b3b3; /* Darker cyan for light mode readability */
    --accent-glow: rgba(0, 179, 179, 0.4);
    --nav-bg: rgba(248, 249, 250, 0.9);
    --card-bg: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default block cursor for custom one */
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor-outline.hovering {
    width: 50px;
    height: 50px;
    background-color: var(--accent-glow);
    border-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

.cyan {
    color: var(--accent);
}
.cyan-bg {
    background-color: var(--accent) !important;
}
.white-bg {
    background-color: var(--text-primary) !important;
}

.color-gray {
    color: var(--text-secondary);
}

.mono {
    font-family: var(--font-mono);
}
.serif {
    font-family: Georgia, serif;
    font-style: italic;
}
.normal {
    font-weight: normal;
}
.fat {
    font-weight: 700;
}

.section {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.min100vh {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.nav-list ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar.scrolled {
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    outline: none;
}
.control-btn:hover, .control-btn:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-dropdown {
    appearance: none;
    background-color: var(--bg-color);
    padding-right: 25px;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M0 0l5 6 5-6z" fill="%2300ffff"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.lang-dropdown option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link span {
    color: var(--accent);
    opacity: 0;
    transition: 0.3s;
}

.nav-link:hover span, .nav-link.active span {
    opacity: 1;
}

/* Responsiveness adjustments for no-burger */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    .nav-right {
        flex-direction: column;
        gap: 15px;
    }
    .nav-list ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .nav-controls {
        order: -1; /* Controls above links on mobile */
    }
}

/* Typography & Titles */
.section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.subtitle {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Word Slider Animation */
.anim-words {
    display: flex;
    flex-direction: column; /* Force words to new line */
    align-items: flex-start;
    gap: 10px;
    line-height: 1.2;
}

.word-slider {
    position: relative;
    display: block;
    height: 1.2em;
    overflow: hidden;
    width: 100%;
    min-width: 300px;
    background: transparent;
}

.word-slider .word {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    white-space: nowrap; /* Force one line */
    opacity: 0;
    font-weight: 700;
    animation: slideWords 9s infinite;
}

.word-slider .word:nth-child(1) { animation-delay: 0s; }
.word-slider .word:nth-child(2) { animation-delay: 3s; }
.word-slider .word:nth-child(3) { animation-delay: 6s; }

@keyframes slideWords {
    0% { top: 100%; opacity: 0; }
    5% { top: 0; opacity: 1; }
    30% { top: 0; opacity: 1; }
    35% { top: -100%; opacity: 0; }
    100% { top: -100%; opacity: 0; }
}


/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    font-family: var(--font-mono);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(0, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* --- Unique Section Animations --- */

/* Hero: Staggered Fade Up */
.reveal-hero {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-hero.active {
    opacity: 1;
    transform: translateY(0);
}

/* Work: 3D Tilt Reveal */
.reveal-work {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(50px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-work.active {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

/* Skills: Scale Pop */
.reveal-skill {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-skill.active {
    opacity: 1;
    transform: scale(1);
}

/* About: Geometric Clip Reveal - Fixed */
.reveal-about {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: opacity, clip-path;
}
.reveal-about.active {
    opacity: 1;
}

/* Contact: Elastic Slide */
.reveal-contact {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal-contact.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Existing Block Reveal override (optional - keeping for backward compatibility but moving to new classes) */
.block-reveal {
    overflow: visible; /* Changed to allow floating elements if needed */
}


/* Hero Section */
.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    width: 350px;
    height: 350px;
    position: relative;
    z-index: 1;
    margin-left: 80px;
    flex-shrink: 0;
    /* 3D Transform setup */
    transform-style: preserve-3d;
    perspective: 800px;
}

/* 3D Circle Sphere Container */
.diamond-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transform: rotateX(20deg) rotateY(-20deg);
    transition: transform 0.5s ease;
    border: 2px solid var(--accent);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image:hover .diamond-container {
    transform: rotateX(0deg) rotateY(0deg) scale(1.05);
}

/* Growing Neon Light Effect (Circular) */
.diamond-container::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    animation: neonGlow 2s infinite alternate;
}

.me {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image:hover .me {
    transform: translateY(-10px) scale(1.1); /* Floating effect */
}

@keyframes neonGlow {
    from { opacity: 0.3; filter: blur(20px); }
    to { opacity: 0.7; filter: blur(35px); }
}

.scroll-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}


/* High-Impact Project Cards */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card-inner {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    min-height: 350px;
}

.project-card-inner.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-visual {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.05);
    position: relative;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-inner.reverse .project-visual {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.project-nav {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(0, 255, 255, 0.05);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
}

.project-metrics {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Mockups */
.terminal-mockup {
    background: #000;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}
.terminal-header {
    background: #1a1b26;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}
.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-body {
    padding: 20px;
    color: #a9b1d6;
    font-size: 0.9rem;
    line-height: 1.5;
}
.red { color: #f7768e; }
.green { color: #73daca; }

.code-mockup {
    background: #0d1117;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* GitHub Section */
.github-container {
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.github-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 250px;
}

.github-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.github-info h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.github-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.github-graph-wrapper {
    flex: 2;
    min-width: 300px;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.github-chart {
    min-width: 600px;
    width: 100%;
}

/* Proof Block & Expertise */
.proof-inner {
    display: flex;
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.proof-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.proof-left { flex: 2; z-index: 1; }
.proof-right { flex: 1; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,0.05); padding-left: 40px; z-index: 1; }

.ats-checklist { list-style: none; }
.ats-checklist li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
}
.ats-checklist li strong { color: var(--text-primary); }
.ats-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    font-family: var(--font-mono);
}

.metric-box h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.text-sm {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.skill-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.2);
}
.skill-inner { padding: 30px; }
.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}
.skill-list { list-style: none; }
.skill-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

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

.about-img {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.code-wrp {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.code-l { margin-bottom: 5px; color: var(--text-primary); }
.code-l .methods { color: #ff7b72; }
.code-l .propname { color: #d2a8ff; }
.code-l .string { color: #a5d6ff; }
.code-l .comment { color: #8b949e; font-style: italic; }
.code-l .scope { color: #ff7b72; }
.code-l .prop2 { color: #79c0ff; }
.code-l .dot { color: transparent; padding: 0 4px; } /* indentation */

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: left 0.3s ease;
}

.btn:hover {
    color: var(--bg-color);
}
.btn:hover::before {
    left: 0;
}

/* Contact/Footer */
.footer-section {
    min-height: auto;
    padding-bottom: 20px;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-mono);
    border-radius: 4px;
    transition: transform 0.3s, border-color 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.content-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.visitors-badge {
    background: rgba(0,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--accent);
    font-family: var(--font-mono);
}

.copyright {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    width: 100%;
}

.form-input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

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

.form-input::placeholder {
    color: var(--text-secondary);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.visitor-img {
    height: 20px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* --- Life Line --- */
.life-line {
    position: fixed;
    top: 0;
    left: 80px; /* Positioned just outside the container margin */
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    z-index: 5;
    opacity: 0.3;
}

.life-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 100%;
    background: var(--accent);
    filter: blur(4px);
}

/* --- Fixed Honors Side-Tab --- */
.honors-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--bg-color);
    padding: 30px 10px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 10px 0 30px var(--accent-glow);
    transition: all 0.3s ease;
}

.honors-tab:hover {
    padding-left: 20px;
}

.honors-tab span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.honors-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Honors Overlay (Modal) --- */
.awards-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none; /* Controlled by JS */
    padding: 100px 40px;
    overflow-y: auto;
}

.awards-overlay.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.close-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.award-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.award-card:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-10px);
}

/* --- Photo Gallery Carousel --- */
.gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-grid {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    gap: 30px;
    align-items: center;
}

.gallery-item {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(0.5) blur(2px);
    opacity: 0.6;
    transform: scale(0.9);
}

.gallery-item.active {
    flex: 0 0 400px;
    height: 400px;
    filter: grayscale(0) blur(0);
    opacity: 1;
    transform: scale(1);
    border: 3px solid var(--accent);
    z-index: 10;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--bg-color);
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.nav-next { right: 10px; }
.nav-prev { left: 10px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .life-line { left: 20px; }
    .subtitle { font-size: 2.5rem; }
    .about-flex { flex-direction: column; }

    .project-card-inner, .project-card-inner.reverse { flex-direction: column; }
    .project-visual { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.05); min-height: 250px; }
    .proof-inner { flex-direction: column; }
    .proof-right { border-left: none; border-top: 1px solid rgba(255,255,255,0.05); padding-left: 0; padding-top: 30px; margin-top: 10px; }
}

}