/**
 * Copyright © 2026 KCOH Software Inc. All Rights Reserved.
 *
 * This software and associated documentation files (the "Software")
 * are proprietary and confidential. Unauthorized copying, modification,
 * distribution, or use of this Software, via any medium, is strictly prohibited.
 *
 * For licensing inquiries, contact: inquiries@kcoh.ca
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent white flash on load/reload — background must be on html, not just body */
html {
    background-color: #0a0f1a;
}

/* Prevent layout shift during font load */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero availability notice responsive styles */
@media (max-width: 768px) {
    .hero-availability-notice {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

:root {
    --primary-color: #c9a84c;
    --primary-dark: #b8943e;
    --primary-light: #c9a84c;
    --secondary-color: #d4af57;
    --accent-teal: #06b6d4;
    --accent-cyan: #22d3ee;
    --accent-purple: #d4af57;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --gradient-start: #c9a84c;
    --gradient-mid: #d4af57;
    --gradient-end: #d4af57;
    --gradient-teal: #06b6d4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(201, 168, 76, 0.4);
    /* Contribution graph sizing tokens for consistent dimensions */
    --graph-box-size: 12px;
    --graph-box-gap: 4px;
    /* Animation timing */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme (Default) */
body.dark-theme,
body:not(.light-theme) {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-light: #111827;
    --bg-white: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    background-color: #0a0f1a;
    color: var(--text-primary);
}

body.dark-theme .navbar,
body:not(.light-theme) .navbar {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
}

body.dark-theme .hero-background,
body:not(.light-theme) .hero-background {
    opacity: 0.1;
}

body.dark-theme .footer,
body:not(.light-theme) .footer {
    background-color: #0a0f1a;
}

html {
    scroll-behavior: smooth;
    /* Improve mobile scrolling performance */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 100%;
    background-color: #0a0f1a;
}

/* ============================================
   ENHANCED ANIMATIONS & KEYFRAMES
   ============================================ */

/* Smooth fade-in animation for body */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from top */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient animation for backgrounds */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.3),
                    0 0 40px rgba(201, 168, 76, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(201, 168, 76, 0.5),
                    0 0 60px rgba(201, 168, 76, 0.3),
                    0 0 80px rgba(201, 168, 76, 0.2);
    }
}



/* Shimmer effect for text */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}



/* Body fade-in handled by loader removal, not CSS animation (prevents white flash on reload) */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #0a0f1a;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    /* Improve mobile scrolling performance */
    -webkit-overflow-scrolling: touch;
    /* Prevent scroll chaining on mobile */
    overscroll-behavior-y: none;
    width: 100%;
    max-width: 100vw;
    min-width: 100%;
}

/* Global background veil removed — uniform #0a0f1a everywhere */

@media (max-width: 1024px) {
    :root {
        --graph-box-size: 10px;
        --graph-box-gap: 3px;
    }
}

@media (max-width: 640px) {
    :root {
        --graph-box-size: 9px;
        --graph-box-gap: 2px;
    }
}

/* Ensure all images and media are responsive */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Removed body overlays for consistent background */

body.loading { overflow: hidden; }
body.ready { overflow: auto; }

body.light-theme {
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Unified section background - all sections use same background */
section {
    position: relative;
    background-color: #0a0f1a;
    z-index: 1;
}

.hero,
.services,
.portfolio,
.technologies,
.testimonials,
.faq,
.about,
.contact,
.cta,
.code-showcase,
.terminal-portfolio,
.github-activity {
    background-color: #0a0f1a;
}

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 20px rgba(201, 168, 76, 0.2),
        0 8px 40px rgba(201, 168, 76, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000 !important;
    transition: transform 0.3s ease-in-out, background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    will-change: transform;
}

/* Navbar scroll effect removed - navbar stays fixed and consistent */

.nav-wrapper {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
    flex-wrap: nowrap;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-shrink: 0;
    min-width: 0; /* Allow flex items to shrink if needed */
}

.nav-left .nav-cta-btn {
    flex-shrink: 0; /* Prevent button from shrinking */
}

.nav-wrapper > * {
    flex-shrink: 0;
}

.nav-menu {
    flex: 1;
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, #c9a84c 0%, #d4af57 50%, #d4af57 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    border-radius: 0.625rem;
    border: none;
    box-shadow: 
        0 4px 14px rgba(201, 168, 76, 0.4),
        0 2px 4px rgba(201, 168, 76, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 40px;
}

.nav-cta-btn::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.5s ease;
}

.nav-cta-btn:hover::before {
    left: 100%;
}

.nav-cta-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.nav-cta-btn span {
    position: relative;
    z-index: 1;
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(201, 168, 76, 0.5),
        0 4px 8px rgba(201, 168, 76, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #b8943e 0%, #c9a84c 50%, #d4af57 100%);
}

.nav-cta-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(201, 168, 76, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-cta-btn:focus {
    outline: 2px solid rgba(201, 168, 76, 0.5);
    outline-offset: 2px;
}

/* Case Studies */
.case-studies {
    padding: 6rem 0;
    background-color: #0a0f1a;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.case-study-card {
    --card-accent: #d4af57;
    --card-accent-rgb: 167, 139, 250;
    --card-glow: rgba(201, 168, 76, 0.25);
    position: relative;
    background: rgba(17, 24, 39, 0.85);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 2px solid var(--card-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth),
                border-color 0.3s var(--ease-smooth);
    backdrop-filter: blur(12px);
}

/* Per-card color theming via :has() */
.case-study-card:has(.case-badge.purple) {
    --card-accent: #d4af57;
    --card-accent-rgb: 167, 139, 250;
    --card-glow: rgba(201, 168, 76, 0.25);
}

.case-study-card:has(.case-badge.blue) {
    --card-accent: #93c5fd;
    --card-accent-rgb: 147, 197, 253;
    --card-glow: rgba(147, 197, 253, 0.25);
}

.case-study-card:has(.case-badge.green) {
    --card-accent: #6ee7b7;
    --card-accent-rgb: 110, 231, 183;
    --card-glow: rgba(110, 231, 183, 0.25);
}

.case-study-card:has(.case-badge.teal) {
    --card-accent: #67e8f9;
    --card-accent-rgb: 103, 232, 249;
    --card-glow: rgba(103, 232, 249, 0.25);
}

.case-study-card:has(.case-badge.orange) {
    --card-accent: #fdba74;
    --card-accent-rgb: 253, 186, 116;
    --card-glow: rgba(253, 186, 116, 0.25);
}

.case-study-card:has(.case-badge.cyan) {
    --card-accent: #a5f3fc;
    --card-accent-rgb: 165, 243, 252;
    --card-glow: rgba(165, 243, 252, 0.25);
}

.case-study-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    border-radius: 16px;
}

.case-study-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 0%, rgba(var(--card-accent-rgb), 0.12), transparent 50%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
                0 0 30px var(--card-glow),
                0 0 0 1px rgba(var(--card-accent-rgb), 0.2);
    border-color: rgba(var(--card-accent-rgb), 0.15);
    border-top-color: var(--card-accent);
}

.case-study-card:hover::after {
    opacity: 1;
}

.case-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-badge.purple {
    background: rgba(201, 168, 76, 0.12);
    color: #d4af57;
}

.case-badge.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.case-badge.green {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

.case-badge.teal {
    background: rgba(6, 182, 212, 0.12);
    color: #67e8f9;
}

.case-badge.orange {
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
}

.case-badge.cyan {
    background: rgba(34, 211, 238, 0.12);
    color: #a5f3fc;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--card-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.case-link::after {
    content: '\2192';
    transition: translate 0.2s ease;
    translate: 0 0;
}

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

.case-link:hover::after {
    translate: 4px 0;
}

.section-note-text {
    font-style: italic;
    color: #9ca3af;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 1rem 0 0.5rem;
}

.case-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #e5e7eb;
    margin-top: 1.5rem;
}

.case-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-stat:first-child {
    padding-top: 0;
}

.case-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.case-stat-label {
    color: var(--card-accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.case-stat-value {
    font-size: 0.925rem;
    line-height: 1.4;
    color: #d1d5db;
}

/* Case studies responsive */
@media (max-width: 768px) {
    .case-studies {
        padding: 4rem 0;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .case-study-card {
        padding: 1.5rem;
    }

    .case-title {
        font-size: 1.15rem;
    }

    .case-stat-value {
        font-size: 0.875rem;
    }
}

.pricing-anchors {
    padding: 5rem 0;
    background-color: #0a0f1a;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card.featured {
    border: 2px solid rgba(201, 168, 76, 0.4);
}

.pricing-pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.35);
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0;
    color: #9ca3af;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af57;
}

.pricing-card p {
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    color: #9ca3af;
    font-size: 0.875rem;
    display: grid;
    gap: 0.5rem;
}

.pricing-features li {
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li span:first-child {
    position: absolute;
    left: 0;
    color: #d4af57;
}

.hero-proof-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.proof-link {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-weight: 600;
}

.section-note {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    color: #6b7280;
    font-size: 0.95rem;
}

.section-note a {
    color: #d4af57;
    text-decoration: underline;
}

/* Sections now visible — previously hidden */

.section-callout {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: #9ca3af;
    text-align: center;
}

.service-card.accent {
    border: 2px solid rgba(201, 168, 76, 0.3);
}

/* Process Section */
.process-section {
    padding: 5rem 0;
    background-color: #0a0f1a;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: rgba(17, 24, 39, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all var(--transition-normal) var(--ease-smooth);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(201, 168, 76, 0.2);
}

.process-step:hover::before {
    opacity: 1;
}

.process-step .step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #c9a84c, #d4af57, #d4af57);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4),
                0 0 20px rgba(201, 168, 76, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.process-step .step-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity var(--transition-normal);
}

.process-step:hover .step-number {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.6),
                0 0 40px rgba(201, 168, 76, 0.4);
}

.process-step:hover .step-number::after {
    opacity: 0.8;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.process-step p {
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.process-step ul {
    color: #9ca3af;
    font-size: 0.875rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: grid;
    gap: 0.5rem;
}

.process-step ul li {
    padding-left: 1.5rem;
    position: relative;
}

.process-step ul li span:first-child {
    position: absolute;
    left: 0;
    color: #d4af57;
}

/* Logo Redesign - Clean with Border Effects */
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 1;
    min-width: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.1));
    border: 2px solid transparent;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-text-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 168, 76, 0.1), transparent);
    animation: logoShine 3s linear infinite;
    pointer-events: none;
}

@keyframes logoPulse {
    0%, 100% {
        border-color: rgba(201, 168, 76, 0.3);
        box-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
    }
    50% {
        border-color: rgba(201, 168, 76, 0.5);
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.4), 0 0 30px rgba(201, 168, 76, 0.2);
    }
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-transform: uppercase;
    animation: logoTextPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes logoTextPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.logo-subtext {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

.logo-subtext::after,
.logo-subtext::before {
    display: none !important;
    content: none !important;
}

/* Logo hover effects */
.logo:hover .logo-text-container {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.5), 0 0 40px rgba(201, 168, 76, 0.3);
    border-color: rgba(201, 168, 76, 0.6);
}

.logo:hover .logo-text {
    background: linear-gradient(135deg, #d4af57, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.3);
}

/* Nav menu styles moved above - centered positioning */

/* Navigation Controls Group */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.lang-toggle,
.search-toggle,
.palette-toggle,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(10, 15, 26, 0.15);
    position: relative;
    overflow: hidden;
}

.lang-toggle::before,
.search-toggle::before,
.palette-toggle::before,
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.lang-toggle:hover::before,
.search-toggle:hover::before,
.palette-toggle:hover::before,
.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.search-toggle:hover,
.palette-toggle:hover,
.theme-toggle:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3);
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.1);
}

.search-toggle:active,
.palette-toggle:active,
.theme-toggle:active {
    transform: translateY(0) scale(0.98);
}

.search-toggle svg,
.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.search-toggle:hover svg,
.theme-toggle:hover svg {
    transform: scale(1.02);
}

.theme-toggle:hover .sun-icon,
.theme-toggle:hover .moon-icon {
    transform: rotate(180deg);
}

.palette-icon {
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.4rem 0.8rem;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.375rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(201, 168, 76, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .palette-toggle {
        display: none;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.6rem 1.3rem;
    border-radius: 0.65rem;
    background: transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    transform: scaleX(0);
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
    z-index: -1;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    color: #ffffff;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 0.6rem 1.3rem;
    border-radius: 0.65rem;
}

.nav-link.active::before {
    transform: scaleX(1);
    height: 3px;
}

.nav-link.active::after {
    opacity: 1;
}

.nav-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-link:hover .nav-icon {
    transform: scale(1.02);
}

.nav-link.active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.5));
}

/* Focus states for accessibility */
.nav-link:focus-visible,
.search-toggle:focus-visible,
.palette-toggle:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.6);
    outline-offset: 2px;
}

.nav-link:focus-visible {
    background: rgba(201, 168, 76, 0.15);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    color: var(--text-primary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-theme .theme-toggle .sun-icon,
body:not(.light-theme) .theme-toggle .sun-icon {
    display: none;
}

body.dark-theme .theme-toggle .moon-icon,
body:not(.light-theme) .theme-toggle .moon-icon {
    display: block;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #d4af57, #d4af57);
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

/* Enhanced Navbar Glassmorphism */
.navbar {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 
        0 4px 20px rgba(201, 168, 76, 0.2),
        0 8px 40px rgba(201, 168, 76, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    box-shadow: 
        0 8px 32px rgba(201, 168, 76, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Search Bar */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.search-container.active {
    transform: translateY(0);
}

.search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

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

.search-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-radius: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.4);
    transform: rotate(90deg);
}

.search-close svg {
    width: 20px;
    height: 20px;
}

.search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-results-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.search-results-item:hover,
.search-results-item:focus {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateX(4px);
    outline: 2px solid rgba(201, 168, 76, 0.3);
    outline-offset: -2px;
}

.search-results-item mark {
    background: rgba(201, 168, 76, 0.3);
    color: #ffffff;
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.search-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.search-empty div:first-child {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-empty div:nth-child(2) {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: calc(120px + 4rem);
    padding-bottom: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0f1a;
    opacity: 0.9;
    z-index: -1;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.hero-background::before {
    content: none;
}

.hero-background::after {
    content: none;
}



.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease forwards;
    position: relative;
    z-index: 1;
}

/* Ensure consistent animation across all platforms */
@supports (animation: fadeInUp) {
    .hero-content {
        animation: fadeInUp 1s ease 0.2s, slideInScale 1.2s ease 0.2s;
        animation-fill-mode: both;
    }
}

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

@keyframes slideInScale {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg,
        var(--gradient-start) 0%,
        var(--gradient-mid) 50%,
        var(--gradient-end) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg,
        var(--gradient-start),
        var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin: 2rem auto 3rem;
    line-height: 1.8;
    max-width: 750px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    row-gap: 0.75rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 0 2rem;
    flex-wrap: wrap;
}

.dev-badge {
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0 14px rgba(201, 168, 76, 0.25);
    animation: badgePulse 8s ease-in-out infinite, badgeFloat 9s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding-inline: 1.5rem;
    line-height: 1.2;
}

.apple-logo-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.code-marquee {
    margin: 1rem auto 0;
    max-width: 960px;
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(10, 15, 26, 0.3), 0 0 18px rgba(201, 168, 76, 0.25);
    backdrop-filter: blur(4px);
}

.code-marquee::before,
.code-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 1;
}

.code-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 15, 26, 1) 0%, rgba(10, 15, 26, 0) 100%);
}

.code-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(10, 15, 26, 1) 0%, rgba(10, 15, 26, 0) 100%);
}

.code-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    animation: codeMarquee 26s linear infinite;
}

.code-marquee span {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #e8e6e1;
    text-shadow: 0 0 15px rgba(201, 168, 76, 0.6);
}

.code-marquee:hover .code-marquee-track {
    animation-play-state: paused;
}

.minimal-mode .code-marquee {
    display: none;
}

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

@media (max-width: 768px) {
    .code-marquee {
        display: none;
    }
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:focus-visible,
.palette-toggle:focus-visible,
.minimal-toggle:focus-visible,
.code-toggle:focus-visible {
    outline: 2px solid var(--gradient-start);
    outline-offset: 2px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(10, 15, 26, 0.15);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(10, 15, 26, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    background-size: 200% 200%;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4),
                0 2px 8px rgba(201, 168, 76, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: gradientShift 3s ease infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-smooth), height 0.6s var(--ease-smooth);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.6),
                0 4px 12px rgba(201, 168, 76, 0.4),
                0 0 40px rgba(201, 168, 76, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast) var(--ease-smooth);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

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



.btn-secondary {
    background: rgba(10, 15, 26, 0.5);
    color: #ffffff;
    border: 2px solid rgba(201, 168, 76, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal) var(--ease-smooth);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    border-color: var(--gradient-end);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.4),
                0 0 30px rgba(201, 168, 76, 0.2);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}



.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
    clear: both;
    overflow: visible;
    isolation: isolate;
}

section:first-of-type {
    margin-top: 0;
}

/* Ensure hero is full height and services starts after it */
.hero {
    min-height: calc(100vh - 80px);
}

.services {
    margin-top: 0;
}

/* Transforms restored — hover and scroll animations now work */

/* Trust Bridge Section */
.trust-bridge {
    background-color: #0a0f1a;
    padding: 4rem 0;
}

.trust-bridge-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trust-bridge-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.trust-bridge-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.trust-bridge-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.trust-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #d4af57;
}

.trust-stat-label {
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Hero Availability Notice */
.hero-availability-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem auto 0;
    padding: 0.875rem 1.5rem;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    cursor: default;
}

/* Section titles — clean defaults */
.section-title.title-shimmer {
    color: var(--text-primary);
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
    animation: expandLine 0.8s ease forwards;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.section-title.title-shimmer::after {
    width: 60px;
    box-shadow: none;
}

/* Section title hover */
.section-title:hover {
    color: var(--primary-color);
}

.section-title::before,
.section-title::after {
    animation: none;
}



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

/* Services Section */
.services {
    background-color: #0a0f1a;
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 120px;
}

.services-page,
.portfolio-page {
    padding-top: 120px;
    padding-bottom: 3rem;
}

.about-page {
    padding-top: 120px;
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .services {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .services-page,
    .portfolio-page,
    .about-page {
        padding-top: 100px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .portfolio-item {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    /* Ensure section headers have proper spacing */
    .section-header {
        margin-bottom: 2rem;
        padding-top: 0;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(55, 65, 81, 0.5);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* Removed purple shimmer effect - using subtle border glow instead */

.service-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(31, 41, 55, 0.8);
    z-index: 10;
    position: relative;
    will-change: transform;
}

.service-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-features li {
    background: var(--bg-light);
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(55, 65, 81, 0.5);
    position: relative;
}

/* Removed purple overlay - using subtle border glow instead */

.portfolio-item {
    transform: none;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
}

.portfolio-item:hover {
    transform: none;
    box-shadow: 
        0 8px 24px rgba(201, 168, 76, 0.3),
        0 0 0 1px rgba(201, 168, 76, 0.4),
        0 0 40px rgba(201, 168, 76, 0.15),
        inset 0 0 20px rgba(201, 168, 76, 0.05);
    border-color: rgba(201, 168, 76, 0.6);
    background: rgba(31, 41, 55, 0.85);
    z-index: 10;
    position: relative;
}

/* Removed purple overlay hover effect */

.portfolio-image {
    width: 100%;
    height: 250px;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Project-specific portfolio image backgrounds */
.portfolio-image-draftory {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(201, 168, 76, 0.15));
}

.portfolio-image-skyroa {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(45, 125, 210, 0.15));
}

.portfolio-image-skyroa::after {
    content: 'Skyroa';
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(74, 158, 255, 0.6);
    letter-spacing: 0.05em;
}

.portfolio-image-frostynow {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(0, 212, 255, 0.15));
}

.portfolio-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

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

.portfolio-placeholder {
    width: 80px;
    height: 80px;
    color: var(--text-primary);
    opacity: 0.5;
}

.portfolio-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--bg-dark);
    padding: 1rem;
    filter: saturate(1) contrast(1.02);
    transform: none;
    transition: filter 0.35s ease;
}

.portfolio-item:hover .portfolio-photo {
    transform: none;
    filter: saturate(1.05) contrast(1.05);
    padding: 1rem;
}

.portfolio-placeholder svg {
    width: 100%;
    height: 100%;
}

.app-store-link {
    display: inline-block;
    margin-top: 1rem;
}

.app-store-badge {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.45));
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.tag {
    background: var(--bg-light);
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* About Section - Modern Redesign */
.about-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   REDESIGNED ABOUT PAGE STYLES
   ============================================ */

/* Hero Section - Redesigned */
.about-hero-redesigned {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 3rem 0;
}

.about-hero-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-eyebrow-redesigned {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.about-title-redesigned {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.about-subtitle-redesigned {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0;
}

.about-stats-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.stat-item-redesigned {
    text-align: center;
}

.stat-number-redesigned {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.15;
    display: inline-block;
    padding-bottom: 4px;
    white-space: nowrap;
}

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

.about-highlights-redesigned {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.highlight-item-redesigned {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.highlight-item-redesigned svg {
    width: 18px;
    height: 18px;
    color: #c9a84c;
    flex-shrink: 0;
}

.highlight-item-redesigned:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}

/* Content Cards - Redesigned */
.about-content-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.about-card-redesigned {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02), rgba(10, 15, 26, 0)) ,
        linear-gradient(145deg, rgba(10, 15, 26, 0.92), rgba(22, 30, 55, 0.92));
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.about-card-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a84c, #d4af57, #d4af57);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card-redesigned:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 24px 60px rgba(201, 168, 76, 0.25);
}

.about-card-redesigned:hover::before {
    opacity: 1;
}

.about-card-featured {
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow:
        0 24px 60px rgba(201, 168, 76, 0.25),
        0 0 0 1px rgba(201, 168, 76, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), rgba(10, 15, 26, 0)) ,
        linear-gradient(145deg, rgba(10, 15, 26, 0.92), rgba(22, 30, 55, 0.92));
    position: relative;
}

.about-card-featured::before {
    opacity: 1;
    height: 4px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

.about-card-featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, #c9a84c, #d4af57, #d4af57, #c9a84c);
    background-size: 200% 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    opacity: 0.6;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-icon-featured {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.25));
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.card-icon-featured svg {
    color: #60a5fa;
    filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.5));
}

.card-header-redesigned {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon-redesigned {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.2));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card-icon-redesigned svg {
    width: 28px;
    height: 28px;
    color: #c9a84c;
}

.about-card-redesigned:hover .card-icon-redesigned {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.3));
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.card-header-redesigned h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

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

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

.card-list-redesigned li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.card-list-redesigned li svg {
    width: 20px;
    height: 20px;
    color: #c9a84c;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.metrics-grid-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
    padding: 2rem 1.5rem;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    backdrop-filter: blur(10px);
}

.metric-item-redesigned {
    text-align: center;
    padding: 0.5rem;
}

.metric-value-redesigned {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #c9a84c 50%, #d4af57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;
    padding-bottom: 3px;
}

.metric-label-redesigned {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    opacity: 0.9;
}

.card-cta-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

/* Approach Section - Redesigned */
.about-approach-redesigned {
    margin: 5rem 0;
    padding: 3rem 0;
}

.approach-header-redesigned {
    text-align: center;
    margin-bottom: 3rem;
}

.approach-header-redesigned h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.approach-header-redesigned p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.approach-grid-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.approach-card-redesigned {
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.8), rgba(22, 30, 55, 0.8));
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.approach-card-redesigned:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 16px 40px rgba(201, 168, 76, 0.2);
}

.approach-icon-redesigned {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.15));
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.approach-icon-redesigned svg {
    width: 32px;
    height: 32px;
    color: #c9a84c;
}

.approach-card-redesigned:hover .approach-icon-redesigned {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.25));
}

.approach-label-redesigned {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.approach-card-redesigned h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

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

/* CTA Section - Redesigned */
.about-cta-redesigned {
    margin: 5rem 0 3rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.1));
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta-redesigned::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.cta-content-redesigned {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.cta-content-redesigned h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content-redesigned p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-redesigned {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-hero-redesigned {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }

    .about-title-redesigned {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .about-subtitle-redesigned {
        font-size: 1.1rem;
    }

    .about-stats-redesigned {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-content-redesigned {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card-redesigned {
        padding: 2rem;
    }

    .metrics-grid-redesigned {
        grid-template-columns: 1fr;
    }

    .approach-grid-redesigned {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cta-redesigned {
        padding: 3rem 2rem;
    }

    .cta-content-redesigned h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .about-hero-redesigned {
        margin-bottom: 2rem;
    }

    .about-highlights-redesigned {
        flex-direction: column;
    }

    .highlight-item-redesigned {
        width: 100%;
        justify-content: center;
    }

    .about-approach-redesigned {
        margin: 3rem 0;
        padding: 2rem 0;
    }

    .approach-header-redesigned h2 {
        font-size: 2rem;
    }

    .approach-grid-redesigned {
        grid-template-columns: 1fr;
    }

    .about-cta-redesigned {
        padding: 2.5rem 1.5rem;
    }

    .cta-content-redesigned h2 {
        font-size: 1.5rem;
    }

    .cta-buttons-redesigned {
        flex-direction: column;
    }

    .cta-buttons-redesigned .btn {
        width: 100%;
    }
}

/* Modern Hero with Split Layout */
.about-hero-modern {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-hero-content .eyebrow {
    margin-bottom: 0.5rem;
}

.about-hero-content h1 {
    font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero-description {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.1rem;
    max-width: 600px;
}

.about-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.about-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.about-chips .chip svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.about-chips .chip:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}

.about-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-stats-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.stat-preview-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.95), rgba(22, 30, 55, 0.95));
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-preview-item:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 12px 48px rgba(201, 168, 76, 0.2);
}

.stat-preview-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Modern Grid Layout */
.about-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.about-card-modern {
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.95), rgba(22, 30, 55, 0.95));
    border: 1px solid rgba(201, 168, 76, 0.18);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.about-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #d4af57, #d4af57);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 24px 60px rgba(201, 168, 76, 0.25);
}

.about-card-modern:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.2));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.about-card-icon svg {
    width: 28px;
    height: 28px;
    color: #c9a84c;
}

.about-card-modern:hover .about-card-icon {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.3));
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.about-card-modern h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.about-card-modern p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.about-list-modern {
    margin: 0.5rem 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-list-modern li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-list-modern li svg {
    width: 20px;
    height: 20px;
    color: #c9a84c;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.about-card-modern.highlight-modern {
    border: 1px solid rgba(201, 168, 76, 0.4);
    box-shadow: 0 24px 80px rgba(201, 168, 76, 0.2);
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.98), rgba(22, 30, 55, 0.98));
}

.about-card-modern.highlight-modern::before {
    opacity: 1;
}

/* Modern Metrics */
.about-metrics-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-modern {
    padding: 1.25rem;
    border-radius: 0.875rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.metric-modern:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-3px);
}

.metric-value-modern {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-value-modern.animated {
    opacity: 1;
}

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

/* Modern Mini Cards */
.about-cards-row-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.mini-card-modern {
    padding: 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.8), rgba(22, 30, 55, 0.8));
    border: 1px solid rgba(201, 168, 76, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mini-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(201, 168, 76, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-card-modern:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.15);
}

.mini-card-modern:hover::before {
    opacity: 1;
}

.mini-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mini-card-icon svg {
    width: 24px;
    height: 24px;
    color: #c9a84c;
}

.mini-card-modern:hover .mini-card-icon {
    transform: scale(1.02);
    background: rgba(201, 168, 76, 0.25);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.mini-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.mini-card-modern h4 {
    margin: 0.5rem 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.mini-card-modern p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Modern CTA Section */
.about-cta-modern {
    margin-top: 4rem;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.1));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.about-cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.about-cta-content {
    position: relative;
    z-index: 1;
}

.about-cta-modern h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.about-cta-modern p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-page {
    padding-top: 120px;
    padding-bottom: 3rem;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.contact-hero {
    max-width: 840px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    padding: 0 1rem;
}

.contact-hero h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
    margin: 0.5rem 0 0.75rem 0;
}

.contact-hero p {
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 680px;
    line-height: 1.7;
}

.contact-chips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.chip {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-size: 0.95rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.05fr 1.4fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card,
.availability-card,
.contact-form-card {
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.92), rgba(22, 30, 55, 0.9));
    border: 1px solid rgba(201, 168, 76, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 1.1rem;
    padding: 1.75rem;
    overflow: visible;
}

.contact-card-header h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.4rem;
}

.contact-card-header p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0 1.25rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.contact-method-text .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ghost-btn {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--text-primary);
}

.ghost-btn:hover {
    background: rgba(201, 168, 76, 0.12);
}

.contact-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-pill {
    padding: 0.4rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.availability-card {
    padding: 1.5rem;
}

.availability-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.availability-value {
    margin: 0.2rem 0 0 0;
    color: var(--text-primary);
    font-weight: 600;
}

.availability-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 0.75rem;
    font-weight: 600;
}

.availability-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.availability-stats .stat {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.availability-stats .label {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .contact-icon {
    order: 1;
}

.contact-item .contact-text {
    order: 2;
    width: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.form-intro {
    margin: 0 0 1.5rem 0;
    padding: 0;
    background: transparent;
    border: none;
    order: 1;
}

.form-intro h3 {
    margin-bottom: 0.5rem;
}

.form-intro h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-intro p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.contact-form-card .contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    order: 2;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    order: 1;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.required-asterisk {
    color: #ef4444;
    font-weight: 600;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    order: 2;
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d1d5db' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group select option {
    background: var(--bg-white);
    color: var(--text-primary);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.contact-form-card .contact-form {
    margin-top: 0.5rem;
}

.contact-newsletter {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(145deg, rgba(10, 15, 26, 0.95), rgba(22, 30, 55, 0.95));
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
}

.contact-newsletter > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-newsletter h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.contact-newsletter p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.about-page .section-header {
    display: none;
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-page,
    .services-page,
    .portfolio-page,
    .about-page {
        padding-top: 110px;
    }

    /* About page modern sections - mobile responsive */
    .about-hero-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .about-hero-content h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

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

    .about-chips {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-chips .chip {
        width: 100%;
        justify-content: center;
    }

    .about-stats-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-preview-item {
        padding: 1.5rem 1rem;
    }

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

    .about-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .about-card-modern {
        padding: 1.5rem;
    }

    .about-card-modern h3 {
        font-size: 1.25rem;
    }

    .about-metrics-modern {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .metric-modern {
        padding: 1rem;
    }

    .metric-value-modern {
        font-size: 1.75rem;
    }

    .about-cards-row-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .mini-card-modern {
        padding: 1.5rem;
    }

    .about-cta-modern {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .about-cta-modern h3 {
        font-size: 1.5rem;
    }

    .about-cta-modern p {
        font-size: 0.95rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .contact-page {
        padding-top: 110px;
        padding-bottom: 2rem;
    }

    .contact-hero {
        text-align: left;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .contact-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .contact-hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .contact-chips {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .chip {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    .contact-layout {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-column {
        gap: 1.25rem;
    }

    .contact-card,
    .availability-card,
    .contact-form-card {
        padding: 1.25rem;
        border-radius: 0.875rem;
    }

    .contact-card-header h3 {
        font-size: 1.25rem;
    }

    .contact-card-header p {
        font-size: 0.9rem;
    }

    .contact-methods {
        gap: 1rem;
        margin: 1.25rem 0 1rem 0;
    }

    .contact-method {
        gap: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-method-text {
        font-size: 0.9rem;
    }

    .contact-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }

    .contact-meta {
        margin-top: 0.875rem;
        gap: 0.4rem;
    }

    .meta-pill {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
    }

    .availability-card {
        padding: 1.25rem;
    }

    .availability-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .availability-stats {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .form-intro {
        margin-bottom: 1.25rem;
    }

    .form-intro h3 {
        font-size: 1.25rem;
    }

    .form-intro p {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .contact-newsletter {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .contact-newsletter > div {
        align-items: center;
        text-align: center;
    }

    .contact-newsletter h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .contact-newsletter p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form Messages */
.form-message {
    padding: 0;
    border-radius: 0.75rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideDownFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.form-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    animation: scaleIn 0.3s ease 0.1s both;
}

.form-message-text {
    flex: 1;
    line-height: 1.5;
}

.form-message-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.form-message-success .form-message-icon {
    color: #10b981;
}

.form-message-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.form-message-error .form-message-icon {
    color: #ef4444;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

body.dark-theme .form-message-success,
body:not(.light-theme) .form-message-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

body.dark-theme .form-message-success .form-message-icon,
body:not(.light-theme) .form-message-success .form-message-icon {
    color: #6ee7b7;
}

body.dark-theme .form-message-error,
body:not(.light-theme) .form-message-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

body.dark-theme .form-message-error .form-message-icon,
body:not(.light-theme) .form-message-error .form-message-icon {
    color: #fca5a5;
}

/* Newsletter form specific message styling */
.newsletter-form .form-message {
    margin: 1.5rem 0 0 0;
    max-width: 100%;
}

@media (min-width: 640px) {
    .newsletter-form .form-message {
        margin: 1rem 0 0 0;
    }
}

/* Footer */
/* Footer - Modern Redesign */
.footer {
    background: linear-gradient(180deg, #0a0f1a 0%, #0a0f1a 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 4rem;
    margin-bottom: 0; /* No extra space - chat widget and back-to-top are fixed position */
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Footer responsive - keep horizontal layout on larger screens */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

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

/* Only stack vertically on very small screens */
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-section ul li {
    margin: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
    transition: height 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(6px);
    padding-left: 0.5rem;
}

.footer-section ul li a:hover::before {
    height: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
}

.footer-bottom p {
    margin: 0;
    letter-spacing: 0.02em;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: rgba(10, 15, 26, 0.9);
    color: white;
    border: 2px solid rgba(201, 168, 76, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(201, 168, 76, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal) var(--ease-smooth);
    z-index: 1001;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        var(--gradient-start) 0deg,
        var(--gradient-end) calc(var(--scroll-progress, 0) * 3.6deg),
        transparent calc(var(--scroll-progress, 0) * 3.6deg));
    mask: radial-gradient(circle,
        transparent calc(50% - 2px),
        black calc(50% - 2px));
    -webkit-mask: radial-gradient(circle,
        transparent calc(50% - 2px),
        black calc(50% - 2px));
    transition: transform 0.3s;
}

.back-to-top::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

/* Back-to-top is on left side, no adjustment needed when chat box is open */

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top svg {
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.back-to-top:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: var(--gradient-end);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(201, 168, 76, 0.5);
}

.back-to-top:hover::before {
    transform: rotate(180deg);
}

.back-to-top:hover::after {
    opacity: 0.3;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1);
}

/* Scroll animation utility classes */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth),
                transform 0.6s var(--ease-smooth);
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s var(--ease-smooth),
                transform 0.5s var(--ease-smooth);
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s var(--ease-smooth),
                transform 0.6s var(--ease-smooth);
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s var(--ease-smooth),
                transform 0.6s var(--ease-smooth);
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(201, 168, 76, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 1rem 1rem 0 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: white;
    color: var(--primary-color);
}

/* Technologies Section */
.technologies {
    background-color: #0a0f1a;
    padding: 80px 0;
}

.technologies-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.tech-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tech-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

.tech-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* Testimonials Section */
.testimonials {
    background-color: #0a0f1a;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: height 0.4s ease;
}

.testimonial-card:hover::before {
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    z-index: 10;
    position: relative;
}

.testimonial-quote {
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-quote {
    opacity: 0.6;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-quote {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-quote svg {
    width: 100%;
    height: 100%;
}

.testimonial-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Social Links */
/* Social Links - Footer */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

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

.social-link:active {
    transform: translateY(-1px) scale(1.02);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) !important;
    will-change: auto;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px) translateZ(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0) !important;
    will-change: auto;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px) translateZ(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0) !important;
    will-change: auto;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95) translateZ(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1) !important;
    will-change: auto;
}

/* Stagger animation for grid items */
.stagger-item {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0) !important;
    will-change: auto;
}



.floating {
    animation: floatUp 3s ease-in-out infinite;
}

/* Glow effect */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow:hover::after {
    opacity: 1;
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealText 0.6s ease forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for icons */
@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.pulse-icon {
    animation: pulseIcon 2s ease-in-out infinite;
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* FAQ Section - Modern Redesign */
.faq {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateY(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 
        0 10px 30px rgba(201, 168, 76, 0.15),
        0 0 40px rgba(201, 168, 76, 0.1);
}

.faq-item.active {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 
        0 15px 40px rgba(201, 168, 76, 0.2),
        0 0 60px rgba(201, 168, 76, 0.15);
    background: rgba(31, 41, 55, 0.8);
}

.faq-item.active::before {
    transform: scaleX(1);
}

.faq-question {
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    gap: 1.5rem;
}

.faq-question::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.faq-item.active .faq-question::after {
    transform: scaleY(1);
}

.faq-question:hover {
    background: rgba(201, 168, 76, 0.05);
}

.faq-item.active .faq-question {
    background: rgba(201, 168, 76, 0.08);
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
}

.faq-icon::before {
    content: '+';
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 2rem;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
    padding-top: 0.5rem;
}

/* FAQ Grid Layout for larger screens */
@media (min-width: 1024px) {
    .faq-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .faq-item:nth-child(odd) {
        animation-delay: 0.1s;
    }
    
    .faq-item:nth-child(even) {
        animation-delay: 0.2s;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-container {
        gap: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        max-height: 200px;
        padding: 0 1.25rem 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Newsletter Section */
.newsletter-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #0a0f1a;
    border-radius: 1rem;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.newsletter-section > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
}

.newsletter-input-group input {
    flex: 1;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(10, 15, 26, 0.8);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

@media (min-width: 640px) {
    .newsletter-input-group {
        flex-direction: row;
        align-items: stretch;
    }
    
    .newsletter-input-group input {
        min-width: 250px;
    }
    
    .newsletter-input-group .btn {
        flex-shrink: 0;
        min-width: 140px;
    }
}

/* ============================================
   MODERN DEVELOPER ENHANCEMENTS
   ============================================ */

/* Neon Glow Effect for Buttons */
.btn-primary {
    position: relative;
    box-shadow:
        0 0 20px rgba(201, 168, 76, 0.3),
        0 0 40px rgba(201, 168, 76, 0.2),
        inset 0 0 20px rgba(201, 168, 76, 0.1);
}

.btn-primary:hover {
    box-shadow:
        0 0 30px rgba(201, 168, 76, 0.5),
        0 0 60px rgba(201, 168, 76, 0.3),
        0 0 90px rgba(201, 168, 76, 0.2),
        inset 0 0 30px rgba(201, 168, 76, 0.2);
    animation: neonPulse 1.5s ease-in-out infinite;
}



/* Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(201, 168, 76, 0.03) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 10s linear infinite;
    opacity: 0.05;
}

/* Remove scanline from featured project banner */
.featured-project-banner {
    position: relative;
    z-index: 2; /* Above body::before scanline */
}

.featured-project-banner * {
    position: relative;
    z-index: 1;
}



/* Code Block Style Enhancement */
.code-typing {
    font-family: 'Fira Code', 'Courier New', monospace !important;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

/* Enhanced Service Cards with Gradient Border */
/* Removed duplicate service-card gradient background */

/* Removed purple gradient border overlay */

/* Cyber Grid Background */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Remove grid lines from featured project banner */
.featured-project-banner::after,
.featured-project-banner .container::before,
.featured-project-banner .container::after,
.featured-visual::before,
.featured-visual::after,
.featured-mockup::before,
.featured-mockup::after,
.phone-frame::after,
.phone-screen::before,
.phone-screen::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}



/* Glowing Text Effect */
.gradient-text {
    text-shadow:
        0 0 20px rgba(201, 168, 76, 0.5),
        0 0 40px rgba(201, 168, 76, 0.3);
    animation: textGlow 3s ease-in-out infinite;
}



/* Enhanced Portfolio Hover */
/* Removed shake effect - using glow instead */

/* Tech Progress Bar Glow */
.tech-progress {
    box-shadow:
        0 0 10px rgba(201, 168, 76, 0.5),
        0 0 20px rgba(201, 168, 76, 0.3);
}

/* Testimonial Card Enhancement */
.testimonial-card {
    background: linear-gradient(145deg, var(--bg-white), rgba(201, 168, 76, 0.01));
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg,
        rgba(201, 168, 76, 0.1),
        transparent,
        rgba(201, 168, 76, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* Navbar Glow - Merged into main navbar definition */

/* Enhanced Section Headers */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
}

/* Scroll Indicator Glow */
.scroll-indicator {
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.5));
}

/* Enhanced Back to Top Button */
.back-to-top {
    box-shadow:
        0 0 20px rgba(201, 168, 76, 0.5),
        0 0 40px rgba(201, 168, 76, 0.3);
}

.back-to-top:hover {
    box-shadow:
        0 0 30px rgba(201, 168, 76, 0.7),
        0 0 60px rgba(201, 168, 76, 0.5);
}

/* Loading Spinner Enhancement */
.loader-spinner {
    box-shadow:
        0 0 20px rgba(201, 168, 76, 0.5),
        0 0 40px rgba(201, 168, 76, 0.3);
}

/* Contact Icon Glow */
.contact-icon {
    box-shadow:
        0 0 15px rgba(201, 168, 76, 0.3),
        0 0 30px rgba(201, 168, 76, 0.2);
}

/* Form Input Focus Glow */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow:
        0 0 0 3px rgba(201, 168, 76, 0.1),
        0 0 20px rgba(201, 168, 76, 0.2),
        0 0 40px rgba(201, 168, 76, 0.1);
}

/* Service Icon Pulse */
.service-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(201, 168, 76, 0.3),
            0 0 20px rgba(201, 168, 76, 0.2);
    }
    50% {
        box-shadow:
            0 0 20px rgba(201, 168, 76, 0.5),
            0 0 40px rgba(201, 168, 76, 0.3),
            0 0 60px rgba(201, 168, 76, 0.2);
    }
}

/* FAQ Active State Glow */
.faq-item.active {
    box-shadow:
        0 0 20px rgba(201, 168, 76, 0.1),
        0 0 40px rgba(201, 168, 76, 0.05);
}

/* Theme Toggle Glow */
.theme-toggle:hover {
    box-shadow:
        0 0 15px rgba(201, 168, 76, 0.5),
        0 0 30px rgba(201, 168, 76, 0.3);
}

/* Add Data Attributes for Better Effects */
.section-title {
    letter-spacing: 1px;
}

/* Smooth Transitions - Optimized for Performance */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimize default transition durations for snappier feel */
* {
    transition-duration: 0.2s;
}

/* Longer transitions only for specific elements */
.service-card,
.portfolio-item,
.testimonial-card {
    transition-duration: 0.3s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 100%;
    background-color: #0a0f1a;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Performance Optimization - Use GPU acceleration strategically */
.service-card,
.portfolio-item,
.testimonial-card,
.btn,
.dev-badge,
.hero-content,
.tech-icon {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Only set will-change when elements are animating */
.service-card:hover,
.portfolio-item:hover,
.testimonial-card:hover,
.btn:hover,
.dev-badge:hover {
    will-change: transform;
}

.service-card,
.portfolio-item,
.testimonial-card {
    will-change: auto;
}

/* Remove will-change after animation completes */
.service-card.visible,
.portfolio-item.visible,
.testimonial-card.visible {
    will-change: auto;
}

/* Mobile-specific performance optimizations */
@media (max-width: 768px) {
    .service-card,
    .portfolio-item,
    .testimonial-card,
    .btn,
    .dev-badge {
        will-change: auto;
        transform: none;
    }

    /* Only use GPU for active animations */
    .dev-badge,
    .tech-icon {
        transform: translateZ(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 6px;
    box-shadow:
        0 0 10px rgba(201, 168, 76, 0.5),
        0 0 20px rgba(201, 168, 76, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    box-shadow:
        0 0 15px rgba(201, 168, 76, 0.7),
        0 0 30px rgba(201, 168, 76, 0.5);
}

/* Selection Color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--text-primary);
}

.dev-badge:nth-child(1) {
    animation-delay: 0s;
}

.dev-badge:nth-child(2) {
    animation-delay: 0.5s;
}

.dev-badge:nth-child(3) {
    animation-delay: 1s;
}



.dev-badge:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 0 28px rgba(201, 168, 76, 0.55) !important;
    cursor: pointer;
}

.minimal-mode .dev-badge {
    animation: none;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}


/* Code Typing Box Positioning */
.code-typing {
    max-width: 360px !important;
    width: 100%;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    bottom: 40px !important;
    background: rgba(10, 15, 26, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
    box-shadow: 0 14px 36px rgba(10, 15, 26, 0.35), 0 0 18px rgba(201, 168, 76, 0.25) !important;
}

.code-toggle {
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
}

.minimal-mode .code-typing,
.minimal-mode .code-toggle {
    display: none !important;
}

.minimal-mode #matrix-rain,
.minimal-mode #circuit-board,
.minimal-mode #explosion-canvas,
.minimal-mode #trail-canvas,
.minimal-mode .ripple-wave,
.minimal-mode .magnetic-cursor,
.minimal-mode .cursor-ring {
    display: none !important;
}

@media (max-width: 768px) {
    .code-typing {
        bottom: 20px !important;
        left: 50% !important;
        transform: translate(-50%, 0) !important;
        width: calc(100% - 32px) !important;
        font-size: 0.75rem !important;
        padding: 1rem !important;
    }

}

/* Mobile Optimizations for Effects */
@media (max-width: 768px) {
    /* Reduce glow effects on mobile for performance */
    .btn-primary:hover {
        animation: none;
    }

    .service-icon {
        animation: none;
    }

    body::before {
        display: none;
    }

    .gradient-text {
        animation: none;
    }

    /* Hide interactive terminal on mobile */
    #interactive-terminal {
        display: none !important;
    }

    /* Adjust magnetic cursor for mobile */
    .magnetic-cursor,
    .cursor-ring {
        display: none !important;
    }

    /* Optimize animations for mobile - reduce intensity */
    .dev-badge {
        animation: badgePulse 10s ease-in-out infinite, badgeFloat 11s ease-in-out infinite;
    }

    .tech-icon {
        animation: float 6s ease-in-out infinite;
    }

    /* Reduce particle effects */
    .particles-canvas {
        opacity: 0.08;
    }

    /* Optimize transitions for mobile */
    * {
        transition-duration: 0.2s !important;
    }

    /* Ensure smooth responsive transitions */
    .hero-content,
    .section-header,
    .service-card,
    .portfolio-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Ensure touch targets are at least 44x44px */
    .btn,
    .nav-link,
    .dev-badge,
    .tech-icon {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(201, 168, 76, 0.2);
        tap-highlight-color: rgba(201, 168, 76, 0.2);
    }

    /* Optimize scroll performance */
    .hero,
    section {
        -webkit-overflow-scrolling: touch;
        will-change: scroll-position;
    }

    /* Ensure same animations on mobile - don't disable transforms */
    .hero-content {
        /* Keep animations but ensure they work smoothly */
        animation: fadeInUp 1s ease 0.2s, slideInScale 1.2s ease 0.2s;
        animation-fill-mode: both;
    }
    
    .terminal-prompt {
        animation: fadeInDown 0.8s ease 0.1s;
        animation-fill-mode: both;
    }

    /* Simplify hover states for touch */
    .service-card:active,
    .portfolio-item:active,
    .btn:active {
        transform: scale(0.98);
    }

/* Optimize contribution graph for mobile - FIX OVERFLOW */
    .contribution-graph {
        padding: 1rem;
        margin: 1rem 0;
        overflow: hidden;
    }

    .graph-header {
        margin-bottom: 1rem;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .graph-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .graph-grid-wrapper {
        min-width: 100%;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .graph-months {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
        display: none; /* Hide month labels on mobile to save space */
    }

    .graph-grid {
        gap: var(--graph-box-gap);
        padding: 0.5rem 0;
        width: max-content;
        min-width: max-content;
        display: grid;
        grid-template-columns: repeat(52, var(--graph-box-size));
        grid-template-rows: repeat(7, var(--graph-box-size));
    }

    .contribution-box {
        width: var(--graph-box-size);
        height: var(--graph-box-size);
        min-width: var(--graph-box-size);
        min-height: var(--graph-box-size);
        border-radius: 1px;
    }

    .contribution-box:hover {
        transform: scale(1.02);
    }

    .graph-stats {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0 0 0;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .graph-stat-item {
        padding: 0.5rem;
    }

    .stat-box {
        padding: 0.75rem;
    }

    .stat-number,
    .graph-stat-number {
        font-size: 1.25rem;
    }

    .stat-label,
    .graph-stat-label {
        font-size: 0.7rem;
    }

    /* Add scroll hint */
    .graph-container::after {
        content: '← Scroll →';
        position: absolute;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        color: var(--text-secondary);
        opacity: 0.7;
    }

    /* Better spacing for mobile sections - further reduced for compact layout */
    /* CRITICAL FIX: Force sections to be visible on mobile (disable scroll animations) */
    section {
        padding: 12px 0;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }

    .hero {
        padding-top: calc(80px + 1rem);
        padding-bottom: 20px;
        min-height: auto;
    }

    /* Reduce section header margins on mobile */
    /* Also force visibility for all animated elements */
    .section-header {
        margin-bottom: 1rem;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .fade-in,
    .service-card,
    .portfolio-item,
    .testimonial-card,
    .tech-category,
    .faq-item,
    .about-content,
    .contact-content {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
        transition: none !important;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Reduce container padding on mobile */
    .container {
        padding: 0 16px;
    }

    /* Compact hero content on mobile */
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-badges {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .dev-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .tech-stack-animation {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .tech-icon {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .code-stats {
        gap: 1rem;
        opacity: 1 !important;
        transform: translateY(0px) !important;
        transition: none !important;
    }

    .code-stat {
        gap: 0.25rem;
    }

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

    .stat-label {
        font-size: 0.7rem;
    }

    /* Compact grids on mobile - FORCE SINGLE COLUMN */
    .services-grid,
    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card,
    .portfolio-item {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Reduce tech section spacing - FORCE SINGLE COLUMN */
    .tech-categories {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-category {
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .tech-item {
        gap: 0.5rem;
    }

    /* Compact FAQ section */
    .faq {
        padding: 12px 0;
    }

    .faq-container {
        gap: 0.5rem;
    }

    /* Compact about section */
    .about {
        padding: 12px 0;
    }

    .about-stats {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    /* Compact contact section */
    .contact {
        padding: 12px 0;
    }

    .contact-content {
        gap: 0.75rem;
    }

    .contact-info {
        gap: 0.5rem;
    }

    /* Newsletter section */
    .newsletter-section {
        margin-top: 1rem;
        padding: 1rem;
    }

    /* Testimonials section - FIX FOR BLANK SPACE ISSUE */
    .testimonials {
        padding: 12px 0;
    }

    .testimonials-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        grid-template-columns: none;
    }

    .testimonial-card {
        padding: 1.5rem;
        transform: none !important;
        transition: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .testimonial-card:hover {
        transform: none !important;
        z-index: 1;
    }

    .testimonial-content {
        margin-bottom: 1.5rem;
    }

    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-quote {
        width: 30px;
        height: 30px;
        margin-bottom: 0.75rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    /* Technologies section */
    .technologies {
        padding: 12px 0;
    }

    /* Portfolio section */
    .portfolio {
        padding: 12px 0;
    }

    /* Services section */
    .services {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Terminal prompt */
    .terminal-prompt {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .terminal-line {
        font-size: 0.8rem;
    }

    .terminal-response {
        font-size: 0.9rem;
    }

    /* Scroll indicator - hide on mobile to save space */
    .scroll-indicator {
        display: none;
    }

    /* Code Showcase mobile optimizations */
    .code-showcase {
        padding: 12px 0;
    }

    .code-editor-container {
        padding: 0;
    }

    .editor-header {
        padding: 0.75rem 1rem;
    }

    .editor-tabs {
        gap: 0.25rem;
    }

    .editor-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .editor-content {
        padding: 1rem;
        min-height: 150px;
    }

    .code-block {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .editor-footer {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Terminal Portfolio mobile optimizations */
    .terminal-portfolio {
        padding: 40px 0;
        min-height: auto;
    }

    .terminal-portfolio .container {
        padding: 0 1rem;
    }

    .terminal-window {
        margin: 0 auto;
        max-width: 100%;
        width: calc(100% - 2rem);
    }

    .terminal-header {
        padding: 0.75rem 1rem;
    }

    .terminal-title {
        font-size: 0.75rem;
    }

    .terminal-body {
        padding: 1rem;
        min-height: 150px;
    }

    .terminal-output {
        font-size: 0.75rem;
    }

    .file-line {
        font-size: 0.7rem;
    }

    .prompt {
        font-size: 0.7rem;
    }

    /* GitHub Activity mobile optimizations */
    .github-activity {
        padding: 12px 0;
    }
}

/* ============================================
   NEW DEVELOPER-FOCUSED SECTIONS
   ============================================ */

/* Terminal Prompt in Hero */
.terminal-prompt {
    font-family: 'Courier New', monospace;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.1s;
    animation-fill-mode: forwards;
}

/* Ensure consistent animation across platforms */
@supports (animation: fadeInDown) {
    .terminal-prompt {
        animation: fadeInDown 0.8s ease 0.1s;
        animation-fill-mode: both;
    }
}

.terminal-line {
    color: #c9a84c;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.terminal-response {
    color: #d4af57;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Enhanced Hero Animations */
.typing-animation {
    display: inline-block;
    animation: typeGradient 3s ease-in-out infinite;
}

.subtitle-typing {
    display: inline-block;
    opacity: 0.9;
}



/* Tech Stack Animation */
.tech-stack-animation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.tech-stack-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-icon {
    padding: 0.5rem 1.25rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e8e6e1;
    animation: floatWithRest 9s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-icon:nth-child(1) { animation-delay: 0s; }
.tech-icon:nth-child(2) { animation-delay: 0.15s; }
.tech-icon:nth-child(3) { animation-delay: 0.3s; }
.tech-icon:nth-child(4) { animation-delay: 0.45s; }
.tech-icon:nth-child(5) { animation-delay: 0.6s; }
.tech-icon:nth-child(6) { animation-delay: 0.75s; }
.tech-icon:nth-child(7) { animation-delay: 0.9s; }
.tech-icon:nth-child(8) { animation-delay: 1.05s; }
.tech-icon:nth-child(9) { animation-delay: 1.2s; }

.tech-icon:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: #c9a84c;
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.3);
}

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

/* Highlight Text */
.highlight-text {
    color: #d4af57;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

/* Pulse Animation for Button */
.pulse-animation {
}



/* Code Stats */
.code-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(10, 15, 26, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.code-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

.code-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Floating Code Background */
.floating-code-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    display: none !important;
}

/* Badge Bounce Animations */
.bounce-1 { }
.bounce-2 { }
.bounce-3 { }
.bounce-4 { }

/* Code Showcase Section */
.code-showcase {
    background-color: #0a0f1a;
    padding: 100px 0;
}

.code-editor-container {
    max-width: 1000px;
    margin: 0 auto;
}

.code-editor {
    background: #111827;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #0a0f1a;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.editor-tabs {
    display: flex;
    gap: 0.5rem;
}

.editor-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.editor-tab:hover {
    background: rgba(201, 168, 76, 0.1);
    color: #e8e6e1;
}

.editor-tab.active {
    background: rgba(201, 168, 76, 0.2);
    color: #e8e6e1;
    font-weight: 600;
}

.editor-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red { background: #ef4444; }
.control-dot.yellow { background: #f59e0b; }
.control-dot.green { background: #10b981; }

.editor-content {
    padding: 2rem;
    min-height: 400px;
    position: relative;
}

.code-block {
    display: none;
    margin: 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.code-block.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.code-block code {
    color: #e2e8f0;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #0a0f1a;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    font-size: 0.85rem;
}

.editor-info {
    color: #10b981;
    font-family: 'Courier New', monospace;
}

/* Terminal Portfolio Section */
.terminal-portfolio {
    padding: 100px 0;
    background-color: #0a0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.terminal-portfolio .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-portfolio .section-header {
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
}

.terminal-window {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: #0a0f1a;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(201, 168, 76, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #111827;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.terminal-title {
    color: #e8e6e1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.terminal-body {
    padding: 2rem;
    min-height: 350px;
}

.terminal-output {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-output p {
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.prompt {
    color: #10b981;
    font-weight: 600;
    margin-right: 0.5rem;
}

.terminal-info {
    color: #94a3b8;
    font-size: 0.85rem;
}

.file-line {
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.file-line:hover {
    background: rgba(201, 168, 76, 0.1);
}

.permissions {
    color: #94a3b8;
    font-size: 0.85rem;
    min-width: 100px;
}

.file-name {
    color: #c9a84c;
    font-weight: 600;
    min-width: 200px;
}

.file-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.terminal-command-input {
    margin-top: 2rem;
    color: #e2e8f0;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
    transition: opacity 0.5s ease;
}

.terminal-window {
    cursor: text;
}

.terminal-body {
    cursor: text;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    outline: none;
    caret-color: #c9a84c;
}

.terminal-input:focus + .cursor-blink {
    opacity: 1;
}

.terminal-output {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: rgba(201, 168, 76, 0.1);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

.terminal-line {
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.terminal-command {
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.terminal-error {
    color: #ef4444;
    margin: 0.5rem 0;
}

.terminal-info-line {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.terminal-ls {
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.dir-name {
    color: #c9a84c;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.dir-name:hover {
    color: #d4af57;
    text-decoration: underline;
}

.file-name {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.file-name:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.file-size {
    color: #94a3b8;
    font-size: 0.85rem;
    min-width: 60px;
    display: inline-block;
}

.file-date {
    color: #94a3b8;
    font-size: 0.85rem;
    min-width: 120px;
    display: inline-block;
}

.file-content {
    color: #cbd5e1;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

.terminal-cat {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 0.25rem;
    border-left: 2px solid #c9a84c;
}

.terminal-help {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.help-section {
    color: #c9a84c;
    font-weight: 600;
    display: block;
    margin: 0.5rem 0;
}

.help-category {
    color: #d4af57;
    font-weight: 600;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.help-command {
    color: #10b981;
    font-weight: 600;
}

.help-option {
    color: #94a3b8;
    margin-left: 2rem;
}

.terminal-link {
    color: #c9a84c;
    text-decoration: underline;
    cursor: pointer;
}

.terminal-link:hover {
    color: #d4af57;
}

.terminal-welcome {
    margin-bottom: 1rem;
}

.terminal-completions {
    color: #94a3b8;
    font-size: 0.85rem;
}

.terminal-cowsay {
    white-space: pre;
    font-family: 'Courier New', monospace;
    color: #cbd5e1;
}

.cowsay {
    display: block;
    line-height: 1.2;
}

.matrix-text {
    color: #10b981;
    font-weight: 600;
    animation: matrixPulse 1s ease-in-out infinite;
}



.fortune-text {
    color: #f59e0b;
    font-style: italic;
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.terminal-neofetch {
    white-space: pre;
    font-family: 'Courier New', monospace;
    color: #cbd5e1;
    line-height: 1.6;
}

.neofetch-logo {
    color: #c9a84c;
    font-weight: 600;
}

.cursor-blink {
    animation: cursorBlink 1s step-end infinite;
    color: #c9a84c;
    font-weight: 600;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* GitHub Contribution Graph */
.github-activity {
    background-color: #0a0f1a;
    padding: 120px 0;
}

.contribution-graph {
    max-width: 1000px;
    margin: 2rem auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .contribution-graph {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.graph-title-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.inline-name-editor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.2s ease;
}

.inline-name-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #c9a84c;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
    min-width: 80px;
    max-width: 120px;
    outline: none;
    letter-spacing: 0.1em;
}

.inline-name-input:focus {
    border-bottom-color: #d4af57;
}

.inline-cursor {
    color: #c9a84c;
    animation: cursorBlink 1s step-end infinite;
    font-weight: 600;
    margin-left: -2px;
}

.graph-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

.graph-grid-wrapper {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    width: max-content;
    min-width: max-content;
    margin: 0 auto;
    display: inline-flex;
}

.graph-grid-wrapper:hover {
    opacity: 0.95;
}

.graph-grid-wrapper.editing {
    cursor: default;
}

.inline-name-editor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid #c9a84c;
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
    z-index: 100;
    animation: fadeInScale 0.2s ease;
    backdrop-filter: blur(10px);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.inline-name-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0;
    text-transform: uppercase;
    min-width: 100px;
    max-width: 200px;
    outline: none;
    letter-spacing: 0.2em;
    text-align: center;
}

.inline-name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.inline-cursor {
    color: #c9a84c;
    animation: cursorBlink 1s step-end infinite;
    font-weight: 700;
    font-size: 1.5rem;
    margin-left: 2px;
}

.graph-edit-hint {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.graph-grid-wrapper:hover .graph-edit-hint {
    opacity: 1;
}

.graph-grid-wrapper.editing .graph-edit-hint {
    display: none;
}

.edit-name-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 0.5rem;
    color: #c9a84c;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-name-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.5);
    transform: translateY(-1px);
}

.edit-name-btn svg {
    width: 16px;
    height: 16px;
}

/* Name Editor Modal */
.name-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.name-editor-modal.active {
    display: flex;
}

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

.name-editor-content {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.name-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.name-editor-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.close-editor-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-editor-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.name-editor-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.name-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.name-input:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.name-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.name-preview-grid {
    display: grid;
    grid-template-rows: repeat(7, 8px);
    gap: 2px;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    min-height: 60px;
    width: fit-content;
    margin: 0 auto;
}

.preview-box {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: #000;
}

.preview-box.empty {
    background: transparent;
}

.name-editor-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.apply-name-btn,
.reset-name-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-name-btn {
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    color: white;
}

.apply-name-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}

.reset-name-btn {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.reset-name-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.legend {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.box.level-0 { background: var(--bg-light); border: 1px solid var(--border-color); }
.box.level-1 { background: rgba(201, 168, 76, 0.2); }
.box.level-2 { background: rgba(201, 168, 76, 0.4); }
.box.level-3 { background: rgba(201, 168, 76, 0.6); }
.box.level-4 { background: #c9a84c; }

.graph-container {
    position: relative;
}

.graph-months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.graph-grid {
    display: grid;
    grid-template-columns: repeat(52, var(--graph-box-size));
    grid-template-rows: repeat(7, var(--graph-box-size));
    gap: var(--graph-box-gap);
    width: max-content;
    min-width: max-content;
    margin: 0 auto;
}

.contribution-box {
    width: var(--graph-box-size);
    height: var(--graph-box-size);
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contribution-box:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

/* Contribution levels - GitHub-style colors */
.contribution-box.level-0 {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.contribution-box.level-1 {
    background: rgba(201, 168, 76, 0.2);
}

.contribution-box.level-2 {
    background: rgba(201, 168, 76, 0.4);
}

.contribution-box.level-3 {
    background: rgba(201, 168, 76, 0.6);
}

.contribution-box.level-4 {
    background: #c9a84c;
}

.contribution-box.level-dark {
    background: #000000;
    border: 1px solid #1a1a1a;
    animation: subtleFade 4s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

@keyframes subtleFade {
    0%, 100% {
        opacity: 0.15;
        background: rgba(0, 0, 0, 0.15);
    }
    25% {
        opacity: 0.4;
        background: rgba(0, 0, 0, 0.4);
    }
    50% {
        opacity: 1;
        background: #000000;
    }
    75% {
        opacity: 0.4;
        background: rgba(0, 0, 0, 0.4);
    }
}

.graph-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c9a84c, #d4af57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Responsive Design - Smooth breakpoint transitions */
@media (max-width: 1024px) {
    /* Tablet optimizations */
    section {
        padding: 100px 0;
    }

    .nav-cta-btn {
        padding: 0.65rem 1.15rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    /* Add padding to body for bottom tab bar */
    body {
        padding-bottom: 70px;
    }

    /* Navigation improvements */
    .nav-wrapper {
        padding: 0.75rem 0;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .logo {
        flex-shrink: 1;
        /* Increase tap area for mobile */
        padding: 0.5rem;
        margin: -0.5rem;
        min-height: 44px; /* iOS minimum tap target */
        display: flex;
        align-items: center;
    }

    .logo-text-container {
        padding: 0.4rem 0.75rem;
        /* Ensure full tap area */
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-subtext {
        font-size: 0.6rem;
    }

    .nav-cta-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        min-height: 38px;
    }

    .nav-cta-btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-toggle {
        display: none !important; /* Hide on mobile since tab bar is always visible */
    }

    .theme-toggle {
        order: 3;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    /* Bottom tab bar on mobile */
    .nav-menu {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        flex-direction: row !important;
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(10px);
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0.75rem 0.5rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, opacity 0.3s ease;
        gap: 0 !important;
        align-items: center;
        justify-content: space-around;
        z-index: 999;
        box-sizing: border-box;
        border-top: 1px solid rgba(201, 168, 76, 0.2);
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        margin: 0 !important;
    }

    .nav-menu .nav-link {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .nav-menu .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-menu .nav-link span {
        font-size: 0.7rem;
    }

    .nav-menu .nav-link::before {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 2px;
        transform: scaleX(0);
    }

    .nav-menu .nav-link.active::before,
    .nav-menu .nav-link:hover::before {
        transform: scaleX(1);
    }

    .nav-menu li {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.25rem;
        width: 100%;
        min-height: 44px; /* iOS minimum tap target */
        font-size: 0.75rem;
        text-align: center;
        color: var(--text-secondary);
        transition: color 0.3s ease;
        position: relative;
    }

    .nav-menu .nav-link::after {
        display: none; /* Remove underline on mobile */
    }

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

    /* Active state indicator */
    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-menu .nav-link:hover::before,
    .nav-menu .nav-link:active::before {
        transform: scaleX(1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    /* Hero section improvements */
    .hero {
        padding: 0;
        padding-top: calc(70px + 2rem);
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 1.25rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .terminal-prompt {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .terminal-line,
    .terminal-response {
        font-size: 0.85rem;
    }

    .hero-badges {
        gap: 0.75rem;
        margin: 0 0 1.5rem;
    }

    .dev-badge {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
        gap: 0.5rem;
    }

    .apple-logo-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        min-width: 24px;
        min-height: 24px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 1.5rem auto 2rem;
    }

    .code-stats {
        gap: 1rem;
        flex-direction: column;
    }

    .code-stat {
        min-width: auto;
    }

    .back-to-top {
        bottom: 20px; /* Positioned at bottom-left on mobile, away from chat widget */
        left: 20px;
        right: auto; /* Override any right positioning */
        width: 45px;
        height: 45px;
    }
    
    /* No adjustment needed - back-to-top is on left side, chat is on right */

    body.cookie-visible .back-to-top {
        bottom: calc(100px + 100px);
    }
    

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-buttons .btn {
        flex: 1;
    }

    /* Removed duplicate hero padding - consolidated above */
    
    /* Button improvements */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.875rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .form-intro {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }

    .form-intro h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .form-intro p {
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1rem;
        margin-top: 0.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .contact-info {
        gap: 0.75rem;
    }

    .contact-item {
        gap: 0.5rem;
        flex-direction: column;
    }

    .contact-item .contact-icon {
        width: 45px;
        height: 45px;
        order: 1;
    }

    .contact-item .contact-text {
        order: 2;
    }

    .form-wrapper {
        display: flex;
        flex-direction: column;
    }

    .form-intro {
        margin: 0 0 1.25rem 0;
        padding: 1.25rem;
        order: 1;
    }

    .contact-form {
        order: 2;
        margin-top: 0;
    }

    .newsletter-section {
        margin-top: 3rem;
        padding: 1.5rem;
    }

    .newsletter-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .newsletter-section > p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.25rem;
        margin-bottom: 0;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
        line-height: 1.6;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.875rem;
    }

    .service-features {
        gap: 0.35rem;
        font-size: 0.85rem;
    }

    .service-features li {
        padding: 0.25rem 0.5rem;
    }

    .portfolio {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .portfolio-item {
        padding: 0;
        margin-bottom: 1rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-content p {
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
        line-height: 1.6;
    }

    .portfolio-tags {
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }

    .portfolio-tags .tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

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

    .code-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        margin-top: 1rem;
    }

    /* Badge improvements */
    .hero-badges {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dev-badge {
        font-size: 0.95rem;
        padding: 0.6rem 1.25rem;
        gap: 0.6rem;
        flex: 0 1 auto;
        min-width: fit-content;
    }

    .apple-logo-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        min-width: 24px;
        min-height: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Subtitle and text improvements */
    .hero-subtitle {
        margin: 1.25rem auto 2rem;
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 0.5rem;
    }

    /* Tech stack improvements */
    .tech-stack-animation {
        margin: 1.25rem 0;
        gap: 0.5rem;
    }

    .tech-icon {
        font-size: 0.75rem;
        padding: 0.35rem 0.875rem;
    }

    /* Code stats improvements */
    .code-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
        margin-top: 1rem;
    }

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

    .stat-label {
        font-size: 0.85rem;
    }

    /* Section spacing improvements - reduced for mobile */
    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .hero {
        padding-top: calc(80px + 1rem);
        padding-bottom: 2rem;
        min-height: auto;
    }

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

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .code-showcase {
        padding: 40px 0;
    }

    .code-editor-container {
        padding: 0 1rem;
    }

    .editor-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .editor-tabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .editor-tabs::-webkit-scrollbar {
        display: none;
    }

    .editor-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
    }

    .editor-controls {
        align-self: flex-end;
    }

    .editor-content {
        padding: 1rem;
        min-height: 300px;
        overflow-x: auto;
    }

    .code-block {
        font-size: 0.8rem;
        line-height: 1.6;
        overflow-x: auto;
        word-wrap: break-word;
    }

    .code-block code {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .graph-months {
        font-size: 0.65rem;
    }

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

    .terminal-body {
        padding: 1.5rem;
    }

    .file-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .permissions,
    .file-name {
        min-width: auto;
    }

    /* Additional mobile touch optimizations */
    .hero-content {
        padding: 0 1rem;
        /* Ensure same animation on mobile */
        animation: fadeInUp 1s ease 0.2s, slideInScale 1.2s ease 0.2s;
        animation-fill-mode: both;
        opacity: 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /* Ensure smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Optimize font rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Better button spacing on mobile */
    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Optimize contribution graph touch interactions */
    .contribution-box {
        touch-action: manipulation;
    }

    /* Reduce animation delays on mobile for faster feel */
    .stagger-item,
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transition-delay: 0s !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    .nav-cta-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.8rem;
        gap: 0.45rem;
        min-height: 36px;
    }

    .nav-cta-btn svg {
        width: 15px;
        height: 15px;
    }

    .nav-left {
        gap: 0.75rem;
    }

    .service-card {
        margin: 0;
        padding: 1.25rem;
    }

    .form-intro {
        margin: 1.25rem 0;
        padding: 1rem;
    }

    .form-intro h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .form-intro p {
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1.5rem 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

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

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

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

    .code-editor,
    .terminal-window {
        margin: 0 0.5rem;
        border-radius: 0.75rem;
    }

    .contribution-graph {
        padding: 1rem 0.75rem;
        margin: 0.5rem auto;
    }

    .editor-content,
    .terminal-body {
        padding: 0.75rem;
        min-height: 250px;
    }

    .code-block {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    /* Reduce empty spaces further */
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .code-stats {
        margin-top: 1.5rem;
        padding: 1.25rem 1rem;
    }

    /* Ensure no horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    pre, code {
        overflow-x: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
    }

    /* Footer Mobile Optimization */
    /* Footer Mobile Responsive */
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 2rem;
        margin-bottom: 0; /* No extra space - chat widget and back-to-top are fixed position */
    }

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

    .footer-section {
        text-align: left;
        gap: 0.75rem;
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }

    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-section ul {
        gap: 0.5rem;
    }

    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }

    .footer-section ul li a:hover {
        transform: translateX(4px);
        padding-left: 0.5rem;
    }

    .social-links {
        gap: 0.625rem;
        margin-top: 0.5rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS - ALL PLATFORMS
   ============================================ */

/* GPU Acceleration for frequently animated elements */
.hero-content,
.service-card,
.portfolio-item,
.testimonial-card,
.btn,
.dev-badge,
.tech-icon,
.logo-text-container,
.code-editor,
.terminal-window,
.contribution-graph {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize images and media */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift */
.service-icon,
.portfolio-image,
.author-avatar {
    contain: layout style paint;
}

/* Smooth transitions with GPU acceleration */
.btn,
.nav-link,
.service-card,
.portfolio-item,
.testimonial-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: calc(80px + 3rem);
        padding-bottom: 80px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .code-editor-container,
    .terminal-window,
    .contribution-graph {
        max-width: 100%;
    }
}

/* ============================================
   LARGE MOBILE (480px - 768px)
   ============================================ */

@media (min-width: 480px) and (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    section {
        padding: 40px 0;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

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

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

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(60px + 1rem);
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    section {
        padding: 32px 0;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .back-to-top,
    .cookie-consent,
    .particles-canvas,
    .floating-code-bg,
    .hero-background {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   HIGH RESOLUTION DISPLAYS
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-text,
    .section-title,
    .hero-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ============================================
   TABLET/IPAD CENTERING FIXES
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Center terminal window on iPad */
    .terminal-window {
        margin: 0 auto !important;
        max-width: 90%;
    }

    /* Center code editor on iPad */
    .code-editor-container {
        margin: 0 auto;
        max-width: 90%;
    }

    /* Center contribution graph on iPad */
    .contribution-graph {
        margin: 2rem auto;
        max-width: 90%;
    }

    /* Ensure all major content blocks are centered */
    .terminal-portfolio .container,
    .code-showcase .container,
    .github-activity .container {
        max-width: 90%;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

/* =============================================
   LANGUAGE TOGGLE & i18n FLASH PREVENTION
   ============================================= */

/* Language toggle button — extra styling beyond shared .lang-toggle rule above */
.lang-toggle {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1;
}

.lang-toggle:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.2);
}

/* Flash prevention: when French is active, hide translatable elements until i18n.js is ready */
html.lang-fr:not(.i18n-ready) [data-i18n],
html.lang-fr:not(.i18n-ready) [data-i18n-placeholder],
html.lang-fr:not(.i18n-ready) [data-i18n-value] {
    visibility: hidden;
}

/* Never hide these — they contain no translatable text or are structural */
html.lang-fr:not(.i18n-ready) .lang-toggle,
html.lang-fr:not(.i18n-ready) .logo-text,
html.lang-fr:not(.i18n-ready) .loader-logo {
    visibility: visible;
}
