/* ==================== RESET AND BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  /* Core Surfaces - Quantum Capital Theme */
  --bg-main: #0C1117;
  --bg-surface: #121923;
  --bg-elevated: #161F2B;
  --card-bg: #161F2B;

  /* Accents */
  --accent-primary: #B8B2A7;
  --accent-energy: #7CFFB2;
  --accent-depth: #3A1F2D;

  /* Text */
  --text-primary: #E6E9EF;
  --text-secondary: #A1A8B3;
  --text-muted: #6F7682;

  /* Lines & Dividers */
  --line-subtle: #1E2633;
  --glass-border: rgba(184, 178, 167, 0.15);

  /* Motion */
  --ease-slow: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Gradients */
  --accent-gradient: linear-gradient(90deg, var(--accent-primary), var(--accent-energy));
  
  /* Keep font */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}
/* ==================== QUANTUM BACKGROUND ANIMATIONS ==================== */
@keyframes quantumField {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 100px 100px, 200px 200px;
    }
}

@keyframes dataStream {
    0%, 100% {
        opacity: 0.03;
        transform: translateX(-100%) translateY(0);
    }
    50% {
        opacity: 0.06;
        transform: translateX(100%) translateY(20px);
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.02;
    }
    50% {
        opacity: 0.05;
    }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw; /* Prevent overflow */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Add subtle intelligence texture */
/* Enhanced animated intelligence texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        /* Moving computational grid */
        linear-gradient(90deg, 
            transparent 95%, 
            rgba(184, 178, 167, 0.05) 96%,
            transparent 97%),
        linear-gradient(0deg, 
            transparent 95%, 
            rgba(124, 255, 178, 0.03) 96%,
            transparent 97%),
        
        /* Data stream lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(124, 255, 178, 0.02) 2px,
            rgba(124, 255, 178, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(184, 178, 167, 0.02) 3px,
            rgba(184, 178, 167, 0.02) 6px
        ),
        
        /* Subtle gradient fields */
        radial-gradient(
            circle at 20% 30%,
            rgba(124, 255, 178, 0.03) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(184, 178, 167, 0.02) 0%,
            transparent 40%
        );
    
    background-size: 
        100px 100px, /* Grid size */
        100px 100px, /* Grid size */
        200px 200px, /* Diagonal lines */
        200px 200px, /* Diagonal lines */
        600px 600px, /* Radial gradients */
        600px 600px; /* Radial gradients */
    
    animation: 
        quantumField 40s linear infinite,
        gridPulse 8s ease-in-out infinite;
    
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* Animated computational nodes overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        /* Computational nodes */
        radial-gradient(
            2px circle at 10% 20%,
            var(--accent-energy) 50%,
            transparent 100%
        ),
        radial-gradient(
            2px circle at 30% 60%,
            var(--accent-primary) 50%,
            transparent 100%
        ),
        radial-gradient(
            2px circle at 50% 40%,
            var(--accent-energy) 50%,
            transparent 100%
        ),
        radial-gradient(
            2px circle at 70% 80%,
            var(--accent-primary) 50%,
            transparent 100%
        ),
        radial-gradient(
            2px circle at 90% 30%,
            var(--accent-energy) 50%,
            transparent 100%
        ),
        
        /* Connecting lines */
        linear-gradient(
            30deg,
            transparent 49%,
            rgba(124, 255, 178, 0.1) 50%,
            transparent 51%
        ),
        linear-gradient(
            120deg,
            transparent 49%,
            rgba(184, 178, 167, 0.1) 50%,
            transparent 51%
        ),
        linear-gradient(
            60deg,
            transparent 49%,
            rgba(124, 255, 178, 0.08) 50%,
            transparent 51%
        );
    
    background-repeat: no-repeat;
    background-size: 
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%;
    
    animation: 
        nodePulse 15s ease-in-out infinite,
        quantumField 60s linear infinite reverse;
    
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    mix-blend-mode: screen;
}

#center{
    display: flex;
    justify-content: center;
}

/* ==================== PARTICLE CANVAS ==================== */
/* ==================== ANIMATED QUANTUM CANVAS ==================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== SECTION STYLES ==================== */
.section {
    padding: 0 0 70px;
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent, 
        var(--accent-primary), 
        var(--accent-energy), 
        transparent
    );
    opacity: 0.3;
    animation: gridPulse 4s ease-in-out infinite;
}
.section:last-child::after {
  display: none;
}

/* Update these specific blocks in styles.css */

#center {
    display: block; /* Change from flex to block for standard heading behavior */
    text-align: center;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    display: block;      /* Changed from inline-block to block */
    margin: 0 auto 2rem; /* Centers the block itself */
    padding-bottom: 1rem;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;           /* Move to the exact horizontal center */
    transform: translateX(-50%); /* Offset by half its own width to center perfectly */
    width: 60px;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.6s var(--ease-slow);
}

.section-title:hover::after {
    width: 100px;
}

#about > .container > .section-header > .section-title,
#skills > .container > .section-title,
#experience > .container > .section-title,
#projects > .container > .section-title,
#contact > .container > .section-title {
    padding-top: 40px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.gradient-text {
    background: none;
    -webkit-text-fill-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ==================== QUANTUM CAPITAL TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

p, li {
  color: var(--text-secondary);
}

/* Tech/Metrics text */
.metric,
.code,
.system-label,
.data-value,
.stat-value,
.skill-percentage-circle .percentage-text,
.level-text,
.timeline-date,
.kpi-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== HEADER & NAVIGATION ==================== */
/* ==================== HEADER & NAVIGATION - COMPLETE ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 17, 23, 0.72);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    border-bottom: 1px solid rgba(230, 233, 239, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header .container {
    width: min(1500px, calc(100% - clamp(1rem, 4vw, 4rem)));
    max-width: 1500px;
    padding-left: 0;
    padding-right: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 82px;
    padding: 0.55rem 0 0.8rem;
    position: relative;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.46rem;
    margin-left: 0;
    padding-bottom: 0.18rem;
    width: min(100%, 44rem);
    min-width: 0;
    flex: 1 1 auto;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    z-index: 1001;
}

.nav-brand-topline {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    white-space: nowrap;
}

.nav-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.05;
    display: inline-block;
    color: var(--accent-energy);
    letter-spacing: -0.04em;
    text-shadow: 0 0 20px rgba(124, 255, 178, 0.16);
}

.nav-brand-sep {
    font-size: 1.64rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(124, 255, 178, 0.9);
    opacity: 0.95;
    transform: translateY(1px);
}

.nav-brand-role {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.nav-brand-dot {
    color: var(--accent-energy);
    text-shadow: 0 0 12px rgba(124, 255, 178, 0.18);
}

.nav-brand-accent {
    color: var(--accent-energy);
    text-shadow: 0 0 14px rgba(124, 255, 178, 0.2);
    display: inline;
    font-size: 1.18em;
    line-height: 1;
    vertical-align: baseline;
}

.nav-brand-education {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.22rem 0.75rem;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
    color: rgba(198, 205, 214, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(230, 233, 239, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.nav-brand-mobile-role,
.nav-brand-mobile-education {
    display: none;
}

.nav-brand-mobile-sep {
    color: rgba(124, 255, 178, 0.9);
    margin: 0 0.22rem;
}

.nav-logo:hover {
    color: var(--text-primary);
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-energy);
}

.nav-link.active {
    color: var(--accent-energy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-energy));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left;
}

/* Hamburger Animation */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    background-color: var(--accent-energy);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    background-color: var(--accent-energy);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(100%, 300px);
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--line-subtle);
    z-index: 1003;
    padding: 100px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-list li {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
    transition-delay: calc(0.1s * var(--item-index));
}

.mobile-nav.active .mobile-nav-list li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-list li:nth-child(1) { --item-index: 1; }
.mobile-nav-list li:nth-child(2) { --item-index: 2; }
.mobile-nav-list li:nth-child(3) { --item-index: 3; }
.mobile-nav-list li:nth-child(4) { --item-index: 4; }
.mobile-nav-list li:nth-child(5) { --item-index: 5; }
.mobile-nav-list li:nth-child(6) { --item-index: 6; }

.mobile-nav-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-subtle);
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(124, 255, 178, 0.1);
    border-color: var(--accent-energy);
    color: var(--accent-energy);
    transform: translateX(5px);
}

.mobile-nav-link.active {
    background: rgba(124, 255, 178, 0.1);
    border-color: var(--accent-energy);
    color: var(--accent-energy);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 768px) {
    /* Hide desktop navigation */
    .desktop-nav {
        display: none;
    }
    
    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
    }
    
    /* Adjust header height for mobile */
    .nav {
        min-height: 78px;
        padding: 0.5rem 0 0.42rem;
        justify-content: center;
        align-items: center;
        gap: 0.7rem;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Adjust logo size for mobile */
    .nav-logo {
        gap: 0.22rem;
        margin-left: 0;
        margin-right: auto;
        max-width: calc(100% - 4.4rem);
        padding-bottom: 0;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }

    .nav-brand-topline {
        display: none;
    }

    .nav-brand-education {
        display: none;
    }

    .nav-brand-mobile-role {
        display: block;
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: normal;
        font-size: 0.96rem;
        font-weight: 700;
        line-height: 1.18;
        color: var(--text-primary);
        letter-spacing: -0.02em;
        text-align: left;
    }

    .nav-brand-mobile-education {
        display: block;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-wrap: unset;
        overflow-wrap: normal;
        font-size: 0.66rem;
        font-weight: 600;
        line-height: 1.16;
        letter-spacing: -0.01em;
        color: rgba(198, 205, 214, 0.86);
        margin: 0;
        text-align: left;
    }

    .hamburger-btn {
        position: absolute;
        top: 0.55rem;
        right: 0;
        margin-top: 0.2rem;
        justify-content: center;
        align-items: center;
        gap: 0.32rem;
        flex-shrink: 0;
        align-self: center;
    }
}

@media (min-width: 769px) {
    /* Hide mobile elements on desktop */
    .hamburger-btn,
    .mobile-overlay,
    .mobile-nav {
        display: none;
    }
    
    /* Show desktop navigation */
    .desktop-nav {
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .nav {
        gap: 1.5rem;
        align-items: center;
    }

    .nav-logo {
        width: min(100%, 52vw);
        min-width: 0;
    }

    .nav-brand-topline,
    .nav-brand-education {
        max-width: 100%;
        overflow: hidden;
    }

    .nav-brand-topline {
        flex-wrap: wrap;
        row-gap: 0.2rem;
        white-space: normal;
    }

    .nav-brand-name {
        font-size: 1.32rem;
    }

    .nav-brand-sep {
        font-size: 1.4rem;
    }

    .nav-brand-role {
        font-size: 1.08rem;
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    .nav-brand-education {
        font-size: 0.7rem;
        display: inline-flex;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .nav-list {
        gap: 1.05rem;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }

    .desktop-nav {
        align-self: center;
    }

    .nav-link {
        font-size: 0.92rem;
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .nav {
        align-items: flex-start;
        padding-top: 0.75rem;
    }

    .nav-logo {
        width: min(100%, 50vw);
    }

    .nav-brand-name {
        font-size: 1.18rem;
    }

    .nav-brand-sep {
        font-size: 1.24rem;
    }

    .nav-brand-role {
        font-size: 0.96rem;
    }

    .nav-brand-education {
        font-size: 0.64rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.88rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
        right: -100%;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
    }
    
    .nav-logo {
        gap: 0;
        max-width: calc(100% - 3.1rem);
    }

    .nav-brand-name {
        font-size: 1.08rem;
    }

    .nav-brand-mobile-role {
        font-size: 1.04rem;
    }

    .nav-brand-mobile-education {
        font-size: 0.64rem;
        line-height: 1.08;
        width: 86%;
        max-width: 86%;
    }
}

/* ==================== QUANTUM HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}

/* Hero section with subtle pulse */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at 50% 50%,
            rgba(124, 255, 178, 0.02) 0%,
            transparent 50%
        );
    animation: gridPulse 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

/* Ensure hero content stays above */
.hero-container {
    z-index: 2;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30 rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content Styles */
.hero-badge {
    background: rgba(184, 178, 167, 0.1);
    color: var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid var(--accent-primary);
    animation: fadeInUp 1s var(--ease-slow);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    /* display: block; */
    animation: fadeInUp 1s var(--ease-slow) forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(6px);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    /* margin-bottom: 2.5rem; */
    line-height: 1.6;
    animation: fadeInUp 1s var(--ease-slow) 0.6s forwards;
    opacity: 0;
    transform: translateY(6px);
}

.hero-highlights {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s var(--ease-slow) 0.9s forwards;
    opacity: 0;
    transform: translateY(6px);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--line-subtle);
    transition: all 0.6s var(--ease-slow);
}

.highlight-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s var(--ease-slow) 1.2s forwards;
    opacity: 0;
    transform: translateY(6px);
    display: flex;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s var(--ease-slow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    display: none;
}

.btn-primary {
    background: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-primary:hover {
    background: rgba(184, 178, 167, 0.08);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent-energy);
    color: var(--accent-energy);
}

.btn-secondary:hover {
    background: rgba(124, 255, 178, 0.08);
    transform: translateY(-1px);
}

.trusted-by {
    animation: fadeInUp 1s var(--ease-slow) 1.5s forwards;
    opacity: 0;
    transform: translateY(6px);
}

.trusted-by span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.company-logos {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.company-logo {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.6s var(--ease-slow);
}

.company-logo:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Right Visual Styles */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin-bottom: 2rem;
}

.profile-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s var(--ease-slow);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(184, 178, 167, 0.1) 0%, 
        rgba(124, 255, 178, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s var(--ease-slow);
}

.profile-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.profile-image-wrapper:hover .profile-image {
    transform: scale(1.05);
}

/* Remove glow rings */
.profile-glows {
    display: none;
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--line-subtle);
    backdrop-filter: blur(10px);
    z-index: 4;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-energy);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(124, 255, 178, 0);
    }
}

.status-indicator span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Expertise Badges */
.expertise-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s var(--ease-slow) 1s forwards;
    opacity: 0;
}

.expertise-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    border: 1px solid var(--line-subtle);
    transition: all 0.6s var(--ease-slow);
}

.expertise-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.badge-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(184, 178, 167, 0.1), 
        rgba(124, 255, 178, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.badge-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Data Visualization */
.data-visualization {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s var(--ease-slow) 1.5s forwards;
    opacity: 0;
}

.data-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.data-value {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-energy);
    margin-bottom: 0.5rem;
    position: relative;
    font-family: 'IBM Plex Mono', monospace;
}

.data-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 80px;
    line-height: 1.3;
}

.data-line {
    width: 2px;
    height: 30px;
    background: var(--accent-gradient);
    margin-top: 0.8rem;
    opacity: 0.7;
    animation: pulseLine 2s infinite;
}

@keyframes pulseLine {
    0%, 100% {
        opacity: 0.5;
        height: 20px;
    }
    50% {
        opacity: 1;
        height: 30px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 2s var(--ease-slow) 2s forwards;
    opacity: 0;
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 1px;
    animation: scrollLine 2s infinite;
}

.scroll-indicator span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 50px;
        opacity: 1;
    }
    100% {
        height: 0;
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ==================== GLOBAL ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-highlights {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-container {
        width: 320px;
        height: 320px;
    }
    
    .profile-image-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .expertise-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .data-visualization {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .profile-container {
        width: 280px;
        height: 280px;
    }
    
    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .expertise-badge {
        padding: 0.6rem 1rem;
    }
    
    .badge-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .badge-title {
        font-size: 0.8rem;
    }
    
    .badge-subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-highlights {
        flex-direction: column;
        align-items: center;
    }
    
    .company-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .status-indicator {
        padding: 0.5rem 0.8rem;
    }
    
    .status-indicator span {
        font-size: 0.7rem;
    }
    
    .expertise-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .data-visualization {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .data-point {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .data-line {
        width: 30px;
        height: 2px;
        margin-top: 0;
    }
}

/* ==================== QUANTUM ABOUT SECTION ==================== */
.about {
    background: var(--bg-surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.25rem;
    align-items: start;
}

.about-text {
    padding-right: 2rem;
}

.journey-visual {
    display: flex;
    align-items: stretch;
    min-height: 860px;
}

.journey-carousel-container {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 100%;
    min-height: 860px;
    padding-right: 84px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.28) 8%,
        rgba(0, 0, 0, 0.92) 18%,
        rgba(0, 0, 0, 1) 82%,
        rgba(0, 0, 0, 0.28) 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.28) 8%,
        rgba(0, 0, 0, 0.92) 18%,
        rgba(0, 0, 0, 1) 82%,
        rgba(0, 0, 0, 0.28) 92%,
        transparent 100%
    );
}

.journey-carousel-container .carousel-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.journey-carousel-container .journey-card {
    width: min(100%, 560px);
    min-height: 320px;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    border-radius: 22px;
    overflow: hidden;
    flex-shrink: 0;
    transform: none !important;
    opacity: 0.26;
    filter: saturate(0.55) brightness(0.55);
    transition:
        opacity 320ms ease,
        filter 320ms ease,
        box-shadow 320ms ease,
        border-color 320ms ease;
    background: var(--card-bg);
    border: 1px solid rgba(124, 255, 178, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.journey-carousel-container .journey-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 16, 24, 0.38) 0%,
        rgba(10, 16, 24, 0.2) 28%,
        rgba(10, 16, 24, 0.18) 68%,
        rgba(10, 16, 24, 0.46) 100%
    );
    pointer-events: none;
    transition: opacity 320ms ease;
}

.journey-carousel-container .journey-card.active {
    opacity: 1;
    filter: none;
    transform: none !important;
    border-color: var(--accent-energy);
    background: var(--card-bg);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.journey-carousel-container .journey-card.active::after {
    opacity: 0.08;
}

.journey-carousel-container .blog-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.journey-carousel-container .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.journey-carousel-container .carousel-controls {
    position: absolute;
    top: 59%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
    z-index: 3;
    pointer-events: none;
}

.journey-carousel-container .carousel-controls .nav-arrow {
    pointer-events: auto;
}

.narrative {
    margin-bottom: 2.5rem;
}

.narrative p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.narrative strong {
    color: var(--accent-energy);
    font-weight: 500;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(26, 35, 49, 0.9), rgba(16, 23, 34, 0.82));
    border: 1px solid rgba(230, 233, 239, 0.08);
    border-radius: 24px;
    transition: all 0.6s var(--ease-slow);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 255, 178, 0.34);
    background: linear-gradient(180deg, rgba(29, 40, 56, 0.94), rgba(16, 24, 36, 0.88));
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(124, 255, 178, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--accent-energy);
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hybrid Model Visual */
.hybrid-model {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.6s var(--ease-slow);
}

.hybrid-model:hover {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.model-business,
.model-tech {
    text-align: center;
    flex: 1;
}

.model-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(184, 178, 167, 0.1), 
        rgba(124, 255, 178, 0.1));
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.6s var(--ease-slow);
}

.model-tech .model-icon {
    border-color: var(--accent-energy);
}

.model-icon:hover {
    transform: scale(1.1);
}

.hybrid-model h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.hybrid-model ul {
    list-style: none;
    text-align: left;
}

.hybrid-model li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.hybrid-model li::before {
    content: '•';
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.model-tech li::before {
    color: var(--accent-energy);
}

.model-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 120px;
    background: var(--accent-gradient);
    margin: 1rem 0;
}

.connector-symbol {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent-energy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 255, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 255, 178, 0);
    }
}

/* Optimized Principles Grid & Card Styles */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

.principle-item,
.principle-card {
    background:
        linear-gradient(180deg, rgba(24, 33, 46, 0.92), rgba(15, 22, 33, 0.86)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.07), transparent 28%);
    border: 1px solid rgba(230, 233, 239, 0.08);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-slow);
    height: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow:
        0 30px 64px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.principle-item::before,
.principle-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 85% 0%, rgba(184, 178, 167, 0.08), transparent 24%);
    pointer-events: none;
    z-index: 1;
}

.principle-item:hover,
.principle-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 255, 178, 0.35);
    box-shadow:
        0 36px 76px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(124, 255, 178, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.principle-visual {
    width: 100%;
    height: 220px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    position: relative;
}

.principle-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    display: block;
}

.principle-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.principle-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.principle-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
/* ==================== PRINCIPLE TAGS HIGHLIGHT EFFECT ==================== */
.principle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.principle-tags .tag {
    background: rgba(184, 178, 167, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.4s var(--ease-slow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Hover effect for individual tags */
.principle-tags .tag:hover {
    background: rgba(124, 255, 178, 0.15);
    color: var(--accent-energy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 255, 178, 0.2);
}

/* Pulse animation for tags */
.principle-tags .tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s var(--ease-slow);
}

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

/* Specific tag colors based on content */
.principle-tags .tag:nth-child(1) { /* ROI-driven development */
    border-left:  3px solid var(--accent-primary);
}

.principle-tags .tag:nth-child(2) { /* Performance metrics alignment */
    border-left: 3px solid var(--accent-primary);
}

.principle-tags .tag:nth-child(3) { /* Business impact measurement */
    border-left:  3px solid var(--accent-primary);
} /* Purple accent */


/* Active state for tags (when clicked/tapped) */
.principle-tags .tag:active {
    transform: translateY(0) scale(0.98);
}

/* Tooltip effect on hover */
.principle-tags .tag {
    position: relative;
}

.principle-tags .tag::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--line-subtle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.principle-tags .tag:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .principle-tags {
        gap: 0.4rem;
    }
    
    .principle-tags .tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .principle-tags .tag::after {
        display: none; /* Hide tooltips on mobile */
    }
}

/* Ensure consistent spacing on small screens */
@media (max-width: 768px) {
    .principles-grid { padding: 0 0.75rem; gap: 1.25rem; margin-top: 2.5rem; margin-bottom: 2.5rem; }
    .principle-visual { height: 180px; }
    .principle-info { padding: 1.25rem; }
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    background: var(--bg-surface);
}

/* Add this to your CSS - replace existing .skills-container styles if they exist */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.skills-column {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* Add responsive behavior */
@media (max-width: 1200px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-column {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .skills-column {
        min-width: 100%;
    }
}

.skills-column {
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.6s var(--ease-slow);
}

.skills-column:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.skills-column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-subtle);
}

.skills-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(184, 178, 167, 0.1), 
        rgba(124, 255, 178, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-column-title {
    flex: 1;
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--accent-energy);
    font-weight: 500;
}

.skills-count {
    background: rgba(184, 178, 167, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-item {
    background: var(--bg-elevated);
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.6s var(--ease-slow);
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    background: var(--card-bg);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.6s var(--ease-slow);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.skill-name-level {
    flex: 1;
}

.skill-name-level h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-level-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.level-dots {
    display: flex;
    gap: 0.3rem;
}

.level-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-subtle);
    transition: background 0.6s var(--ease-slow);
}

.level-dots .dot.active {
    background: var(--accent-energy);
}

.level-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'IBM Plex Mono', monospace;
}

.skill-visual {
    flex-shrink: 0;
}

.skill-percentage-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.skill-percentage-circle svg {
    width: 100%;
    height: 100%;
}

.skill-percentage-circle .circle-bg {
    fill: none;
    stroke: var(--line-subtle);
    stroke-width: 3.8;
}

.skill-percentage-circle .circle-progress {
    fill: none;
    stroke: var(--accent-energy);
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke-dasharray: 0 100; /* Start with 0% progress */
    transition: stroke-dasharray 1.5s var(--ease-slow);
}


.skill-percentage-circle .percentage-text {
    fill: var(--text-primary);
    font-size: 10px;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: central;
    font-family: 'IBM Plex Mono', monospace;
}

.skill-description {
    margin-bottom: 1.5rem;
}

.skill-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.skill-projects {
    background: var(--bg-elevated);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line-subtle);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(184, 178, 167, 0.05);
    cursor: pointer;
    transition: background 0.6s var(--ease-slow);
}

.projects-header:hover {
    background: rgba(184, 178, 167, 0.1);
}

.projects-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-count::before {
    content: '📁';
    font-size: 0.9rem;
}

.projects-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.6s var(--ease-slow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.projects-toggle.active {
    transform: rotate(180deg);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.projects-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.projects-list.active {
    max-height: 680px;
}

.project-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line-subtle);
    transition: background 0.6s var(--ease-slow);
}

.project-link-item:last-child {
    border-bottom: none;
}

.project-link-item:hover {
    background: rgba(184, 178, 167, 0.05);
}

.project-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background: rgba(124, 255, 178, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    flex: 1;
}

.project-info h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.project-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.project-visit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(184, 178, 167, 0.1);
    border: 1px solid var(--line-subtle);
    border-radius: 6px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.6s var(--ease-slow);
    flex-shrink: 0;
    white-space: nowrap;
}

.project-visit-btn:hover {
    background: rgba(184, 178, 167, 0.2);
    border-color: var(--accent-primary);
    transform: translateX(3px);
}

.project-visit-btn svg {
    transition: transform 0.6s var(--ease-slow);
}

.project-visit-btn:hover svg {
    transform: translateX(3px);
}

.skills-footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--line-subtle);
}

.skills-note {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.skills-note strong {
    color: var(--accent-energy);
}

/* Remove SVG glow effects */
.skill-percentage-circle svg {
    filter: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skill-visual {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .skills-column {
        padding: 1.5rem;
    }
    
    .skills-column-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .skill-item {
        padding: 1.2rem;
    }
    
    .project-link-item {
        flex-wrap: wrap;
    }
    
    .project-visit-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .skill-level-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skills-note {
        flex-direction: column;
        text-align: left;
        gap: 0.5rem;
    }
}

/* ==================== QUANTUM EXPERIENCE SECTION ==================== */
.experience {
    background: var(--bg-surface);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gradient);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 3rem;
    z-index: 2;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-energy);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.6s var(--ease-slow);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.timeline-date {
    color: var(--accent-energy);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: none;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content li::before {
    content: '▸';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

/* ==================== QUANTUM PROJECTS SECTION ==================== */
.projects {
    background: var(--bg-surface);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background:
        linear-gradient(180deg, rgba(24, 33, 46, 0.92), rgba(15, 22, 33, 0.86)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.06), transparent 30%);
    border: 1px solid rgba(230, 233, 239, 0.08);
    border-radius: 26px;
    overflow: hidden;
    transition: all 0.6s var(--ease-slow);
    position: relative;
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 82% 0%, rgba(184, 178, 167, 0.08), transparent 24%);
    pointer-events: none;
    z-index: 1;
}

.project-card[data-coming-soon="true"] {
    cursor: pointer;
}

.project-card[data-coming-soon="true"]:focus-visible {
    outline: 2px solid var(--accent-energy);
    outline-offset: 4px;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 178, 167, 0.4);
    background:
        linear-gradient(180deg, rgba(28, 39, 54, 0.96), rgba(17, 24, 36, 0.9)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.08), transparent 32%);
    box-shadow:
        0 36px 78px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(184, 178, 167, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-image {
    height: 200px;
    background: var(--bg-elevated);
    position: relative;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.6s var(--ease-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 0.1;
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: rgba(184, 178, 167, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.coming-soon-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(6, 10, 15, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.coming-soon-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.coming-soon-dialog {
    position: relative;
    width: min(100%, 420px);
    padding: 2rem;
    border: 1px solid rgba(124, 255, 178, 0.2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(19, 28, 40, 0.98), rgba(12, 17, 23, 0.98));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.coming-soon-eyebrow {
    margin-bottom: 0.5rem;
    color: var(--accent-energy);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
}

.coming-soon-dialog h3 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.coming-soon-copy {
    color: var(--text-secondary);
    margin: 0;
}

.coming-soon-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-subtle);
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-close:hover {
    border-color: var(--accent-energy);
    color: var(--accent-energy);
}

.case-study {
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.case-study h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-energy);
    font-weight: 500;
}

.case-study p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Project GIF Styles */
.project-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ==================== QUANTUM COMPACT EXPANDABLE TIMELINE ==================== */
.compact-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-row {
    display: flex;
    gap: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp 0.6s var(--ease-slow) forwards;
}

.timeline-row:nth-child(1) { animation-delay: 0.1s; }
.timeline-row:nth-child(2) { animation-delay: 0.2s; }
.timeline-row:nth-child(3) { animation-delay: 0.3s; }
.timeline-row:nth-child(4) { animation-delay: 0.4s; }

.year-column {
    flex: 0 0 120px;
    text-align: right;
    position: relative;
}

.year-badge {
    background:
        linear-gradient(180deg, rgba(25, 34, 47, 0.92), rgba(16, 23, 34, 0.86)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.1), transparent 34%);
    border: 1px solid rgba(230, 233, 239, 0.08);
    border-radius: 18px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-energy);
    display: inline-block;
    position: sticky;
    top: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px) saturate(1.06);
    -webkit-backdrop-filter: blur(14px) saturate(1.06);
}

.role-column {
    flex: 1;
}

.role-card {
    background:
        linear-gradient(180deg, rgba(24, 33, 46, 0.92), rgba(15, 22, 33, 0.86)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.07), transparent 28%);
    border: 1px solid rgba(230, 233, 239, 0.08);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.6s var(--ease-slow);
    position: relative;
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.role-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 100% 0%, rgba(184, 178, 167, 0.08), transparent 24%);
    pointer-events: none;
}

.role-card:hover {
    border-color: rgba(184, 178, 167, 0.34);
    transform: translateY(-4px);
    background:
        linear-gradient(180deg, rgba(28, 39, 54, 0.96), rgba(16, 24, 36, 0.9)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.09), transparent 30%);
    box-shadow:
        0 34px 76px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(184, 178, 167, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.role-main-info {
    flex: 1;
}

.role-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.role-header h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.role-kpi-summary {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kpi-chip {
    background: linear-gradient(180deg, rgba(57, 64, 76, 0.82), rgba(42, 48, 58, 0.92));
    color: var(--accent-primary);
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(230, 233, 239, 0.05);
    font-family: 'IBM Plex Mono', monospace;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kpi-chip:nth-child(2n) {
    background: linear-gradient(180deg, rgba(124, 255, 178, 0.16), rgba(124, 255, 178, 0.08));
    color: var(--accent-energy);
    border-color: rgba(124, 255, 178, 0.12);
}

.expand-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(37, 45, 58, 0.92), rgba(21, 29, 41, 0.9));
    border: 1px solid rgba(230, 233, 239, 0.06);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s var(--ease-slow);
    flex-shrink: 0;
    box-shadow:
        0 12px 20px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.expand-btn:hover {
    background: var(--accent-energy);
    color: var(--bg-main);
    border-color: var(--accent-energy);
}

.expand-btn.active {
    transform: rotate(180deg);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.role-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s var(--ease-slow);
    opacity: 0;
}

.role-details.active {
    max-height: 500px;
    opacity: 1;
}

.details-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(230, 233, 239, 0.06);
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.details-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.details-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.details-content li::before {
    content: '▸';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

.details-content li:nth-child(2n)::before {
    color: var(--accent-energy);
}

/* Connector lines between timeline rows */
.timeline-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 134px;
    top: 100%;
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--accent-energy), var(--accent-primary));
    opacity: 0.3;
}

/* Current role highlight */
.timeline-row:first-child .role-card {
    border: 1px solid rgba(124, 255, 178, 0.4);
    box-shadow:
        0 34px 76px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(124, 255, 178, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-row:first-child .year-badge {
    background:
        linear-gradient(135deg, rgba(184, 178, 167, 0.72), rgba(124, 255, 178, 0.86)),
        rgba(255, 255, 255, 0.2);
    color: #0c1117;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compact-timeline {
        gap: 1rem;
    }
    
    .timeline-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .year-column {
        flex: none;
        text-align: left;
    }
    
    .year-badge {
        position: static;
        display: inline-flex;
    }
    
    .role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .role-kpi-summary {
        width: 100%;
        justify-content: flex-start;
    }
    
    .expand-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    /* Hide connector lines on mobile */
    .timeline-row:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .role-header {
        padding: 1.2rem;
    }
    
    .role-header h3 {
        font-size: 1.1rem;
    }
    
    .kpi-chip {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .details-content {
        padding: 0 1.2rem 1.2rem;
    }
}

/* ==================== QUANTUM CONTACT SECTION ==================== */
.contact {
    background: var(--bg-surface);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.contact-card {
    background:
        linear-gradient(180deg, rgba(24, 33, 46, 0.9), rgba(15, 22, 33, 0.84)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.07), transparent 28%);
    border: 1px solid rgba(230, 233, 239, 0.09);
    border-radius: 28px;
    padding: 2rem;
    transition: all 0.6s var(--ease-slow);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 0% 0%, rgba(124, 255, 178, 0.12), transparent 30%);
    pointer-events: none;
}

.contact-card:hover {
    background:
        linear-gradient(180deg, rgba(28, 39, 54, 0.95), rgba(16, 24, 36, 0.9)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.09), transparent 30%);
    border-color: rgba(184, 178, 167, 0.38);
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(184, 178, 167, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-energy);
    font-weight: 500;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(124, 255, 178, 0.16), rgba(124, 255, 178, 0.08));
    border: 1px solid rgba(124, 255, 178, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-energy);
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(180deg, rgba(124, 255, 178, 0.12), rgba(124, 255, 178, 0.08));
    border: 1px solid rgba(124, 255, 178, 0.24);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.availability-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-energy);
    animation: pulse-availability 2s infinite;
}

@keyframes pulse-availability {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 255, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 255, 178, 0);
    }
}

.availability span {
    color: var(--accent-energy);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Form Social Icons */
.social-section {
    margin-top: 2rem;
}

.social-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-energy);
    font-weight: 500;
}

.social-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 10px;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(25, 34, 47, 0.92), rgba(16, 23, 34, 0.86));
    border: 1px solid rgba(230, 233, 239, 0.07);
    transition: all 0.6s var(--ease-slow);
    text-decoration: none;
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.social-card:hover {
    border-color: rgba(124, 255, 178, 0.34);
    transform: translateY(-5px);
    background:
        linear-gradient(180deg, rgba(30, 42, 58, 0.96), rgba(18, 26, 38, 0.9));
    box-shadow:
        0 22px 34px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(124, 255, 178, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.social-info,
.social-arrow {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .social-grid {
        gap: 0.8rem;
    }
    
    .social-card {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .social-grid {
        gap: 0.6rem;
    }
    
    .social-card {
        width: 45px;
        height: 45px;
    }
}

/* ==================== FORM LAYOUT FIXES ==================== */
.contact-form-wrapper {
    width: 100%;
    height: 100%;
}

.contact-form {
    background:
        linear-gradient(180deg, rgba(24, 33, 46, 0.9), rgba(15, 22, 33, 0.84)),
        radial-gradient(circle at top right, rgba(184, 178, 167, 0.06), transparent 28%);
    border: 1px solid rgba(230, 233, 239, 0.09);
    border-radius: 28px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.6s var(--ease-slow);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 100% 0%, rgba(184, 178, 167, 0.08), transparent 24%);
    pointer-events: none;
}

.contact-form:hover {
    background:
        linear-gradient(180deg, rgba(28, 39, 54, 0.95), rgba(16, 24, 36, 0.9)),
        radial-gradient(circle at top right, rgba(184, 178, 167, 0.08), transparent 28%);
    border-color: rgba(184, 178, 167, 0.38);
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(184, 178, 167, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-energy);
    font-weight: 500;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(180deg, rgba(18, 26, 38, 0.86), rgba(14, 20, 30, 0.92));
    border: 1px solid rgba(230, 233, 239, 0.06);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease-slow);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(124, 255, 178, 0.3);
    box-shadow:
        0 0 0 4px rgba(124, 255, 178, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-status {
    min-height: 1.4rem;
    margin-top: 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-status.is-success {
    color: var(--accent-energy);
}

.form-status.is-error {
    color: #ff8f8f;
}

.form-status.is-info {
    color: #d9d1c3;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-energy);
    background: var(--bg-main);
    box-shadow: 0 0 0 2px rgba(124, 255, 178, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    flex: 1;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-subtle);
    flex-shrink: 0;
}

.form-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.form-notice svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Fix for contact container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: stretch; /* Make both sides equal height */
}

.contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive fixes */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        height: auto;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .form-notice {
        justify-content: center;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-card,
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-details {
        gap: 1rem;
    }
    
    .contact-detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}
/* ==================== QUANTUM FOOTER ==================== */
.footer {
     background: rgba(12, 17, 23, 0.9);
    border-top: 1px solid var(--line-subtle);
    padding: 4rem 0 2rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-primary), 
        var(--accent-energy), 
        transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-energy);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.6s var(--ease-slow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.footer-links li a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.footer-links li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.6s var(--ease-slow);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.6s var(--ease-slow);
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
}

.social-link:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.6s var(--ease-slow);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.expertise-tags {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    align-items: flex-start;
}

.expertise-tag {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--line-subtle);
    transition: all 0.6s var(--ease-slow);
    position: relative;
    overflow: hidden;
    width: 180px;
    box-sizing: border-box;
}

.expertise-tags .expertise-tag:last-child {
    width: 180px;
}

.expertise-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: left 0.6s var(--ease-slow);
}

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

.expertise-tag:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 6px;
    transition: all 0.6s var(--ease-slow);
    margin-top: auto;
    align-self: flex-start;
}

.footer-cta:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    gap: 1rem;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--line-subtle);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-logo::before {
    content: '▸';
    color: var(--accent-energy);
    font-size: 1.2rem;
}

.footer-bottom-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.6s var(--ease-slow);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-legal span {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
        align-items: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        width: 100%;
        max-width: 300px;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .footer-cta {
        align-self: center;
    }
    
    .footer-bottom-content {
        gap: 1rem;
    }
    
    .footer-legal {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-link {
        padding: 0.6rem;
    }
    
    .expertise-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal span {
        display: none;
    }
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .section .container {
        padding: 2rem 1.5rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .section .container {
        padding: 1.5rem 1rem;
    }
}

/* Print styles for reports/case studies */
@media print {
    .section {
        break-inside: avoid;
        background: white !important;
        color: black !important;
    }
    
    .gradient-text {
        background: none;
        color: black;
        -webkit-text-fill-color: black;
    }
}



/* ==================== FIXED SIMPLE BACKGROUNDS ==================== */
/* Replace ALL previous background CSS with this clean version */

/* 1. HERO: Static Dot Grid (No Animation) */
.hero {
    background-image: 
        radial-gradient(
            circle at 25% 25%,
            rgba(255, 255, 255, 0.15) 0.5px,
            transparent 1px
        );
    background-size: 60px 60px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* 2. ABOUT: Static Diagonal Lines */
.about {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(184, 178, 167, 0.08) 2px,
            transparent 3px
        );
    background-size: 40px 40px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 1;
}


/* ==================== SKILLS OVERVIEW STYLES ==================== */
.skills-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background:
        linear-gradient(180deg, rgba(24, 33, 46, 0.92), rgba(15, 22, 33, 0.86)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.07), transparent 28%);
    border: 1px solid rgba(230, 233, 239, 0.09);
    border-radius: 30px;
    padding: 1.45rem;
    transition: all 0.6s var(--ease-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 100% 0%, rgba(184, 178, 167, 0.08), transparent 24%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 178, 167, 0.38);
    background:
        linear-gradient(180deg, rgba(28, 39, 54, 0.96), rgba(16, 24, 36, 0.9)),
        radial-gradient(circle at top left, rgba(124, 255, 178, 0.09), transparent 30%);
    box-shadow:
        0 36px 82px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(184, 178, 167, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(230, 233, 239, 0.07);
    position: relative;
    z-index: 1;
}

.overview-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(25, 34, 47, 0.92), rgba(16, 23, 34, 0.86));
    border: 1px solid rgba(230, 233, 239, 0.07);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.overview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.overview-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.overview-title h3 {
    font-size: 1.22rem;
    margin-bottom: 0.2rem;
    color: var(--accent-energy);
    font-weight: 500;
}

.overview-count {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
}

.overview-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.highlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.68rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(230, 233, 239, 0.05);
    background:
        linear-gradient(180deg, rgba(20, 29, 41, 0.8), rgba(15, 22, 33, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}



.highlight-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-level {
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(60, 68, 80, 0.82), rgba(44, 51, 61, 0.92));
    border: 1px solid rgba(230, 233, 239, 0.05);
    padding: 0.34rem 0.8rem;
    border-radius: 14px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.overview-summary {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.94rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.overview-button {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.btn-small {
    padding: 0.58rem 1.05rem;
    font-size: 0.86rem;
}

.full-skills-cta {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    margin-top: 2rem;
}

.full-skills-cta .btn {
    margin-bottom: 1rem;
}

.cta-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-card {
        padding: 1.5rem;
    }
    
    .overview-header {
        gap: 1rem;
    }
    
    .overview-title h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .overview-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .overview-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .highlight-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .highlight-level {
        align-self: flex-start;
    }
    
    .full-skills-cta {
        padding: 1.5rem;
    }
}

/* 3. SKILLS: Static Cross Pattern */
.skills {
    background-image: 
        linear-gradient(90deg, 
            transparent 49.5%,
            rgba(255, 255, 255, 0.02) 55%,
            transparent 50.5%
        ),
        linear-gradient(0deg, 
            transparent 49.5%,
            rgba(255, 255, 255, 0.015) 55%,
            transparent 50.5%
        );
    background-size: 40px 40px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* 4. EXPERIENCE: Static Dashed Lines */
.experience {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(184, 178, 167, 0) 4px,
            transparent 5px
        );
    background-size: 100% 20px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* 5. PROJECTS: Static Hexagon Grid */
/* 5. PROJECTS: Hexagon Grid with Brighter Lines */
.projects {
    background-image: 
        linear-gradient(30deg, 
            transparent 48%,
            rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.04) 30%,
            transparent 52%
        ),
        linear-gradient(150deg, 
            transparent 48%,
            rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.04) 30%,
            transparent 52%
        ),
        linear-gradient(90deg, 
            transparent 48%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(255, 255, 255, 0.03) 30%,
            transparent 52%
        );
    background-size: 60px 35px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* 6. CONTACT: Static Noise */
.contact {
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.01"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="1"/></filter><rect width="200" height="200" filter="url(%23n)"/></svg>');
    background-color: var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* 7. FOOTER: Simple Gradient */
.footer {
    background: 
        linear-gradient(
            to bottom,
            transparent 0%,
             rgba(12, 17, 23, 0.9) 100%
        ),
        var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* ==================== FIXED ANIMATED ELEMENTS ==================== */
/* Only ONE simple animation for the whole page */

/* Single Floating Dots Container */
.floating-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Behind everything */
    opacity: 0.1;
    will-change: transform; /* GPU acceleration */
    transform: translateZ(0); /* Force hardware acceleration */
}

.floating-dot {
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 40s linear infinite;
}

/* Only 4 dots for better performance */
.floating-dot:nth-child(1) { 
    top: 20%; left: 20%; 
    animation-delay: 0s;
    animation-duration: 60s;
}
.floating-dot:nth-child(2) { 
    top: 60%; left: 80%; 
    animation-delay: 15s;
    animation-duration: 50s;
    background: var(--accent-energy);
}
.floating-dot:nth-child(3) { 
    top: 80%; left: 30%; 
    animation-delay: 30s;
    animation-duration: 70s;
}
.floating-dot:nth-child(4) { 
    top: 40%; left: 70%; 
    animation-delay: 45s;
    animation-duration: 55s;
    background: var(--accent-energy);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -10px);
    }
    50% {
        transform: translate(-10px, 20px);
    }
    75% {
        transform: translate(20px, 10px);
    }
}

/* ==================== FIX Z-INDEX ISSUES ==================== */

/* Ensure content is above backgrounds */
.container,
.hero-container,
.skills-container,
.projects-grid,
.contact-container,
.footer-content {
    position: relative;
    z-index: 2;
}

/* Ensure cards have proper layering */
.skill-item,
.role-card,
.project-card,
.contact-card {
    background: var(--card-bg);
    position: relative;
    z-index: 3;
}

/* ==================== PERFORMANCE FIXES ==================== */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-dot {
        animation: none;
    }
}

/* Optimize for mobile */
@media (max-width: 768px) {
    .floating-dots {
        opacity: 0.05; /* Even more subtle on mobile */
    }
    
    /* Simplify patterns on mobile */
    .hero,
    .about,
    .skills,
    .experience,
    .projects {
        background-size: 80px 80px;
    }
}

@media (max-width: 480px) {
    /* Remove all animations on very small screens */
    .floating-dots {
        display: none;
    }
}

/* ==================== FIX CANVAS ISSUES ==================== */

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    opacity: 0.05; /* Very subtle */
    pointer-events: none;
}

/* Remove conflicting background elements from HTML */
/* Make sure these classes are NOT in your HTML: */
/* .quantum-grid, .capital-circuits, .architectural-pattern, 
   .data-nodes, .chart-lines, .binary-stream, .scroll-triggered */



   /* ==================== WAVE ANIMATION FOR PROFILE IMAGE ==================== */
.wave-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
}

/* Wave 1 - Innermost wave */
.wave-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(124, 58, 237, 0.3);
    animation: wavePulse 4s infinite;
    animation-delay: 0s;
}

/* Wave 2 */
.wave-2 {
    width: 340px;
    height: 340px;
    border-color: rgba(124, 255, 178, 0.25);
    animation: wavePulse 4s infinite;
    animation-delay: 1s;
}

/* Wave 3 */
.wave-3 {
    width: 380px;
    height: 380px;
    border-color: rgba(184, 178, 167, 0.2);
    animation: wavePulse 4s infinite;
    animation-delay: 2s;
}

/* Wave 4 - Outermost wave */
.wave-4 {
    width: 420px;
    height: 420px;
    border-color: rgba(124, 58, 237, 0.15);
    animation: wavePulse 4s infinite;
    animation-delay: 3s;
}
.flashcard {
    /* ... existing styles ... */
    will-change: transform, opacity; /* Tells the browser to prepare for motion */
    backface-visibility: hidden;    /* Prevents "jitter" in 3D perspective */
    transform-style: preserve-3d;
}

/* Hide cards that aren't part of the current 3-card view */
.hidden-card {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) translateZ(-100px);
    visibility: hidden;
}

.card-image {
    /* ... existing styles ... */
    display: block;
    transform: translateZ(0); /* Fixes flickering on some Chrome versions */
}
/* Wave pulse animation */
@keyframes wavePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
        border-width: 1px;
    }
    50% {
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
        border-width: 0;
    }
}

/* Alternative wave animation for a continuous effect */
@keyframes continuousWave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
        border-width: 2px;
    }
    50% {
        opacity: 0.4;
        border-width: 1px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
        border-width: 0;
    }
}

/* Add a subtle glow effect on hover */
.profile-image-wrapper:hover ~ .wave-animation .wave {
    animation-duration: 3s;
    border-color: var(--accent-energy);
    opacity: 0.7;
}

/* Enhanced wave effect on hover */
.profile-card:hover .wave {
    filter: drop-shadow(0 0 5px rgba(124, 255, 178, 0.5));
}

/* Responsive adjustments for waves */
@media (max-width: 992px) {
    .wave-1 {
        width: 280px;
        height: 280px;
    }
    
    .wave-2 {
        width: 320px;
        height: 320px;
    }
    
    .wave-3 {
        width: 360px;
        height: 360px;
    }
    
    .wave-4 {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .wave-1 {
        width: 260px;
        height: 260px;
    }
    
    .wave-2 {
        width: 300px;
        height: 300px;
    }
    
    .wave-3 {
        width: 340px;
        height: 340px;
    }
    
    .wave-4 {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 576px) {
    .wave-1 {
        width: 240px;
        height: 240px;
    }
    
    .wave-2 {
        width: 280px;
        height: 280px;
    }
    
    .wave-3 {
        width: 320px;
        height: 320px;
    }
    
    .wave-4 {
        width: 360px;
        height: 360px;
    }
    .scroll-indicator{
        display: none;
    }
}

/* ==================== 2. PROJECT ATLAS GRID FIX ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default desktop */
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr; /* This forces one project per line */
        gap: 2.5rem;
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto; /* Centers the card when stacked */
    }
}

/* ==================== 3. STATS & JOURNEY RESPONSIVENESS ==================== */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr; /* Stack text and carousel */
    }

    .about-text {
        padding-right: 0;
        text-align: center;
    }
}


/* ==================== HORIZONTAL JOURNEY CAROUSEL ==================== */
.journey-carousel-horizontal {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track-horizontal {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s var(--ease-slow);
    will-change: transform;
}

.journey-card-horizontal {
    flex: 0 0 calc(25% - 1.125rem); /* 4 cards with gap */
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-slow);
    cursor: pointer;
}

.journey-card-horizontal:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.journey-card-horizontal.active {
    border-color: var(--accent-energy);
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-slow);
}

.journey-card-horizontal:hover .blog-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.carousel-controls-horizontal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-controls-horizontal .nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-slow);
    opacity: 1;
}

.carousel-controls-horizontal .nav-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-main);
}

.carousel-controls-horizontal .nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-controls-horizontal .nav-arrow:disabled:hover {
    background: var(--card-bg);
    border-color: var(--line-subtle);
    color: var(--text-primary);
}
#nav-arrow{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--accent-energy);
    color: var(--accent-energy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-slow);
}
#nav-arrow:hover {
    background: var(--accent-energy);
    border-color: var(--accent-energy);
    color: var(--bg-main);
}



/* Responsive */
@media (max-width: 992px) {
    .journey-card-horizontal {
        flex: 0 0 calc(33.333% - 1rem); /* 3 cards on tablet */
    }
}

@media (max-width: 768px) {
    .journey-card-horizontal {
        flex: 0 0 calc(50% - 0.75rem); /* 2 cards on mobile */
    }
    
    .blog-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .journey-card-horizontal {
        flex: 0 0 calc(100% - 0.5rem); /* 1 card on small mobile */
    }
    
    .carousel-controls-horizontal .nav-arrow {
        width: 40px;
        height: 40px;
    }
}
/* Add this to ensure buttons are clickable */
.carousel-controls-horizontal .nav-arrow {
    z-index: 10;
    position: relative;
}

/* Ensure track doesn't overflow buttons */
.journey-carousel-horizontal {
    padding: 1rem 50px 3rem; /* Add side padding for arrows */
}

/* Make arrows float on sides for better UX */
@media (min-width: 768px) {
    .carousel-controls-horizontal {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        justify-content: space-between;
        margin-top: 0;
        padding: 0 20px;
    }
    
    .carousel-controls-horizontal .nav-arrow {
        position: relative;
        margin: 0;
    }
}/* ==================== HERO STACKED CAROUSEL ==================== */
.journey-visual {
    perspective: 1000px;
    /* padding: 40px 0; */
}

.journey-carousel-horizontal {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.carousel-track-horizontal {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.journey-card-horizontal {
    position: absolute;
    width: 280px;
    /* height: 320px; */
    background: #fff; /* White background like your reference image */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8) translateX(0);
}

/* The logic for the "One after another" stacked look */
.journey-card-horizontal.active {
    z-index: 10;
    opacity: 1;
    transform: scale(1) translateX(0);
}

.journey-card-horizontal.prev-card {
    z-index: 5;
    opacity: 0.7;
    transform: scale(0.85) translateX(-180px) rotateY(15deg);
}

.journey-card-horizontal.next-card {
    z-index: 5;
    opacity: 0.7;
    transform: scale(0.85) translateX(180px) rotateY(-15deg);
}

/* Hover Effect: Lift the card */
.journey-card-horizontal:hover {
    margin-top: -15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.blog-image {
    width: 100%;
    height: 100%;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stacked-carousel-container {
   position: relative;
    height: 350px; /* Reduced height for landscape */
    width: 90%;
    max-width: 500px; /* Prevent excessive width */
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto; /* Center the container */
}

.stacked-track {
   position: relative;
    width: 450px; /* Increased width for landscape */
    height: 300px;
}

.stacked-card {
   position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
}

.stacked-card img {
   width: 100%;
    height: 100%;
    object-fit: fill; /* Changed from cover to show full image */
    object-position: center; /* Ensure image is centered */
    background: #fff; /* Add white background for transparency */
}

.card-label {
    padding: 10px;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    background: #fff;
}

/* Position States */
.stacked-card.active {
    z-index: 10;
    opacity: 1;
    transform: translateX(0) scale(1.1);
    pointer-events: auto;
}

.stacked-card.prev {
    z-index: 5;
    opacity: 0.7;
    transform: translateX(-160px) scale(0.85); /* Increased horizontal movement */
}

.stacked-card.next {
    z-index: 5;
    opacity: 0.7;
    transform: translateX(160px) scale(0.85); /* Increased horizontal movement */
}

.stacked-card.hidden {
    opacity: 0;
    transform: translateX(0) scale(0.5);
}
/* Responsive adjustments for landscape carousel */
@media (max-width: 992px) {
    .stacked-carousel-container {
        height: 280px; /* Reduced empty space */
        width: 95%;
    }
    
    .stacked-track {
        width: 380px;
        height: 240px; /* Better aspect ratio */
    }
    
    .stacked-card.prev {
        transform: translateX(-140px) scale(0.85);
    }
    
    .stacked-card.next {
        transform: translateX(140px) scale(0.85);
    }
}

@media (max-width: 768px) {
    .stacked-carousel-container {
        height: 240px; /* Reduced empty space */
        width: 100%;
        margin: 1.5rem auto;
    }
    
    .stacked-track {
        width: 320px;
        height: 200px; /* Better aspect ratio */
    }
    
    .stacked-card.prev {
        transform: translateX(-120px) scale(0.8);
        opacity: 0.5; /* More faded */
    }
    
    .stacked-card.next {
        transform: translateX(120px) scale(0.8);
        opacity: 0.5; /* More faded */
    }
    
    /* Hide labels on smaller screens if they exist */
    .card-label {
        display: none;
    }
}

@media (max-width: 576px) {
    .stacked-carousel-container {
        height: 220px; /* Minimal empty space */
        margin: 1rem auto;
        width: 100%;
    }
    
    .stacked-track {
        width: 280px;
        height: 180px; /* Better aspect ratio */
    }
    
    .stacked-card.prev {
        transform: translateX(-100px) scale(0.75);
        opacity: 0.4;
    }
    
    .stacked-card.next {
        transform: translateX(100px) scale(0.75);
        opacity: 0.4;
    }
    
    .stacked-card.active {
        transform: translateX(0) scale(1.05); /* Slightly smaller on mobile */
    }
}/* Wider landscape option */
.stacked-carousel-container.wide-landscape {
    height: 200px;
}

.stacked-track.wide-landscape {
    width: 500px; /* Even wider */
    height: 280px;
}

.stacked-card.wide-landscape {
    aspect-ratio: 21/9; /* Ultra-wide cinematic ratio */
}

.stacked-card.wide-landscape.prev {
    transform: translateX(-200px) scale(0.85);
}

.stacked-card.wide-landscape.next {
    transform: translateX(200px) scale(0.85);
}

/* Nav Buttons */
.stack-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--accent-energy);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
}
.stack-nav.prev { left: 10%; }
.stack-nav.next { right: 10%; }

/* ==================== PREMIUM CAROUSEL ARROWS ==================== */
.carousel-controls-horizontal {
    position: absolute;
    bottom: -60px; /* Positioned below the cards */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    z-index: 6;
    width: 650px;
}

.nav-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(18, 25, 35, 0.6); /* Match your --bg-surface */
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-slow);
    padding: 0;
}

/* Icon style inside the button */
.nav-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.nav-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-main);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Specific Arrow Movements on Hover */
.nav-arrow.prev:hover svg {
    transform: translateX(-3px);
}

.nav-arrow.next:hover svg {
    transform: translateX(3px);
}

/* Active State (Click) */
.nav-arrow:active {
    transform: translateY(-2px) scale(0.95);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .nav-arrow {
        width: 48px;
        height: 48px;
    }
    #nav-arrow{
        /* display: none; */
    }
}

/* ==================== RESPONSIVE HERO SECTION ==================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        order: -1; /* Move visual above text on mobile */
    }

    .profile-container {
        width: 280px;
        height: 280px;
        margin: 0 auto 2rem;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .data-visualization {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-container {
        width: 240px;
        height: 240px;
    }

    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 80px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .data-visualization {
        flex-direction: column;
        align-items: center;
    }

    .data-point {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }

    .data-line {
        width: 30px;
        height: 2px;
        margin-top: 0;
    }
}
/* ==================== RESPONSIVE PROJECTS GRID ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        max-width: 100%;
    }
}
/* ==================== RESPONSIVE ABOUT SECTION ==================== */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding-right: 0;
        text-align: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .principle-item {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .principle-visual {
        height: 180px;
    }
}
/* ==================== RESPONSIVE SKILLS SECTION ==================== */
@media (max-width: 768px) {
    .skills-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .overview-card {
        padding: 1.5rem;
    }

    .highlight-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .highlight-level {
        align-self: flex-start;
    }

    .full-skills-cta {
        padding: 1.5rem;
    }
}
/* ==================== RESPONSIVE CONTACT SECTION ==================== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .form-notice {
        justify-content: center;
        text-align: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-card,
    .contact-form {
        padding: 1.25rem;
    }

    .contact-details {
        gap: 1rem;
    }

    .contact-detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .social-grid {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* ==================== RESPONSIVE FOOTER ==================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .expertise-tags {
        justify-content: center;
    }

    .footer-cta {
        align-self: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* ==================== GENERAL RESPONSIVE IMPROVEMENTS ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Fix stacked carousel on mobile */
    .stacked-track {
        width: 260px;
        height: 160px; /* Better aspect ratio */
    }

    .stacked-card.prev {
        transform: translateX(-90px) scale(0.7);
        opacity: 0.3;
    }

    .stacked-card.next {
        transform: translateX(90px) scale(0.7);
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stacked-carousel-container {
        height: 200px; /* Minimal empty space */
        margin: 1rem auto;
        width: 100%;
    }

    .stacked-track {
        width: 260px;
        height: 160px; /* Better aspect ratio */
    }

    .stacked-card.prev {
        transform: translateX(-90px) scale(0.7);
        opacity: 0.3;
    }

    .stacked-card.next {
        transform: translateX(90px) scale(0.7);
        opacity: 0.3;
    }
    
    .stacked-card.active {
        transform: translateX(0) scale(1);
    }

    /* Hide scroll indicator on very small screens */
    .scroll-indicator {
        display: none;
    }
}

/* Very small phones - Added for better mobile support */
@media (max-width: 360px) {
    .stacked-carousel-container {
        height: 180px; /* Very minimal empty space */
        margin: 0.75rem auto;
    }
    
    .stacked-track {
        width: 220px;
        height: 140px;
    }
    
    .stacked-card.prev {
        transform: translateX(-80px) scale(0.65);
        opacity: 0.2;
    }
    
    .stacked-card.next {
        transform: translateX(80px) scale(0.65);
        opacity: 0.2;
    }
    
    .carousel-controls-horizontal {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    #nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* ==================== RESPONSIVE SIGNATURE WORK CAROUSEL ==================== */
.carousel-wrapper {
    position: relative;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 2rem 0 1.5rem;
    overflow: visible;
}

.carousel-container {
    position: relative;
    width: min(100%, 1160px);
    height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: visible;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.flashcard {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 560px;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    border-radius: 24px;
    overflow: hidden;
    transition:
        transform 720ms ease-in-out,
        box-shadow 720ms ease-in-out,
        border-color 720ms ease-in-out,
        opacity 720ms ease-in-out;
    transform: translate3d(-50%, -50%, 0) scale(1);
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.flashcard.center {
    opacity: 1 !important;
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
    z-index: 10;
    border-color: var(--accent-energy);
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(124, 255, 178, 0.08);
}

.flashcard.left {
    opacity: 1 !important;
    transform: translate3d(calc(-50% - 430px), -50%, 0) scale(1) !important;
    z-index: 5;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.flashcard.right {
    opacity: 1 !important;
    transform: translate3d(calc(-50% + 430px), -50%, 0) scale(1) !important;
    z-index: 5;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.flashcard.hidden-card {
    opacity: 0 !important;
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
    z-index: 0;
}

.card-image {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover;
    flex: 0 0 auto;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1 1 auto;
}

.card-number {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 0;
    font-family: 'IBM Plex Mono', monospace;
}

.card-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.28;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.card-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0;
}

.kpi-item {
    background: var(--bg-elevated);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.kpi-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-energy);
    margin-bottom: 0.2rem;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.project-btn {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.4s var(--ease-slow);
}

.project-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-main);
}

.side-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.75rem;
    z-index: 20;
    pointer-events: none;
}

.side-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-slow);
    font-size: 1.2rem;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.side-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-main);
}

.counter-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.counter-btn {
    background: transparent;
    border: 1px solid var(--line-subtle);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s var(--ease-slow);
    font-size: 0.9rem;
}

.counter-btn:hover {
    border-color: var(--accent-energy);
    color: var(--accent-energy);
}

.counter-number {
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0.25rem 0.35rem;
    border-radius: 999px;
    min-width: 2.2rem;
    text-align: center;
}

.counter-number.active {
    color: var(--accent-energy);
    background: rgba(124, 255, 178, 0.12);
}

/* ==================== RESPONSIVE CAROUSEL ==================== */
@media (max-width: 768px) {
    .carousel-container {
        height: 540px;
    }
    
    .flashcard {
        width: 340px;
        height: 500px;
    }
    
    .card-image {
        height: 200px !important;
    }
    
    .card-kpis {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .kpi-item {
        padding: 0.6rem;
    }
    
    .kpi-value {
        font-size: 1rem;
    }
    
    .side-nav {
        padding: 0 0.5rem;
    }
    
    .side-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .flashcard.left {
        transform: translate3d(calc(-50% - 210px), -50%, 0) scale(1) !important;
        opacity: 1 !important;
    }
    .flashcard.right {
        transform: translate3d(calc(-50% + 210px), -50%, 0) scale(1) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        height: 500px;
    }
    
    .flashcard {
        width: 300px;
        height: 460px;
    }
    
    .card-image {
        height: 170px !important;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .card-kpis {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .counter-display {
        gap: 1rem;
    }
    
    .counter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .counter-number {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 460px;
    }
    
    .flashcard {
        width: 285px;
        height: 430px;
    }
    
    .flashcard.left {
        transform: translate3d(calc(-50% - 170px), -50%, 0) scale(1) !important;
        opacity: 1 !important;
    }
    
    .flashcard.right {
        transform: translate3d(calc(-50% + 170px), -50%, 0) scale(1) !important;
        opacity: 1 !important;
    }
    
    .card-image {
        height: 145px !important;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .side-nav {
        padding: 0 0.25rem;
    }
    
    .side-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}/* ==================== STATS COUNTER FALLBACK ==================== */
.stat-value {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Emergency fallback: if stats are still 0 after page load, show actual values */
@media screen and (min-width: 768px) {
    .stat-value[data-target]:after {
        content: attr(data-target);
        display: none;
    }
    
    body.loaded .stat-value[data-target] {
        animation: countUp 1s ease forwards;
    }
}
/* ==================== EMERGENCY MOBILE KPI HIDE ==================== */
@media (max-width: 768px) {
    /* Target the container and every single KPI item inside it */
    .card-kpis, 
    .kpi-item, 
    .kpi-value, 
    .kpi-label {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Adjust the card content padding so it doesn't look empty */
    .flashcard .card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: calc(100% - 150px); /* Adjust based on your image height */
    }
}@media (max-width: 480px) {
    .card-description {
        margin-bottom: 1rem !important; /* Reduce space */
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limit text to 3 lines so button stays visible */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}/* ==================== PROJECTS GRID - HORIZONTAL LAYOUT ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards in one row */
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on tablet */
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 2rem;
    }
}

/* ==================== RESPONSIVE NAV FIX ==================== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    /* Fix container overflow */
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Prevent sections from causing overflow */
    .section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix header - prevent flickering and movement */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(12, 17, 23, 0.95);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: auto;
    }
    
    /* Prevent elements from causing horizontal scroll */
    main, section, article, div {
        max-width: 100vw;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix major containers */
    .hero,
    .hero-container,
    .about-content,
    .skills-grid,
    .timeline,
    .projects-grid,
    .contact-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Ensure no element causes overflow */
    * {
        max-width: 100vw;
    }
    
    .stacked-carousel-container {
        overflow: visible;
        padding: 0;
    }
}

/* ==================== MARQUEE PROJECT RAIL OVERRIDES ==================== */

.carousel-wrapper.marquee-mode {
    width: min(calc(100% + 4rem), 1480px);
    margin: 0 -2rem;
    padding: 2rem 0.25rem;
    overflow: hidden;
    min-height: 540px;
}

.carousel-wrapper.marquee-mode .carousel-track-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 540px;
}

.carousel-wrapper.marquee-mode .carousel-track {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    width: max-content;
    min-height: 540px;
    position: relative;
    isolation: auto;
    overflow: visible;
    animation: projectRailScroll 28s linear infinite;
    will-change: transform;
}

.carousel-wrapper.marquee-mode:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-wrapper.marquee-mode .project-marquee-card,
.carousel-wrapper.marquee-mode .marquee-card {
    position: relative;
    top: auto;
    left: auto;
    width: 310px;
    min-width: 310px;
    height: 500px;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 260ms ease,
        box-shadow 260ms ease,
        border-color 260ms ease;
    cursor: pointer;
    visibility: visible !important;
    background: var(--card-bg);
    border: 1px solid var(--line-subtle);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.carousel-wrapper.marquee-mode .project-marquee-card:hover,
.carousel-wrapper.marquee-mode .marquee-card:hover {
    transform: translateY(-12px) !important;
    border-color: var(--accent-energy);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(124, 255, 178, 0.12);
    z-index: 3 !important;
}

.carousel-wrapper.marquee-mode .card-image {
    height: 210px !important;
}

.carousel-wrapper.marquee-mode .card-content {
    padding: 1rem;
    gap: 0.7rem;
}

.carousel-wrapper.marquee-mode .card-title {
    font-size: 0.95rem;
    line-height: 1.25;
    min-height: 2.5em;
}

.carousel-wrapper.marquee-mode .card-description {
    font-size: 0.72rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.carousel-wrapper.marquee-mode .card-kpis {
    gap: 0.55rem;
}

.carousel-wrapper.marquee-mode .kpi-item {
    padding: 0.55rem;
}

.carousel-wrapper.marquee-mode .kpi-value {
    font-size: 0.8rem;
}

.carousel-wrapper.marquee-mode .kpi-label {
    font-size: 0.62rem;
}

.carousel-wrapper.marquee-mode .card-actions {
    margin-top: auto;
    padding-top: 0;
}

.carousel-wrapper.marquee-mode .project-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
}

.carousel-wrapper.marquee-mode .side-nav,
.carousel-wrapper.marquee-mode .counter-display {
    display: none !important;
}

@keyframes projectRailScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@media (max-width: 768px) {
    .journey-visual {
        min-height: 680px;
    }

    .journey-carousel-container {
        min-height: 680px;
        padding-right: 0;
        max-width: 100%;
    }

    .journey-carousel-container .carousel-controls {
        top: 52%;
        right: 0.75rem;
    }

    .journey-carousel-container .journey-card {
        width: min(100%, 500px);
        min-height: 280px;
    }

    .journey-carousel-container .blog-image {
        height: 280px;
    }

    .carousel-wrapper.marquee-mode,
    .carousel-wrapper.marquee-mode .carousel-track-container,
    .carousel-wrapper.marquee-mode .carousel-track {
        min-height: 620px;
    }

    .carousel-wrapper.marquee-mode .project-marquee-card,
    .carousel-wrapper.marquee-mode .marquee-card {
        width: 320px;
        min-width: 320px;
        height: 560px;
    }

    .carousel-wrapper.marquee-mode .card-image {
        height: 230px !important;
    }
}

@media (max-width: 480px) {
    .journey-visual {
        min-height: 560px;
    }

    .journey-carousel-container {
        min-height: 560px;
    }

    .journey-carousel-container .carousel-controls {
        top: 50%;
        right: 0.5rem;
    }

    .journey-carousel-container .journey-card {
        width: min(100%, 360px);
        min-height: 220px;
    }

    .journey-carousel-container .blog-image {
        height: 220px;
    }

    .carousel-wrapper.marquee-mode,
    .carousel-wrapper.marquee-mode .carousel-track-container,
    .carousel-wrapper.marquee-mode .carousel-track {
        min-height: 560px;
    }

    .carousel-wrapper.marquee-mode .carousel-track {
        gap: 1rem;
    }

    .carousel-wrapper.marquee-mode .project-marquee-card,
    .carousel-wrapper.marquee-mode .marquee-card {
        width: 285px;
        min-width: 285px;
        height: 520px;
    }

    .carousel-wrapper.marquee-mode .card-image {
        height: 205px !important;
    }
}

/* ==================== CONSOLIDATED RESPONSIVE OVERRIDES ==================== */
@media (max-width: 1199px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-list {
        gap: 1.75rem;
    }

    .hero-split-container {
        width: min(100%, calc(100% - 3rem));
        gap: 1.5rem;
    }

    .hero-right-brain,
    .brain-img {
        height: min(42vw, 460px);
        min-height: 0;
    }

    .about-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 1.5rem;
    }

    .journey-carousel-container {
        max-width: 100%;
        padding-right: 4.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        padding: 0;
    }

    .skills-overview,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-timeline {
        max-width: 100%;
    }

    .contact-container {
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .section {
        padding-bottom: 56px;
    }

    .hero {
        min-height: auto;
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        width: min(100%, calc(100% - 2.5rem));
        padding-top: calc(80px + 1rem);
    }

    .hero-left,
    .hero-right {
        padding-top: 0;
    }

    .hero-right-brain,
    .brain-img {
        height: min(52vw, 420px);
    }

    .hero-contribute-peek {
        width: min(100%, calc(100% - 2.5rem));
    }

    .contribute-grid,
    .skills-overview,
    .projects-grid,
    .contact-container,
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding-right: 0;
    }

    .journey-visual,
    .journey-carousel-container {
        min-height: auto;
    }

    .journey-carousel-container {
        padding-right: 4rem;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .journey-carousel-container .journey-card {
        width: min(100%, 640px);
    }

    .principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-row {
        flex-direction: column;
        gap: 1rem;
    }

    .year-column {
        flex: none;
        text-align: left;
    }

    .year-badge {
        position: static;
    }

    .timeline-row:not(:last-child)::after {
        display: none;
    }

    .role-header {
        align-items: flex-start;
    }

    .role-kpi-summary {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding-bottom: 48px;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.15;
    }

    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .nav {
        height: auto;
        min-height: 112px;
    }

    .mobile-nav {
        width: min(88vw, 340px);
    }

    .hero {
        padding-top: 148px;
    }

    .hero-split-container {
        width: calc(100% - 2rem);
        gap: 1rem;
        padding-top: 1.4rem;
    }

    .hero-split-title {
        font-size: clamp(1.58rem, 6.6vw, 2.05rem);
        margin-top: 0;
        padding-top: 0;
    }

    .hero-pipeline,
    .hero-techstack,
    .hero-education,
    .hero-tagline,
    .hero-role-scope {
        font-size: 0.86rem;
    }

    .hero-right-brain,
    .brain-img {
        height: 280px;
        border-radius: 22px;
    }

    .availability-badge,
    .float-badge {
        max-width: calc(100% - 1rem);
        font-size: 0.72rem;
    }

    .narrative p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .journey-carousel-container {
        padding-right: 3.5rem;
    }

    .journey-carousel-container .journey-card {
        width: calc(100% - 0.25rem);
        min-height: 0;
    }

    .journey-carousel-container .blog-image {
        height: 240px;
    }

    .journey-carousel-container .carousel-controls {
        right: 0.5rem;
        gap: 0.75rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .stat-item {
        padding: 1.1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .principle-item,
    .principle-card,
    .overview-card,
    .contact-card,
    .contact-form,
    .role-card {
        border-radius: 18px;
    }

    .principle-visual {
        height: 200px;
    }

    .principle-info,
    .overview-card,
    .contact-card,
    .contact-form {
        padding: 1.25rem;
    }

    .skills-overview {
        gap: 1rem;
    }

    .overview-header {
        align-items: flex-start;
    }

    .compact-timeline {
        margin-top: 2rem;
    }

    .role-header {
        flex-direction: column;
        gap: 0.9rem;
        padding-right: 3.75rem;
    }

    .expand-btn {
        top: 1rem;
        right: 1rem;
    }

    .details-content {
        padding: 0 1rem 1rem;
    }

    .projects-grid {
        gap: 1rem;
    }

    .carousel-wrapper.marquee-mode {
        width: 100%;
        margin: 0;
        padding: 1rem 0;
        min-height: auto;
    }

    .carousel-wrapper.marquee-mode .carousel-track-container {
        min-height: auto;
        overflow-x: auto;
        overflow-y: visible;
        padding: 0 1rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-wrapper.marquee-mode .carousel-track-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-wrapper.marquee-mode .carousel-track {
        min-height: auto;
        gap: 1rem;
        padding-right: 1rem;
        animation: none;
    }

    .carousel-wrapper.marquee-mode .project-marquee-card,
    .carousel-wrapper.marquee-mode .marquee-card {
        width: min(82vw, 320px);
        min-width: min(82vw, 320px);
        min-height: 480px;
        height: auto;
        scroll-snap-align: start;
    }

    .carousel-wrapper.marquee-mode .card-image {
        height: 200px !important;
    }

    .social-grid {
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 0.875rem;
    }

    .section-title {
        font-size: clamp(1.9rem, 10vw, 2.45rem);
    }

    .hero-split-container {
        width: calc(100% - 1.5rem);
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-btn,
    .contact-form .btn,
    .full-skills-cta .btn,
    .overview-button .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-right-brain,
    .brain-img {
        height: 240px;
    }

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

    .journey-carousel-container {
        padding-right: 3.15rem;
    }

    .journey-carousel-container .blog-image {
        height: 150px;
        background: rgba(12, 17, 23, 0.92);
    }

    .journey-carousel-container .blog-image img {
        object-fit: contain;
        object-position: center;
    }

    .journey-carousel-container .carousel-controls {
        right: 0.35rem;
    }

    .overview-header,
    .contact-detail-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .contact-icon {
        margin: 0;
    }

    .carousel-wrapper.marquee-mode .carousel-track-container {
        padding: 0 0.875rem 1rem;
    }

    .carousel-wrapper.marquee-mode .project-marquee-card,
    .carousel-wrapper.marquee-mode .marquee-card {
        width: min(86vw, 300px);
        min-width: min(86vw, 300px);
        min-height: 455px;
    }

    .carousel-wrapper.marquee-mode .card-content {
        padding: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
