@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #020102;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Variables */
:root {
  --main-color: #FFD639;
  --text-color: #020102;
  --bg-color: #fff;
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 5rem;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* Header */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgb(64, 64, 203);
  transition: 0.5s ease;
  box-shadow: 2px 4px 4px rgba(15, 54, 55, 0.2);
}

header.shadow {
  background: var(--bg-color);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 35px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-color);
}

.logo img {
  width: 120px;
  margin-right: 15px;
}

.logo span {
  color: var(--main-color);
}

/* Navigation Links */
nav ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

nav ul li a {
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-color);
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin-bottom: 4px;
  border-radius: 2px;
}

/* Mobile nav toggle */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: #333;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    display: none;
    padding: 1rem;
    z-index: 999;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Home Section */
.home {
  background: url('../Photos/cover.png') no-repeat center center/cover;
  min-height: 640px;
  display: flex;
  align-items: center;
  text-align: left;
}

.home-text {
  padding-left: 130px;
  max-width: 700px;
}

.home-text h1 {
  font-size: 3rem;
  color: #fff;
}

.home-text span {
  color: var(--main-color);
}

.home-text p {
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 300;
  color: #eee;
}

.btn {
  padding: 12px 30px;
  background: var(--main-color);
  color: #000;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background: #fd052f;
  color: #fff;
}

/* Cars Section */
.cars {
  padding: 60px 0;
  text-align: center;
}

.heading span {
  font-size: 1.2rem;
  color: var(--main-color);
  font-weight: bold;
}

.heading h2 {
  font-size: 2.5rem;
  margin: 10px 0;
}

.heading p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.cars-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cars-container .box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: calc(33.333% - 20px);
  min-width: 250px;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.cars-container .box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cars-container .box img:hover {
  transform: scale(1.1);
}

.cars-container .box h2 {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--bg-color);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  background: #000;
  width: 100%;
  padding: 1rem;
}

.footer-box {
  flex: 1;
  min-width: 200px;
  word-break: break-word;
}

.footer-box h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-box a {
  color: #ccc;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-box a:hover {
  color: var(--main-color);
}

.footer-box .social a {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #ccc;
}

.footer-box p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.social a:hover {
  color: var(--main-color);
}

.copyright {
  background: #222;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  word-break: break-word;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
  .home-text {
    padding-left: 2rem;
  }

  .home-text h1 {
    font-size: 2.1rem;
  }

  .cars-container .box {
    width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .cars-container .box {
    width: 90%;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-box {
    width: 100%;
    padding: 10px 0;
  }

  .home-text h1 {
    font-size: 1.8rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
