/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

:root {
    /* Refined Dark Palette 2026 - Premium & Sophisticated */
    --bg-primary: #09090b;       /* Rich black, deep depth */
    --bg-secondary: #0c0d12;     /* Deep slate tint */
    --bg-tertiary: #18181b;      /* Lighter panel background */
    --bg-surface: rgba(255, 255, 255, 0.03); /* Glass surface */
    --bg-card: rgba(255, 255, 255, 0.02);    /* Card surface */
    --bg-hover: rgba(255, 255, 255, 0.05);   /* Hover states */
    
    /* Refined Accents - Elegant Indigo/Violet */
    --accent-primary: #6366f1;   /* Indigo - primary actions */
    --accent-secondary: #8b5cf6; /* Violet - secondary accents */
    --accent-highlight: #a78bfa; /* Lighter violet - hover states */
    --accent-success: #10b981;   /* Emerald - success states */
    --accent-warning: #f59e0b;   /* Amber - warnings/emphasis */
    --accent-error: #ef4444;     /* Red - errors */
    
    /* Legacy aliases for compatibility */
    --accent-blue: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-pink: #ec4899;
    
    /* Text Colors - Improved Contrast */
    --text-primary: #fafafa;     /* Pure white for headers */
    --text-secondary: #a1a1aa;   /* Higher contrast grey (WCAG AA) */
    --text-muted: #71717a;       /* Muted but readable */
    --text-accent: #c4b5fd;      /* Accent text (violet tint) */
    
    /* Borders & Glass */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(99, 102, 241, 0.5);
    --border-glow: rgba(99, 102, 241, 0.4);
    
    /* Gradients - Sophisticated & Subtle */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-dark: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-text: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
    
    /* Spacing - Generous for landing pages */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: clamp(6rem, 10vw, 10rem); /* Responsive generous spacing */
    --spacing-2xl: clamp(8rem, 12vw, 14rem);
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace; /* Engineering touch */
    
    /* Technical Patterns */
    --bg-grid-color: rgba(255, 255, 255, 0.015);
    --bg-grid-size: 40px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows & Glows - Subtle & Premium */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.2);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 40px rgba(0, 0, 0, 0.4);
    
    /* Glassmorphism */
    --glass-blur: blur(16px);
    --glass-background: rgba(12, 13, 18, 0.8);
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    
    /* Technical Grid Background */
    background-image: 
        linear-gradient(var(--bg-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid-color) 1px, transparent 1px),
        var(--gradient-dark);
    background-size: var(--bg-grid-size) var(--bg-grid-size), var(--bg-grid-size) var(--bg-grid-size), 100% 100%;
    background-attachment: fixed;
    
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar on body as well */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.1; /* Modern tight tracking */
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem); /* Bigger, bolder */
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}


/* ============================================
   UTILITIES & GLASSMORPHISM
   ============================================ */

.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-frosted {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
}

.neon-border {
    position: relative;
    overflow: hidden;
}

.neon-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.neon-border:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   NAVIGATION - FLOATING ISLAND STYLE
   ============================================ */

.navbar {
    position: fixed;
    top: 20px; /* Floating from top */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: rgba(12, 13, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 100px; /* Pill shape */
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(12, 13, 18, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    padding: 0.5rem 1.5rem;
    width: 85%; /* Slightly shrink on scroll */
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Remove default padding as container handles it */
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800; /* Bolder */
    letter-spacing: -0.03em;
    color: var(--text-primary);
    background: none; /* Remove gradient for cleaner look */
    -webkit-text-fill-color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

.nav-menu a.nav-instagram {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a.nav-instagram .instagram-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.nav-menu a.nav-instagram:hover {
    color: var(--accent-highlight);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.nav-menu a.nav-instagram:hover .instagram-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden; /* Prevent 3D canvas or animations from causing scroll */
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: left; /* Asymmetric Design */
    padding-right: 20%; /* Space for 3D visual on the right */
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block; /* Ensure each line stays on its own line */
    opacity: 0;
    transform: translateY(20px);
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}


.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    max-width: 600px;
    margin-left: 0; /* Left align */
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start; /* Left align */
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    position: relative;
}

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

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

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

.btn {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px; /* Pillow shape for modern feel */
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-bounce);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-neon);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.8;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(112, 0, 255, 0.6);
    letter-spacing: 0.5px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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



.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow-x: hidden; /* Prevent GSAP animations from causing horizontal scroll */
}

.container {
    max-width: 1400px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(30px);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(12, 13, 18, 0.8); /* Opaque background to block grid */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    align-items: flex-start; /* Align to top of section */
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.about-text {
    flex: 1.2;
    opacity: 0;
    transform: translateX(-30px);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    flex: 1;
    display: grid;
    align-self: flex-start;
    grid-template-columns: repeat(3, 1fr);
    /* No gap, dividers instead */
    gap: 0;
    opacity: 0;
    transform: translateY(20px);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: var(--spacing-md) 0;
}

.stat-card {
    text-align: center;
    padding: 0 var(--spacing-md);
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-glass);
    border-radius: 0;
    backdrop-filter: none;
    transition: all var(--transition-base);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    transform: none;
    border-color: var(--border-glass);
    box-shadow: none;
    /* Highlight content instead */
}

.stat-card:hover .stat-number {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    font-family: var(--font-mono); /* Engineering touch */
    letter-spacing: -2px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
    font-weight: 600;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
}

/* Bento Grid Layout */
.service-card:nth-child(1) {
    grid-column: span 2;
}

.service-card:nth-child(2) {
    grid-column: span 1;
}

.service-card:nth-child(3) {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.service-card:nth-child(3) .service-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        grid-column: span 1;
        display: block;
    }
    
    .service-card:nth-child(3) .service-icon {
        margin-bottom: var(--spacing-md);
    }
}

.service-card {
    position: relative;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: var(--spacing-md);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 2rem;
}

.service-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.service-description {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-md);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.service-price {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

/* Technical details inside cards */
.price-value {
    color: var(--accent-primary);
    font-family: var(--font-mono); /* Engineering touch */
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.05em;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.service-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.service-card:hover .service-glow {
    opacity: 1;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

/* ============================================
   PORTFOLIO SECTION - ENGINEERING CARDS
   ============================================ */

.portfolio {
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    position: relative; /* Added for absolute overlay */
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.portfolio-image {
    position: relative;
    aspect-ratio: 16 / 9; /* Standard video format */
    overflow: hidden;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-glass);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Lighter center spot for black logos compatibility */
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(12, 13, 18, 1) 60%);
}

.portfolio-logo {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    /* Removed grayscale to keep original colors */
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-logo {
    transform: scale(1.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Removed shimmer and glow animations for cleaner look */

.portfolio-overlay {
    position: absolute;
    top: 0; 
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95); /* Full cover dark background */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: none; 
    z-index: 10;
    backdrop-filter: blur(4px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}


.portfolio-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1.5rem;
    opacity: 1;
}

/* Button styles consolidated below */

.portfolio-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.portfolio-tech {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    font-family: var(--font-mono);
}

.portfolio-role {
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 0.25rem;
}

/* Remove hover triggers for non-animated elements */
.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-tech,
.portfolio-item:hover .portfolio-role {
    transform: none;
    opacity: 1;
    transition-delay: 0s;
}

/* Mobile: Enhanced Portfolio View */
@media (max-width: 768px) {
    .portfolio-grid {
        gap: 1.5rem;
    }

    .portfolio-item {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .portfolio-image {
        aspect-ratio: 16 / 9;
        min-height: 200px;
        position: relative;
        background: var(--bg-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .portfolio-overlay {
        position: static; /* Move info below image */
        opacity: 1;
        background: var(--bg-tertiary);
        padding: 1.5rem;
        transform: none;
        backdrop-filter: none;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        border-top: 1px solid var(--border-glass);
    }
    
    .portfolio-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .portfolio-tech {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
    }

    .portfolio-role {
        font-size: 0.7rem;
        color: var(--accent-primary);
        font-weight: 800;
        background: rgba(99, 102, 241, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
        display: inline-block;
        width: fit-content;
    }
    
    .portfolio-buttons {
        opacity: 1;
        margin-top: 0.5rem;
        gap: 0.75rem;
    }

    .portfolio-btn {
        width: 100%;
        margin: 0;
    }
    
    .portfolio-img {
        width: 100%;
        height: 100%;
        opacity: 1;
        position: static;
        transform: none;
        object-fit: cover;
        filter: none;
    }

    .portfolio-logo {
        max-width: 60%;
        max-height: 60%;
        opacity: 1;
        position: static;
        transform: none;
        filter: none;
        z-index: 2;
    }

    .portfolio-placeholder {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(12, 13, 18, 1) 100%);
    }
}

/* Consolidating button base styles (placed before media query was better, but keeping flow) */
.portfolio-btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portfolio-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.portfolio-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.portfolio-btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--text-primary);
}

.portfolio-btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
    background: var(--bg-secondary);
}

.pricing-category {
    margin-bottom: var(--spacing-xl);
}

.pricing-category:last-child {
    margin-bottom: 0;
}

.pricing-category-title {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.pricing-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.pricing-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    padding-bottom: 5px; /* Space for the scrollbar so it doesn't clip the table */
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.pricing-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.pricing-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border-glass);
}

.pricing-table th:first-child {
    width: 65%;
}

.pricing-table th:last-child {
    text-align: right;
    width: 35%;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition-base);
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pricing-table tbody tr:hover .price-cell {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.pricing-table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.pricing-table .price-cell {
    text-align: right;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-heading);
}

.filaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}


.filament-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    text-align: center;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filament-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.05);
}


.filament-material {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.filament-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}


.filament-colors {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.filament-colors-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.filament-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.color-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-secondary);
}

.filament-status {
    margin-top: auto;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.filament-status.available {
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.1);
}

@media (max-width: 768px) {
    .pricing-table-wrapper {
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    
    .pricing-table {
        width: 100%;
        min-width: auto;
        display: block;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .pricing-table thead {
        display: none;
    }
    
    .pricing-table tbody {
        display: block;
    }
    
    .pricing-table tbody tr {
        display: block;
        background: var(--bg-surface);
        border: 1px solid var(--border-glass);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        backdrop-filter: blur(12px);
        box-shadow: var(--shadow-md);
    }
    
    .pricing-table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    .pricing-table tbody td {
        display: block;
        padding: 0.5rem 0;
        text-align: left !important;
        border: none;
    }
    
    .pricing-table tbody td:first-child {
        color: var(--text-primary);
        font-weight: 500;
        margin-bottom: 0.5rem;
    }
    
    .pricing-table .price-cell {
        color: var(--accent-blue) !important;
        font-weight: 700 !important;
        font-size: 1.125rem !important;
        text-align: left !important;
        white-space: normal;
        min-width: auto;
        margin-top: 0.25rem;
    }
    
    .pricing-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--accent-blue);
        transform: translateY(-2px);
    }
    
    .pricing-table tbody tr:hover .price-cell {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
        background: transparent;
    }
    
    .filaments-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-category-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process {
    background: var(--bg-primary);
}

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

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: var(--spacing-md);
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.timeline-title {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

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

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.form-captcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* hCaptcha dark theme styling */
.form-captcha iframe {
    border-radius: 8px;
}

/* Ensure hCaptcha matches site's dark theme */
.form-captcha .h-captcha {
    filter: brightness(0.9);
}

.form-result {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.form-result.success {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-result.error {
    opacity: 1;
    visibility: visible;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-details a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--accent-cyan);
}

.contact-social {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.social-link {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 500;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.contact-form {
    opacity: 0;
    transform: translateY(30px);
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-base);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: var(--bg-secondary);
    padding: 0 0.5rem;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-md);
}

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

.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu - Island Style Extension */
    .nav-menu {
        position: fixed;
        top: 85px; /* Below floating navbar */
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        max-width: 400px;
        flex-direction: column;
        background: rgba(12, 13, 18, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 2rem;
        border-radius: 24px;
        border: 1px solid var(--border-glass);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    /* Stats Layout update for Mobile */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        max-width: 400px; /* Prevent it from being too wide on tablets */
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: var(--spacing-md);
    }
    
    .stat-card:last-child {
        border-bottom: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ============================================
   GALLERY LIGHTBOX MODAL - REFINED 2026
   ============================================ */

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    backdrop-filter: blur(12px);
    animation: galleryFadeIn 0.3s ease;
}

@keyframes galleryFadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(12px);
    }
}

.gallery-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    background: var(--glass-background);
    border-radius: 24px;
    padding: var(--spacing-md);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    transform-origin: center;
    animation: galleryScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes galleryScaleUp {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.gallery-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all var(--transition-base);
    line-height: 1;
    z-index: 10;
}

.gallery-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.gallery-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-images {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
    min-height: 50vh;
    max-height: 75vh;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    border: 1px solid var(--border-subtle);
}

.gallery-current-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    padding: var(--spacing-md);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-current-image.loading {
    opacity: 0.5;
}

.gallery-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.gallery-prev {
    left: var(--spacing-sm);
}

.gallery-next {
    right: var(--spacing-sm);
}

.gallery-counter {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    display: inline-block;
    margin: 0 auto;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Gallery mobile responsive */
@media (max-width: 768px) {
    .gallery-modal {
        padding: 0;
    }
    
    .gallery-modal-content {
        padding: var(--spacing-sm);
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    .gallery-images {
        min-height: 40vh;
        max-height: 70vh;
        border-radius: 12px;
    }
    
    .gallery-current-image {
        max-height: 70vh;
        padding: var(--spacing-sm);
    }
    
    .gallery-nav {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        border-radius: 50%;
        background: rgba(11, 11, 15, 0.8);
        border-color: var(--accent-primary);
        z-index: 20;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
        padding-right: 50px; /* Space for close button */
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .gallery-counter {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}


/* ============================================
   MOBILE & RESPONSIVE FIXES
   ============================================ */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column-reverse; /* Copyright at bottom */
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: row; /* Keep links in row if possible, or wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links a {
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        min-width: 80px;
    }

    /* Fixed centering in consolidated query above */
}

/* ============================================
   NEW COMPONENTS - REDESIGN 2026
   ============================================ */

/* Skill Badges (About Section) */
.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: var(--spacing-md) 0;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.skill-badge:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* About CTA Text */
.about-cta-text {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
}

.about-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all var(--transition-base);
}

.about-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.about-link:hover {
    color: var(--accent-highlight);
}

.about-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* SVG Icon Wrapper Update */
.icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 14px;
    color: white;
    transition: all var(--transition-base);
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Refined Service Card Glow */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-4px);
}

.service-card::before {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 60%);
}

.service-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

/* Refined Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Refined Buttons */
.btn-primary::before {
    background: var(--gradient-primary);
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    letter-spacing: 0;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Refined Portfolio Cards */
.portfolio-item:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Refined Timeline */
.timeline-number {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Gallery Nav Refinement */
.gallery-nav:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-skills {
        justify-content: center;
    }
    
    .skill-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}
