/* =========================
 GLOBAL STYLES
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background-color: #e6f4f2;
  color: #444;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* =========================
 FIRST HEADER: SOCIAL ICONS & DARK MODE
========================= */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  background-color: #7c9758;
  color: black;
  padding: 10px 20px;
  position: relative;
  transition: background-color 0.5s ease;
}

header .social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

header .fa-brands {
  font-size: 25px;
  color: rgb(247, 207, 5);
  padding: 10px;
  margin: 0 2px;
  text-decoration: none;
  transition: opacity 0.3s;
}

header .fa-brands:hover { opacity: 0.8; }
header .fa-brands:active { opacity: 0.5; }

/* Dark Mode Toggle Button */
header .dark-toggle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background-color: rgb(247, 207, 5);
  color: #000;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 
    background-color 0.5s ease, 
    color 0.5s ease, 
    transform 0.2s ease,
    box-shadow 0.5s ease;
}

header .dark-toggle:hover {
  transform: scale(1.1);
  background-color: #f2d44d;
}

body.dark-mode header .dark-toggle {
  background-color: #444;
  color: #f0c933;
  box-shadow: 0 0 12px 3px #f0c933;
}

/* =========================
 SECOND HEADER: NAVIGATION
========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #a8bf8a;
  padding: 10px 20px;
  transition: background-color 0.5s ease;
}

.nav-left, .nav-right { display: flex; gap: 20px; }

.header a {
  color: #3b594b;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 25px;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
  transition: color 0.5s ease;
}

.header a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.8;
}


.main-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Gallery Buttons --- */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.buttons button {
  margin: 0.5em;
  padding: 0.7em 1.5em;
  font-size: 1.1em;
  border: 2px solid #7c9758;
  background: none;
  color: #7c9758;
  border-radius: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buttons button:hover,
.buttons .btn-clicked {
  background: #4d5f36;
  color: #fff;
}

/* --- Gallery Images Section --- */
.gallery-images {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: flex-start;
  padding-left: 150px;
}

.gallery-images img,
.gallery-images video {
  width: 300px;
  height: 250px;
  object-fit: cover;
  border-radius: 0.2em;
  transition: all 0.6s ease-in-out;
}

.gallery-images img:hover,
.gallery-images video:hover {
  transform: scale(1.05);
}

/* Expanded / Shrunk States */
.gallery-images .img-expand {
  opacity: 1;
  transform: scale(1);
  display: block;
}

.gallery-images .img-shrink {
  opacity: 0;
  transform: scale(0);
  display: none;
  pointer-events: none;
}


/* --- Gallery Title --- */
.gallery-text {
  text-align: center;
  font-size: 1.5rem;
  color: #4F6A58;
  font-family: 'Playfair Display', serif;
  margin: 2rem 0;
  position: relative;
}

.gallery-text::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #f7cf05;
  margin: 10px auto 0; 
  border-radius: 2px;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  background: #f8f8f8;
  font-size: 13px;
  color: #666;
}

/*Scrolling */
html {
  scroll-behavior: smooth;
}
.up a {
  background-color: #68b0b0;
  color: black;
  position: fixed;
  bottom: 10px;
  right: 20px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
}

.up a:hover {
  transform: translateY(-10%);
  transition: 0.2s;
}

/* --- Responsive Styles --- */
@media screen and (max-width: 986px) {
  .gallery-images {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }
  
  .gallery-images img,
  .gallery-images video {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

@media screen and (max-width: 600px) {
  .buttons button {
    width: 100%;
    display: block;
  }
  
  .header {
    flex-direction: column;
  }
  
  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: center;
  }
}


/* =========================
 DARK MODE STYLES
========================= */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .header { 
  background-color: #3b594b;
 }
body.dark-mode header { 
  background-color: #10241b; 
}

body.dark-mode .nav-left a,
body.dark-mode .nav-right a,
body.dark-mode .coming-soon { 
  color: #f0c933; 
}

body.dark-mode .gallery-text {
  color: #A3C28B;
}

body.dark-mode .gallery-text::after {
  background: #F7D86B;
}

body.dark-mode footer {
  background-color: #000;
  color: #A3C28B;
}

/* =========================
   RESPONSIVE GALLERY + HEADER
========================= */

/* Tablets and medium screens (≤992px) */
@media screen and (max-width: 992px) {

  header {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nav-left, .nav-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .gallery-images {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    gap: 1.5em;
  }

  .gallery-images img,
  .gallery-images video {
    width: 45%;
    height: auto;
    margin: 0 auto;
  }

  .buttons button {
    font-size: 1em;
    padding: 0.6em 1.2em;
  }
}

/* Small tablets and large phones (≤768px) */
@media screen and (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 10px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-left, .nav-right {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .gallery-images {
    flex-direction: column;
    align-items: center;
  }

  .gallery-images img,
  .gallery-images video {
    width: 90%;
    max-width: 400px;
    height: auto;
    margin: 0.7em 0;
  }

  .buttons button {
    width: 100%;
  }
}

/* Phones (≤480px) */
@media screen and (max-width: 480px) {

  header {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .nav-left, .nav-right {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .gallery-images img,
  .gallery-images video {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0.5em 0;
  }

  .buttons button {
    width: 100%;
    font-size: 0.95em;
    padding: 0.5em 1em;
  }
}
