/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family: Arial, Helvetica, sans-serif;

    color: white;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(255, 193, 7, 0.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #050505,
            #111111,
            #050505
        );
}


/* Main page */

.hero {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;

    padding: 60px 8%;
}


/* Text area */

.content {
    width: 50%;
    max-width: 600px;

    animation: contentEntrance 1.2s ease forwards;
}

.logo {
    width: 420px;
    max-width: 100%;

    margin-bottom: 35px;

    filter:

    drop-shadow(0 0 8px #ffffff)
    drop-shadow(0 0 18px rgba(255,255,255,0.8))
    drop-shadow(0 0 30px rgba(255,255,255,0.6));

    animation: logoGlow 3s ease-in-out infinite;
}

.content h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.05;

    letter-spacing: 4px;

    margin-bottom: 20px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #eba505,
        #ffffff
    );

    background-size: 200% auto;

    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;

    animation: movingText 4s linear infinite;
}

.content p {
    font-size: 21px;
    line-height: 1.7;

    color: #dddddd;
}

.small-text {
    font-size: 16px !important;
    color: #aaaaaa !important;
}

.yellow-line {
    width: 110px;
    height: 4px;

    margin: 25px 0;

    background: #eba505;

    box-shadow:
        0 0 10px #eba505,
        0 0 25px rgba(255, 196, 0, 0.55);

    animation: lineMovement 3s ease-in-out infinite;
}


/* Flyer */

.flyer-container {
    position: relative;

    width: 45%;
    max-width: 650px;

    animation: flyerEntrance 1.3s ease forwards;
}

.flyer-container::before {
    content: "";

    position: absolute;
    inset: -15px;

    z-index: -1;

    border-radius: 25px;

    background: linear-gradient(
        135deg,
        rgba(255, 196, 0, 0.65),
        transparent,
        rgba(255, 196, 0, 0.25)
    );

    filter: blur(25px);

    opacity: 0.55;
}

.flyer {
    display: block;

    width: 100%;

    border-radius: 18px;

    border: 1px solid rgba(255, 196, 0, 0.45);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.75),
        0 0 25px rgba(255, 196, 0, 0.18);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.flyer:hover {
    transform:
        translateY(-10px)
        scale(1.02);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(255, 196, 0, 0.35);
}


/* Background elements */

.background-effects {
    position: fixed;
    inset: 0;

    overflow: hidden;

    z-index: 0;

    pointer-events: none;
}


/* Yellow glowing lights */

.glow {
    position: absolute;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    background: rgba(255, 196, 0, 0.12);

    filter: blur(90px);

    animation: floatingGlow 8s ease-in-out infinite;
}

.glow-one {
    top: -100px;
    left: -100px;
}

.glow-two {
    right: -120px;
    bottom: -120px;

    animation-delay: 2s;
}


/* Tire tracks */

.tire-track {
    position: absolute;

    width: 900px;
    height: 180px;

    opacity: 0.10;

    transform: rotate(-25deg);

    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 15px,
            #eba505 15px,
            #eba505 30px
        );

    border-top: 12px dashed #eba505;
    border-bottom: 12px dashed #eba505;

    filter: blur(0.3px);

    animation: tireMove 14s linear infinite;
}

.tire-track-one {
    left: -250px;
    bottom: 60px;
}

.tire-track-two {
    right: -300px;
    top: 100px;

    opacity: 0.05;

    animation-direction: reverse;
}


/* General car-part style */

.part {
    position: absolute;

    opacity: 0.12;

    filter:
        drop-shadow(0 0 8px rgba(255, 196, 0, 0.4));

    animation: floatingPart 7s ease-in-out infinite;
}


/* Brake disc */

.brake-disc {
    width: 150px;
    height: 150px;

    top: 12%;
    right: 7%;

    border: 18px solid #eba505;
    border-radius: 50%;
}

.brake-disc::before {
    content: "";

    position: absolute;

    width: 48px;
    height: 48px;

    top: 50%;
    left: 50%;

    border: 8px solid #eba505;
    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.brake-disc::after {
    content: "";

    position: absolute;

    inset: 18px;

    border:
        3px dashed rgba(255, 196, 0, 0.8);

    border-radius: 50%;
}


/* Gear */

.gear {
    width: 130px;
    height: 130px;

    left: 5%;
    bottom: 8%;

    border: 20px dashed #eba505;
    border-radius: 50%;

    animation:
        floatingPart 7s ease-in-out infinite,
        rotateGear 18s linear infinite;
}

.gear::before {
    content: "";

    position: absolute;

    width: 42px;
    height: 42px;

    top: 50%;
    left: 50%;

    border: 10px solid #eba505;
    border-radius: 50%;

    transform: translate(-50%, -50%);
}


/* Spring */

.spring {
    width: 70px;
    height: 190px;

    top: 45%;
    left: 45px;

    border-left: 8px solid #eba505;
    border-right: 8px solid #eba505;

    transform: rotate(18deg);
}

.spring::before {
    content: "";

    position: absolute;
    inset: 0 -15px;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 14px,
            #eba505 14px,
            #eba505 20px
        );

    transform: skewX(-18deg);
}


/* Animations */

@keyframes contentEntrance {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyerEntrance {
    from {
        opacity: 0;
        transform:
            translateX(80px)
            scale(0.92);
    }

    to {
        opacity: 1;
        transform:
            translateX(0)
            scale(1);
    }
}

@keyframes logoGlow {
    0%,
    100% {
        filter:
            drop-shadow(0 0 6px rgba(255, 196, 0, 0.20));
    }

    50% {
        filter:
            drop-shadow(0 0 20px rgba(255, 196, 0, 0.55));
    }
}

@keyframes movingText {
    from {
        background-position: 0 center;
    }

    to {
        background-position: 200% center;
    }
}

@keyframes lineMovement {
    0%,
    100% {
        width: 80px;
    }

    50% {
        width: 170px;
    }
}

@keyframes floatingGlow {
    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    50% {
        transform:
            translate(40px, 25px)
            scale(1.15);
    }
}

@keyframes tireMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 400px 0;
    }
}

@keyframes floatingPart {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

@keyframes rotateGear {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}


/* Mobile design */

@media screen and (max-width: 900px) {

    .hero {
        flex-direction: column;

        gap: 45px;

        padding:
            50px
            24px;
    }

    .content,
    .flyer-container {
        width: 100%;
        max-width: 650px;
    }

    .content {
        text-align: center;
    }

    .yellow-line {
        margin:
            25px
            auto;
    }

    .logo {
        width: 340px;
    }

    .content p {
        font-size: 18px;
    }

    .brake-disc {
        width: 90px;
        height: 90px;

        border-width: 12px;
    }

    .gear {
        width: 90px;
        height: 90px;

        border-width: 12px;
    }

    .spring {
        opacity: 0.05;
    }
}


/* Reduce animations for users who disable movement */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
footer{
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding:25px 7%;

    background:rgba(255,255,255,.04);
    backdrop-filter:blur(12px);

    border-top:1px solid rgba(255,193,7,.25);

    overflow:hidden;
}

/* Animated glowing line */

footer::before{

    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:2px;

    background:linear-gradient(
        90deg,
        transparent,
        #eba505,
        white,
        #eba505,
        transparent
    );

    animation:footerGlow 5s linear infinite;
}

/* Text */

footer p{

    font-family:"Segoe UI",sans-serif;

    font-size:15px;

    font-weight:600;

    letter-spacing:1px;

    color:#d7d7d7;

    transition:.4s;
}

footer span{

    color:#eba505;

    font-weight:700;

    text-shadow:
        0 0 10px rgba(255,193,7,.6);
}

/* Hover */

footer p:hover{

    color:white;

    transform:translateY(-2px);

    text-shadow:
        0 0 10px rgba(255,255,255,.8);
}

.address{

    color:#bdbdbd;
}

/* Animation */

@keyframes footerGlow{

    from{

        left:-100%;
    }

    to{

        left:100%;
    }

}

/* Mobile */

@media(max-width:768px){

footer{

    flex-direction:column;

    gap:12px;

    text-align:center;
}

}