/* =========================================================
   APEX AUTO DETAILING
   PREMIUM AUTOMOTIVE WEBSITE
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #050505;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1300px, 90%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 28px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: #ed1028;
}

.navigation {
    display: flex;
    gap: 35px;
}

.navigation a {
    color: rgba(255,255,255,.65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color .3s ease;
}

.navigation a:hover {
    color: #fff;
}

.header-button {
    padding: 12px 20px;
    border: 1px solid #ed1028;
    color: #fff;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    transition: .3s ease;
}

.header-button:hover {
    background: #ed1028;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 70% 45%,
            rgba(237,16,40,.18),
            transparent 35%
        ),
        linear-gradient(
            90deg,
            #050505 0%,
            #090909 45%,
            #030303 100%
        );
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.9),
            rgba(0,0,0,.25),
            rgba(0,0,0,.75)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-label {
    display: block;
    margin-bottom: 25px;

    color: #ed1028;

    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
}

.hero h1 {
    max-width: 900px;

    font-size: clamp(60px, 9vw, 130px);
    line-height: .85;
    letter-spacing: -7px;
    font-weight: 900;
}

.hero h1 strong {
    color: #ed1028;
}

.hero p {
    max-width: 530px;

    margin-top: 35px;

    color: #999;

    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 25px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    transition: .3s ease;
}

.button-primary {
    background: #ed1028;
    color: #fff;
}

.button-primary:hover {
    background: #ff263d;
    transform: translateY(-3px);
}

.button-outline {
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}

.button-outline:hover {
    border-color: #ed1028;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    margin-bottom: 65px;
}

.section-heading > span {
    display: block;

    margin-bottom: 20px;

    color: #ed1028;

    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 700;
}

.section-heading h2 {
    max-width: 800px;

    font-size: clamp(45px, 7vw, 90px);
    line-height: .9;
    letter-spacing: -4px;
}

.section-heading h2 strong {
    display: block;
    color: #ed1028;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    position: relative;
    padding: 150px 0;
    background: #080808;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;

    background: rgba(255,255,255,.1);

    border: 1px solid rgba(255,255,255,.1);
}

.service-card {
    position: relative;

    min-height: 280px;
    padding: 45px;

    background: #080808;

    transition:
        background .4s ease,
        transform .4s ease;
}

.service-card:hover {
    background: #100507;
}

.service-number {
    color: #ed1028;

    font-size: 11px;
    letter-spacing: 3px;
}

.service-card h3 {
    margin-top: 70px;

    font-size: 30px;
    letter-spacing: -1px;
}

.service-card p {
    max-width: 400px;

    margin-top: 15px;

    color: #777;

    font-size: 14px;
    line-height: 1.7;
}

.service-link {
    position: absolute;

    right: 40px;
    bottom: 40px;

    color: #ed1028;

    font-size: 10px;
    letter-spacing: 2px;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 150px 0;

    background:
        linear-gradient(
            135deg,
            #050505,
            #0b0506
        );
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: start;
}

.about-text {
    padding-top: 10px;
}

.about-lead {
    color: #fff !important;

    font-size: 26px !important;
    line-height: 1.4 !important;
}

.about-text p {
    margin-bottom: 25px;

    color: #777;

    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
    padding: 150px 0;
    background: #070707;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.gallery-item {
    position: relative;

    aspect-ratio: 16 / 10;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(237,16,40,.16),
            transparent 55%
        ),
        #0c0c0c;

    border: 1px solid rgba(255,255,255,.08);

    transition: .4s ease;
}

.gallery-item:hover {
    border-color: rgba(237,16,40,.6);
    transform: translateY(-5px);
}

.gallery-item span {
    color: #333;

    font-size: 11px;
    letter-spacing: 4px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    padding: 150px 0;
    background: #050505;
}

.contact-grid {
    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 100px;
}

.contact-text p {
    max-width: 400px;

    margin-bottom: 35px;

    color: #777;

    font-size: 16px;
    line-height: 1.8;
}

.contact-text a {
    display: block;

    margin-bottom: 15px;

    color: #fff;

    font-size: 16px;

    transition: color .3s ease;
}

.contact-text a:hover {
    color: #ed1028;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    color: #777;

    font-size: 9px;
    letter-spacing: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 17px;

    border: 1px solid rgba(255,255,255,.12);

    outline: none;

    background: #0a0a0a;

    color: #fff;

    font-family: inherit;

    transition: border-color .3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ed1028;
}

.form-group textarea {
    resize: vertical;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 35px 0;

    border-top: 1px solid rgba(255,255,255,.08);

    background: #030303;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 900;
}

.site-footer span {
    color: #555;

    font-size: 9px;
    letter-spacing: 2px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .navigation {
        display: none;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-grid,
    .gallery-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 250px;
    }

    .about-grid {
        gap: 50px;
    }

    .contact-grid {
        gap: 60px;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* =========================================================
   REAL AUTOMOTIVE IMAGES
========================================================= */

.hero-background {
    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.92) 0%,
            rgba(0,0,0,.55) 45%,
            rgba(0,0,0,.25) 100%
        ),
        url('../images/hero.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition:
        transform .8s ease,
        filter .8s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(.8);
}


/* =========================================================
   IMAGE FIX
========================================================= */

.hero-background {
    position: absolute !important;
    inset: 0 !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.45) 50%,
            rgba(0,0,0,.25) 100%
        ),
        url("/projects/luxury-auto/assets/images/hero.jpg") !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    z-index: 0 !important;
}

.hero-overlay {
    z-index: 1 !important;
    pointer-events: none;
}

.hero-content {
    z-index: 5 !important;
}


/* =========================================================
   GALLERY IMAGE FIX
========================================================= */

.gallery-item {
    position: relative !important;
    overflow: hidden !important;
}

.gallery-item img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block !important;

    z-index: 1 !important;
}


/* =========================================================
   LUXURY AUTO — PREMIUM HERO
========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.48) 45%,
            rgba(0,0,0,.15) 100%
        ),
        url("/projects/luxury-auto/assets/images/hero.jpg") !important;

    background-size: cover !important;
    background-position: center !important;

    transform: scale(1.03);

    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.03);
    }

}

.hero-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.55) 0%,
            transparent 35%,
            rgba(0,0,0,.85) 100%
        );
}

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

.hero-label {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: "";

    width: 35px;
    height: 1px;

    background: #ed1028;
}

.hero h1 {
    text-shadow:
        0 10px 40px rgba(0,0,0,.6);
}

.hero h1 strong {
    text-shadow:
        0 0 35px rgba(237,16,40,.25);
}

.hero p {
    color: rgba(255,255,255,.65);
}


/* =========================================================
   HERO SCROLL INDICATOR
========================================================= */

.hero::after {
    content: "SCROLL ↓";

    position: absolute;

    left: 5%;
    bottom: 35px;

    color: rgba(255,255,255,.45);

    font-size: 9px;
    letter-spacing: 4px;
    font-weight: 700;

    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%, 100% {
        opacity: .35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }

}


/* =========================================================
   LUXURY AUTO — PREMIUM HERO
========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.48) 45%,
            rgba(0,0,0,.15) 100%
        ),
        url("/projects/luxury-auto/assets/images/hero.jpg") !important;

    background-size: cover !important;
    background-position: center !important;

    transform: scale(1.03);

    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.03);
    }

}

.hero-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.55) 0%,
            transparent 35%,
            rgba(0,0,0,.85) 100%
        );
}

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

.hero-label {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: "";

    width: 35px;
    height: 1px;

    background: #ed1028;
}

.hero h1 {
    text-shadow:
        0 10px 40px rgba(0,0,0,.6);
}

.hero h1 strong {
    text-shadow:
        0 0 35px rgba(237,16,40,.25);
}

.hero p {
    color: rgba(255,255,255,.65);
}


/* =========================================================
   HERO SCROLL INDICATOR
========================================================= */

.hero::after {
    content: "SCROLL ↓";

    position: absolute;

    left: 5%;
    bottom: 35px;

    color: rgba(255,255,255,.45);

    font-size: 9px;
    letter-spacing: 4px;
    font-weight: 700;

    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%, 100% {
        opacity: .35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }

}


/* =========================================================
   PREMIUM AUTOMOTIVE GALLERY
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: 1.35fr .65fr;
    grid-template-rows: 300px 300px;

    gap: 12px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    aspect-ratio: auto;

    background: #090909;

    border: 1px solid rgba(255,255,255,.08);

    cursor: pointer;
}

.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.65),
            transparent 55%
        );

    opacity: .7;

    pointer-events: none;
}

.gallery-item img {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    transition:
        transform .8s cubic-bezier(.2,.7,.2,1),
        filter .6s ease !important;
}

.gallery-item:hover img {
    transform: scale(1.08) !important;

    filter: brightness(.75);
}

.gallery-item span {
    position: absolute;

    left: 22px;
    bottom: 20px;

    z-index: 5;

    color: #fff;

    font-size: 9px;
    letter-spacing: 3px;

    opacity: 0;

    transform: translateY(10px);

    transition: .4s ease;
}

.gallery-item:hover span {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   MOBILE GALLERY
========================================================= */

@media (max-width: 800px) {

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 260px);
    }

    .gallery-item:first-child {
        grid-row: span 1;
    }

}

