/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 14px 40px;
  border-bottom: 2px solid #b79669;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.ip-info {
  text-align: right;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
}

.ip-info .edition {
  font-size: 0.9em;
  color: #ddd;
}

.ip-info .ip {
  font-size: 1.1em;
  font-weight: 600;
  color: #d6b17c;
}

/* ====== NAVBAR ====== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #c6a56b, #b79669, #a88650);
  padding: 0 30px;
  position: relative;
  font-family: 'Alegreya';
  border-bottom: 3px solid #a07c4b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-links {
  display: flex;
  gap: 45px;
  align-items: center;
}

.navbar a {
  font-size: 18px;
  color: #222;
  text-decoration: none;
  padding: 16px 0;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 2px;
  background-color: white;
  transition: transform 0.3s ease;
}

.navbar a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar a:hover {
  color: white;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  color: #222;
  font-size: 18px;
  background: none;
  border: none;
  outline: none;
  font-family: 'Alegreya';
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #b79669;
  min-width: 240px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  padding: 12px 16px;
  display: block;
  color: #222;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #a27d4f;
  color: white;
}

.hero-image {
  background-image: url('../images/attracties/Fata_Morgana_2.png');
  background-size: cover;
  background-position: center;
  height: 550px;
  position: relative;
  animation: fadeInHero 1.5s ease-in-out forwards;
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.intro-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text,
.intro-text-second {
  flex: 1 1 500px;
  text-align: center;
}

.intro-text h2,
.intro-text-second h2 {
  font-family: 'WonderCraft';
  font-size: 2.4em;
  color: #b79669;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease;
}

.intro-text p,
.intro-text-second p {
  font-family: 'Alegreya';
  font-size: 1.15em;
  line-height: 1.7;
  color: #3d2c1c;
  animation: fadeInUp 1.3s ease;
}

.intro-text-second h2 {
  font-family: 'WonderCraft';
  font-size: 2em;
  color: #b79669;
  text-align: center;
  margin-bottom: 20px;
}

.intro-text-second p {
  font-family: 'Alegreya';
  font-size: 1.2em;
  color: #333;
  text-align: center;
  line-height: 1.6;
}

.intro-image {
  flex: 1 1 400px;
  text-align: center;
}

.intro-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.intro-image img:hover {
  transform: scale(1.04);
}

/* ====== FOOTER ====== */
.main-footer {
  background: linear-gradient(180deg, #1c1c1c, #151515);
  color: #ccc;
  text-align: center;
  padding: 50px 20px;
  border-top: 3px solid #b79669;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #b79669, #d3b47b, #b79669);
  opacity: 0.8;
}

.main-footer p {
  margin: 4px 0;
  font-size: 0.95em;
  color: #bbb;
  line-height: 1.6;
}

.main-footer p:first-child {
  color: #d6b17c;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Footer links */
.footer-links {
  margin-top: 12px;
  font-size: 0.95em;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #d6b17c;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
  color: #f0d9a6;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

/* ====== RESPONSIVE HEADER/NAV ====== */
@media (max-width: 768px) {
  .ip-info {
    display: none;
  }

  .main-header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  .logo-container {
    justify-content: center;
  }

  .logo {
    height: 55px;
  }

  .navbar {
    flex-direction: column;
    padding-top: 60px;
  }

  .navbar a {
    color: #222;
    font-size: 17px;
  }
}

/* ====== RESPONSIVE NAVBAR ====== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 18px;
    left: 20px;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #b79669;
    border-top: 2px solid #a07c4b;
    gap: 14px;
    padding: 10px 0;
  }

  .navbar-links.show {
    display: flex;
  }
}

@media (max-width: 768px) {
  .dropdown.mobile-only .dropdown-content {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-left: 25px;
    font-size: 16px;
    background-color: transparent;
    box-shadow: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    text-align: left;
  }

  .dropdown.mobile-only .dropdown-content.open {
    display: flex;
  }
}

.chevron {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-dropdown-button .chevron {
    display: inline-block;
  }
}

@media (min-width: 769px) {
  .dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #b79669;
    min-width: 240px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-radius: 0 0 6px 6px;
    transition: all 0.3s ease;
  }

  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .intro-section {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .intro-text h2 {
    font-size: 1.8em;
    text-align: center;
  }

  .intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-text p {
    font-size: 1em;
    text-align: center;
    max-width: 500px;
  }

  .intro-image img {
    max-width: 80%;
    margin: 0 auto;
  }

  .intro-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .intro-section {
    padding: 60px 20px;
  }

  .intro-text h2,
  .intro-text-second h2 {
    font-size: 1.9em;
  }

  .intro-text p,
  .intro-text-second p {
    font-size: 1em;
  }

  .hero-image {
    height: 300px;
  }
}

/* Responsiveness */
@media (max-width: 600px) {
  .main-footer {
    padding: 40px 15px;
  }
}