:root {
    --primary: #2563eb;
    /* Vivid Blue from image */
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    /* Very dark slate */
    --accent: #3b82f6;
    --background: #020205;
    /* almost pure black/blue */
    --surface: #0a0a0f;
    /* Darker surface */
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --white: #ffffff;
    --black: #000000;
    --glass: rgba(2, 2, 5, 0.9);
    --glass-border: rgba(255, 255, 255, 0.05);

    --container-width: 1200px;
    --header-height: 90px;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    /* Slate very dark */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Create a light blue shaded ambient background while preserving readability */
    background-image:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.services-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
}

/* Typography Helpers */
.logo-text img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
    font-size: 2rem;
}

.logo-text span {
    color: var(--primary);
    font-weight: 800;
}

.highlight {
    color: var(--primary);
    -webkit-text-stroke: 1px var(--primary);
    paint-order: stroke fill;
}

.center {
    text-align: center;
}

h2.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Buttons */
/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 0;
    /* Square edges as per image */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    /* Blue glow */
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-outline.white {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.btn-text {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

#navbar.scrolled {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 70px;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.logo {
    font-size: 1.6rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.logo img {
    height: 50px;
    width: auto;
    min-width: 50px;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
}

.logo span {
    color: var(--primary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.nav-links .btn-primary {
    border-radius: 50px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 2, 5, 0.6), rgba(2, 2, 5, 0.8));
    z-index: 1;
}

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

.hero-content h4 {
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-btns .btn-primary,
.hero-btns .btn-outline {
    border-radius: 50px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Service Card Updates */
.service-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 2px;
    /* Sharper corners */
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    /* Blue accent line on top like in image */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
    /* Override previous opacity if needed */
}

/* Service Card Backgrounds */
.service-card {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay */
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::after {
    background: rgba(15, 23, 42, 0.7);
    /* Lighten specific overlay on hover */
}

.service-card-wash {
    background-image: url('images/car wash 1.jpg');
}

.service-card-detailing {
    background-image: url('images/car detailing.jpg');
}

.service-card-servicing {
    background-image: url('images/general services.jpg');
}

/* Ensure text and icon pop */
.service-card h3,
.service-card p,
.service-card .service-list li {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.service-list i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Product Layouts */
.product-layout {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.product-layout.reverse {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-image-container {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--surface);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 1.2rem;
    background-size: cover;
    background-position: center;
}

.accessories-img {
    background-image: linear-gradient(rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.6)),
        url('images/accessories.jpg');
}

.battery-img {
    background-image: linear-gradient(rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.6)),
        url('images/battery.jpeg');
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.feature-pills span {
    padding: 0.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
}

.cta-section h2 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 3rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btn-primary.large {
    padding: 1.5rem 3.5rem;
    font-size: 1.2rem;
    background: var(--white);
    color: var(--primary);
}

.btn-outline.large {
    padding: 1.5rem 3.5rem;
    font-size: 1.2rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-container {
    background: var(--surface);
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-secondary);
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

/* WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #22c55e;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
}

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

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {

    .product-layout {
        flex-direction: column;
        gap: 3rem;
        align-items: stretch;
    }

    .product-layout.reverse {
        flex-direction: column-reverse;
        gap: 3rem;
        align-items: stretch;
    }

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

    h2.section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo {
        position: relative;
        z-index: 10002;
        font-size: 1.1rem;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .logo img {
        height: 35px;
        min-width: 35px;
        border-radius: 6px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 10001;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1 !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        height: 22px;
        z-index: 10002;
        cursor: pointer;
        position: relative;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--white);
        transition: 0.4s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }

    .cta-btns,
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 1rem 1rem;
        white-space: nowrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .logo-text {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .logo-text img {
        height: 40px;
    }

    .scroll-indicator {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Typing Effect */
.text-type {
    display: inline-block;
    white-space: pre-wrap;
    min-height: 1.2em;
    /* Prevent layout shift */
}

.text-type__cursor {
    margin-left: 0.1rem;
    display: inline-block;
    opacity: 1;
    color: var(--primary);
    font-weight: 400;
}

.text-type__cursor--hidden {
    display: none;
}