
/* =======================================================
   NAVIGATION OVERLAY & HAMBURGER BUTTON STYLES
   ======================================================= */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    padding: 0;
    z-index: 25;
    transition: position 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    border-radius: 2px;
    transform-origin: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:not(.active):hover span:nth-child(1) {
    transform: translateY(-2px);
}

.hamburger-btn:not(.active):hover span:nth-child(2) {
    width: 65%;
    margin-left: auto;
}

.hamburger-btn:not(.active):hover span:nth-child(3) {
    transform: translateY(2px);
}

.hamburger-btn.active {
    position: fixed;
    top: 36px;
    right: 48px;
    justify-content: center; 
    align-items: center;
}

.hamburger-btn.active span:nth-child(1) {
    position: absolute;
    transform: rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active span:nth-child(3) {
    position: absolute;
    transform: rotate(-45deg);
}

.hamburger-btn.active:hover span {
    opacity: 0.75;
}

/* Fullscreen Menu */
.nav-menu {
    position: fixed; /* Changed from sticky to fixed for true fullscreen overlay */
    inset: 0;
    background-color: #0d0d0d;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 6vw 40px;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-close-btn {
    position: absolute;
    top: 36px;
    right: 48px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-close-btn:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.menu-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
    margin: auto 0;
}

.menu-contact-box {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: clamp(24px, 4vw, 48px);
    border-radius: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu.active .menu-contact-box {
    opacity: 1;
    transform: translateY(0);
}

.menu-contact-box h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff;
}

.menu-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-input {
    width: 100%;
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.menu-input:focus {
    border-color: #ffffff;
}

.menu-submit-btn {
    align-self: flex-start;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 28px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
        
}

.menu-submit-btn:hover {
    background: #ffffff;
    color: #000000;
}

.menu-content-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
}

.menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 20px);
}

.menu-links li {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu.active .menu-links li:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
.nav-menu.active .menu-links li:nth-child(2) { transition-delay: 0.25s; opacity: 1; transform: translateX(0); }
.nav-menu.active .menu-links li:nth-child(3) { transition-delay: 0.35s; opacity: 1; transform: translateX(0); }
.nav-menu.active .menu-links li:nth-child(4) { transition-delay: 0.45s; opacity: 1; transform: translateX(0); }

.menu-links a {
    color: #888888;
    text-decoration: none;
    font-size: clamp(1.75rem, 4.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.menu-links a:hover,
.menu-links a.active {
    color: #ffffff;
    transform: translateX(8px);
}

.menu-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.nav-menu.active .menu-footer {
    opacity: 1;
}

.menu-address {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    line-height: 1.5;
    color: #888888;
    max-width: 320px;
}

.menu-socials {
    display: flex;
    gap: 12px;
}

.menu-social-icon {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.menu-social-icon:hover {
    transform: translateY(-3px);
    background: #cccccc;
}

/* Guarantee navbar visibility over subpage gallery and AOS sections */
/* Guarantee navbar visibility over subpage gallery and AOS sections */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999 !important;
}

.hamburger-btn {
  z-index: 1000 !important;
}

.nav-menu {
  z-index: 9999 !important;
}

.menu-close-btn {
  z-index: 10000 !important;
}

@media (max-width: 768px) {
  /* Prevent section clipping fixed header elements */
  .hero-section,
  .hero-others {
    overflow: visible !important;
  }
}

@media (max-width: 850px) {
    .menu-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 0;
    }

    .menu-content-right { order: 1; }
    .menu-contact-box { order: 2; margin-bottom: 30px; }
    .menu-links a { font-size: clamp(2rem, 6vw, 2.5rem); }
}

@media (max-width: 768px) {
    .menu-close-btn { top: 20px; right: 24px; font-size: 1.2rem; }
    .hamburger-btn.active { top: 24px; right: 24px; }
    .hamburger-btn { width: 28px; height: 18px; }
    .hamburger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
    .nav-menu { padding: 100px 20px 30px; }
    .menu-submit-btn { width: 100%; text-align: center; }
    .menu-social-icon { width: 34px; height: 34px; }
    .menu-social-icon svg { width: 16px; height: 16px; }
}


@media (max-width: 768px) {
    .hero-header {
        padding: 18px 24px;
    }
    .hero-header.scrolled {
        padding: 18px 24px;
    }
    .hamburger-btn span{
        height: 3px;
    }
}


/* Nav Button on Event Page  --------------------------------------------------------------------------------*/

.event-pagination-container {
  display: grid;
  /* Reduced left and right column sizes to pull Previous and Next closer to the center */
  grid-template-columns: minmax(auto, 150px) auto minmax(auto, 150px); 
  justify-content: center; /* Keeps the whole group centered on desktop */
  align-items: center;
  gap: 25px; /* Adjust this value to decrease/increase button spacing on desktop */
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

.nav-slot {
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-end; /* Right-aligns 'Previous' toward the center button */
}

.nav-center {
  justify-content: center;
}

.nav-right {
  justify-content: flex-start; /* Left-aligns 'Next' toward the center button */
}

/* Disabled button state - Forced overrides */
.btn-more.disabled,
a.btn-more.disabled {
  opacity: 0.35 !important;
  color: #888888 !important;
  background-color: #333333 !important;
  border-color: #444444 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(100%) !important;
  box-shadow: none !important;
}

/* Prevent hover styling on disabled buttons */
.btn-more.disabled:hover {
  background-color: #333333 !important;
  color: #888888 !important;
  cursor: not-allowed !important;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 640px) {
  .event-pagination-container {
    display: flex;
    flex-wrap: wrap; /* Allows "Our Work" to drop to the next line */
    justify-content: center;
    gap: 12px; /* Controls spacing between the buttons on mobile */
  }

  /* Order 1 & 2 place Previous and Next side-by-side at the top */
  .nav-left {
    order: 1;
    width: auto;
    justify-content: center;
  }

  .nav-right {
    order: 2;
    width: auto;
    justify-content: center;
  }

  /* Order 3 and 100% width forces 'Our Work' to the bottom center */
  .nav-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}