html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('Photos/bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* Center title and subtitle vertically */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 100%;
  padding: 0 24px;
}

.main-title {
  font-size: 6rem;
  font-family: 'Rammetto One', 'Montserrat', Arial, sans-serif;
  color: rgba(254, 241, 233, 1); /* changed from #fff */
  margin: 0 0 18px 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

.main-subtitle {
  font-size: 1.7rem;
  color: rgba(254, 241, 233, 1); /* changed from #fef1e9 */
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
}

/* Button at the bottom center of hero */
.see-my-work-btn {
  position: absolute;
  left: 50%;
  bottom: 100px; /* moved up from 48px */
  transform: translateX(-50%);
  background: rgba(254, 241, 233, 1);
  color: rgb(23, 25, 27);
  font-family: 'Rammetto One', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 16px 40px;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 100;
  opacity: 0;
  animation: popUpBtn 1s 1.2s ease forwards;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  margin: 0;
}

.see-my-work-btn:hover {
  background: rgb(23, 25, 27);
  color: rgba(254, 241, 233, 1); /* changed from #fef1e9 */
}

.scroll-down-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  color: rgba(254, 241, 233, 1);
  font-size:1.1rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  animation: popScrollText 1s 2s ease forwards, bounce 1.2s 3s infinite;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 101;
}

@keyframes popScrollText {
  from {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}


@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 4px);
  }
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popUpBtn {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


header {
  width: 100%;
  position: relative;
  z-index: 2;
}

.logo-img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.header-grey-box {
  background: rgba(254, 241, 233, 1); /* already correct */
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  width: 100%;
  margin-top: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  color: rgb(23, 25, 27);
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 22px;
  text-transform: uppercase;
  transition: opacity 0.2s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-40px);
  animation: fadeDown 1s ease forwards;
}

nav ul li:nth-child(1) { animation-delay: 0.2s; }
nav ul li:nth-child(2) { animation-delay: 0.35s; }
nav ul li.logo-space { animation-delay: 0.5s; }
nav ul li:nth-child(4) { animation-delay: 0.65s; }
nav ul li:nth-child(5) { animation-delay: 0.8s; }

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

nav ul li.logo-space {
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  margin: 0 30px;
}

@media (max-width: 1100px) {
  nav ul {
    gap: 30px;
  }
  nav ul li.logo-space {
    width: 220px;
  }
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 18px;
  }
  nav ul li.logo-space {
    width: 100%;
    margin: 0;
  }
}

.about-section {
  width: 100vw;
  background: rgb(23, 25, 27);
  color: rgba(254, 241, 233, 1);
  padding: 30px 0 0px 0;
  display: flex;
  justify-content: center;
  margin-left: calc(50% - 50vw); /* Stretch to page edge even if inside a container */
  margin-right: calc(50% - 50vw);
}

.about-container {
  max-width: 100vw;
  width: 100vw;
  margin: 0;
  text-align: center;
  }

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  font-family: 'Rammetto One', 'Montserrat', Arial, sans-serif;
  color: rgba(254, 241, 233, 1);
  letter-spacing: 2px;
  padding: 30px 0 80px 0;
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 36px;
  color: rgba(254, 241, 233, 1);
  max-width: 1100px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 12vw);
  margin-top: 42px;
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
}


/* Ferrari: top left, 4 columns x 3 rows */
.about-img-ferrari {
  grid-column: 1 / 5;
  grid-row: 1 / 4;
}

/* Top right text: 2 columns x 2 rows */
.about-text-top-right {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
  padding: 18px 16px;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 241, 233, 1);
}

/* BMW: 2 columns x 1 row, under top right text */
.about-img-bmw {
  grid-column: 5 / 7;
  grid-row: 3 / 4;
}

/* Bottom left text: 2 columns x 2 rows under Ferrari */
.about-text-bottom-left {
  grid-column: 1 / 3;
  grid-row: 4 / 6;
  padding: 18px 16px;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 241, 233, 1);
}

/* Porsche: 2 columns x 1 row, bottom left */
.about-img-porsche {
  grid-column: 1 / 3;
  grid-row: 6 / 7;
}

/* Audi: 4 columns x 3 rows, bottom right */
.about-img-audi {
  grid-column: 3 / 7;
  grid-row: 4 / 7;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .about-container {
    max-width: 100vw;
    width: 100vw;
    padding: 0 0;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, 24vw);
    width: 100vw;
    max-width: 100vw;
  }
  .about-img-ferrari { grid-column: 1 / 3; grid-row: 1 / 3; }
  .about-text-top-right { grid-column: 1 / 3; grid-row: 3 / 4; }
  .about-img-bmw { grid-column: 1 / 2; grid-row: 4 / 5; }
  .about-text-bottom-left { grid-column: 2 / 3; grid-row: 4 / 6; }
  .about-img-porsche { grid-column: 1 / 2; grid-row: 6 / 7; }
  .about-img-audi { grid-column: 2 / 3; grid-row: 6 / 7; }
}

@media (max-width: 600px) {
  .about-container {
    max-width: 100vw;
    width: 100vw;
    padding: 0 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 38vw);
    width: 100vw;
    max-width: 100vw;
  }
  .about-img-ferrari,
  .about-text-top-right,
  .about-img-bmw,
  .about-text-bottom-left,
  .about-img-porsche,
  .about-img-audi {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
}
.site-footer {
  background: #181818;
  color: rgba(254, 241, 233, 1);
  text-align: center;
  padding: 32px 0 24px 0;
  font-size: 1.1rem;
  border-top: 1px solid #333;
}

.site-footer .footer-link {
  color: rgba(254, 241, 233, 1);
  text-decoration: underline;
  margin: 0 8px;
  transition: color 0.2s;
}

.site-footer .footer-link:hover {
  color: #ffb47e;
}

/* ================= MOBILE STYLES ================= */
@media (max-width: 500px) {
  html, body {
    font-size: 15px;
    overflow-x: hidden;
  }
  .hero {
    height: 100vh;
    min-height: 600px;
  }
  .main-title {
    font-size: 2.2rem;
    padding: 0 8px;
    line-height: 1.1;
  }
  .main-subtitle {
    font-size: 1.1rem;
    padding: 0 8px;
  }
  .see-my-work-btn {
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 22px;
    bottom: 60px;
  }
  .scroll-down-text {
    font-size: 0.95rem;
    bottom: 10px;
    padding: 0 8px;
  }
  .logo-img {
    height: 70px;
    max-width: 90vw;
  }
  .header-grey-box {
    min-height: 90px;
    padding: 0 4px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0 0 8px 0;
  }
  nav ul li {
    font-size: 1rem;
    letter-spacing: 1.2px;
  }
  nav ul li.logo-space {
    width: 100%;
    margin: 0;
  }
  .about-section {
    padding: 18px 0 0 0;
  }
  .about-section h2 {
    font-size: 1.3rem;
    padding: 18px 0 36px 0;
    margin-bottom: 12px;
  }
  .about-intro {
    font-size: 0.98rem;
    margin-bottom: 18px;
    padding: 0 8px;
  }
  .about-container {
    padding: 0 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 44vw);
    width: 100vw;
    max-width: 100vw;
    margin: 0;
  }
  .about-img-ferrari,
  .about-text-top-right,
  .about-img-bmw,
  .about-text-bottom-left,
  .about-img-porsche,
  .about-img-audi {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    min-height: 0;
    padding: 0 8px;
  }
  .about-text-top-right,
  .about-text-bottom-left {
    font-size: 0.98rem;
    padding: 12px 8px;
  }
  .about-img img {
    border-radius: 8px;
  }
  .site-footer {
    font-size: 0.95rem;
    padding: 18px 0 12px 0;
  }
  .site-footer .footer-link {
    margin: 0 4px;
  }
}