/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* BASE STYLES */
  body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
  }
  
  /* NAVIGATION */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 1rem;
  }
  .logo img {
    max-height: 50px;
  }
  .desktop-nav {
    display: flex;
  }
  .desktop-nav .navigation {
    list-style: none;
    display: flex;
    align-items: center;
  }
  .desktop-nav .navigation li {
    position: relative;
    margin: 0 1rem;
  }
  .desktop-nav .navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem;
  }
  .desktop-nav .navigation a:hover {
    text-decoration: underline;
  }
  .desktop-nav .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    list-style: none;
    padding: 0;
    min-width: 150px;
    z-index: 1000;
  }
  .desktop-nav .dropdown:hover .dropdown-menu {
    display: block;
  }
  .desktop-nav .dropdown .dropdown-menu li {
    margin: 0;
  }
  .desktop-nav .dropdown .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
  }
  
  /* HAMBURGER & MOBILE MENU */
  .hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
  }
  .hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .hamburger.active span {
    background: #fff;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 2rem;
    z-index: 1000;
  }
  .mobile-menu.active {
    display: flex;
  }
  .mobile-menu .mobile-navigation {
    list-style: none;
  }
  .mobile-menu .mobile-navigation li {
    margin: 1rem 0;
  }
  .mobile-menu .mobile-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
  }
  .mobile-menu .dropdown {
    position: relative;
  }
  .mobile-menu .dropdown > a::after {
    content: "\25BC";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  .mobile-menu .dropdown.active > a::after {
    transform: rotate(180deg);
  }
  .mobile-menu .dropdown .dropdown-menu {
    list-style: none;
    margin-left: 1rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .mobile-menu .dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  /* WELCOME SECTION */
  #welcome-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    background: #fff url('../images/background.jpg') no-repeat center center/cover;
    margin-bottom: 2rem;
  }
  .welcome-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .welcome-text {
    flex: 1;
    padding: 1rem;
    text-align: left;
  }
  .welcome-image {
    flex: 1;
    padding: 1rem;
  }
  .welcome-image img {
    width: 100%;
    border-radius: 8px;
  }
  .current-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .current-image {
    flex: 1;
    padding: 0.5rem;
  }
  .current-text {
    flex: 1;
    padding: 0.5rem;
    text-align: right;
  }
  .current-image img {
    width: 100%;
    border-radius: 8px;
  }
  
  /* DYNAMIC FONT SIZES */
  .welcome-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
  .welcome-text p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }
  .current-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .current-text p {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
  
  /* TESTIMONIALS SECTION */
  #testimonials {
    padding: 2rem;
    background-color: #fff;
    margin-bottom: 2rem;
  }
  #testimonials h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  .testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .testimonial {
    flex: 1 1 calc(50% - 1rem);
    background: #eee;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
  }
  .testimonial-summary {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  /* BEFORE/AFTER GALLERIES SECTION */
  #before-after-galleries {
    padding: 2rem;
    background-color: #fff;
  }
  #before-after-galleries h2 {
    text-align: center;
    margin-bottom: 2rem;
  }
  .gallery-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  .gallery-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .gallery-column h3 {
    margin-bottom: 1rem;  /* increased bottom margin */
    font-size: 1.5rem;
    text-align: center;
  }
  .gallery-column .gallery {
    margin-top: 2.5rem; /* added top margin to separate gallery from header */
  }
  
  /* GALLERY / DECK-OF-CARDS STYLE (applies to all .gallery elements) */
  .gallery {
    width: 300px;
    height: 200px;
    position: relative;
    overflow: visible;
    margin: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  .gallery:hover {
    transform: translateY(-5px);
  }
  .gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .gallery-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 8px;
    background: #fff;
  }
  .gallery-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  /* Deck-of-cards effect: three slides */
  .gallery-slider .slide:nth-child(1) {
    transform: translate(0px, 0px) rotate(0deg);
    z-index: 3;
  }
  .gallery-slider .slide:nth-child(2) {
    transform: translate(20px, -15px) rotate(-5deg);
    z-index: 2;
  }
  .gallery-slider .slide:nth-child(3) {
    transform: translate(40px, -30px) rotate(-10deg);
    z-index: 1;
  }
  /* Gallery controls (arrows) */
  .gallery .gallery-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
  }
  .gallery .gallery-controls button {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 1.2rem;
    transition: background 0.3s ease;
  }
  .gallery .gallery-controls button:hover {
    background: rgba(0,0,0,0.8);
  }
  
  /* LIGHTBOX STYLES */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;  /* black background to completely cover home page */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }
  .lightbox.active {
    display: flex;
  }
  .lightbox-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: auto;
  }
  .lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;  /* white close button */
    cursor: pointer;
    z-index: 2100;
  }
  .lightbox-prev,
  .lightbox-next {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    z-index: 2100;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  
  /* Override deck-of-cards effect in lightbox slider */
  .lightbox-slider .slide {
    position: relative !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 8px;
    z-index: auto !important;
  }
  /* Only display the first slide in lightbox slider */
  .lightbox-slider .slide:not(:first-child) {
    display: none !important;
  }
  
  /* RESPONSIVE ADJUSTMENTS */
  @media (max-width: 768px) {
    .desktop-nav {
      display: none;
    }
    .hamburger {
      display: flex;
    }
  }
  @media (max-width: 640px) {
    .welcome-pair,
    .current-pair {
      flex-direction: column;
      text-align: center;
    }
    .current-pair .current-text {
      order: 1;
    }
    .current-pair .current-image {
      order: 2;
    }
    .welcome-text,
    .current-text {
      text-align: center;
    }
  }
  @media (max-width: 480px) {
    .testimonial {
      flex: 1 1 100%;
    }
    .gallery-row {
      flex-direction: column;
    }
    .gallery-column {
      width: 100%;
    }
  }
  @media (min-width: 1024px) {
    #welcome-section {
      gap: 0;
    }
  }  

  footer {
    background: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }

  .content-wrapper {
    max-width: 800px;
    margin: 2rem auto; /* centers the content */
    padding: 0 1rem;
  }

  .btn {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #555;
  }
  
/* Styles for the Authentication Section */
#auth-section {
  background: #fff;
  border: 1px solid #ddd;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

#auth-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

/* Styles for the auth form container */
#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Styles for the username input */
#auth-form input[type="text"] {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Override default .btn styles for auth buttons */
#auth-form .btn {
  background-color: #007bff;  /* Blue background */
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#auth-form .btn:hover {
  background-color: #0056b3;  /* Darker blue on hover */
}
