/* =========================================
   Gaye4D Portfolio - Premium CSS
   ========================================= */

/* CSS Custom Properties — Light Mode (Default) */
:root {
    /* Colors - Light Theme */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f5;
    --bg-card: rgba(255, 255, 255, 0.85);

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);

    /* Gradient Colors */
    --gradient-start: #6366f1;
    --gradient-mid: #8b5cf6;
    --gradient-end: #d946ef;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #d946ef;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --whatsapp: #25d366;

    /* Theme-aware tokens */
    --border-subtle: rgba(26, 26, 46, 0.08);
    --border-accent: rgba(99, 102, 241, 0.25);
    --overlay-gradient: rgba(248, 249, 252, 0.95);
    --card-border: rgba(26, 26, 46, 0.06);
    --hero-grid-line: rgba(26, 26, 46, 0.04);
    --code-card-header-bg: rgba(0, 0, 0, 0.06);
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.92);
    --select-arrow-color: rgba(26, 26, 46, 0.4);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-preloader: 500;
}

/* Dark Mode Override */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(26, 26, 37, 0.6);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(99, 102, 241, 0.3);
    --overlay-gradient: rgba(10, 10, 15, 0.95);
    --card-border: rgba(255, 255, 255, 0.05);
    --hero-grid-line: rgba(255, 255, 255, 0.02);
    --code-card-header-bg: rgba(0, 0, 0, 0.3);
    --navbar-scrolled-bg: rgba(10, 10, 15, 0.9);
    --select-arrow-color: rgba(255, 255, 255, 0.5);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* =========================================
   Reset & Base
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   Cursor Follower
   ========================================= */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.1s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
}

@media (hover: hover) {
    .cursor-follower {
        opacity: 0.6;
    }
}

/* =========================================
   Preloader
   ========================================= */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.preloader-logo span {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-full);
    animation: preload 1.5s ease-in-out forwards;
}

@keyframes preload {
    0% {
        width: 0;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-lg) 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: var(--navbar-scrolled-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--bg-secondary);
        transition: var(--transition-base);
        padding: var(--space-2xl);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* =========================================
   Theme Toggle
   ========================================= */
html {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-primary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    transform: rotate(15deg);
}

.theme-toggle .theme-icon {
    width: 20px;
    height: 20px;
}

/* Light mode: show moon, hide sun */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Hero gradient adjustments for light mode */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(217, 70, 239, 0.08) 0%, transparent 40%);
}

[data-theme="dark"] .hero-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(217, 70, 239, 0.15) 0%, transparent 40%);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* hero-gradient is defined in Theme Toggle section above */

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-start);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-mid);
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-end);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--gradient-start);
    bottom: 10%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-lg);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.3s backwards;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.4s backwards;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    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;
}

.stat-plus {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-xs);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* =========================================
   Section Styling
   ========================================= */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* =========================================
   Services Section
   ========================================= */
.services {
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--border-accent);
}

.service-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-primary);
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.service-features li::before {
    content: '→';
    color: var(--accent-primary);
}

/* =========================================
   Projects Section
   ========================================= */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card.large {
    grid-column: span 2;
}

.project-card.wide {
    grid-column: span 2;
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-card.large .project-image {
    height: 400px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--overlay-gradient), transparent);
    z-index: 1;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.placeholder-icon {
    font-size: 4rem;
}

.placeholder-text {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

/* Project-specific gradients */
.ecolerim {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87, #1e3a5f);
}

.lassifoot {
    background: linear-gradient(135deg, #1a472a, #2d5a3f, #1a472a);
}

.rimcarte {
    background: linear-gradient(135deg, #4a1a6b, #6b2d8a, #4a1a6b);
}

.sosexclus {
    background: linear-gradient(135deg, #8b4513, #cd853f, #8b4513);
}

/* Project Images */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--space-xl);
    position: relative;
    z-index: 2;
}

.project-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent-primary);
}

.project-content h3 {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.project-content p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project-tech span {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition-base);
}

.project-link:hover {
    color: var(--text-primary);
}

.project-link svg {
    transition: var(--transition-base);
}

.project-link:hover svg {
    transform: translate(4px, -4px);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.large,
    .project-card.wide {
        grid-column: span 1;
    }
}

/* =========================================
   Formations Section
   ========================================= */
.formations {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.formations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.formations-carousel {
    position: relative;
}

.formations-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.formation-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    perspective: 1000px;
    overflow: hidden;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent, var(--gradient-start)), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: var(--border-accent);
}

[data-theme="dark"] .formation-card:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.formation-card:hover::before {
    opacity: 1;
}

.formation-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(217, 70, 239, 0.06));
    border-color: var(--border-accent);
}

[data-theme="dark"] .formation-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(217, 70, 239, 0.1));
}

.formation-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.formation-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.formation-badge.new {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.formation-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--accent) 5%, transparent));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    transition: transform 0.4s ease;
}

.formation-card:hover .formation-icon {
    transform: rotate(-5deg) scale(1.1);
}

.formation-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent, var(--accent-primary));
}

.formation-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.formation-desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.formation-modules {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-left: 0;
    list-style: none;
    flex-grow: 1;
}

.formation-modules li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    transition: transform 0.3s ease;
}

.formation-card:hover .formation-modules li {
    transform: translateX(4px);
}

.formation-card:hover .formation-modules li:nth-child(1) {
    transition-delay: 0ms;
}

.formation-card:hover .formation-modules li:nth-child(2) {
    transition-delay: 50ms;
}

.formation-card:hover .formation-modules li:nth-child(3) {
    transition-delay: 100ms;
}

.formation-card:hover .formation-modules li:nth-child(4) {
    transition-delay: 150ms;
}

.formation-card:hover .formation-modules li:nth-child(5) {
    transition-delay: 200ms;
}

.formation-modules li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    font-size: 10px;
    color: #ffffff;
    flex-shrink: 0;
    font-weight: 700;
}

.formation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.formation-duration,
.formation-format {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.formation-duration svg,
.formation-format svg {
    stroke: var(--accent-primary);
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.formation-cta {
    margin-top: auto;
    gap: var(--space-sm);
}

.formation-cta:hover svg {
    transform: translateX(4px);
}

.formation-cta svg {
    transition: transform 0.3s ease;
}

/* Price */
.formation-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-accent);
}

[data-theme="dark"] .formation-price {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
}

.price-amount {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-detail {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Formation actions row */
.formation-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

.formation-actions .btn {
    flex: 1;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
}

.formation-detail-btn {
    cursor: pointer;
}

/* Syllabus Modal */
.syllabus-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.syllabus-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.syllabus-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.modal-header {
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--accent) 5%, transparent));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.modal-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.modal-header h3 {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.modal-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.modal-body {
    padding: var(--space-lg) var(--space-2xl);
    overflow-y: auto;
    flex: 1;
}

.syllabus-module {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent-primary);
}

.syllabus-module h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.module-hours {
    font-size: var(--text-xs);
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-full);
    color: #ffffff;
}

.syllabus-module ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.syllabus-module li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: var(--space-lg);
    position: relative;
}

.syllabus-module li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.syllabus-module code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    color: var(--accent-primary);
}

.modal-footer {
    padding: var(--space-lg) var(--space-2xl);
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: var(--space-xl) var(--space-lg) var(--space-md);
    }

    .modal-body {
        padding: var(--space-md) var(--space-lg);
    }

    .modal-footer {
        padding: var(--space-md) var(--space-lg);
    }

    .formation-actions {
        flex-direction: column;
    }
}

.formations-dots {
    display: none;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.formations-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}

.formations-dots .dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

@keyframes flipInLeft {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(-80deg) translateX(-40px);
    }

    60% {
        transform: perspective(600px) rotateY(10deg);
    }

    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0) translateX(0);
    }
}

.formation-card[data-aos="flip-left"] {
    opacity: 0;
    transform: perspective(600px) rotateY(-80deg);
}

.formation-card[data-aos="flip-left"].aos-animate {
    animation: flipInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.formation-card[data-aos="flip-left"][data-aos-delay="150"].aos-animate {
    animation-delay: 150ms;
}

.formation-card[data-aos="flip-left"][data-aos-delay="300"].aos-animate {
    animation-delay: 300ms;
}

@media (max-width: 968px) {
    .formations-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    .formations-track::-webkit-scrollbar {
        display: none;
    }

    .formation-card {
        min-width: 85vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .formations-dots {
        display: flex;
    }
}

@media (max-width: 600px) {
    .formation-card {
        min-width: 90vw;
        padding: var(--space-xl);
    }
}

/* =========================================
   About Section
   ========================================= */
.about {
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-content .section-tag {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.feature {
    display: flex;
    gap: var(--space-md);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-md);
    font-weight: 700;
    flex-shrink: 0;
}

.feature h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Code Card */
.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
}

.about-pattern {
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 30%);
    border-radius: var(--radius-2xl);
    z-index: 0;
}

.about-card {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--code-card-header-bg);
    border-bottom: 1px solid var(--border-subtle);
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.card-dot:nth-child(1) {
    background: #ff5f56;
}

.card-dot:nth-child(2) {
    background: #ffbd2e;
}

.card-dot:nth-child(3) {
    background: #27c93f;
}

.card-content {
    padding: var(--space-xl);
}

.card-content pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: var(--text-sm);
    line-height: 1.8;
}

.code-keyword {
    color: #c792ea;
}

.code-var {
    color: #82aaff;
}

.code-prop {
    color: #c3e88d;
}

.code-string {
    color: #c3e88d;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .feature {
        text-align: left;
    }
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials {
    background: var(--bg-primary);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.testimonial-stars {
    font-size: var(--text-xl);
    color: #fbbf24;
    margin-bottom: var(--space-lg);
}

.testimonial-content p {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    font-weight: 700;
    font-size: var(--text-sm);
}

.author-info h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.author-info span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: var(--space-4xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info .section-tag {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
}

.contact-icon.whatsapp svg {
    stroke: none;
    fill: var(--whatsapp);
}

.contact-item h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.contact-item a,
.contact-item span {
    font-size: var(--text-base);
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--accent-primary);
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group label {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-sm);
    pointer-events: none;
    transition: var(--transition-base);
    background: var(--bg-tertiary);
    padding: 0 var(--space-xs);
}

.form-group textarea~label {
    top: var(--space-lg);
    transform: none;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%);
    font-size: var(--text-xs);
    color: var(--accent-primary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(26,26,46,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
}

[data-theme="dark"] .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        text-align: left;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    stroke: var(--text-muted);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.social-link:hover svg {
    fill: var(--text-primary);
    stroke: var(--text-primary);
}

.footer-links h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-newsletter h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent-primary);
}

.newsletter-form button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    flex-shrink: 0;
}

.newsletter-form button svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* =========================================
   WhatsApp Float Button
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* =========================================
   AOS Animation Override
   ========================================= */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }

    .hero-stats {
        gap: var(--space-xl);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .whatsapp-float {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}