* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Josefin Sans", sans-serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem;
}
:root {
  --bg-color: #0a0a0a;
  --second-bg-color: #1a1a1a;
  --text-color: #fff;
  --second-color: #c6c9d8bf;
  --main-color: #e6a64c; /* Changed to a gold/amber color for photo studio */
  --big-font: 5.3rem;
  --h2-font: 4.2rem;
  --p-font: 1.1rem;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 25px 15%;
  transition-duration: 0.3s;
}
.logo {
  color: var(--text-color);
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 1px;
}
.navbar {
  display: flex;
}
.navbar li {
  position: relative;
}
.navbar a {
  color: var(--text-color);
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px;
}
.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--main-color);
  left: 0;
  bottom: -4px;
  transition: ease 0.4s;
}
.navbar a:hover::after {
  width: 100%;
}
#menu-icon {
  font-size: 32px;
  color: var(--text-color);
  z-index: 10001;
  cursor: pointer;
  display: none;
}
.h-btn {
  padding: 0 20px;
  height: 40px;
  display: inline-block;
  line-height: 42px;
  background: var(--main-color);
  color: var(--text-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.h-btn:hover {
  transform: translateY(-5px);
}
section {
  padding: 120px 15%;
}

/* Home section with improved background transitions */
.home {
  height: 100vh;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: center;
  overflow: hidden; /* Prevent any potential overflow */
  /* Set a default background image to prevent black background */
  background-image: url("img/hero/hero1.jpg");
  background-size: cover;
  background-position: center;
}

/* Background slides for crossfade effect */
.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 0;
}

.bg-slide.active {
  opacity: 1;
}

/* Dark overlay for better text readability */
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Ensure text is above the overlay */
.home-text {
  position: relative;
  z-index: 2;
}

.home-text h1 {
  margin: 20px 0px 20px;
  font-size: var(--big-font);
}
span {
  color: var(--main-color);
}

.home-text h3 {
  font-size: 25px;
  margin-bottom: 55px;
}
.home-text h4 {
  color: #a8a9ad;
  font-size: 20px;
  letter-spacing: 2px;
}
.newsletter form {
  width: 380px;
  max-width: 100%;
  position: relative;
}
.newsletter form input:first-child {
  display: inline-block;
  width: 100%;
  outline: none;
  padding: 16px 140px 16px 15px;
  border-radius: 30px;
}
.newsletter form input:last-child {
  position: absolute;
  display: inline-block;
  outline: none;
  border: none;
  background: var(--main-color);
  color: var(--text-color);
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0px 0px 6px #000, 0px 0px 14px #868686;
  cursor: pointer;
  top: 6px;
  right: 6px;
}
header.sticky {
  padding: 12px 15%;
  background: var(--main-color);
}
.sticky .navbar a::after {
  background: var(--text-color);
}
.sticky .h-btn {
  background: var(--text-color);
  color: #000;
}

.about {
  background: var(--second-bg-color);
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  align-items: center;
  grid-gap: 2rem;
}
.about-img img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: 10px;
}

.about-text h2 {
  font-size: var(--h2-font);
  margin-bottom: 20px;
}
.about-text h5 {
  font-size: 28px;
  margin-bottom: 25px;
  letter-spacing: 2px;
}
.about-text p {
  color: var(--second-color);
  letter-spacing: 1px;
  line-height: 28px;
  max-width: 590px;
  font-size: var(--p-font);
  margin-bottom: 45px;
}
.btn {
  display: inline-block;
  background: var(--main-color);
  color: var(--text-color);
  border: 2px solid transparent;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 30px;
  transition: ease 0.35s;
}
.btn:hover {
  transform: translateY(-8px);
  border: 2px solid var(--main-color);
  background: transparent;
}
.services {
  background: var(--bg-color);
}
.center {
  text-align: center;
}
.center h2 {
  font-size: var(--h2-font);
  margin-bottom: 15px;
}
.center p {
  color: var(--second-color);
  letter-spacing: 1px;
  line-height: 28px;
  font-size: var(--p-font);
}
.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, auto));
  grid-gap: 2rem;
  align-items: center;
  margin-top: 4.5rem;
}
.row {
  background: var(--second-bg-color);
  padding: 55px 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s;
}
.row i {
  color: var(--main-color);
  margin-bottom: 20px;
  font-size: 2.7rem;
}
.row h3 {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}
.row p {
  color: var(--second-color);
  line-height: 30px;
  font-size: var(--p-font);
}
.row:hover {
  transform: translateY(-8px);
}
.blog {
  background: var(--second-bg-color);
}
.blog-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, auto));
  grid-gap: 2rem;
  align-items: center;
  margin-top: 4.5rem;
  cursor: pointer;
}
.box img {
  max-width: 100%;
  width: 400px;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
}
.box p {
  color: var(--second-color);
  font-size: var(--p-font);
  margin-bottom: 15px;
}
.box h5 {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}
.box img:hover {
  transform: scale(1.1);
}

.contact {
  background: var(--bg-color);
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  align-items: center;
  grid-gap: 3rem;
}
.contact-img img {
  max-width: 100%;
  width: 700px;
  height: auto;
  border-radius: 10px;
}
.contact-form h2 {
  font-size: var(--h2-font);
  margin-bottom: 15px;
}
.contact-form p {
  color: var(--second-color);
  letter-spacing: 1px;
  line-height: 28px;
  font-size: var(--p-font);
  margin-bottom: 4.1rem;
}
.contact-form form {
  position: relative;
}
.contact-form form input,
form textarea {
  width: 100%;
  padding: 20px;
  border: none;
  outline: none;
  background: var(--second-bg-color);
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
}
.contact-form textarea {
  resize: none;
  height: 200px;
}
.contact-form form .send {
  display: inline-block;
  background: var(--main-color);
  color: var(--text-color);
  font-size: 18px;
  font-weight: 800;
  border-radius: 30px;
  width: 200px;
  transition: ease 0.35s;
  text-transform: uppercase;
  text-align: center;
}
.contact-form form .send:hover {
  transform: translateY(-8px);
  cursor: pointer;
}
.footer {
  text-align: center;
  background: var(--second-bg-color);
  padding: 34px;
}
.footer p {
  font-size: 17px;
  color: var(--second-color);
  letter-spacing: 1px;
}

/* Improved responsive styles */
@media (max-width: 1270px) {
  header {
    padding: 18px 4%;
    transition: 0.2s;
  }
  header.sticky {
    padding: 10px 4%;
    transition: 0.2s;
  }
  section {
    padding: 80px 4%;
    transition: 0.2s;
  }
  :root {
    --big-font: 4.8rem;
    --h2-font: 3.8rem;
    --p-font: 1rem;
    transition: 0.2s;
  }
}

@media (max-width: 990px) {
  .home {
    height: 85vh;
  }
  :root {
    --big-font: 3.5rem; /* Smaller font size for mobile */
    --h2-font: 2.8rem;
  }

  .home-text h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .logo {
    font-size: 24px; /* Smaller logo text */
  }

  .h-btn {
    padding: 0 15px;
    height: 35px;
    line-height: 35px;
    font-size: 12px;
  }

  .newsletter form {
    width: 100%;
    max-width: 320px;
  }

  #menu-icon {
    display: initial;
  }
  .navbar {
    position: absolute;
    top: -700px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-color);
    text-align: left;
    transition: all 0.3s;
  }
  .navbar a {
    display: block;
    padding: 1.1rem;
    margin: 1.3rem;
    border-left: 2px solid var(--text-color);
  }
  .navbar a:hover {
    background: var(--main-color);
  }
  .navbar a::after {
    display: none;
  }
  .navbar.active {
    top: 100%;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-img {
    text-align: center;
    margin-bottom: 30px;
  }
  .about-img img {
    max-width: 100%;
    width: 700px;
    height: auto;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-img {
    text-align: center;
    margin-bottom: 25px;
  }
  .contact-form {
    order: 2;
  }
  .box img {
    max-width: 100%;
    width: 400px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --big-font: 2.8rem; /* Even smaller for very small devices */
    --h2-font: 2.5rem;
  }

  .home-text h3 {
    font-size: 1.2rem;
  }

  .home-text h4 {
    font-size: 16px;
  }

  .newsletter form input:first-child {
    padding: 14px 120px 14px 15px;
  }

  .newsletter form input:last-child {
    padding: 10px 20px;
    font-size: 14px;
  }

  header {
    padding: 15px 5%; /* Tighter padding on mobile */
  }

  .logo {
    font-size: 22px;
  }
  .box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* optional, keeps items stacked vertically */
  }

  .box img {
    max-width: 100%;
    width: 400px;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
  }

  .service-content {
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  }
}

@media (max-width: 480px) {
  :root {
    --big-font: 2.2rem;
    --h2-font: 2rem;
  }

  .logo {
    font-size: 1rem;
  }

  .navbar > li {
    margin: -2.5rem 0;
    padding: 1.4rem 0;

    font-size: 0.7rem;
    line-height: -1rem;
  }

  .home {
    height: 100vh; /* or adjust based on layout */
    width: 100vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .service-content {
    margin: 2.5rem auto;
  }

  /* .box {
    margin: 0 auto;
  }
  .box > img {
    height: 20rem;
    width: 20rem;
  } */

  .blog-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* spacing between boxes */
  }

  .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 20rem;
  }

  .box img {
    width: 20rem;
    height: 16rem;
    object-fit: cover;
    border-radius: 8px; /* optional styling */
    display: block;
  }

  .newsletter form {
    width: 100%;
    max-width: 280px;
  }

  .newsletter form input:last-child {
    padding: 8px 15px;
    font-size: 12px;
  }

  .row {
    padding: 40px 20px;
  }

  .service-content {
    grid-template-columns: 1fr;
  }

  .about-text h5 {
    font-size: 22px;
  }

  .footer p {
    font-size: 0.9rem;
  }
}
