* {
  font-family: "Nunito Sans", serif;
  box-sizing: border-box; /* Add this line */
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/*HEADER AND NAVBAR STYLES*/

#main-header {
  background-color: #262a2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 5%;
  color: white;
}

header .logo {
  font-size: 1.5em;
}

header .logo a{
  color:white;
  text-decoration: none;
}

.logo-img {
  max-height: clamp(50px, 7vw, 90px); /* Scales from 50px on small screens to 90px on large */
  width: auto; /* Maintains aspect ratio */
  display: block;
}

.navList {
  list-style: none;
}

.navList li {
  font-weight: bold;
  font-size: 1.2em;
  display: inline-block;
  padding: 0px 20px;
  align-items: center;
  justify-content: center;
}

.navList  li a{
  color:white;
  text-decoration: none;
}

/* Photography dropdown menu */
.navList li.photography-dropdown {
  position: relative;
}

.photography-main-link {
  cursor: pointer;
  color: white;
}

.navList li.photography-dropdown .photography-chevron {
  display: none !important; /* Hide chevron on desktop with higher specificity */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #d9d9d969; /* Background with 41% opacity as requested */
  min-width: 160px;
  z-index: 1000;
  left: 0;
  padding: 10px 0;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content li {
  display: block;
  padding: 10px 20px !important;
  text-align: center;
  font-size: 1.1em;
  margin: 0;
}

.navList li.photography-dropdown:hover .dropdown-content {
  display: block;
  color: black;
}

.dropdown-content li a{
  color:black;
  text-decoration: none;
}

.dropdown-content li:hover,
.dropdown-content li a:hover {
  color: white;
}

.social-icons-nav {
  display: flex;
  gap: 2em;
}

/* Hide mobile social icons on desktop */
.mobile-social-icons {
  display: none;
}

.social-icons-nav a {
  color: white;
  text-decoration: none;
}

.social-icons-nav a:hover,
.navList > li:hover,
.navList-links:hover {
  color: #3f4c50;
  cursor: pointer;
}

.social-icons-nav i {
  font-size: 1.7em;
}

/*HERO IMAGE*/
.hero {
  width: 100%;
  height: calc(100vh - 108px); /*108px is from the header height*/
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Position content towards bottom */
  align-items: center; /* Center content horizontally */
  color: white;
  text-align: center;
  padding: 2em 2em 6em 2em; /* Extra bottom padding to keep text away from edge */
  overflow: hidden; /* Ensure clean edges for animation */
}

/* Background image carousel using pseudo-elements */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%; /* Better focal point positioning */
  background-repeat: no-repeat;
  z-index: -1; /* Keep behind text content */
}

.hero::before {
  background-image: url(../images/main_img1_compressed.jpg);
  animation: heroSlideshow1 10s infinite;
}

.hero::after {
  background-image: url(../images/main_img2_compressed.jpg);
  animation: heroSlideshow2 10s infinite;
}

/* Keyframe animations for smooth crossfade */
@keyframes heroSlideshow1 {
  0% { opacity: 1; }
  45% { opacity: 1; }
  55% { opacity: 0; }
  95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroSlideshow2 {
  0% { opacity: 0; }
  45% { opacity: 0; }
  55% { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-text,
.hero-subtext {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); /* Stronger shadow for better readability */
  margin: 0; /* Remove default margins */
  position: relative; /* Ensure text stays above background images */
  z-index: 1; /* Keep text above background animations */
  /* Initial state for animations */
  opacity: 0;
  transform: translate3d(0, 30px, 0); /* Start 30px below final position */
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation states */
.hero-text.animate-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.3s; /* Start after background loads */
}

.hero-subtext.animate-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.6s; /* Start after title */
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-text,
  .hero-subtext {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .hero-text.animate-in,
  .hero-subtext.animate-in {
    transition-delay: 0s;
  }
}

.hero-text {
  font-size: clamp(2em, 8vw, 4em); /* Responsive font size */
  margin-bottom: 0.5em; /* Space between title and subtitle */
  line-height: 1.1; /* Tighter line height for large text */
}

.hero-subtext {
  font-style: italic;
  font-size: clamp(1em, 3vw, 1.2em); /* Responsive font size */
  max-width: 800px; /* Limit width for better readability */
  line-height: 1.4;
}

/* Mobile-specific hero adjustments */
@media (max-width: 768px) {
  /* Make logo smaller on mobile to prevent navbar expansion */
  .logo-img {
    max-height: clamp(35px, 5vh, 50px); /* Smaller range for mobile screens */
  }

  .hero {
    justify-content: flex-end; /* Move content to bottom */
    padding-bottom: 4em; /* Add space from bottom edge */
    padding-left: 1.5em;
    padding-right: 1.5em;
  }
  
  /* Adjust background positioning to focus on the person - use !important to override */
  .hero::before {
    background-position: 40% 30% !important; /* Move focal point further to the right */
  }
  
  .hero::after {
    background-position: 40% 30% !important; /* Move focal point further to the right */
  }
  
  /* Ensure text animations still work with bottom positioning */
  .hero-text,
  .hero-subtext {
    transform: translate3d(0, 30px, 0); /* Start 30px below final position */
  }
  
  .hero-text.animate-in,
  .hero-subtext.animate-in {
    transform: translate3d(0, 0, 0); /* End at natural position */
  }
}

/*ABOUT SECTION*/
.whoami-section {
  background-color: #cbd6db;
  padding: 50px 10%;
  display: flex;
}

.whoami-wrapper {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px; /* adds space between image and text */
}

.whoami-image {
  flex: 0 0 30%;
}

.whoami-image img {
  width: 100%;
  height: auto;
}

.whoami-text {
  flex: 0 0 70%;
  text-align: center; /*Centers all the items in the div*/
}

.whoami-text h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 1em;
}

.whoami-text p {
  font-weight: 500
}

.home-options-section-main-text p{
  font-weight: 400;
}

.home-options-section-main-text .name {
  font-weight: 300;
}

.whoami-button {
  background-color: #cbd6db;
  padding: 1.2em 2.5em;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  border: 2px solid #4b6c7d;
  color: black;
}

.whoami-button:hover {
  background-color: #6a8594;
  color: white;
}

.whoami-chevron {
  background-color: black;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em auto 0; /*centers under the button because auto helps center it*/
  transition: transform 0.3s ease;
}

.whoami-chevron i {
  font-size: 2em;
  color: white;
}

/*move chevron down on button hover*/
.whoami-button:hover + .whoami-chevron {
  transform: translateY(2em);
}

/*HOME MASONRY GALLERY SECTION*/
.home-masonry-gallery-section {
  width: 100%;
  background-color: #cbd6db;
  overflow-x: hidden;
}

.home-masonry-row {
  overflow: hidden;
  width: 100%; /* Full width of the viewport */
  margin: 0;
  position: relative;
  height: 32vw;
}

.home-masonry-row-images {
  display: flex;
  width: 200vw; /*6 images * 33.333vw each = 200vw total width*/
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
  height: 100%;
}

/* Ensure the row-images container is wide enough to hold all images side by side */
/* .home-masonry-row-images {
  display: flex;
  width: 100%; 
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
  overflow: hidden;
} */

/* Each masonry item takes up equal width */
.home-masonry-item {
  flex: 0 0 33.333vw; /* Each item takes up 1/3 of the row */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-masonry-item img.special-focal {
  object-position: 50% 40%; /* 50% is the horizontal center, 0% is 20% from the top */
}

/* Hidden images - styled by JavaScript interaction */
/* .home-masonry-item.hidden {
  Images are hidden/shown via transform animations 
} */

/* --- TOP ROW --- */

.home-masonry-top .home-masonry-row-images {
  flex-direction: row;
  transform: translateX(-100vw); /* show visible images initially */
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
}

/* On hover, slide the row-images to the left so hidden images come into view */
.home-masonry-top:hover .home-masonry-row-images {
  transform: translateX(0);
}

/* --- BOTTOM ROW --- */
/* For the bottom row, reverse the direction */
.home-masonry-bottom .home-masonry-row-images {
  flex-direction: row-reverse;
  transform: translateX(0); /* show visible images [6,5,4] initially (rightmost in container) */
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
}

.home-masonry-bottom:hover .home-masonry-row-images {
  transform: translateX(100vw); /* slide right to show hidden images [12,11,10] (leftmost in container) */
}


/*MAIN OPTIONS SECTION*/
.home-options-section {
  background-color: #94a3a6;
  text-align: center;
  padding: 2em 10%;
}

.home-options-section-main-text {
  font-size: 1.4em;
  padding: 0 9em;
  line-height: 1.6;
  margin: 0 auto 40px auto;
}

.home-options-grid-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.home-options-grid-item {
  position: relative;
  overflow: hidden;
}

.home-options-grid-item img {
  width: 100%;
  height: 35em;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Create the overlay with a pseudo-element */
.home-options-grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Use bottom instead of height */
  width: 100%;
  /* This height ensures it only covers the image and not the caption */
  height: 35em; /* Same as your image height */
  background-color: rgba(255, 255, 255, 0.5); /* Black with 50% opacity */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show the overlay on hover */
.home-options-grid-item:hover::before {
  opacity: 1;
}

.home-options-grid-caption h3 {
  font-size: 2.5em;
  font-weight: 500;
  margin: 0.2em;
}

.home-options-grid-caption p {
  font-size: 1.4em;
  margin: 5px 0 0;
}

/*HOME THINK PIECE SECTION*/
.home-think-piece-section {
  background-color: #cbd6db;
  display: flex;
  justify-content: center;
}

.home-think-piece-container {
  display: flex;
  align-items: center;
  max-width: 90em;
  width: 100%;
  margin: 3em 0;
  background-color: #4b6c7dc2;
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px); /* Optional for a soft glass effect */
}

.home-think-piece-text {
  flex: 1;
  padding-right: 4em;
  text-align: center;
}

.home-think-piece-text h2 {
  font-size: 2.5em;
  margin-bottom: 1.1em;
}

.home-think-piece-text p {
  font-size: 1.2em;
  line-height: 1.6;
}

.home-think-piece-image img {
  width: 100%;
  max-width: 40em;
  height: auto;
  border-radius: 10px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
}

/*HOME CONTACT SECTION*/
.home-contact-section {
  width: 100%;
  height: 80vh;
  background: url("../images/home-contact_compressed.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5em;
  color: white;
  position: relative;
}

.home-contact-content {
  padding-top: 8em;
  max-width: 600px;
  text-align: center;
}

.home-contact-content h2 {
  font-size: 3em;
  font-weight: 400;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5), 
               0 0 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5em;
  line-height: 1.1;
}

.home-contact-button {
  background-color: transparent;
  color: white;
  padding: 1em 4em;
  border: 2px solid white;
  font-weight: 600;
  font-size: 1.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid white;
  border-radius: 0.5em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.home-contact-button:hover {
  background-color: #ffffff;
  color: black;
}

/*FOOTER SECTION*/
footer {
  background-color: #262a2d;
  color: white;
  padding: 1em 2em;
  text-align: center;
  position: relative;
  z-index: 99; /* This will ensure the footer is on top of most elements */
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3em;
  padding: 0;
  margin-bottom: 0.6em;
}

.footer-nav li {
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
}

.footer-nav li:hover {
  color: #686a6b;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.4em;
}

.footer-social-icons a {
  color: white;
  font-size: 1.7em;
  text-decoration: none;
}

.footer-social-icons a:hover {
  color: #3f4c50;
}

.footer-arrow {
  background-color: transparent;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  border: 1px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5em auto 0; /*centers under the button because auto helps center it*/
  transition: background-color 0.3s ease;
}

.footer-arrow i {
  color: white;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.footer-arrow:hover {
  background-color: white;
  cursor: pointer;
}

.footer-arrow:hover i {
  color: black;
}

.footer-copyright {
  position: absolute;
  right: 3%;
  bottom: 1%;
  font-size: 0.9em;
}

/* Image Modal Styles - Hidden on desktop */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5em;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2em;
  padding: 15px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Hide modal completely on desktop (screen width > 1024px) */
@media (min-width: 1025px) {
  .image-modal {
    display: none !important;
  }
  
  .image-modal.active {
    display: none !important;
  }
}

/* Mobile optimizations for modal */
@media (max-width: 1024px) {
  .modal-close {
    top: 15px;
    right: 15px;
    font-size: 1.3em;
    padding: 10px;
  }

  .modal-nav {
    font-size: 1.1em;
    padding: 12px 10px;
  }

  .modal-prev {
    left: 15px;
  }

  .modal-next {
    right: 15px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 85%;
  }
}
/* HOME FAQ SECTION */
.home-faq-section {
  background-color: #cbd6db;
  padding: 4rem 10%;
}

.home-faq-container {
  margin: 0 auto;
}

.home-faq-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 2rem;
  color: #262a2d;
}

.home-faq-items {
  margin-bottom: 2rem;
}

.home-faq-item {
  background-color: white;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.home-faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  user-select: none;
}

.home-faq-question h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
  padding-right: 2rem;
  color: #262a2d;
}

.home-faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.home-faq-toggle:hover {
  transform: scale(1.1);
}

.home-faq-toggle svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-faq-toggle .icon-plus {
  opacity: 1;
  transform: rotate(0deg);
}

.home-faq-toggle .icon-minus {
  opacity: 0;
  transform: rotate(-90deg);
}

.home-faq-item.active .home-faq-toggle .icon-plus {
  opacity: 0;
  transform: rotate(90deg);
}

.home-faq-item.active .home-faq-toggle .icon-minus {
  opacity: 1;
  transform: rotate(0deg);
}

.home-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}

.home-faq-item.active .home-faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem 2rem;
}

.home-faq-answer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
}

.home-faq-button-container {
  text-align: center;
  margin-top: 2.5rem;
}

.home-faq-button {
  display: inline-block;
  background-color: transparent;
  border: solid 2px black;
  color: black;
  padding: 1rem 2.5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-faq-button:hover {
  background-color: #4b6c7d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Tablet focal point adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-options-grid-item:first-child img {
    object-position: center 20%;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .home-faq-section {
    padding: 3rem 5%;
  }

  .home-faq-title {
    font-size: 2em;
  }

  .home-faq-question {
    padding: 1.25rem 1.5rem;
  }

  .home-faq-question h3 {
    font-size: 1.1rem;
    padding-right: 1rem;
  }

  .home-faq-toggle svg {
    width: 20px;
    height: 20px;
  }

  .home-faq-item.active .home-faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }

  .home-faq-answer p {
    font-size: 1rem;
  }

  .home-faq-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* Mobile focal point adjustments for masonry images */
  .home-masonry-item img[src*="home-masonry-img_1_compressed"] {
    object-position: center 30%;
  }

  .home-masonry-item img[src*="home-masonry-img_3_compressed"] {
    object-position: center 30%;
  }

  .home-masonry-item img[src*="home-masonry-img_6_compressed"] {
    object-position: center 25%;
  }

  .home-masonry-item img[src*="home-masonry-img_10_compressed"] {
    object-position: center 30%;
  }

  .home-masonry-item img[src*="home-masonry-img_12_compressed"] {
    object-position: center 20%;
  }
}
