
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.cdnfonts.com/css/arupala-grotesk');

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

:root {
    --color-primary-dark: #0a0a0a;
    --color-dark-900: #151515;
    --color-dark-800: #2a2a2a;
    --color-dark-700: #3f3f3f;
    --color-dark-600: #555555;
    --color-light-300: #b3b3b3;
    --color-light-100: #f4f4f4;
    --color-white: #ffffff;

    --accent-red: #ec1c24;
    --accent-red-dark: #d51f1f;
    --accent-red-darker: #b81818;
    --accent-success: #1fc486;
    --accent-warning: #ffbc3a;
    --accent-info: #4da9ff;

    --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    --gradient-red-glow: linear-gradient(0deg, rgba(255, 79, 79, 0) 0%, rgba(255, 79, 79, 0.4) 100%);

    --font-primary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Arupala Grotesk', 'Montserrat', sans-serif;

    --container-max: 1400px;
    --grid-gutter: 32px;

    --space-xs: 4px;
    --space-s: 8px;
    --space-sm: 12px;
    --space-m: 16px;
    --space-l: 32px;
    --space-xl: 64px;
    --space-xxl: 128px;

    /* Legacy variables (to be refactored progressively) */
    --primary-red: var(--accent-red);
    --dark-bg: var(--color-primary-dark);
    --darker-bg: var(--color-dark-900);
    --light-text: var(--color-white);
    --grey-text: var(--color-light-300);
    --dark-grey: var(--color-dark-800);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 79, 79, 0.04), transparent 55%);
    background-attachment: fixed;
}

body.light-mode {
    background-color: var(--color-light-100);
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-white);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--color-primary-dark);
}

p, li, span, a, button, input, textarea {
    font-family: var(--font-primary);
}

.text-label,
.nav-links a,
.btn-nav,
.btn-primary,
.btn-outline {
    font-family: var(--font-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    display: inline-block;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.nav-left {
    justify-self: start;
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.logo a:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(236, 28, 36, 0.6));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    background: transparent;
    color: var(--color-white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
    font-size: 0.7rem;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-red) !important;
    border-color: var(--accent-red);
    text-decoration: none !important;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav::before {
    display: none !important;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-red);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(255, 79, 79, 0.25);
}

.btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 79, 79, 0.35);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-white);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.25);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

/* Section Utilities */
.section-kicker {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: var(--space-xs);
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-white);
    margin-bottom: var(--space-m);
}

.section-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.light-section {
    background: var(--color-light-100);
    color: var(--color-primary-dark);
}

.light-section .section-title {
    color: var(--color-primary-dark);
}

.light-section .section-description {
    color: var(--color-dark-600);
}

.light-section .section-kicker {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    padding: var(--space-xxl) var(--space-l);
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 79, 79, 0.25), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('portofino-mansory/logo/transparent.png') no-repeat 110% 10%;
    background-size: 40%;
    opacity: 0.03;
    pointer-events: none;
    animation: floatBackground 20s ease-in-out infinite;
}

/* Hide any background text overlays like "text 4 of 32" */
.hero {
    position: relative;
}

.hero::before,
.hero::after {
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

/* Ensure no text appears in background images */
.hero-card::before,
.hero-card::after {
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
}

/* Particle effect overlay */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(236, 28, 36, 0.4);
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
}

.hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.hero-particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.hero-particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.hero-particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.hero-particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.hero-particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.hero-particle:nth-child(8) { left: 80%; animation-delay: 4.5s; }
.hero-particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }

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

@keyframes floatBackground {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -10px) rotate(2deg);
    }
    66% {
        transform: translate(20px, 10px) rotate(-2deg);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-20vh) translateX(20px) scale(1);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    color: var(--color-white);
    animation: fadeInUp 1s ease-out;
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-s);
    animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-title {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-m);
    letter-spacing: 0.08em;
    text-shadow: 0 0 30px rgba(236, 28, 36, 0.3),
                 0 0 60px rgba(236, 28, 36, 0.2),
                 0 0 90px rgba(236, 28, 36, 0.1);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title .accent {
    color: var(--accent-red);
    text-shadow: 0 0 40px rgba(236, 28, 36, 0.6),
                 0 0 80px rgba(236, 28, 36, 0.4),
                 0 0 120px rgba(236, 28, 36, 0.2);
    animation: glowPulse 3s ease-in-out infinite;
}

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

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 40px rgba(236, 28, 36, 0.6),
                     0 0 80px rgba(236, 28, 36, 0.4),
                     0 0 120px rgba(236, 28, 36, 0.2);
    }
    50% {
        text-shadow: 0 0 60px rgba(236, 28, 36, 0.8),
                     0 0 100px rgba(236, 28, 36, 0.6),
                     0 0 140px rgba(236, 28, 36, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-l);
    max-width: 520px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-m);
    margin-bottom: var(--space-l);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-m);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 28, 36, 0.3);
    box-shadow: 0 8px 30px rgba(236, 28, 36, 0.2);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
}

.metric-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: var(--space-m);
    flex-wrap: wrap;
}

.btn-ghost {
    border: none;
    background: transparent;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    gap: var(--space-s);
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.btn-ghost::after {
    content: '↗';
    font-size: 1rem;
}

.btn-ghost:hover {
    color: var(--accent-red);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: var(--space-l);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(236, 28, 36, 0.1);
    transition: all 0.5s ease;
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(236, 28, 36, 0.2);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('portofino-mansory/exterior/6818bf05ec5a182af127f484_Ferrari%20Portofino%20M-Gallery-001.webp') no-repeat center/cover;
    opacity: 0.35;
    filter: blur(0.5px);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.95) 100%),
                linear-gradient(90deg, rgba(10, 10, 10, 0.3) 0%, transparent 20%, transparent 80%, rgba(10, 10, 10, 0.3) 100%);
}

.hero-card-content {
    position: relative;
    z-index: 1;
}

.hero-model-label {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    margin-bottom: var(--space-s);
}

.hero-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-s);
}

.hero-card-copy {
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--space-xs);
    max-width: 360px;
    line-height: 1.7;
}

.hero-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-m);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-m);
}

.hero-glass span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.hero-glass-heading {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

/* CTA Benefits Section - Redesigned */
.cta-benefits-section {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.cta-benefits-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xxl) var(--space-l);
    overflow: hidden;
}

.cta-benefits-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.attelia-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-benefits-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(236, 28, 36, 0.2) 100%);
    z-index: 1;
}

.cta-benefits-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-l);
}

.cta-benefits-badge {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: var(--space-m);
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(236, 28, 36, 0.3);
    border-radius: 999px;
    background: rgba(236, 28, 36, 0.1);
    backdrop-filter: blur(10px);
}

.cta-benefits-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-l);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-benefits-title .title-line {
    display: block;
    color: var(--color-white);
    text-shadow: 0 0 40px rgba(236, 28, 36, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.cta-benefits-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.cta-benefits-title .title-line:nth-child(3) {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.cta-benefits-title .title-line.accent {
    color: var(--accent-red);
    text-shadow: 0 0 60px rgba(236, 28, 36, 0.6),
                 0 0 100px rgba(236, 28, 36, 0.4);
    position: relative;
}

.cta-benefits-lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.cta-benefits-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xxl) var(--space-l);
    position: relative;
    z-index: 1;
    background: var(--color-primary-dark);
}

.cta-benefits-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xxl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.cta-stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.cta-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 30px rgba(236, 28, 36, 0.5);
}

.cta-stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.cta-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 var(--space-m);
}

.cta-benefits-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.cta-feature-item {
    display: flex;
    gap: var(--space-l);
    padding: var(--space-l);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.cta-feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 28, 36, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(236, 28, 36, 0.15);
}

.cta-feature-item:hover::before {
    transform: scaleY(1);
}

.cta-feature-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(236, 28, 36, 0.2);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.4s ease;
}

.cta-feature-item:hover .cta-feature-number {
    color: var(--accent-red);
}

.cta-feature-content {
    flex: 1;
}

.cta-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-s);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cta-benefits-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-m);
    flex-wrap: wrap;
    padding-top: var(--space-xl);
}

@media (max-width: 1024px) {
    .cta-benefits-hero {
        min-height: 60vh;
    }
    
    .cta-benefits-stats {
        flex-direction: column;
        gap: var(--space-l);
    }
    
    .cta-stat-divider {
        width: 60px;
        height: 1px;
        margin: var(--space-m) 0;
    }
    
    .cta-benefits-features {
        grid-template-columns: 1fr;
    }
    
    .cta-feature-item {
        flex-direction: column;
        gap: var(--space-m);
    }
    
    .cta-feature-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cta-benefits-hero {
        min-height: 50vh;
        padding: var(--space-xl) var(--space-m);
    }
    
    .cta-benefits-title {
        font-size: 2.5rem;
    }
    
    .cta-benefits-lead {
        font-size: 1rem;
    }
}

.section-header-center {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title-center {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: var(--space-m);
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-l);
    margin-bottom: var(--space-xl);
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(236, 28, 36, 0.4);
    box-shadow: 0 20px 60px rgba(236, 28, 36, 0.2);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: var(--space-m);
    line-height: 1;
    text-shadow: 0 0 20px rgba(236, 28, 36, 0.5);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-m);
    letter-spacing: 0.05em;
}

.benefit-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cta-benefits-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-m);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 20px rgba(236, 28, 36, 0.4);
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.showroom-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    align-items: center;
}

.showroom-visual {
    position: relative;
}

.showroom-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 10, 10, 0.2);
}

.showroom-image {
    width: 100%;
    height: 520px;
    background: linear-gradient(135deg, #0a0a0a, #151515);
    border-radius: 32px;
    border: 1px solid rgba(10, 10, 10, 0.08);
    position: relative;
    overflow: hidden;
}

.showroom-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('portofino-mansory/exterior/6818bf05ec5a182af127f484_Ferrari%20Portofino%20M-Gallery-001.webp') no-repeat center/cover;
    opacity: 0.15;
}

.showroom-model {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background: radial-gradient(circle at center, rgba(236, 28, 36, 0.1), rgba(0, 0, 0, 0.8));
    cursor: grab;
    transition: all 0.3s ease;
}

.showroom-model:active {
    cursor: grabbing;
}

.showroom-model:hover {
    filter: brightness(1.1);
}

/* Hide fallback text when model-viewer is working */
.showroom-model::slotted(*) {
    display: none;
}

/* Fallback message styling - only shows if model-viewer fails */
.showroom-model:not(:defined)::before {
    content: 'Loading 3D model...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease, background 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

.overlay-content p {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-text);
    margin: 0;
}

.showroom-image:hover .image-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.showroom-image:hover .showroom-model {
    filter: brightness(1.05);
}

.btn-3d {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-3d:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.showroom-content {
    background: var(--color-white);
    border-radius: 32px;
    padding: var(--space-xl);
    box-shadow: 0 40px 80px rgba(10, 10, 10, 0.08);
    border: 1px solid #eeeeee;
}

.showroom-pills {
    display: flex;
    gap: var(--space-s);
    margin-bottom: var(--space-m);
    flex-wrap: wrap;
}

.showroom-pill {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 10, 10, 0.08);
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-dark-600);
}

.showroom-content .section-title {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-s);
}

.showroom-content .section-description {
    color: var(--color-dark-600);
    margin-bottom: var(--space-l);
}

.feature-list {
    list-style: none;
    margin-bottom: var(--space-xl);
    display: grid;
    gap: var(--space-m);
}

.feature-list li {
    border-left: 2px solid rgba(10, 10, 10, 0.1);
    padding-left: var(--space-m);
}

.feature-list li strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.feature-list li span {
    color: var(--color-dark-600);
    display: block;
}

.showroom-actions {
    display: flex;
    gap: var(--space-m);
    flex-wrap: wrap;
}

/* Gallery Section */
.gallery-section {
    padding: var(--space-xxl) var(--space-l);
}

.gallery-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.gallery-main {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 480px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--space-s);
    background: radial-gradient(circle at top, rgba(255, 79, 79, 0.2), rgba(10, 10, 10, 0.9));
    cursor: pointer;
    transition: transform 0.5s ease;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('portofino-mansory/exterior/6818bf05ec5a182af127f484_Ferrari%20Portofino%20M-Gallery-001.webp') no-repeat center/cover;
    opacity: 0.25;
}

.video-thumbnail:hover {
    transform: translateY(-6px);
}

.play-button {
    width: 88px;
    height: 88px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    margin-bottom: var(--space-m);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 26px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.video-thumbnail:hover .play-button {
    border-color: var(--accent-red);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 79, 79, 0.4);
}

.video-label {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.car-name {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
}

.gallery-card:nth-child(1) .card-image {
    background-image: url('portofino-mansory/exterior/6818bf05ec5a182af127f47d_Ferrari%20Portofino%20M-Gallery-004.webp');
}

.gallery-card:nth-child(2) .card-image {
    background-image: url('portofino-mansory/exterior/6818bf04ec5a182af127f41e_Ferrari%20Portofino%20M-Gallery-003.webp');
}

.gallery-card:nth-child(3) .card-image {
    background-image: url('portofino-mansory/exterior/6818bf02ec5a182af127f377_Ferrari%20Portofino%20M-Gallery-002.webp');
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
    padding: var(--space-m);
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.gallery-footer {
    text-align: center;
    margin-top: var(--space-l);
}

/* Difference Section */
.difference-section {
    padding: var(--space-xxl) var(--space-l);
    background: var(--color-primary-dark);
}

.difference-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.difference-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-l);
    margin-top: var(--space-xl);
}

.difference-card {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-l);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border 0.3s ease;
}

.difference-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 79, 79, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.difference-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.card-icon {
    font-size: 2.4rem;
    margin-bottom: var(--space-m);
}

.difference-card h3 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.difference-card p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* Page Hero (for About, Appointment, Showroom) */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(236, 28, 36, 0.1) 0%, transparent 100%);
    position: relative;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(236, 28, 36, 0.5);
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--grey-text);
    font-weight: 300;
}

/* About Page Styles */
.about-content {
    padding: var(--space-xxl) var(--space-l);
    position: relative;
    background: radial-gradient(circle at top right, rgba(236, 28, 36, 0.1), transparent 45%), var(--color-dark-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(236, 28, 36, 0.05) 60%, transparent 100%);
    pointer-events: none;
}

.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
    margin: var(--space-xl) 0 var(--space-l);
}

.stat-card {
    padding: var(--space-l);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 28, 36, 0.6);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.6);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.stat-value {
    display: block;
    font-size: clamp(2.5rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--grey-text);
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
    align-items: center;
}

.about-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--accent-red);
    margin-bottom: var(--space-l);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--color-light-300);
    line-height: 1.8;
    margin-bottom: var(--space-m);
}

.about-visual {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-portrait {
    width: min(320px, 70vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(236, 28, 36, 0.4);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.portrait-ring {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    animation: slow-rotate 24s linear infinite;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.05);
}

.founder-meta {
    text-align: center;
}

.founder-role {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

.founder-highlight {
    font-size: 0.95rem;
    color: var(--grey-text);
}

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

.about-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.intro-grid {
    margin-top: var(--space-l);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: start;
}

.about-intro .mission-text {
    text-align: left;
}

.intro-highlight {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-card {
    padding: var(--space-l);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.highlight-card:hover {
    border-color: rgba(236, 28, 36, 0.6);
    transform: translateY(-4px);
}

.highlight-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.65rem;
}

.highlight-card p {
    color: var(--color-light-300);
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-intro h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--color-white);
    margin-bottom: var(--space-l);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.about-mission {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.about-mission h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-l);
}

.mission-text {
    font-size: 1.05rem;
    color: var(--color-light-300);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-values {
    margin-top: 5rem;
}

.about-values h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--dark-grey);
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 30px rgba(236, 28, 36, 0.2);
}

.value-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--accent-red);
    margin-bottom: var(--space-m);
}

.value-card p {
    color: var(--color-light-300);
    line-height: 1.8;
    font-size: 0.95rem;
}

.legacy-cta {
    margin-top: var(--space-xxl);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(236, 28, 36, 0.12), transparent 55%), rgba(15, 15, 15, 0.85);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-l);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
}

.legacy-cta h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.legacy-cta p {
    color: var(--grey-text);
    max-width: 560px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .about-grid:nth-of-type(even) .about-visual {
        order: -1;
    }

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .about-content {
        padding: 4rem 1.5rem;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .legacy-cta {
        padding: 2rem;
    }
}

/* Appointment Page Styles */
.appointment-section {
    padding: var(--space-xxl) var(--space-l);
}

.appointment-container {
    max-width: 1400px;
    margin: 0 auto;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.appointment-form-wrapper h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.form-intro {
    color: var(--grey-text);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--dark-grey);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 8px;
}

.form-group select {
    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='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

.form-group input[type="date"] {
    position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    opacity: 0.8;
    filter: invert(1);
    width: 20px;
    height: 20px;
}

.form-group select,
.form-group input[type="date"] {
    height: 48px;
    display: flex;
    align-items: center;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(236, 28, 36, 0.2);
}

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

.btn-submit {
    margin-top: 1rem;
    width: 100%;
}

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

.info-card {
    background: var(--dark-grey);
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.contact-details p,
.hours-details p {
    color: var(--grey-text);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.contact-details strong,
.hours-details strong {
    color: var(--light-text);
}

.info-card .btn-outline {
    margin-top: 1rem;
    text-align: center;
    display: block;
}

/* Showroom Page Styles */
.showroom-filters {
    padding: 2rem;
    background: var(--dark-grey);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    color: var(--light-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-select {
    background: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.showroom-grid-section {
    padding: 4rem 2rem;
}

.showroom-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.car-card {
    background: var(--dark-grey);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.car-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 40px rgba(236, 28, 36, 0.3);
    transform: translateY(-10px);
}

.car-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-image.ferrari-portofino-m {
    /* Image is now using img tag, no background needed */
}

.car-image.lamborghini-huracan {
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.car-image.porsche-gt3 {
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.car-image.rolls-royce-ghost {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.car-image.mclaren-p1 {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.car-image.bugatti-chiron {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.car-info {
    padding: 2rem;
}

.car-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.car-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.car-specs span {
    color: var(--grey-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.car-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.car-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(236, 28, 36, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.footer-logo-link:hover .footer-logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(236, 28, 36, 0.6));
}

.footer-left p {
    color: var(--grey-text);
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
    color: var(--light-text);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--grey-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icon {
    color: var(--grey-text);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icon:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--grey-text);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger animation delays */
.scroll-animate.delay-1,
.fade-in-up.delay-1,
.fade-in.delay-1,
.slide-in-left.delay-1,
.slide-in-right.delay-1,
.scale-in.delay-1 { transition-delay: 0.1s; }

.scroll-animate.delay-2,
.fade-in-up.delay-2,
.fade-in.delay-2,
.slide-in-left.delay-2,
.slide-in-right.delay-2,
.scale-in.delay-2 { transition-delay: 0.2s; }

.scroll-animate.delay-3,
.fade-in-up.delay-3,
.fade-in.delay-3,
.slide-in-left.delay-3,
.slide-in-right.delay-3,
.scale-in.delay-3 { transition-delay: 0.3s; }

.scroll-animate.delay-4,
.fade-in-up.delay-4,
.fade-in.delay-4,
.slide-in-left.delay-4,
.slide-in-right.delay-4,
.scale-in.delay-4 { transition-delay: 0.4s; }

.scroll-animate.delay-5,
.fade-in-up.delay-5,
.fade-in.delay-5,
.slide-in-left.delay-5,
.slide-in-right.delay-5,
.scale-in.delay-5 { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container,
    .showroom-container,
    .about-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .difference-cards {
        grid-template-columns: 1fr;
    }

    .showroom-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: auto;
        padding: 1rem 0;
    }

    .logo-image {
        height: 60px;
    }

    .nav-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-left,
    .logo,
    .nav-right {
        justify-self: center;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .specs-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Premium Styling Enhancements */
.product-nav-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--darker-bg);
    padding: 2rem;
    position: sticky;
    top: 96px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-nav-menu > div,
.product-nav-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.product-nav-menu a {
    position: relative;
    color: var(--grey-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
}

.product-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.product-nav-menu a:hover,
.product-nav-menu a.active {
    color: var(--accent-red);
}

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

.product-nav-menu .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

/* Badge and CTA utilities */
.badge-one-of-one {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-one-of-one-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-section-large {
    margin-top: 3rem;
}

.cta-section-large .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.cta-section-large p {
    color: var(--grey-text);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.section-header-center {
    text-align: center;
}

.exterior-gallery {
    margin-bottom: 4rem;
}

.gallery-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.section-title-large {
    font-size: 2rem;
}

.about-section-spacing {
    margin-top: 5rem;
}

.about-mission-spacing {
    margin-bottom: 3rem;
}

.product-details-alt {
    background: var(--darker-bg);
}

.form-disclaimer {
    color: var(--grey-text);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

.appointment-only-badge {
    margin-top: 1rem;
    color: var(--primary-red);
    font-weight: 600;
}

.hero-badge-container {
    margin-bottom: 1rem;
}

.hero-cta-container {
    margin-top: 2rem;
}

.hero-cta-container .btn-primary {
    margin-right: 1rem;
}

.product-subtitle {
    margin-top: 1rem;
}

.featured-card {
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 30px rgba(236, 28, 36, 0.3);
}

.badge-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.collection-limit-badge {
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(236, 28, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 28, 36, 0.8);
    }
}

