@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=DM+Serif+Display:ital@0;1&family=McLaren&family=Michroma&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&family=Rajdhani:wght@300;400;500;600;700&family=Tektur:wght@400..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}


body {
    height: 100vh;
    width: 100vw;
    background: var(--bg-color);
    overflow-x: hidden;
}

.hero,
.main,
.car {
    overflow: visible;
}

body.light-mode {
    --bg-color: #EDE7C7;
    --text-color: #200E00;
    --nav-bg: rgba(255, 255, 255, 0.2);
    --nav-scrolled-bg: #880101;
    --link-color: #880101;
    --link-hover: #5b0302;
    --accent: #880101;
    --highlight: #FF0A0A;
    --nav-shadow: 1px -3px 6px 3px #880101;
    --carglow: radial-gradient(circle at center,
            rgba(255, 255, 200, 1),
            rgba(255, 220, 150, 1),
            rgba(255, 200, 100, 1),
            rgba(255, 255, 255, 0.4));
}

body.dark-mode {
    --bg-color: #310202;
    --text-color: #EDE7C7;
    --nav-bg: rgba(10, 0, 0, 0.4);
    --nav-scrolled-bg: #1A0000;
    --nav-shadow: 1px -3px 6px 3px #EDE7C7;
    --link-color: #EDE7C7;
    --link-hover: #FF0A0A;
    --accent: #EDE7C7;
    --highlight: #FF4040;
    --carglow: radial-gradient(circle at center,
            rgba(255, 60, 0, 0.8),
            rgba(255, 100, 0, 0.4),
            rgba(255, 0, 0, 0));
}

::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 999;
}

nav {
    width: 100%;
    height: 100%;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--nav-shadow);
    z-index: 999;
}

nav.scrolled {
    height: 65px;
    background-color: var(--nav-scrolled-bg);
    backdrop-filter: blur(10px);
}

.logo {
    width: auto;
    margin-left: 40px;
    z-index: 10;
}

.logo h1 {
   font-family: "Montserrat", sans-serif;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 1.9rem;
}

.links {
    width: auto;
    font-size: 1em;
    color: var(--link-color);
    display: flex;
    text-decoration: none;
    list-style-type: none;
    font-family: "Poppins";
    gap: 35px;
}

.links li:hover {
    color: #FF0A0A;
    cursor: pointer;
}

.toggle {
    width: auto;
    color: var(--link-color);
    gap: 25px;
    padding-right: 100px;
}

.toggle i {
    width: 100%;
    font-size: 1.5em;
    cursor: pointer;

}

.car-toggle {
    width: auto;
    color: var(--accent);
    z-index: 0;
    display: none;
}

.car-toggle {
    transition: transform .8s ease-in-out
}

.car-toggle i {
    font-size: 1.7rem;
    margin-right: 20px;

}

.rope {
    border-bottom: 2px solid var(--accent);
    position: absolute;
    width: 22px;
    /* height: 2px; */
    z-index: 1;
    top: 55%;
    right: 0%;
}

.sidebar {
    width: 60%;
    height: 100vh;
    background: var(--accent);
    position: fixed;
    right: 0;
    transform: translateX(100%);
    z-index: 9999;
    transition: transform .8s ease-in-out;
    overflow-x: hidden;

}

.sidebar-links {
    width: auto;
    font-size: 1em;
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    list-style-type: none;
    font-family: "Poppins";
    margin-top: 40px;
    gap: 35px;
}

.sidebar-links li:hover {
    color: #FF0A0A;
    cursor: pointer;
}

.sidebar .toggle {
    width: 40px;
    display: block;
    color: var(--bg-color);
    justify-self: end;
    margin-top: 20px;
    margin-right: 10px;

}

.sidebar .toggle i {
    width: 100%;
    font-size: 2em;
    cursor: pointer;
}

.sidebar-logo {
    width: auto;
    z-index: 10;
    justify-self: center;
    padding-top: 20px;
}

.sidebar-logo h1 {
    font-family: "Playfair display", sans-serif;
    color: var(--bg-color);
    text-transform: uppercase;
    font-size: 1.9rem;
}

.sidebar-footer {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 180px;
    font-family: 'Poppins', sans-serif;
    border-top: 2px solid var(--bg-color);
    padding-top: 10px;
    font-size: 1.1rem;
    color: var(--bg-color);
}

main {
    width: 100%;
    height: auto;
    /* margin-top: 100px; */
}

.intro {
    width: 100%;
    height: 100vh;
    position: relative;
    background: url('https://images.unsplash.com/photo-1606664515524-ed2f2f8a7b3b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--nav-bg);
}


.intro-content {
    position: relative;
    z-index: 2;
    color: var(--accent);
    font-family: "Playfair Display", serif;
    animation: fadeUp 1.8s ease-in-out forwards;
}

.intro-title {
    font-size: 3.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent);
}

.intro-para {
    font-size: 1.2rem;
    color: var(--link-color);
    margin-bottom: 40px;
}

.intro-btn {
    padding: 14px 40px;
    font-size: 1rem;
    background: var(--accent);
    color: var(--bg-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
}

.intro-btn:hover {
    background: var(--highlight);
    transform: scale(1.05);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    width: 100%;
    height: 100vh;
    border-bottom: 4px solid var(--accent);
    
}

.header {
    width: 100%;
    height: 50vh;
    display: flex;
    opacity: 0;
    justify-content: center;

}

.txt {
    align-self: flex-start;
    height: auto;
    width: auto;
    margin-top: 10%;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-text-stroke: 1px goldenrod;

}

.txt h1 {
    font-size: 3.8rem;
    font-family: "Cinzel Decorative", serif;
}


.rollsroyce {
    background: url(./assets/rollsroyce/logo.png);
    width: 100px;
    height: 100px;
    background-size: contain;
    margin-top: 9%;
}

.ferrari {
    background: url(./assets/ferrari/logo.png);
    width: 100px;
    height: 100px;
    background-size: contain;
    margin-top: 9%;
}
.Mclaren {
    background: url(./assets/Mclaren/logo.png);
    width: 100px;
    height: 100px;
    background-size: contain;
    margin-top: 8%;
    padding-right: 4%;
    background-repeat: no-repeat;
}


.txt p {
    font-size: 1.2rem;
    letter-spacing: 10px;

}

.main {
    width: 70%;
    height: 50vh;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-end;
}

.car {
    position: relative;
    top: 43px;
    width: auto;
    height: 70%;
    display: flex;
    justify-content: center;
    transform: translateX(100vw);
    margin-top: 40px;

}

.mobilecar {
    display: none;
    transform: perspective(10px) translateZ(-1px) translateX(300px) scale(0.5);
    opacity: 0;
}

@keyframes carEnter {
    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes carEnterMobile {

    to {
        transform: perspective(600px) translateZ(0) translateX(0px) scale(1);
        opacity: 1;
    }
}

.car img {
    width: 100%;
    height: 100%;
}

.glow {
    position: absolute;
    bottom: 10%;
    width: 100%;
    height: 60%;
    background: var(--carglow);
    filter: blur(40px);
    opacity: 0.8;
    animation: Glow 2s infinite ease-in-out alternate;
    z-index: -1;
}

@keyframes Glow {
    0% {
        transform: scaleX(1) scaleY(0.9) translateY(0);
        filter: blur(35px);
        opacity: 0.7;
    }

    50% {
        transform: scaleX(1.1) scaleY(1.1) translateY(-5px);
        filter: blur(45px);
        opacity: 1;
    }

    100% {
        transform: scaleX(0.95) scaleY(0.85) translateY(0);
        filter: blur(40px);
        opacity: 0.6;
    }
}
.footer {
    margin-top: 8px;
  background:transparent;
  color: var(--accent);
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  bottom: 0;
  width: 100%;
  font-family: "Poppins", serif;
}

.footer-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-about {
  flex: 1;
  min-width: 250px;
}

.footer-about h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--highlight);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--accent);
  padding-top: 20px;
  width: 100%;
  font-size: 0.9rem;
}

.footer-bottom span {
  font-weight: bold;
}




@media (max-width:992px) {
    .toggle {
        padding-right: 80px;
    }
}

@media (max-width:786px) {
    .logo h1 {
        font-size: 1.6rem;
    }

    .links {
        gap: 25px;
    }

    .toggle {
        padding-right: 30px;
    }

    .intro-title {
        font-size: 2.6rem;
    }

    .intro-para {
        font-size: 1rem;
    }

    .intro-btn {
        padding: 10px 28px;
        font-size: 0.9rem;
    }

    .txt h1 {
        font-size: 3rem;
    }

    .main {
        width: 60vw;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .desktopcar {
        display: none;
    }

    .mobilecar {
        display: block;
    }
      .footer{
    margin-top: 0px;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links,
  .footer-about {
    min-width: unset;
  }
  
  .footer-links h4 {
    margin-top: 20px;
  }
}

@media (max-width:600px) {

    .links {
        display: none;
    }

    .toggle {
        display: none;
    }

    .car-toggle {
        display: block;
    }

    .hero {
        height: 80vh;
    }

    .header {
        margin-top: 0px;
        padding-top: 50px;
    }

    .car img {

        object-fit: contain;
    }

    .car {
        margin-top: 0px;
        margin-bottom: 90px;
    }
}


@media (max-width:480px) {
    .logo {
        margin-left: 25px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .car-toggle i {
        font-size: 1.2rem;
    }

    .rope {
        border-bottom: 1px solid;
    }

    .txt {
        margin-left: 10px;
    }

    .txt h1 {
        font-size: 2.5rem;
    }

    .txt p {
        font-size: .8rem;
        letter-spacing: 5px;
    }

    .hero-logo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width:420px) {

    .logo {
        margin-left: 10px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .header {
        /* margin-top: 50px; */
        padding-top: 80px;
    }

    .txt h1 {
        font-size: 2.2rem;
    }

    .car-toggle i {
        font-size: 1rem;
    }

    .rope {
        border-bottom: 1px solid;
    }

    .car {
        margin-top: 0px;
        margin-bottom: 110px;
    }

    .car img {
        width: 115%;
        height: 115%;
    }
}