/* ==========================================================================
   CRYSTAL CAR CARE - DARK CINEMATIC DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-black: #050505;
    --color-card-bg: #0D0D0D;
    --color-white: #FFFFFF;
    --color-electric-blue: #007BFF;
    --color-neon-blue-glow: rgba(0, 123, 255, 0.4);
    --color-accent-dim: rgba(0, 123, 255, 0.15);
    
    /* Text */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #007BFF 0%, #0040A8 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 30%, #007BFF 100%);
    --gradient-dark-card: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows & Glows */
    --glow-light: 0 0 20px rgba(0, 123, 255, 0.2);
    --glow-strong: 0 0 35px rgba(0, 123, 255, 0.45);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-cinematic: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-black);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on desktop when custom cursor is active */
@media (min-width: 1025px) {
    body, a, button, select, textarea, input, .comparison-slider, .slider-handle {
        cursor: none !important;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-black);
}
::-webkit-scrollbar-thumb {
    background: #1A1A1A;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-electric-blue);
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--color-electric-blue);
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.w-full {
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 123, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s, background-color 0.2s;
}

/* Hover expansion */
body.cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-electric-blue);
}

body.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--color-electric-blue);
    background-color: rgba(0, 123, 255, 0.05);
}

/* Dragging state */
body.cursor-dragging .cursor-outline {
    width: 30px;
    height: 30px;
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
}

.btn-primary:hover::after {
    opacity: 0.6;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--color-electric-blue);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.btn-cta-large {
    padding: 20px 48px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
}

/* ==========================================================================
   Header & Navigation (Glassmorphic)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--color-white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-electric-blue);
    box-shadow: 0 0 10px var(--color-electric-blue);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav-desktop {
    padding: 12px 24px;
    font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    padding: 130px 40px 40px;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
    transition: var(--transition-cinematic);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.mobile-link:hover {
    color: var(--color-white);
    padding-left: 8px;
}

/* Hamburger transition */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section (Cinematic Video Background)
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-black);
}

/* Video Wrapper */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(0.8) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5,5,5,0) 20%, rgba(5,5,5,0.85) 80%),
                linear-gradient(to bottom, rgba(5,5,5,0.7) 0%, var(--color-black) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-electric-blue);
    background-color: var(--color-accent-dim);
    border: 1px solid rgba(0, 123, 255, 0.2);
    box-shadow: var(--glow-light);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 28px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
    line-height: 1.75;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Floating indicators grid */
.floating-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.indicator-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.indicator-item:hover {
    border-color: var(--color-electric-blue);
    box-shadow: var(--glow-light);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.indicator-star {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.6));
}

.indicator-text h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.indicator-text p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.hero-bottom-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(circle, rgba(0,123,255,0.08) 0%, rgba(5,5,5,0) 70%);
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   Before/After Slider Section
   ========================================================================== */

.transformation-section {
    padding: 120px 0;
    background-color: var(--color-black);
    position: relative;
}

.slider-wrapper {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(0, 123, 255, 0.08);
    container-type: inline-size;
}

.image-after, .image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Before section has clip mask, overlay patterns and filters */
.image-before {
    width: 50%; /* JS will adjust this percentage */
    z-index: 2;
    overflow: hidden;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.image-before .slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100cqw;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Slide badge labels */
.badge-label {
    position: absolute;
    bottom: 24px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 4;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.label-after {
    right: 24px;
    background: rgba(0, 123, 255, 0.15);
    color: var(--color-white);
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.label-before {
    left: 24px;
    background: rgba(5, 5, 5, 0.6);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

/* Slider Drag Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* JS will adjust this percentage */
    width: 4px;
    height: 100%;
    background-color: var(--color-electric-blue);
    box-shadow: 0 0 15px var(--color-electric-blue);
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.handle-line {
    width: 2px;
    height: 40%;
    background-color: rgba(0, 123, 255, 0.5);
}

.handle-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-black);
    border: 2px solid var(--color-electric-blue);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--color-white);
    margin: 12px 0;
}

.handle-button svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Services Section (3D Tilt Cards)
   ========================================================================== */

.services-section {
    padding: 120px 0;
    background-color: var(--color-black);
    perspective: 1000px; /* Enable 3D space */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 48px 36px;
    box-shadow: var(--shadow-card);
    transform-style: preserve-3d; /* Required for 3D translations inside */
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s, box-shadow 0.4s;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    border-color: rgba(0, 123, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(0, 123, 255, 0.1);
}

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

/* Mouse spotlight highlight effect using JS */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 123, 255, 0.06), transparent 40%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 1;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px); /* Push elements forward in 3D */
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background-color: var(--color-accent-dim);
    color: var(--color-electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    border: 1px solid rgba(0, 123, 255, 0.15);
    box-shadow: var(--glow-light);
}

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

.service-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.service-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */

.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-black) 0%, #0A0A0A 50%, var(--color-black) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(0, 123, 255, 0.15);
    box-shadow: var(--glow-light);
    transform: translateY(-2px);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -1.5px;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   Gallery Section (Masonry Grid with Glassmorphic Detail Cards)
   ========================================================================== */

.gallery-section {
    padding: 120px 0;
    background-color: var(--color-black);
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 32px;
}

.masonry-item {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.masonry-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 123, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 25px rgba(0, 123, 255, 0.05);
}

.masonry-item img {
    width: 100%;
    height: 320px; /* Locked equal height for all images on PC */
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover img {
    transform: scale(1.03);
}

.masonry-glass-panel {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: transparent;
    padding: 24px;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

.masonry-glass-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.masonry-item:hover h4 {
    color: var(--color-electric-blue);
}

.masonry-glass-panel p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Timeline Section (Futuristic Stepper)
   ========================================================================== */

.timeline-section {
    padding: 120px 0;
    background-color: var(--color-black);
    position: relative;
}

.timeline-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 80px auto 0;
}

/* Horizontal line background */
.timeline-bar {
    position: absolute;
    left: 0;
    top: 25px;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.timeline-progress-line {
    width: 0%; /* JS will update this as active state changes */
    height: 100%;
    background-color: var(--color-electric-blue);
    box-shadow: 0 0 10px var(--color-electric-blue);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Grid of nodes */
.timeline-nodes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    z-index: 2;
}

.timeline-node {
    text-align: center;
    padding: 0 16px;
    transition: var(--transition-smooth);
}

.node-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-black);
    border: 2px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.node-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.node-desc {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    transition: var(--transition-smooth);
    opacity: 0.65;
}

/* Active and Hover states */
.timeline-node.active .node-dot,
.timeline-node:hover .node-dot {
    border-color: var(--color-electric-blue);
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.timeline-node.active .node-title {
    color: var(--color-electric-blue);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.timeline-node.active .node-desc {
    opacity: 1;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
    padding: 120px 0;
    background-color: var(--color-black);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 48px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 123, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 
                0 0 25px rgba(0,123,255,0.05);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.stars {
    color: #FBBF24;
    font-size: 1.1rem;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 0.5;
    color: var(--color-accent-dim);
}

.testimonial-text {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--color-accent-dim);
    color: var(--color-electric-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.client-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
}

.client-car {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    padding: 120px 0;
    background-color: var(--color-black);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
}

.faq-trigger:hover {
    color: var(--color-electric-blue);
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

/* Vertical */
.faq-icon::before {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

/* Horizontal */
.faq-icon::after {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.faq-item.active .faq-icon::before {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon::after {
    transform: rotate(180deg);
}

.faq-item.active .faq-trigger {
    color: var(--color-electric-blue);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    padding-bottom: 28px;
    line-height: 1.75;
}

/* ==========================================================================
   Final CTA Section (Interactive Spotlight Mouse Glow)
   ========================================================================== */

.cta-final-section {
    padding: 140px 0;
    background-color: var(--color-black);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Spotlight radial highlight tracking the client mouse in JS */
.cta-glow-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 500px at var(--cta-mouse-x, 50%) var(--cta-mouse-y, 50%), rgba(0, 123, 255, 0.15) 0%, rgba(5,5,5,0) 80%);
    pointer-events: none;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
    line-height: 1.75;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background-color: #020202;
    color: var(--color-text-secondary);
    padding: 100px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1.2fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

.footer-logo .logo-text {
    color: var(--color-white);
}

.footer-desc {
    margin-top: 24px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-grid h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-electric-blue);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background-color: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    transform: translateY(-2px);
    box-shadow: var(--glow-light);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 36px 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   Scroll Reveal System
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   Responsive Viewports
   ========================================================================== */

@media (max-width: 1024px) {
    /* Hide custom cursor elements on tablets and mobile screens to prevent interface blockages */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    
    /* Allow regular hover styles to not stick on touch */
    .hover-expand:hover {
        transform: none !important;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-indicators {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-grid {
        grid-gap: 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .btn-nav-desktop {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    /* Spacing between description text and slider on mobile */
    .slider-wrapper {
        margin-top: 32px !important;
    }
    
    /* Mobile Gallery Layout: Stacked cards with text separated below the image */
    .masonry-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }
    
    .masonry-item {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.015) !important;
        border: 1px solid rgba(255, 255, 255, 0.03) !important;
        border-radius: var(--radius-md) !important;
        overflow: hidden !important;
    }
    
    .masonry-item img {
        height: 260px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .masonry-glass-panel {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        opacity: 1 !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 20px 20px 24px !important;
        box-shadow: none !important;
    }
    
    .masonry-glass-panel h4 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .masonry-glass-panel p {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        color: var(--color-text-secondary) !important;
    }
    
    .masonry-item.tall {
        height: auto !important;
    }
    
    /* Switch comparison slider aspect ratio to 1:1 square on mobile */
    .comparison-slider {
        aspect-ratio: 1 / 1 !important;
    }
    
    /* Compact labels positioned at the top on mobile to avoid covering the car body */
    .badge-label {
        top: 12px !important;
        bottom: auto !important;
        font-size: 0.6rem !important;
        padding: 4px 10px !important;
        letter-spacing: 1px !important;
    }
    .label-before {
        left: 12px !important;
    }
    .label-after {
        right: 12px !important;
    }
    
    /* Make drag handle button smaller on mobile touch viewports */
    .handle-button {
        width: 36px !important;
        height: 36px !important;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.4) !important;
    }
    .handle-button svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Mobile Timeline Vertical Stepper */
    .timeline {
        padding: 20px 0 20px 10px;
    }
    .timeline-bar {
        display: block !important;
        left: 25px !important;
        top: 0 !important;
        width: 2px !important;
        height: 100% !important;
    }
    .timeline-progress-line {
        width: 100% !important;
        height: 0%;
        transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .timeline-nodes {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }
    .timeline-node {
        display: flex !important;
        gap: 20px !important;
        text-align: left !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 !important;
        border-bottom: none !important;
    }
    .node-dot {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .node-title {
        margin-bottom: 4px !important;
    }
    .node-desc {
        text-align: left !important;
        max-width: 100% !important;
        opacity: 0.8;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .floating-indicators {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-trigger {
        font-size: 1.05rem;
    }
}

/* Touch devices visual adjustments */
@media (hover: none) {
    /* Disable 3D tilt effects on touchscreens to prevent awkward sticky orientations */
    .tilt-card {
        transform: none !important;
        transition: none !important;
    }
    .tilt-card:hover {
        border-color: rgba(255, 255, 255, 0.03) !important;
        box-shadow: var(--shadow-card) !important;
    }
    .tilt-card:hover::before {
        opacity: 0 !important;
    }
    
    /* Slider drag touch actions - prevents screen pan-scrolling while dragging */
    .slider-handle {
        touch-action: none !important;
    }
    .comparison-slider {
        touch-action: pan-y !important;
    }
}
