/* =====================================================
   555 SPEEDWAY - Go-Kart Racing Website
   Dark racing theme with neon cyan/magenta accents
===================================================== */

:root {
    /* Colors */
    --primary: #00f0ff;
    --primary-dark: #00c4cc;
    --secondary: #ff00ff;
    --accent: #ff3366;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text: #ffffff;
    --text-muted: #8888aa;
    --text-dim: #555577;
    --border: rgba(255, 255, 255, 0.08);
    --glow: rgba(0, 240, 255, 0.3);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

/* Tap to Start */
.tap-to-start {
    cursor: pointer;
    padding: 40px;
    transition: all 0.3s ease;
}

.tap-to-start:hover .tap-icon svg,
.tap-to-start:active .tap-icon svg {
    stroke: var(--primary);
    filter: drop-shadow(0 0 15px var(--glow));
    transform: scale(1.1);
}

.tap-to-start.hidden {
    display: none;
}

.tap-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    animation: pulse-key 2s ease-in-out infinite;
}

.tap-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
    transition: all 0.3s ease;
}

@keyframes pulse-key {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

.tap-text {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--primary);
    animation: blink-text 1.5s ease-in-out infinite;
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Ignition Sequence (hidden until tap) */
.ignition-sequence {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ignition-sequence.active {
    display: block;
    opacity: 1;
}

/* Enhanced Speedometer */
.speedometer {
    width: 120px;
    height: 120px;
    border: 4px solid var(--border);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 25px;
    background: radial-gradient(circle at center, rgba(0,240,255,0.05) 0%, transparent 70%);
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.speedometer.active {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--glow), inset 0 0 30px rgba(0,240,255,0.1);
    opacity: 1;
    transform: scale(1);
}

.speed-marks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.speed-marks span {
    position: absolute;
    width: 2px;
    height: 10px;
    background: var(--text-dim);
    left: 50%;
    top: 8px;
    transform-origin: center 52px;
    transition: background 0.3s ease;
}

.speedometer.active .speed-marks span {
    background: var(--primary);
}

.speed-marks span:nth-child(1) { transform: translateX(-50%) rotate(-60deg); }
.speed-marks span:nth-child(2) { transform: translateX(-50%) rotate(-30deg); }
.speed-marks span:nth-child(3) { transform: translateX(-50%) rotate(0deg); }
.speed-marks span:nth-child(4) { transform: translateX(-50%) rotate(30deg); }
.speed-marks span:nth-child(5) { transform: translateX(-50%) rotate(60deg); }

.speed-center {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.speedometer.active .speed-center {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.needle {
    position: absolute;
    width: 4px;
    height: 45px;
    background: linear-gradient(to top, var(--accent), var(--secondary));
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-60deg);
    border-radius: 2px;
    transition: none;
    box-shadow: 0 0 10px rgba(255,51,102,0.5);
}

.needle.revving {
    animation: needle-rev 1.5s ease-out forwards;
}

@keyframes needle-rev {
    0% { transform: translateX(-50%) rotate(-60deg); }
    20% { transform: translateX(-50%) rotate(50deg); }
    35% { transform: translateX(-50%) rotate(20deg); }
    50% { transform: translateX(-50%) rotate(60deg); }
    65% { transform: translateX(-50%) rotate(30deg); }
    80% { transform: translateX(-50%) rotate(70deg); }
    100% { transform: translateX(-50%) rotate(45deg); }
}

/* Engine Status Text */
.engine-status {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-top: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.engine-status.starting {
    color: var(--accent);
}

.engine-status.running {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
    animation: pulse-text 0.5s ease infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    text-shadow: 0 0 20px var(--glow);
}

.preloader-text span {
    display: block;
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.logo-555 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
}

.logo-speedway {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--glow);
}

.btn-glow:hover {
    box-shadow: 0 0 40px var(--glow);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20bf5b;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.7) 0%,
        rgba(10, 10, 15, 0.5) 50%,
        rgba(10, 10, 15, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-line {
    display: block;
}

.hero-line.highlight {
    color: var(--primary);
    text-shadow: 0 0 60px var(--glow);
}

.hero-desc {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Section Styles */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--primary);
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

.section-header.center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 10px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 15px;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 10px;
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--bg-card);
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.exp-years {
    display: block;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Track Section */
.track {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.track-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23222240" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.track-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.track-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.track-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.track-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.track-card p {
    font-size: 15px;
    color: var(--text-muted);
}

.track-map {
    position: relative;
}

.map-visual {
    max-width: 600px;
    margin: 0 auto;
}

.track-svg {
    width: 100%;
}

.track-path {
    stroke: var(--bg-card);
    stroke-linecap: round;
}

.track-line {
    stroke: var(--primary);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-track 3s ease forwards;
}

@keyframes draw-track {
    to { stroke-dashoffset: 0; }
}

.start-point {
    fill: var(--accent);
    animation: pulse-point 2s ease-in-out infinite;
}

@keyframes pulse-point {
    0%, 100% { r: 8; opacity: 1; }
    50% { r: 12; opacity: 0.7; }
}

.track-label {
    fill: var(--text);
    font-family: var(--font-heading);
    font-size: 10px;
    text-anchor: middle;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
}

.price-card.featured {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.1) 0%, var(--bg-card) 100%);
    border-color: var(--primary);
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-header {
    text-align: center;
    margin-bottom: 25px;
}

.price-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.price-amount {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.currency {
    font-size: 24px;
    color: var(--text-muted);
    vertical-align: top;
}

.amount {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
}

.period {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

.price-features {
    margin-bottom: 30px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-muted);
}

.price-features li:last-child {
    border-bottom: none;
}

.check {
    width: 20px;
    height: 20px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    position: relative;
}

.check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: 2px solid var(--primary);
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

.price-card .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 10px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 15px;
    color: var(--text-muted);
}

.contact-text a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.social-link:hover svg {
    color: var(--bg-dark);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%238888aa" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.contact-form select option {
    background: var(--bg-dark);
    color: var(--text);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 300px;
}

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-hours ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.footer-hours ul li span {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-dim);
}

.footer-credit a {
    color: var(--primary);
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.back-to-top:hover svg {
    color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        gap: 50px;
    }

    .track-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .price-card.featured {
        transform: none;
    }

    .price-card.featured:hover {
        transform: translateY(-10px);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 200px);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .nav-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .logo-555 {
        font-size: 22px;
    }

    .logo-speedway {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 1001;
        padding: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile menu overlay */
    .nav-overlay {
        display: block;
    }

    /* Hero mobile fixes */
    .hero {
        padding-top: 100px;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 8px 16px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 40px;
        margin-top: 0;
    }

    .stat {
        min-width: 80px;
    }

    .stat-num {
        font-size: 32px;
    }

    .stat-unit {
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Section padding mobile */
    .about,
    .track,
    .pricing,
    .gallery,
    .contact {
        padding: 60px 0;
    }

    .section-header.center {
        margin-bottom: 40px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .image-frame img {
        height: 300px;
    }

    .image-accent {
        display: none;
    }

    .experience-badge {
        bottom: 20px;
        left: 20px;
        padding: 15px 20px;
    }

    .exp-years {
        font-size: 32px;
    }

    .track-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .track-card {
        padding: 30px 20px;
    }

    .track-map {
        display: none; /* Hide SVG track on mobile for cleaner look */
    }

    .pricing-grid {
        max-width: 100%;
    }

    .price-card {
        padding: 30px 25px;
    }

    .amount {
        font-size: 42px;
    }

    .cta {
        padding: 60px 0;
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .cta-btns .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 25px 20px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item {
        height: 150px;
    }

    /* Gallery overlay always visible on mobile */
    .gallery-overlay {
        opacity: 1;
        padding: 10px;
    }

    .gallery-overlay span {
        font-size: 12px;
    }

    /* Back to top mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        gap: 15px 30px;
    }

    .stat-num {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}
