/* ========================================
   Simple Head Drive - Main Stylesheet
   Modern, Accessible, Racing-inspired Design
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Ferrari Racing Theme */
    --ferrari-red: #DC0000;
    --ferrari-red-dark: #B00000;
    --ferrari-red-light: #FF1a1a;

    /* Neutrals - Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #111827;
    --bg-surface: #1f2937;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent Colors */
    --accent-blue: #38bdf8;
    --accent-green: #22c55e;
    --accent-yellow: #f59e0b;
    --accent-purple: #a855f7;

    /* Borders & Shadows */
    --border-color: #334155;
    --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);
    --glow-red: 0 0 20px rgba(220, 0, 0, 0.5);
    --glow-blue: 0 0 20px rgba(56, 189, 248, 0.5);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--ferrari-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Padding */
.section-padding {
    padding: var(--spacing-2xl) 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--spacing-md);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-name,
.nav-logo-text {
    background: linear-gradient(135deg, var(--ferrari-red), var(--ferrari-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 800;
}

.nav-menu {
    display: none;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ferrari-red);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-left: auto;
    margin-right: calc(-1 * var(--spacing-md));
    z-index: 10;
}

.nav-download-btn {
    padding: 0.625rem 1.5rem;
    background: var(--ferrari-red);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border: 2px solid var(--ferrari-red);
    text-transform: none;
}

.nav-download-btn:hover {
    background: var(--ferrari-red-dark);
    border-color: var(--ferrari-red-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .nav-download-btn {
        display: none;
    }
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
}

.lang-toggle:hover {
    border-color: var(--ferrari-red);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.lang-flag {
    display: inline-block;
    width: 1.5rem;
    height: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.lang-flag--fr {
    background-image: linear-gradient(90deg, #0055A4 0%, #0055A4 33.33%, #ffffff 33.33%, #ffffff 66.66%, #EF4135 66.66%, #EF4135 100%);
}

.lang-flag--en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Crect width='60' height='30'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0l27 13.5L0 30h6l24-12h6l24 12h6L33 13.5 60 0h-6l-24 12h-6L6 0H0z' fill='%23fff'/%3E%3Cpath d='M0 0l27 13.5L0 30' stroke='%23C8102E' stroke-width='6'/%3E%3Cpath d='M60 0L33 13.5 60 30' stroke='%23C8102E' stroke-width='6'/%3E%3Cpath d='M24 0v30h12V0z' fill='%23fff'/%3E%3Cpath d='M0 12v6h60v-6H0z' fill='%23fff'/%3E%3Cpath d='M26 0v30h8V0z' fill='%23C8102E'/%3E%3Cpath d='M0 13v4h60v-4H0z' fill='%23C8102E'/%3E%3C/g%3E%3C/svg%3E");
}

.lang-flag.is-active {
    border-color: var(--ferrari-red);
    box-shadow: 0 0 8px rgba(220, 0, 0, 0.4);
    transform: scale(1.05);
}

.lang-flag.is-hidden {
    display: none;
}

.lang-text {
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--ferrari-red);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .lang-toggle {
        margin-left: var(--spacing-lg);
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(220, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #1a2332 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 0, 0, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, var(--ferrari-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.badge {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--ferrari-red);
    color: white;
    box-shadow: var(--shadow-md), var(--glow-red);
}

.btn-primary:hover {
    background: var(--ferrari-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-red);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--ferrari-red);
}

.btn-secondary:hover {
    background: var(--ferrari-red);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-icon {
    font-size: 1.25rem;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--ferrari-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

/* ========================================
   About Section
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1.2fr 1fr;
    }
}

.about-text .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-list li {
    font-size: 1.125rem;
    padding-left: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--ferrari-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-red);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ferrari-red);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--ferrari-red);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--glow-red);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   How It Works - Timeline
   ======================================== */

.how-it-works {
    background: var(--bg-primary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--ferrari-red) 0%, var(--accent-blue) 100%);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    padding-left: 130px;
    min-height: 100px;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 50px;
    }

    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-right: 0;
        padding-left: 50px;
    }
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 10px;
    width: 70px;
    height: 70px;
    background: var(--ferrari-red);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--glow-red);
    z-index: 10;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .timeline-marker {
        top: 50%;
        left: auto;
        transform: translateY(-50%);
    }

    .timeline-item:nth-child(odd) .timeline-marker {
        right: -35px;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: -35px;
    }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--ferrari-red);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Demo Section
   ======================================== */

.demo-video {
    margin-top: var(--spacing-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.demo-video video,
.demo-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(220, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(220, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    background-color: #000;
}

.demo-video video:hover,
.demo-video iframe:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(220, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(220, 0, 0, 0.6);
}

.video-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    aspect-ratio: 16 / 9;
    min-height: 300px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0.95) 55%, rgba(15, 23, 42, 1) 100%);
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: default;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.15), rgba(56, 189, 248, 0.1));
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.video-play-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(220, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(220, 0, 0, 0.5);
}

.video-play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent white;
    margin-left: 6px;
}

.video-label,
.video-note {
    position: relative;
    z-index: 1;
}

.video-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.video-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.video-placeholder:focus-visible {
    outline: 2px solid var(--ferrari-red);
    outline-offset: 4px;
}

.video-placeholder.is-loading {
    pointer-events: none;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-fallback {
    margin-top: var(--spacing-md);
    text-align: center;
    color: var(--text-secondary);
}

.video-fallback-note {
    margin-bottom: var(--spacing-sm);
}

.video-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--ferrari-red);
    background: transparent;
    color: var(--ferrari-red);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-retry:hover,
.video-retry:focus-visible {
    background: var(--ferrari-red);
    color: #fff;
    box-shadow: 0 0 18px rgba(220, 0, 0, 0.35);
    outline: none;
}

@media (max-width: 640px) {
    .video-placeholder {
        min-height: 220px;
        padding: var(--spacing-md);
    }

    .video-play-icon {
        width: 64px;
        height: 64px;
    }

    .video-play-icon::after {
        border-width: 12px 0 12px 18px;
    }

    .video-label {
        font-size: 1.1rem;
    }
}

/* ========================================
   System Requirements
   ======================================== */

.requirements {
    background: var(--bg-secondary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.requirement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.requirement-card:hover {
    border-color: var(--ferrari-red);
    transform: translateY(-5px);
}

.requirement-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.requirement-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--ferrari-red);
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.requirement-card li:last-child {
    border-bottom: none;
}

/* ========================================
   Download Section
   ======================================== */

.download {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-subtitle {
    font-size: 1.25rem;
    color: var(--accent-green);
    margin-bottom: var(--spacing-xl);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
}

.download-steps h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: left;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-green);
    line-height: 1.8;
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery {
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: white;
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--ferrari-red), var(--ferrari-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--ferrari-red);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--ferrari-red);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-credit {
    margin-top: var(--spacing-sm);
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-ferrari {
    color: var(--ferrari-red);
}

.bg-card {
    background: var(--bg-card);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 767px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ========================================
   Coffee Button (Floating Donation Button)
   ======================================== */

.coffee-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF813F 0%, #FF6B35 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow:
        0 8px 20px rgba(255, 107, 53, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: coffee-pulse 3s ease-in-out infinite;
}

.coffee-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 30px rgba(255, 107, 53, 0.6),
        0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #FF9155 0%, #FF7B45 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.coffee-button:active {
    transform: translateY(-2px) scale(1.02);
}

.coffee-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.coffee-text {
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .coffee-button {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .coffee-icon {
        font-size: 1.3rem;
    }

    .coffee-text {
        display: none;
    }

    .coffee-button {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .coffee-button {
        animation: none;
    }
}
