/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Saudi Tech Nature Theme (Cup Code Studio) */
    --primary-color: #6FAF3F; /* Olive Green (CTA / life) */
    --primary-deep: #2F5D3A; /* Deep Green */

    --bg-color: #F5EFE3; /* Warm Sand */
    --bg-soft: #EFE6D8; /* Soft Beige */

    --secondary-color: #2B2E2C; /* Charcoal (tech) */
    --darker-color: #1E1F1E; /* Soft Black */

    --coffee-color: #6B4F3F; /* Coffee Brown (accent) */
    --ai-color: #8CD867; /* AI highlight green */

    /* Supportive colors (used sparingly) */
    --info-color: var(--ai-color);
    --danger-color: var(--coffee-color);

    /* Accent */
    --accent-color: var(--coffee-color);

    /* Derived / UI Colors */
    --primary-rgb: 111, 175, 63;
    --ai-rgb: 140, 216, 103;
    --secondary-rgb: 43, 46, 44;
    --accent-rgb: 107, 79, 63;
    --info-rgb: 140, 216, 103;
    --danger-rgb: 107, 79, 63;
    --dark-color: var(--secondary-color);
    --light-color: var(--bg-color);
    --surface-color: rgba(255, 255, 255, 0.72);
    --border-color: rgba(43, 46, 44, 0.14);
    --text-color: var(--darker-color);
    --muted-text-color: rgba(30, 31, 30, 0.72);

    /* Text on dark surfaces */
    --on-dark: #ffffff;

    /* Gradients (green + sand + subtle AI highlight) */
    --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-deep) 100%);
    --gradient-2: linear-gradient(135deg, var(--secondary-color) 0%, var(--darker-color) 100%);
    --gradient-3: linear-gradient(135deg, var(--bg-color) 0%, #ffffff 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-deep) 70%, var(--ai-color) 130%);
    --gradient-luxury: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-color) 70%, var(--ai-color) 130%);
    --gradient-glass: linear-gradient(135deg, rgba(111, 175, 63, 0.12) 0%, rgba(107, 79, 63, 0.08) 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(111, 175, 63, 0.14), transparent 60%),
                     radial-gradient(ellipse at bottom, rgba(107, 79, 63, 0.10), transparent 55%);

    /* Shadows - Professional depth */
    --shadow: var(--shadow-lg);
    --shadow-sm: 0 2px 10px rgba(30, 31, 30, 0.06);
    --shadow-md: 0 6px 22px rgba(30, 31, 30, 0.09);
    --shadow-lg: 0 12px 44px rgba(30, 31, 30, 0.12);
    --shadow-xl: 0 22px 60px rgba(30, 31, 30, 0.16);
    --shadow-2xl: 0 30px 80px rgba(30, 31, 30, 0.22);
    --shadow-primary: 0 12px 44px rgba(111, 175, 63, 0.24);
    /* Kept name for compatibility; now uses coffee accent */
    --shadow-gold: 0 12px 44px rgba(107, 79, 63, 0.20);
    
    /* Advanced Transitions */
    --transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-btn: all 180ms ease-out;

    /* Layout */
    --container-max: 1360px;
    --section-pad-y: clamp(56px, 6vw, 90px);
    --section-gap-lg: clamp(2.2rem, 4vw, 4rem);

    /* Type scale */
    --text-base: 1.0625rem;
    --text-sm: 0.95rem;
    --text-lg: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
    --h1: clamp(3rem, 3.6vw + 1.4rem, 4rem);
    --h2: clamp(2rem, 2.1vw + 1.1rem, 2.5rem);
    --h3: clamp(1.25rem, 1vw + 1.05rem, 1.6rem);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--bg-color);
    font-size: var(--text-base);
    text-rendering: geometricPrecision;
}

/* Subtle animated background (felt, not noticed) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('Aessts/img/leaves-bg.svg');
    background-repeat: repeat;
    background-size: 980px 980px;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    transform: translate3d(0, 0, 0);
    animation: leavesDrift 55s linear infinite;
}

@keyframes leavesDrift {
    0% {
        background-position: 0% 0%;
        transform: translate3d(0, 0, 0);
    }
    100% {
        background-position: 100% 100%;
        transform: translate3d(0, -18px, 0);
    }
}

/* ===== Accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.55);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    body::before {
        animation: none !important;
        transform: none !important;
    }
}

::selection {
    background: var(--primary-color);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.20) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 2s ease-in-out infinite;
}

.game-controller {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    animation: loadingPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.45));
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.loading-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading-bar {
    width: 240px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem auto 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-luxury);
    background-size: 200% auto;
    width: 0;
    animation: loading 2s ease-in-out infinite, shimmer 3s linear infinite;
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.45);
}

@keyframes loading {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Progress Bar ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: var(--gradient-luxury);
    width: 0%;
    z-index: 9998;
    transition: width 0.3s ease;
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.45),
                0 0 26px rgba(var(--ai-rgb), 0.22);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: var(--shadow-gold);
    background: var(--gradient-luxury);
    animation: none;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-luxury);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.back-to-top:hover::before {
    opacity: 0.5;
    filter: blur(10px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(68, 68, 68, 0.88);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12),
                0 1px 0 rgba(118, 173, 63, 0.14);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    background: rgba(28, 28, 28, 0.92);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 40px rgba(118, 173, 63, 0.16),
                0 1px 0 rgba(74, 163, 223, 0.10);
    border-bottom: 1px solid rgba(74, 163, 223, 0.12);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
}

.studio-mark {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    filter: none;
}

.studio-mark--nav {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 10px 22px rgba(var(--primary-rgb), 0.18));
}

.studio-mark--footer {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 12px 26px rgba(var(--primary-rgb), 0.16));
}

.studio-mark--loading {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    filter: none;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.logo i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoRotate 3s ease-in-out infinite;
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Language toggle (EN/AR) */
.nav-link.lang-link {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.30);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    line-height: 1;
}

.nav-link.lang-link::before {
    display: none;
}

.nav-link.lang-link:hover {
    background: rgba(255, 255, 255, 0.10);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--on-dark);
    transition: var(--transition);
    border-radius: 10px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100svh;
    height: 100vh;
    background: var(--darker-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.18) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(var(--primary-rgb), 0.12) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(var(--primary-rgb), 0.04) 50px,
            rgba(var(--primary-rgb), 0.04) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(var(--primary-rgb), 0.04) 50px,
            rgba(var(--primary-rgb), 0.04) 51px
        );
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(var(--secondary-rgb), 0.10) 0%,
        rgba(var(--primary-rgb), 0.22) 55%,
        rgba(var(--secondary-rgb), 0.18) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: var(--h1);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 5s ease infinite;
    background-size: 200% auto;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-btn);
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.10);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
    border: 2px solid transparent;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.btn-primary:hover {
    box-shadow: var(--shadow-gold);
    animation: none;
    background: var(--gradient-luxury);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-color);
    box-shadow: var(--shadow-xl);
    border-color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 35px;
    height: 55px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 50%;
    transform: translateX(50%);
    width: 8px;
    height: 8px;
    background: var(--on-dark);
    border-radius: 50%;
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes scroll {
    0% { opacity: 1; top: 12px; }
    100% { opacity: 0; top: 32px; }
}

/* ===== Animations ===== */
.animate-fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in-delay {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional utility animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Services Section ===== */
.services {
    padding: var(--section-pad-y) 0;
    background: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: var(--section-gap-lg);
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto 0;
    border-radius: 10px;
    animation: pulseBar 2s ease-in-out infinite;
}

@keyframes pulseBar {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(1.2); opacity: 0.8; }
}

.section-title {
    font-size: var(--h2);
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--muted-text-color);
    opacity: 1;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    padding: clamp(1.8rem, 2.2vw, 2.4rem);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-luxury);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    box-shadow: var(--shadow-gold);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card h3 {
    font-size: var(--h3);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: var(--section-pad-y) 0;
    background: var(--surface-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    height: 400px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(var(--primary-rgb), 0.92) 0%,
        rgba(var(--accent-rgb), 0.22) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-lg);
}

.portfolio-link:hover {
    transform: scale(1.2) rotate(180deg);
    background: var(--accent-color);
    color: var(--darker-color);
}

/* ===== About Section ===== */
.about {
    padding: var(--section-pad-y) 0;
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: var(--text-color);
    margin-top: 0.5rem;
}

.about-image {
    height: 100%;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-color);
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-pad-y) 0;
    background: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-luxury);
    border-radius: 18px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.contact-item:hover .contact-icon {
    box-shadow: var(--shadow-gold);
}

.contact-item:hover .contact-icon::before {
    opacity: 1;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    flex-wrap: wrap;
}

/* Space social links in contact page only (prevents huge footer gaps) */
.contact .social-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-start;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-luxury);
    opacity: 0;
    transition: var(--transition);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    box-shadow: var(--shadow-gold);
}

.social-links a:hover::before {
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem 1.8rem;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12),
                0 5px 20px rgba(var(--primary-rgb), 0.15);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--text-color);
    font-weight: 600;
}

.form-alert.is-success {
    background: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.form-alert.is-error {
    background: rgba(var(--danger-rgb), 0.14);
    border-color: rgba(var(--danger-rgb), 0.30);
}

/* ===== Footer ===== */
.footer {
    background: var(--gradient-2);
    color: var(--on-dark);
    padding: 3.5rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::after {
    content: '';
    position: absolute;
    inset: -120px;
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.22) 0%, transparent 55%),
        radial-gradient(circle at 80% 60%, rgba(var(--accent-rgb), 0.14) 0%, transparent 55%);
    filter: blur(60px);
    opacity: 0.75;
    pointer-events: none;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color) 20%,
        var(--accent-color) 50%,
        var(--primary-color) 80%,
        transparent
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    text-align: right;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer .footer-logo {
    grid-column: 1;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .footer .footer-logo {
        grid-column: auto;
        justify-content: center;
        margin-bottom: 0.25rem;
    }
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo i {
    background: var(--gradient-luxury);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.45));
}

/* ===== Legal Pages ===== */
.legal {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.legal h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.legal p {
    color: var(--text-color);
    line-height: 1.8;
}

.legal ul {
    margin: 0.75rem 0 1.2rem;
    padding: 0 1.2rem;
}

.legal li {
    margin: 0.35rem 0;
    color: var(--text-color);
    line-height: 1.8;
}

/* Footer social row */
.footer .footer-social {
    justify-content: flex-start;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .footer .footer-social {
        justify-content: center;
    }
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .footer-links {
        align-items: center;
    }
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 2px 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-meta {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

.footer-meta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.footer-meta .cr {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.footer p {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

/* ===== Responsive Design ===== */
/* NOTE: Mobile rules are defined later in the file to avoid conflicts. */
/* ===== Features Section ===== */
.features {
    padding: var(--section-pad-y) 0;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.16) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    top: -200px;
    right: -200px;
    animation: float 12s ease-in-out infinite;
}

.features::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    bottom: -175px;
    left: -175px;
    animation: float 15s ease-in-out infinite reverse;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(2.5rem, 3.5vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.2rem);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(var(--primary-rgb), 0.14);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.14);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.08), transparent);
    transition: var(--transition);
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.30);
    box-shadow: 0 15px 50px rgba(var(--primary-rgb), 0.16);
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.50) 0%, rgba(var(--ai-rgb), 0.40) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    font-family: 'Courier New', monospace;
}

.feature-icon {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
    display: inline-block;
}

.feature-box:hover .feature-icon {
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.45));
}

.feature-box h3 {
    font-size: var(--h3);
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Technologies Section ===== */
.technologies {
    padding: var(--section-pad-y) 0;
    background: var(--gradient-3);
    position: relative;
    overflow: hidden;
}

.technologies::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.tech-card {
    background: white;
    padding: clamp(2rem, 2.5vw, 2.5rem) 1.6rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.tech-card:hover {
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.tech-card:hover::before {
    opacity: 0.05;
}

.tech-card:hover::after {
    transform: translateX(100%);
}

.tech-icon {
    font-size: 4.5rem;
    background: var(--gradient-luxury);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    transition: var(--transition-bounce);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.tech-card:hover .tech-icon {
    filter: drop-shadow(0 10px 30px rgba(var(--primary-rgb), 0.30));
}

.tech-card h4 {
    font-size: 1.15rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.tech-card:hover h4 {
    color: var(--primary-color);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: var(--section-pad-y) 0;
    background: var(--darker-color);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(150px);
    bottom: -200px;
    left: -200px;
}

.testimonials .section-title,
.testimonials .section-subtitle {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1.8rem, 2.4vw, 2.6rem);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.10);
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary-rgb), 0.40);
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.22);
}

.testimonial-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-stars i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.55));
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Enhanced Animations ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Apply animations on scroll */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad-y: clamp(48px, 5vw, 70px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-box {
        padding: 2.5rem 1.8rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .nav-menu {
        position: fixed;
        inset-inline: 0;
        top: 70px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        background: rgba(var(--secondary-rgb), 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        text-align: center;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        padding: 1.25rem 0 2rem;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.22);
        transform: translateX(110%);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* ===== Page Header ===== */
.page-header {
    padding: clamp(120px, 14vw, 150px) 0 clamp(56px, 6vw, 80px);
    background: var(--darker-color);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
}

.page-header h1 {
    font-size: var(--h1);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    font-size: var(--text-lg);
    opacity: 0.9;
    position: relative;
}

/* ===== Services Preview ===== */
.services-preview {
    padding: var(--section-pad-y) 0;
    background: var(--gradient-3);
    position: relative;
    overflow: hidden;
}

.services-preview::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    filter: blur(80px);
}

.services-preview::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    filter: blur(80px);
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

/* ===== Service Features List ===== */
.service-features {
    list-style: none;
    text-align: right;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.service-features i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

/* ===== Process Section ===== */
.process-section {
    padding: var(--section-pad-y) 0;
    background: var(--bg-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.process-step p {
    color: var(--text-color);
}

/* ===== Portfolio Filters ===== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.portfolio-details {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.portfolio-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: var(--section-pad-y) 0;
    background: var(--darker-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary-rgb), 0.40);
}

.stat-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-box .stat-number {
    font-size: 3.5rem;
    color: white;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* ===== Vision Mission ===== */
.vision-mission {
    padding: var(--section-pad-y) 0;
    background: var(--surface-color);
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.vm-box {
    text-align: center;
    padding: 3rem;
    background: var(--light-color);
    border-radius: 20px;
    transition: var(--transition);
}

.vm-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.vm-box h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.vm-box p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ===== Team Section ===== */
.team-section {
    padding: var(--section-pad-y) 0;
    background: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
}

.team-member h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-color);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: calc(var(--section-pad-y) * 1.3) 0;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(255, 255, 255, 0.03) 60px,
        rgba(255, 255, 255, 0.03) 120px
    );
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cta-content p {
    font-size: var(--text-lg);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 3px solid white;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-content .btn-primary:hover {
    background: var(--darker-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ===== Contact Form ===== */
.contact-info {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-form h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.form-group select {
    cursor: pointer;
    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='%236FAF3F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 3rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* ===== Map Section ===== */
.map-section {
    padding: var(--section-pad-y) 0;
    background: var(--light-color);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--surface-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
}

.map-placeholder i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: var(--section-pad-y) 0;
    background: var(--bg-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3 i {
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.7;
}

/* ===== Footer Links ===== */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem 2rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::before {
    opacity: 0.15;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        position: relative;
        top: 0;
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact .social-links {
        justify-content: center;
    }

    .contact-item {
        padding: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Game Showcase Styles ===== */
.game-showcase {
    padding: 2rem 0;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-logo {
    display: block;
    width: min(680px, 92%);
    height: auto;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.game-header h2 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.game-tagline {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
}

.game-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.game-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.game-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.game-banner:hover {
    transform: scale(1.05);
}

.game-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(var(--secondary-rgb), 0.92);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-badge i {
    font-size: 1.2rem;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.game-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--dark-color);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-steam {
    background: var(--gradient-2) !important;
    color: #fff !important;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-steam:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-3px);
}

.game-section {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.game-section h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.game-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.highlight-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(var(--primary-rgb), 0.12);
    border-inline-start: 4px solid var(--primary-color);
    border-radius: 5px;
}

.game-showcase .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-showcase .feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-showcase .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition-fast);
}

.game-showcase a.feature-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.game-showcase a.feature-card::after {
    content: '↗';
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.10);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    color: var(--dark-color);
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition-fast);
}

a.feature-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ===== Project Filters (Client-side) ===== */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-dark);
}

/* ===== Category Cards (Larger for main categories) ===== */
.category-card {
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.card-cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover .card-cta {
    transform: translateX(5px);
}

[dir="ltr"] .category-card:hover .card-cta {
    transform: translateX(5px);
}

/* ===== Project Tags ===== */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.game-showcase .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.game-showcase .feature-card:hover::before {
    opacity: 1;
}

.game-showcase a.feature-card:hover::after,
.game-showcase a.feature-card:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.game-showcase a.feature-card:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.55);
    outline-offset: 3px;
}

.game-showcase .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.game-showcase .feature-card h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 10px;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.highlight-section {
    background: var(--gradient-primary);
    color: white;
}

.highlight-section h3,
.highlight-section p {
    color: white;
}

.mystery-section {
    background: var(--gradient-2);
    color: white;
}

.mystery-section h3,
.mystery-section p {
    color: white;
}

.warning-section {
    background: var(--gradient-2);
    color: white;
    text-align: center;
}

.warning-section h3,
.warning-section p {
    color: white;
}

.final-message {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.whisper-text {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.game-cta {
    margin-top: 2rem;
}

/* Responsive Game Showcase */
@media (max-width: 968px) {
    .game-main-info {
        grid-template-columns: 1fr;
    }
    
    .game-header h2 {
        font-size: 2rem;
    }
    
    .game-tagline {
        font-size: 1.1rem;
    }
    
    .game-showcase .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== AI Section Styles ===== */
.ai-section {
    padding: var(--section-pad-y) 0;
    background: var(--bg-color);
}

.ai-section .section-header {
    text-align: center;
    margin-bottom: var(--section-gap-lg);
}

.ai-section .section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.ai-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.ai-subtitle {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.ai-main-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-top: 3rem;
}

/* AI Goals */
.ai-goals {
    margin-bottom: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.ai-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.ai-goal-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.ai-goal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.ai-goal-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-goal-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* AI Commitments */
.ai-commitments {
    margin-bottom: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.ai-commit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ai-commit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(var(--primary-rgb), 0.12);
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.ai-commit-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.ai-commit-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Why AI */
.ai-why {
    margin-bottom: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.ai-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ai-reason-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.ai-reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ai-reason-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ai-reason-card p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Practical Results */
.ai-results {
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 20px;
    color: white;
}

.ai-results .ai-subtitle {
    color: white;
}

.ai-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.result-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-item p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* AI Uses */
.ai-uses {
    margin-bottom: 4rem;
}

.ai-use-case {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ai-use-case:hover {
    box-shadow: var(--shadow-md);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.use-case-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.use-case-header h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 0;
}

.use-case-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.use-case-list li {
    padding: 0.8rem 1rem;
    background: var(--light-color);
    border-radius: 8px;
    position: relative;
    padding-right: 2rem;
}

.use-case-list li::before {
    content: "";
    position: absolute;
    right: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.use-case-note {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(var(--primary-rgb), 0.12);
    border-right: 4px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.use-case-note i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.use-case-note p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Benefits */
.ai-benefits {
    margin-bottom: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.benefits-box {
    padding: 2rem;
    background: rgba(var(--primary-rgb), 0.06);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.benefits-box h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.benefits-box ul {
    list-style: none;
}

.benefits-box ul li {
    padding: 0.8rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.benefits-box ul li i {
    color: var(--primary-color);
}

/* Privacy */
.ai-privacy {
    margin-bottom: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.privacy-item {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.privacy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.privacy-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.privacy-item p {
    color: var(--text-color);
    font-weight: 600;
}

.privacy-note {
    padding: 1.5rem;
    background: rgba(var(--primary-rgb), 0.12);
    border-right: 4px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.privacy-note p {
    color: var(--text-color);
    margin: 0;
}

/* Don't Do */
.ai-dont {
    margin-bottom: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.dont-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dont-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(var(--secondary-rgb), 0.06);
    border-radius: 10px;
    border-right: 4px solid var(--secondary-color);
}

.dont-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.dont-item p {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

/* Conclusion */
.ai-conclusion {
    background: var(--gradient-2);
    padding: 3rem;
    border-radius: 20px;
    color: white;
}

.ai-conclusion .ai-main-title {
    color: white;
    padding-top: 0;
}

.conclusion-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.conclusion-positive,
.conclusion-negative {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.conclusion-positive h4,
.conclusion-negative h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.conclusion-positive ul,
.conclusion-negative ul {
    list-style: none;
}

.conclusion-positive ul li,
.conclusion-negative ul li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conclusion-positive ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.conclusion-negative ul li i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Responsive AI Section */
@media (max-width: 768px) {
    .ai-section {
        padding: 60px 0;
    }
    
    .ai-section .section-title {
        font-size: 2rem;
    }
    
    .ai-goals-grid,
    .ai-commit-grid,
    .ai-reasons,
    .ai-results-grid,
    .privacy-grid,
    .dont-grid,
    .benefits-content,
    .conclusion-content {
        grid-template-columns: 1fr;
    }
    
    .use-case-list {
        grid-template-columns: 1fr;
    }
}

    /* ===== 2026 Modern UI Refresh (Overrides) ===== */
    /* Intent: globally modernize look/feel without changing page structure. */
    :root {
        --radius-sm: 12px;
        --radius-md: 16px;
        --radius-lg: 22px;
        --radius-xl: 28px;

        --border-soft: rgba(255, 255, 255, 0.08);
        --border-hard: rgba(0, 0, 0, 0.10);

        --surface-2: rgba(255, 255, 255, 0.70);
        --surface-3: rgba(255, 255, 255, 0.88);

        --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
        --shadow-float: 0 18px 70px rgba(0, 0, 0, 0.14);
    }

    body {
        letter-spacing: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .container {
        max-width: var(--container-max);
    }

    /* Better defaults */
    a.skip-link {
        position: fixed;
        top: 12px;
        inset-inline-start: 12px;
        padding: 0.75rem 1rem;
        border-radius: 999px;
        background: rgba(var(--secondary-rgb), 0.92);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow-md);
        z-index: 2000;
        transform: translateY(-140%);
        transition: transform 0.2s ease;
    }

    a.skip-link:focus {
        transform: translateY(0);
    }

    a {
        color: inherit;
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Navigation: tighter rhythm + better tap targets */
    .nav-content {
        padding: 0.95rem 0;
    }

    .nav-menu {
        gap: 1.15rem;
    }

    .nav-link {
        padding: 0.55rem 0.25rem;
        font-weight: 700;
        letter-spacing: 0.2px;
    }

    .nav-link::before {
        height: 2px;
    }

    .logo {
        font-size: 1.6rem;
    }

    /* Buttons: consistent sizing + modern hover */
    .btn {
        border-radius: 999px;
        padding: 0.95rem 2.4rem;
        font-weight: 800;
        letter-spacing: 0.2px;
    }

    .btn-primary {
        box-shadow: 0 14px 45px rgba(var(--primary-rgb), 0.28);
    }

    .btn-primary:hover {
        transform: translateY(-1px);
    }

    .btn-secondary:hover {
        transform: translateY(-1px);
    }

    /* Section rhythm */
    .services,
    .portfolio,
    .about,
    .contact,
    .technologies,
    .faq-section,
    .map-section,
    .process-section,
    .services-preview {
        padding-top: var(--section-pad-y);
        padding-bottom: var(--section-pad-y);
    }

    .section-title {
        letter-spacing: 0.2px;
    }

    /* Cards: unify radius, borders, hover lift */
    .service-card,
    .feature-box,
    .tech-card,
    .game-showcase .feature-card,
    .faq-item,
    .process-step,
    .stat-item,
    .contact-form,
    .contact-info {
        border-radius: var(--radius-lg);
    }

    .service-card,
    .feature-box,
    .tech-card,
    .game-showcase .feature-card,
    .faq-item,
    .process-step {
        border-color: rgba(0, 0, 0, 0.06);
        box-shadow: var(--shadow-sm);
    }

    .service-card:hover,
    .feature-box:hover,
    .tech-card:hover,
    .game-showcase .feature-card:hover,
    .faq-item:hover,
    .process-step:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-soft);
    }

    /* Page header: cleaner depth */
    .page-header {
        background: var(--darker-color);
    }

    .page-header::before {
        opacity: 0.95;
    }

    /* Forms: modern inputs + focus */
    .contact-form {
        background: var(--surface-color);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: var(--shadow-md);
    }

    input,
    textarea,
    select {
        font-family: inherit;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        width: 100%;
        border-radius: 14px;
        border: 1px solid rgba(0, 0, 0, 0.10);
        background: rgba(255, 255, 255, 0.92);
        padding: 0.95rem 1rem;
        transition: var(--transition-fast);
    }

    .contact-form textarea {
        resize: vertical;
    }

    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
        border-color: rgba(var(--primary-rgb), 0.45);
        box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
    }

    /* Footer: slightly clearer separation */
    .footer {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Mobile: keep menu readable and “app-like” */
    @media (max-width: 768px) {
        .nav-menu {
            padding: 1.25rem 0 1.75rem;
        }

        .nav-menu .nav-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: min(520px, calc(100% - 2rem));
            margin-inline: auto;
            padding: 0.9rem 1rem;
            border-radius: 14px;
            color: rgba(255, 255, 255, 0.92);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .nav-menu .nav-link.active {
            background: rgba(var(--primary-rgb), 0.18);
            border-color: rgba(var(--primary-rgb), 0.28);
            color: white;
        }
    }
