:root {
  --primary-font: "Roboto", sans-serif;
  --secondary-font: "Montserrat", sans-serif;
  --background-main: #1b1b1b;
  --background-footer: #282323;
  --background-navbar: #212121;
}
body {
  background: var(--background-main);
  padding-top: 80px;
}
.hero {
  background-image: url("images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 900px;
  text-align: center;
}
header {
  background: var(--background-navbar);
}
.navbar {
  padding: 20px 200px;
  width: 100%;
  z-index: 10;
}

/* Navbar text */
.nav-link {
  color: white !important;
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 500;
}

.nav-link:hover {
  color: white !important;
}
.logo-img {
  max-height: 10%;
  width: 10%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 250px 130px;
}
h1 {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 72px;
  text-transform: uppercase;
  letter-spacing: 7.2px;
  line-height: 1.2;
  color: white;
  margin-bottom: 30px;
}
h2 {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  line-height: 1.2;
  color: white;
  margin-bottom: 40px;
}
.hero p {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: white;
  margin-bottom: 60px;
}
.btn-start {
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 1.2;
  color: #272142;
  background: white;
  padding: 18px 30px;
  border-radius: 50px;
}
.btn-start:hover {
  color: #272142;
  background: white;
}

@media (max-width: 770px) {
  .navbar {
    padding: 20px 60px;
  }
  .hero-content {
    min-height: 600px;
    padding: 70px 30px;
  }
  h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .hero p {
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .btn-start {
    font-size: 10px;
    padding: 10px 15px;
  }
}
@media (max-width: 500px) {
  .hero {
    min-height: 500px;
  }
  .logo-img {
    max-height: 30%;
    width: 30%;
  }
  .navbar {
    padding: 5px 20px;
  }
  .hero-content {
    min-height: 350px;
    padding: 30px 30px;
  }
  .btn-start {
    font-size: 6px;
    padding: 10px 15px;
  }
}
.gallery {
  max-width: 80%;
  margin: 100px auto 0;
}
.gallery h1 {
  font-family: var(--primary-font);
  font-size: 72px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 7.2px;
  line-height: 1.2;
  color: white;
  padding-bottom: 80px;
  padding-top: 0;
}
.gallery-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 70px;
}
.gallery-row img {
  height: 280px;
  object-fit: cover; /* Prevents image distortion on fluid scaling */
  max-width: 100%; /* Ensures images don't overflow their containers */
}
.gallery-section {
  max-width: 80%;
  margin: 40px auto 0;
}
/* 1. Tablet Screens (1024px and below) */
@media (max-width: 1024px) {
  .gallery {
    max-width: 90%; /* Give more breathing room on tablets */
    margin-top: 60px;
  }
  .gallery-section {
    max-width: 90%; /* Give more breathing room on tablets */
    margin-top: 40px;
  }

  .gallery-row {
    margin-bottom: 40px;
    gap: 20px; /* Switch from space-evenly to an explicit gap for better fit */
  }

  .gallery-row img {
    height: 220px; /* Slightly scale down height for smaller screens */
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery {
    max-width: 80%; /* Keeps alignment consistent with hero container */
    margin-top: 60px;
  }

  .gallery-row {
    justify-content: space-between; /* Keeps left & right edges perfectly flush */
    gap: 20px; /* Replaces space-evenly to prevent overflow */
    margin-bottom: 40px;
  }

  .gallery-row img {
    height: 180px; /* Scale down height so width decreases proportionally */
    width: 31%; /* Ensures 3 images + gaps fit exactly 100% width */
    object-fit: cover; /* Prevents image distortion */
    min-width: 0; /* Prevents flex items from overflowing layout */
  }
}
/* 2. Mobile Screens (768px and below) */
@media (max-width: 770px) {
  .gallery {
    max-width: 90%;
    margin-top: 40px;
  }

  /* Stack row items vertically */
  .gallery-row {
    flex-direction: column;
    margin-bottom: 25px;
    gap: 25px;
  }

  /* Full-width responsive images */
  .gallery-row img {
    width: 100%;
    height: auto; /* Lets height scale naturally based on width */
    max-height: 350px; /* Optional limit so images don't get too tall */
  }
}
.footer {
  background-color: var(--background-footer);
  padding: 30px 200px 0 200px;
  display: flex;
  justify-content: space-between;
}
.footer-logo {
  height: 23px;
}
.media-logo {
  color: white;
  display: flex;
  gap: 30px;
  padding-top: 5px;
  height: 18px;
  font-weight: 400;
}
.copyright {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 16px;
  color: white;
}
.footer-p {
  background-color: var(--background-footer);
  font-size: 14px;
  color: white;
  padding-bottom: 30px;
}
.footer-p a {
  color: white;
}
@media (max-width: 1025px) {
  .navbar {
    padding: 20px 80px;
  }
  .footer {
    padding: 20px 80px 0px 80px;
  }
}
@media (max-width: 770px) {
  .navbar {
    padding: 20px 30px;
  }
  .footer {
    display: flex;
    justify-content: space-around;
    padding: 20px 30px 0px 30px;
    gap: 25px;
  }
  .footer-logo {
    height: 14px;
    padding-top: 0;
  }
  .footer-p {
    font-size: 12px;
    padding-bottom: 15px;
  }
  .media-logo {
    color: white;
    display: flex;
    justify-content: center;
    gap: 5px;
    height: 18px;
    font-weight: 400;
    padding-top: 5px;
  }
  .copyright {
    font-size: 12px;
    text-align: end;
    padding-top: 5px;
  }
}

.about-content {
  text-align: start;
  max-width: 600px;
}
.about-hero-img {
  height: 100%;
  width: 100%;
  min-height: 700px; /* Forces vertical height to match target scale */
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}
.about h3 {
  color: #f65282;
  font-family: var(--primary-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.2;
}
.about h1 {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: 5.5px;
  line-height: 1.1;
}
.about p {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #ffffff;
}
/* Camera Logo Container */
.camera-logo {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  background: #2d2727;
  padding: 15px 25px;
  border-radius: 6px;
  max-width: 100%;
}
.camera-logo img {
  height: auto;
  width: 70px;
  object-fit: contain;
}
.about h4 {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}
/* Fixed missing dot selector (.media-logo) */
.about .media-logo {
  display: flex;
  justify-content: flex-start; /* Aligns icons to the far left */
  align-items: center;
  gap: 16px; /* Clean spacing between social icons */
}
.about .media-logo i {
  font-weight: 400;
  font-size: 20px;
}
.btn-contact-me {
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #272142;
  background: white;
  padding: 18px 32px;
  border-radius: 50px;
}
.btn-contact-me:hover {
  color: #272142;
  background: white;
}
.about-gallery {
  padding: 40px 80px;
}
@media (max-width: 770px) {
  /* Container adjustments */
  .about .container,
  .about .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Reset image for vertical stacking */
  .about-hero-img {
    width: 100%;
    height: 380px; /* Controlled height for mobile screens */
    min-height: auto;
    object-fit: cover;
    margin-bottom: 2rem;
  }

  /* Content alignment & font adjustments */
  .about-content {
    max-width: 100%;
    height: auto;
    text-align: center;
  }

  .about h1 {
    font-size: 38px; /* Scale down hero title to prevent horizontal overflow */
    line-height: 1.1;
    margin-bottom: 1.5rem !important;
    text-align: left;
  }

  .about h3 {
    font-size: 16px;
    margin-bottom: 1rem !important;
    text-align: left;
  }

  .about p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 1.5rem !important;
    text-align: left;
  }

  /* Camera logo box full width */
  .camera-logo {
    width: 100%;
    padding: 15px 50px;
    gap: 20px;
    text-align: center !important;
  }
  .camera-logo img {
    width: 50px;
    height: auto;
  }
  .about h4 {
    font-size: 14px;
    line-height: 20px;
  }
  /* Button alignment */
  .btn-contact-me {
    width: 80%;
    text-align: center;
    padding: 14px 20px;
  }
}
/* Styles that apply ONLY to contact.html */
html:has(.contact-section-page),
body.contact-section-page {
  height: 100%;
  margin: 0;
}
body.contact-section-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.contact-section-page main {
  flex: 1 0 auto;
}

/*body.contact-section-page footer {
  flex-shrink: 0;
}*/
.contact-page {
  text-align: center;
  color: #ffffff;
}
.contact-page h1 {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: 5.5px;
  line-height: 1.1;
  padding-top: 40px;
}
.contact-page h3 {
  color: #f65282;
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.contact-page p {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}
.contact-page i {
  font-size: 14px;
  font-weight: 900;
}
.contact-page-details {
  padding: 120px 0 30px 0;
}
@media (max-width: 770px) {
  .contact-page h1,
  .gallery h1 {
    font-size: 38px;
    letter-spacing: 4px;
  }
  .contact-page h3 {
    font-size: 16px;
  }
  .contact-page p {
    font-size: 15px;
  }
  .contact-page-details {
    padding: 50px 0 30px 0;
  }
}
.navbar a,
.btn {
  /*display: inline-block;  Required for transform scale to work properly */
  transition: transform 0.3s ease-in-out; /* Smooth transition speed */
}
/* Apply the scale up on hover */
.navbar a:hover,
.btn:hover {
  transform: scale(1.15); /* Scales up by 8% */
}
.media-logo a {
  color: white;
  /*display: inline-block;  Required for transform scale to work properly */
  transition: transform 0.3s ease-in-out; /* Smooth transition speed */
}
.media-logo a:hover {
  transform: scale(1.3); /* Scales up*/
}
