/* MOBILE RESPONSIVE STYLES */

/* Hide hamburger menu on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Base responsive styles to prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  max-width: 100%;
}

/* LARGE TABLET OPTIMIZATION (1025px to 1366px) */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
  header {
    padding: 20px 5%; /* Reduce padding for better space utilization */
  }
  
  header .logo {
    font-size: 1.3em; /* Slightly smaller logo */
  }
  
  .navList li {
    padding: 0px 15px; /* Reduce navigation item spacing */
  }
}

/* TABLET STYLES (1024px and below) */
@media screen and (max-width: 1024px) {
  /* Header adjustments */
  header {
    padding: 20px 5%;
    flex-wrap: nowrap;
  }
  
  header .logo {
    font-size: 1.2em;
    flex-shrink: 0;
  }
  
  /* Hero section adjustments */
  .hero {
    padding: 1.5em; /* Reduce padding on smaller screens */
  }
  
  .hero::before,
  .hero::after {
    background-position: center 25%; /* Adjust focal point for mobile */
  }
  
  .hero-text {
    font-size: clamp(1.8em, 7vw, 2.5em); /* More controlled mobile sizing */
    margin-bottom: 0.4em;
  }
  
  .hero-subtext {
    font-size: clamp(0.9em, 4vw, 1.1em); /* More controlled mobile sizing */
    max-width: 90%; /* Allow more width on mobile */
  }
  
  /* Adjust animation distance for mobile */
  .hero-text,
  .hero-subtext {
    transform: translate3d(0, 20px, 0); /* Smaller initial offset on mobile */
  }
  
  /* About section adjustments */
  .whoami-section {
    padding: 30px 5%;
  }
  
  .whoami-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  
  .whoami-image,
  .whoami-text {
    flex: none;
    width: 100%;
  }
  
  .whoami-text h2 {
    font-size: 2em;
  }
  
  /* Home options section */
  .home-options-section {
    padding: 2em 5%;
  }
  
  .home-options-section-main-text {
    padding: 0 2em;
    font-size: 1.2em;
  }
  
  .home-options-grid-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .home-options-grid-item {
    cursor: pointer;
  }

  .home-options-grid-item img {
    height: 25em;
  }
  
  .home-options-grid-item::before {
    height: 25em;
  }
  
  /* Only show hover effect on desktop */
  @media (hover: hover) and (min-width: 1025px) {
    .home-options-grid-item:hover::before {
      opacity: 1;
    }
  }

  /* Use tap/click effect on mobile instead */
  @media (hover: none) {
    .home-options-grid-item:active::before {
      opacity: 1;
    }
  }
  
  /* Think piece section */
  .home-think-piece-container {
    flex-direction: column;
    margin: 2em 5%;
    padding: 30px;
  }
  
  .home-think-piece-text {
    padding-right: 0;
    margin-bottom: 2em;
  }
  
  .home-think-piece-text h2 {
    font-size: 2em;
  }
  
  /* Contact section */
  .home-contact-section {
    padding: 0;
    height: 60vh;
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
  }

  /* Add semi-transparent overlay for better text contrast */
  .home-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
  }
  
  .home-contact-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    padding: 0 clamp(1em, 5vw, 2em); /* Consistent, responsive padding */
  }
  
  .home-contact-content h2 {
    font-size: 2.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5em;
  }

  /* Mobile-first button styling */
  .home-contact-button {
    background-color: white;
    color: black;
    padding: 1em 3em;
    border: 2px solid white;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 4px;
  }

  /* Desktop-only hover effect */
  @media (hover: hover) and (min-width: 1025px) {
    .home-contact-button {
      background-color: transparent;
      color: white;
    }
    
    .home-contact-button:hover {
      background-color: white;
      color: black;
    }
  }
  
  /* Footer adjustments */
  .footer-nav ul {
    gap: 1.5em;
    flex-wrap: wrap;
  }
  
  .footer-copyright {
    position: static;
    margin-top: 1em;
  }
}

/* MOBILE STYLES (1024px and below) */
@media screen and (max-width: 1024px) {
  /* Show hamburger menu and hide desktop nav */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .headNav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #262a2d;
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 1.5vh 0; /* Use viewport height for responsive padding */
  }
  
  .headNav.active {
    left: 0;
  }
  
  .mobile-nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    width: 100%;
    padding: 2vh 0; /* Responsive padding based on viewport height */
  }
  
  .navList {
    flex-direction: column;
    align-items: center;
    gap: clamp(1em, 3vh, 2.5em); /* Responsive gap that scales with viewport height */
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  
  .navList li {
    display: block;
    padding: 0;
    text-align: center;
    width: 100%;
  }
  
  .navList li a {
    display: block;
    padding: clamp(0.5em, 2vh, 1em); /* Responsive padding */
    font-size: clamp(1.1em, 3vmin, 1.4em); /* Responsive font size */
  }
  
  /* Handle photography dropdown in mobile */
  .navList li.photography-dropdown {
    position: static;
    cursor: pointer;
  }
  
  .photography-main-link {
    display: block;
    padding: clamp(0.5em, 2vh, 1em); /* Responsive padding */
    font-size: clamp(1.1em, 3vmin, 1.4em); /* Responsive font size */
    color: white;
    text-align: center;
    cursor: pointer;
  }
  
  .navList li.photography-dropdown .photography-chevron {
    font-size: clamp(0.6em, 2vmin, 0.8em); /* Responsive chevron size */
    margin-left: 0.5em;
    transition: transform 0.3s ease;
    display: inline-block !important; /* Show chevron on mobile with same specificity as desktop rule */
  }
  
  .navList li.photography-dropdown.active .photography-chevron {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    position: static;
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-radius: 5px;
    overflow: hidden; /* Changed from visible to hidden to truly hide content */
    max-height: 0;
    margin-top: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none; /* Disable clicks when closed */
    transition: max-height 0.4s ease, margin-top 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  }
  
  .dropdown-content.show {
    max-height: 600px; /* Fixed height instead of viewport-based to ensure all items fit */
    margin-top: 0.5em;
    padding: 0.8em 0;
    opacity: 1;
    pointer-events: auto; /* Enable clicks when open */
  }
  
  .dropdown-content li {
    padding: 0 !important; /* Remove padding from li itself */
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    list-style: none;
  }
  
  .dropdown-content.show li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }
  
  .dropdown-content li a {
    color: white;
    font-size: clamp(0.9em, 2.5vmin, 1.1em);
    display: block;
    padding: clamp(0.6em, 2vh, 0.9em) 1.2em; /* Adequate padding on the link itself */
    transition: background-color 0.2s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none; /* Ensure no underline */
    user-select: none; /* Prevent text selection highlighting */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  }
  
  .dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Handle social icons in mobile nav */
  .mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: clamp(1.5em, 4vw, 2em); /* Responsive gap */
    padding: clamp(1em, 3vh, 2em) 0; /* Responsive padding */
    width: 100%;
    flex-shrink: 0;
    margin-top: clamp(1em, 2vh, 2em); /* Responsive margin */
  }
  
  .mobile-social-icons a {
    color: white;
    font-size: clamp(1.3em, 4vmin, 1.8em); /* Responsive social icon size */
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .mobile-social-icons a:hover {
    color: #3f4c50;
  }
  
  /* Hide desktop social icons in mobile */
  .desktop-social-icons {
    display: none;
  }
  
  /* Fix for smaller screens (iPhone XR, 14 Pro Max, etc.) */
  @media screen and (max-width: 1024px) and (max-height: 932px) {
    .navList {
      gap: clamp(0.8em, 2.5vh, 1.8em); /* Reduce gap on smaller height screens */
    }
    
    .dropdown-content.show {
      max-height: 500px; /* Slightly reduced for smaller screens */
      padding: 0.6em 0;
    }
    
    .dropdown-content li a {
      padding: clamp(0.5em, 1.5vh, 0.7em) 1.2em; /* Tighter padding */
    }
    
    .mobile-nav-container {
      padding: 1.5vh 0; /* Reduce padding on smaller screens */
    }
  }
  
  /* Hamburger animation when active */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Header adjustments */
  header {
    padding: 15px 5%;
    position: relative;
  }
  
  header .logo {
    font-size: 1em;
  }
  
  /* Hero section */
  .hero {
    height: calc(100vh - 90px); /* Adjust for smaller mobile header */
    padding: 1em;
  }
  
  .hero::before,
  .hero::after {
    background-position: center 20%; /* Better focal point for mobile */
  }
  
  .hero-text {
    font-size: clamp(1.5em, 6vw, 1.8em);
    line-height: 1.1;
    margin-bottom: 0.3em;
  }
  
  .hero-subtext {
    font-size: clamp(0.85em, 3.5vw, 1em);
    max-width: 95%;
  }
  
  /* Smaller animation distance for mobile screens */
  .hero-text,
  .hero-subtext {
    transform: translate3d(0, 15px, 0); /* Even smaller offset for mobile */
  }
  
  /* MOBILE MASONRY GALLERY - Clean responsive solution with focal points and modal */
  
  /* Only apply grid layout on mobile */
  @media screen and (max-width: 1024px) {
    .home-masonry-gallery-section {
      background-color: #cbd6db;
      padding: 2em 1em;
      display: grid;
      grid-template-columns: 1fr 1fr; /* 2 columns base mobile layout */
      gap: 0.5em;
    }
  }
  
  /* Make rows work with grid only on mobile */
  @media screen and (max-width: 1024px) {
    .home-masonry-row {
      display: contents;
    }
    
    .home-masonry-row-images {
      display: contents;
    }
  }
  
  /* Style individual items */
  .home-masonry-item {
    width: 100%;
    height: 40vw;
    display: block;
    position: relative; /* For modal trigger */
    cursor: pointer;
  }
  
  /* Show all images */
  .home-masonry-item.hidden {
    display: block !important;
  }
  
  /* Basic image styling */
  .home-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
  }
  
  /* Focal point classes */
  .focal-point-face {
    object-position: 50% 20%; /* Prioritize faces at top */
  }
  
  .focal-point-center {
    object-position: center center;
  }
  
  /* Image hover effect */
  .home-masonry-item:hover img {
    transform: scale(1.02);
  }
  
  /* Modal styles */
  .image-modal {
    display: none !important; /* Force hide on desktop */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 1em;
    touch-action: none; /* Prevent scrolling behind modal */
  }

  /* Only allow modal on mobile devices */
  @media screen and (max-width: 1024px) {
    .image-modal {
      display: none !important; /* Reset to allow JS control */
    }
    .image-modal.active {
      display: flex !important;
    }
  }
  
  .image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    position: relative;
    /* Dynamic content width based on screen size */
    max-width: min(85%, calc(100% - var(--nav-space) * 2));
    max-height: 90vh;
    /* Dynamic margins that adapt to screen size */
    margin: 0 var(--nav-space);
  }
  
  .modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
  }
  
  /* Modal navigation */
  .modal-nav {
    --btn-size: clamp(44px, 8vmin, 56px); /* Responsive button size with minimum tap target */
    --nav-space: max(20px, 4vw); /* Responsive spacing from edges */
    
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: clamp(0.75em, 2vmin, 1.25em); /* Responsive padding */
    cursor: pointer;
    font-size: clamp(1.25em, 3vmin, 1.5em); /* Responsive icon size */
    border-radius: 50%;
    width: var(--btn-size);
    height: var(--btn-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
  }
  
  .modal-nav i {
    /* Center the chevron icons perfectly */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
  }
  
  .modal-prev {
    left: var(--nav-space); /* Use consistent spacing variable */
  }
  
  .modal-next {
    right: var(--nav-space); /* Use consistent spacing variable */
  }
  
  .modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
  }

  /* Adjust modal layout for different screen sizes */
  @media screen and (max-width: 768px) {
    .modal-content {
      max-width: min(90%, calc(100% - var(--nav-space) * 2));
    }
    
    .modal-nav {
      --btn-size: clamp(40px, 7vmin, 48px); /* Slightly smaller on mobile */
      --nav-space: max(12px, 3vw); /* Closer to edges on mobile */
    }
  }

  /* Extra small screens */
  @media screen and (max-width: 480px) {
    .modal-content {
      max-width: min(92%, calc(100% - var(--nav-space) * 2));
    }
    
    .modal-nav {
      --btn-size: clamp(36px, 6vmin, 44px); /* Even smaller on very small screens */
      --nav-space: max(8px, 2vw); /* Minimum spacing on small screens */
    }
  }
  
  .modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    transition: all 0.3s ease;
  }
  
  .modal-close i {
    font-size: 24px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  
  .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
  }
  
  .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Only disable animations on mobile */
  @media screen and (max-width: 1024px) {
    .home-masonry-top:hover .home-masonry-row-images,
    .home-masonry-bottom:hover .home-masonry-row-images {
      transform: none !important;
    }
    
    /* Remove transforms on mobile only */
    .home-masonry-row-images {
      transform: none !important;
      transition: none !important;
      width: auto !important;
    }
  }
  
  /* About section */
  .whoami-section {
    padding: 20px 5%;
  }
  
  .whoami-text h2 {
    font-size: 1.5em;
  }
  
  .whoami-text p {
    font-size: 0.9em;
  }
  
  /* Options section */
  .home-options-section-main-text {
    padding: 0 1em;
    font-size: 1em;
  }
  
  .home-options-grid-item img {
    height: 20em;
  }
  
  .home-options-grid-item::before {
    height: 20em;
  }
  
  .home-options-grid-caption h3 {
    font-size: 2em;
  }
  
  .home-options-grid-caption p {
    font-size: 1.2em;
  }
  
  /* Think piece section */
  .home-think-piece-text h2 {
    font-size: 1.5em;
  }
  
  .home-think-piece-text p {
    font-size: 1em;
  }
  
  /* Contact section */
  .home-contact-section {
    padding-left: 1em;
    height: 50vh;
  }
  
  .home-contact-content {
    padding-top: 4em;
  }
  
  .home-contact-content h2 {
    font-size: 2em;
    line-height: 1;
  }
  
  .home-contact-button {
    padding: 0.8em 2em;
  }
  
  /* Footer */
  .footer-nav ul {
    flex-direction: column;
    gap: 1em;
  }
  
  .footer-nav li {
    font-size: 1em;
  }
  
  .footer-social-icons {
    margin: 1em 0;
  }
  
  .footer-social-icons a {
    font-size: 1.5em;
  }
}

/* MOBILE HEIGHT OPTIMIZATIONS */

/* For very short screens (landscape phones, small devices) */
@media screen and (max-width: 1024px) and (max-height: 600px) {
  .headNav {
    padding: 1vh 0; /* Minimal padding for short screens */
  }
  
  .mobile-nav-container {
    padding: 1vh 0;
  }
  
  .navList {
    gap: clamp(0.5em, 1.5vh, 1em); /* Tighter gaps */
  }
  
  .navList li a,
  .photography-main-link {
    padding: clamp(0.3em, 1vh, 0.6em);
    font-size: clamp(1em, 2.5vmin, 1.2em); /* Smaller text */
  }
  
  .dropdown-content li a {
    font-size: clamp(0.8em, 2vmin, 1em);
    padding: clamp(0.2em, 0.8vh, 0.3em) 1em;
  }
  
  .mobile-social-icons {
    padding: clamp(0.5em, 1.5vh, 1em) 0;
    margin-top: clamp(0.5em, 1vh, 1em);
    gap: clamp(1em, 3vw, 1.5em);
  }
  
  .mobile-social-icons a {
    font-size: clamp(1.1em, 3vmin, 1.4em); /* Smaller social icons */
  }
}

/* For medium height screens */
@media screen and (max-width: 1024px) and (min-height: 601px) and (max-height: 800px) {
  .navList {
    gap: clamp(1.2em, 2.5vh, 2em);
  }
  
  .navList li a,
  .photography-main-link {
    font-size: clamp(1.1em, 2.8vmin, 1.3em);
  }
}

/* For tall screens (large phones, tablets in portrait) */
@media screen and (max-width: 1024px) and (min-height: 801px) {
  .navList {
    gap: clamp(1.5em, 3.5vh, 2.5em); /* More spacious gaps */
  }
  
  .mobile-social-icons {
    padding: clamp(1.5em, 4vh, 2.5em) 0;
    margin-top: clamp(1.5em, 3vh, 2.5em);
  }
}

/* HERO SECTION HEIGHT OPTIMIZATIONS */

/* For very short screens (landscape orientation) */
@media screen and (max-width: 1024px) and (max-height: 500px) {
  .hero {
    height: calc(100vh - 70px); /* Smaller header offset */
    padding: 0.5em;
  }
  
  .hero::before,
  .hero::after {
    background-position: center 25%; /* Adjust for landscape */
  }
  
  .hero-text {
    font-size: clamp(1.2em, 5vw, 1.8em);
    margin-bottom: 0.2em;
  }
  
  .hero-subtext {
    font-size: clamp(0.8em, 3vw, 1em);
  }
}

/* For medium height screens */
@media screen and (max-width: 1024px) and (min-height: 501px) and (max-height: 800px) {
  .hero::before,
  .hero::after {
    background-position: center 30%;
  }
  
  .hero-text {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }
  
  .hero-subtext {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }
}

/* For very tall screens (modern phones in portrait) */
@media screen and (max-width: 1024px) and (min-height: 801px) {
  .hero {
    padding: 2em;
  }
  
  .hero::before,
  .hero::after {
    background-position: center 35%;
  }
  
  .hero-text {
    font-size: clamp(2em, 7vw, 2.8em);
    margin-bottom: 0.6em;
  }
  
  .hero-subtext {
    font-size: clamp(1em, 4vw, 1.3em);
  }
}

/* SMALL TABLET SCREENS (769px to 1024px) - Enhanced 3-column layout */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .home-masonry-gallery-section {
    padding: 2em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns for tablets */
    gap: 1em;
  }
  
  /* Use display: contents to flatten the structure */
  .home-masonry-row {
    display: contents;
  }
  
  .home-masonry-row-images {
    display: contents;
  }
  
  .home-masonry-item {
    width: 100%;
    height: 25vw; /* Appropriate height for tablets */
    display: block;
    position: static;
  }
  
  .home-masonry-item.hidden {
    display: block !important; /* Show all images */
  }
  
  .home-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px; /* Slightly more rounding for tablets */
  }
  
  /* Disable hover effects on tablets */
  .home-masonry-top:hover .home-masonry-row-images,
  .home-masonry-bottom:hover .home-masonry-row-images {
    transform: none !important;
  }
  
  /* Remove desktop transforms */
  .home-masonry-row-images {
    transform: none !important;
    transition: none !important;
  }
}

/* MEDIUM MOBILE SCREENS (481px to 768px) - Optimized 2-column layout */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .home-masonry-gallery-section {
    grid-template-columns: 1fr 1fr; /* 2 columns for medium screens */
    gap: 0.8em; /* Balanced spacing */
    padding: 2em 1.5em; /* More padding for larger screens */
  }
  
  .home-masonry-item {
    height: 35vw; /* Proportional height for medium screens */
  }
}

/* VERY SMALL SCREENS (480px and below) - Single column layout */
@media screen and (max-width: 480px) {
  .home-masonry-gallery-section {
    grid-template-columns: 1fr; /* Single column on small phones */
    gap: 1em; /* More space between images */
    padding: 1.5em 1em; /* Adjusted padding */
  }
  
  .home-masonry-item {
    height: 60vw; /* Larger images for better viewing */
  }
}

/* Enhanced contact section responsiveness */
@media screen and (max-width: 768px) {
  .home-contact-content h2 {
    font-size: clamp(1.8em, 6vw, 2.5em);
    line-height: 1.2;
    margin-bottom: 1em;
  }

  .home-contact-button {
    padding: clamp(0.8em, 3vw, 1em) clamp(2em, 6vw, 3em);
    font-size: clamp(0.9em, 4vw, 1em);
  }
}

/* VERY SMALL SCREENS (320px and below) - Extra compact mobile menu */
@media screen and (max-width: 320px) {
  header .logo {
    font-size: 0.9em;
  }
  
  /* Extra compact mobile menu for very small screens */
  .navList {
    gap: clamp(0.5em, 2vh, 1em); /* Very tight gaps */
  }
  
  .navList li a,
  .photography-main-link {
    padding: clamp(0.3em, 1vh, 0.5em);
    font-size: clamp(0.9em, 2.5vmin, 1.1em); /* Smaller text */
  }
  
  .dropdown-content li a {
    font-size: clamp(0.8em, 2vmin, 0.9em);
    padding: clamp(0.2em, 0.8vh, 0.3em) 0.8em;
  }
  
  .mobile-social-icons {
    gap: clamp(1em, 3vw, 1.3em);
    padding: clamp(0.8em, 2vh, 1.2em) 0;
  }
  
  .mobile-social-icons a {
    font-size: clamp(1em, 3vmin, 1.3em);
  }
  
  /* Extra compact hero for very small screens */
  .hero {
    padding: 0.8em;
  }
  
  .hero::before,
  .hero::after {
    background-position: center 15%;
  }
  
  .hero-text {
    font-size: clamp(1.2em, 5vw, 1.5em);
    margin-bottom: 0.2em;
  }
  
  .hero-subtext {
    font-size: clamp(0.75em, 3vw, 0.9em);
    max-width: 98%;
  }
  
  /* Other page elements */
  .hero-text {
    font-size: 1.5em;
  }
  
  .hero-subtext {
    font-size: 0.9em;
  }
  
  .whoami-text h2 {
    font-size: 1.3em;
  }
  
  .home-contact-content h2 {
    font-size: 1.5em;
  }
  
  .home-options-grid-item img {
    height: 18em;
  }
  
  .home-options-grid-item::before {
    height: 18em;
  }
}
