:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --primary: #3b82f6;
    /* Electric Blue */
    --accent: #22d3ee;
    /* Cyan accent */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #27272a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px),
        radial-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .1) 2px, transparent 3px),
        radial-gradient(rgba(255, 255, 255, .3), 1px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, .2), 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px, 100px 100px, 450px 450px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 20px 20px, 90px 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.accent-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow:
        5px 5px 10px rgba(0, 0, 0, 0.5),
        -2px -2px 5px rgba(255, 255, 255, 0.1);
    border: none;
}

.btn-primary:active {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #1d4ed8, #3b82f6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 20px rgba(59, 130, 246, 0.4),
        0 6px 6px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-main);
}

.nav-list .btn-primary {
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(59, 130, 246, 0.05) 10px,
            rgba(59, 130, 246, 0.05) 20px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 50%;
    animation: pulse-glow 4s infinite alternate;
}

/* Moving Car Animation */
.moving-car {
    position: absolute;
    top: 50%;
    margin-top: -7.5rem;
    /* Half of height (15rem) */
    left: -300px;
    z-index: 0;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    /* Subtle ghost car */
    animation: driveAcross 15s linear infinite;
    pointer-events: none;
    /* Let clicks pass through */
    filter: drop-shadow(0 0 20px var(--primary));
}

.moving-car img {
    display: none;
}

.moving-car .wheel {
    position: absolute;
    bottom: 35px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 4px dashed var(--primary);
    animation: spinWheels 2s linear infinite;
    opacity: 0.8;
}

.moving-car .wheel.left {
    left: 45px;
}

.moving-car .wheel.right {
    right: 50px;
}

@keyframes driveAcross {
    0% {
        transform: translateX(-50vw);
    }

    100% {
        transform: translateX(150vw);
    }
}

@keyframes spinWheels {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 20px 20px 60px #050505, -20px -20px 60px #1a1a1a;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.price {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.before-after-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after-card .img-before {
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.before-after-card .img-after {
    z-index: 0;
}

.before-after-card:hover .img-before {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.compare-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.before-after-card:hover .compare-label {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--primary);
    width: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), inset -1px -1px 2px rgba(255, 255, 255, 0.05);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

/* Fix for dropdown options visibility in dark mode */
select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

input[type="date"],
input[type="time"] {
    color-scheme: dark;
}

textarea {
    resize: vertical;
}

.file-input {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero-title {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}