:root {
  /* Primary */
  --soft-red: #fe7866;
  --yellow: #f9d400;
  --dark-desaturated-cyan: #24554a;
  --dark-blue: #19526b;
  --dark-moderate-cyan: #3e7467;

  /* Neutral */
  --very-dark-desaturated-blue: #232f3d;
  --very-dark-grayish-blue: #5a626c;
  --dark-grayish-blue: #808397;
  --grayish-blue: #a7aaae;
  --white: #ffffff;
}

/* Global Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  overflow-x: hidden;
}

/* Start of Nav Section */
header {
  font-family: "Barlow", sans-serif;
  color: var(--white);
  position: absolute;
  z-index: 1;
  top: 34px;
  left: 0;
  right: 0;
  width: 100%;
}

/* nav container */
.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
}
.nav-main {
  display: flex;
}
.nav-main ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 40px;
}

/* REFACTORED: Base contact button styles */
.contact {
  width: 140px;
  height: 56px;
  font-family: "Fraunces", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  background-color: var(--white);
  border-radius: 30px; /* Applied to the button itself */
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.contact:hover {
  background-color: rgba(255, 255, 255, 0.382);
  color: #ffffff;
}

.hamburger {
  display: none;
}
/* End of Nav Section */

/* Start of Hero Section */
.hero-section {
  width: 100%;
  height: 800px;
  background-image: url("./images/desktop/image-header.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-box {
  display: flex;
  font-family: "Fraunces", sans-serif;
  font-size: 56px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 8.75px;
  margin-top: 195px;
  text-align: center;
}

.arrow {
  display: flex;
  justify-content: center;
  margin-top: 96.54px;
}
/* End of Hero Section */

/* Start of Content Section */
.content-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 600px);
  width: 100%;
}
.content-box {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-box img {
  width: 100%;
  min-height: 600px;
  object-fit: cover;
}

.panel {
  width: 100%;
  padding: 0 90px;
  display: flex;
  flex-direction: column;
}

.panel h3 {
  font-family: "Fraunces", sans-serif;
  font-size: 40px;
  margin-bottom: 36px;
  color: var(--very-dark-desaturated-blue);
}

.panel p {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  color: var(--dark-grayish-blue);
  font-size: 18px;
  line-height: 30px;
}

.panel > .link {
  margin-top: 40px;
  font-family: "Fraunces", sans-serif;
  color: var(--very-dark-desaturated-blue);
  position: relative;
}

.panel > .link::before {
  background-color: var(--yellow);
  opacity: 30%;
  content: "";
  position: absolute;
  width: 100px;
  height: 40%;
  bottom: 0;
  z-index: -1;
}
.panel > .link:hover::before {
  opacity: 100%;
}
.panel > .link:hover {
  cursor: pointer;
}
.content-section .content-box:nth-of-type(4) .link::before {
  background-color: var(--soft-red);
  cursor: pointer;
  opacity: 30%;
}
.content-section .content-box:nth-of-type(4) .link:hover::before {
  opacity: 100%;
}

.panel-five {
  background-image: url("./images/desktop/image-graphic-design.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: end;
}
.panel-five h3 {
  color: var(--dark-desaturated-cyan);
}
.panel-five p {
  color: var(--dark-moderate-cyan);
}
.img-text {
  width: 339px;
  text-align: center;
  margin-bottom: 59px;
}

.img-text h3 {
  font-family: "Fraunces", sans-serif;
  font-size: 28px;
  margin-bottom: 27px;
}

.img-text p {
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  line-height: 27px;
}

.panel-six {
  background-image: url("./images/desktop/image-photography.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: end;
}
.panel-six h3 {
  color: var(--dark-blue);
}
.panel-six p {
  color: #19536c;
}
/* End of Content Section */

/* Start of Testimonials Section */
.testimonials-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.testimonials-header {
  text-align: center;
  font-family: "Fraunces", sans-serif;
  color: var(--dark-grayish-blue);
  font-size: 20px;
  letter-spacing: 8.75px;
  text-transform: uppercase;
  margin-top: 160px;
}
.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  margin: 10px;
}
.avatar {
  border-radius: 50%;
  width: 72px;
  margin-bottom: 20px;
}

.testimonials-text {
  margin-bottom: 69px;
  text-align: center;
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  line-height: 36px;
  color: var(--dark-grayish-blue);
}
.testimonials-name {
  font-family: "Fraunces", sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.testimonials-title {
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  line-height: 25px;
  color: var(--dark-grayish-blue);
  margin-top: 9px;
}
/* End of Testimonials Section */

/* Start of Gallery Section */
.gallery-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* End of Gallery Section */

/* Start of Footer Section */
.footer-section {
  height: 350px;
  width: 100%;
  background-color: #90d4c6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--dark-moderate-cyan);
  font-family: "Barlow", sans-serif;
  font-size: 18px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  text-align: center;
}

.footer-nav ul li:hover {
  cursor: pointer;
  color: var(--white);
}

.footer-socials {
  display: flex;
  justify-content: center;
  margin-top: 88px;
  gap: 28px;
}
.footer-socials > img {
  height: 20px;
  width: 20px;
}
.footer-socials img:hover {
  filter: invert(100%) brightness(1000%);
  transition: filter 0.3s ease;
}
/* End of Footer Section */

/* Media Queries */
@media (max-width: 1080px) {
  /* .testimonials {
    max-width: 280px;
  } */

  .testimonials-text {
    font-size: 15px;
  }
}

/* ADDED: Intermediate breakpoint to handle navigation spacing */
@media (max-width: 900px) {
  .nav-main ul {
    gap: 20px; /* Reduce gap between nav items */
  }
  
  .nav-container {
    padding: 0 20px; /* Reduce side padding */
  }
}

/* ADDED: Smaller screens but still desktop navigation */
@media (max-width: 820px) {
  .nav-main ul {
    gap: 15px; /* Further reduce gap */
  }
  
  .contact {
    width: 120px; /* Slightly smaller contact button */
    height: 48px;
    font-size: 14px; /* Smaller font */
  }
}

@media (max-width: 940px) {
  .content-section {
    display: flex;
    flex-direction: column;
  }

  .nav-container {
    padding: 0 24px;
  }

  .content-box{
    width: 100%;
   min-height: 600px
  }

  .panel {
    padding-top: 64px;
    padding-bottom: 64px;
    text-align: center;
  }

  .panel-five {
    background-image: url("./images/mobile/image-graphic-design.jpg");
  }

  .panel-six {
    background-image: url("./images/mobile/image-photography.jpg");
  }
  
  .testimonials-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }
  
  .testimonials {
    width: 100%;
    max-width: 300px;
  }
  
  .gallery-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 765px) {
  .panel-five {
    height: 600px;
  }
  .panel-six {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    grid-template-columns: 1fr;
  }

  .hero-box h3 {
    font-size: 40px;
  }

  .panel {
    padding-left: 40px;
    padding-right: 40px;
    text-align: center;
  }

  .panel h3 {
    font-size: 32px;
  }
}

@media (max-width: 375px) {
  .hero-section {
    width: 375px;
    background-image: url("./images/mobile/image-header.jpg");
  }
  .hero-box {
    font-size: 40px;
  }
}

/* REFACTORED: Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  /* REFACTORED: Mobile menu container */
  .nav-container.active .nav-main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 60px;
    background-color: var(--white);
    width: 30%;
    min-width: 320px;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
  }

  .nav-main ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-main ul li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  /* REFACTORED: Mobile nav links styling */
  .nav-main ul li.nav-link {
    color: var(--dark-grayish-blue);
  }

  /* REFACTORED: Mobile contact button - removed pseudo-element approach */
  .nav-main .contact {
    background-color: var(--yellow);
    color: var(--very-dark-desaturated-blue);
    border-radius: 30px; /* Now properly applied */
    width: 140px;
    height: 56px;
    margin-top: 20px;
    position: relative; /* Removed the pseudo-element entirely */
  }

  .nav-main .contact:hover {
    background-color: var(--yellow);
    opacity: 0.8;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 70px;
  }
}