/* Színpaletta - Erdő-köd téma alapján */
:root {
  --primary-dark: #2d4a22;      /* Mély erdő zöld */
  --primary-medium: #4a6b3a;    /* Pára zöld */
  --primary-light: #7a9b5c;     /* Puha moha zöld */
  --secondary-dark: #5d6b47;    /* Földes zöld */
  --secondary-light: #8fa67a;   /* Halvány erdő zöld */
  --accent-warm: #d4a574;       /* Aranyló napfény */
  --text-white: #f8f9f6;         /* Puha fehér */
  --text-light: #e8ede6;        /* Ködös fehér */
  --text-dark: #3a4a35;         /* Erdő sötét */
  --bg-mist: #c4d1c2;           /* Ködös háttér */
  --bg-overlay: rgba(45, 74, 34, 0.8); /* Erdő overlay */
}

/* Alap stílusok */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: transparent;
    scroll-behavior: smooth;
}
/* Alap stílusok vége */

/* Header */
header {
    background: transparent; /* eltávolítva az áttetsző fehér háttér */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3vw;
    position: absolute;
    width: 100%;
    z-index: 2;
    box-sizing: border-box;
    color: var(--text-white); /* hogy jobban látszódjon a szöveg a háttérkép felett */
    text-shadow: 0 0 5px var(--bg-overlay); /* jobb olvashatóság érdekében */
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 5;
  filter: drop-shadow(0 0 3px #23301480);
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s linear;
}

/* Mobil méretezéshez */

@media (max-width: 768px) {
  nav {
    display: none; /* alapból nem látszik */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    flex-direction: column;
    gap: 0.8rem;
    width: min(300px, calc(100vw - 40px));
    overflow: hidden;
  }
  
  nav a {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  nav.open {
    display: flex;
    z-index: 1000;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 10;
  }
}

nav a {
  color: var(--text-white);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--bg-overlay);
  text-shadow: 0 1px 5px var(--bg-overlay);
  letter-spacing: 0.5px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  text-shadow: 0 1px 5px var(--bg-overlay);
  transform: scale(1.05);
  box-shadow: 0 2px 8px var(--bg-overlay);
}


.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo a:visited,
.logo a:active,
.logo a:focus,
.logo a:hover {
  text-decoration: none;
  color: inherit;
}


.svg-logo {
  width: 75px;
  height: 75px;
  margin-right: 10px;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--bg-overlay));
  transition: width 0.3s ease, height 0.3s ease;
}

.logo-text {
  font-family: 'Bebas Neue', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
  color: var(--text-white);
  text-shadow: 0 0 10px var(--bg-overlay);
  transition: font-size 0.3s ease;
}

.logo-short-text {
  display: none;
}

@media (max-width: 480px) {
  .logo-text {
    display: none !important;
  }
  .logo-short-text {
    display: inline !important;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    color: white;
  }
}

/* Responsive logó és szöveg méretezés */
@media (max-width: 768px) {
  .svg-logo {
    width: 50px;
    height: 50px;
    margin-right: 8px;
  }
  .logo-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .svg-logo {
    width: 35px;
    height: 35px;
    margin-right: 6px;
  }
  .logo-text {
    font-size: 0.4rem;
    letter-spacing: 0.1rem;
  }
}
/* Header szekció vége */

/* Hero szekció */
.hero {
    height: 100vh;
    background: url('../images/forset-fog.jpg') center center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Háttér overlay effekt a hero szekcióhoz */
.hero::before {
    content: "";
    position: absolute;
    inset: 0; /* Ez a top: 0, right: 0, bottom: 0, left: 0 rövidítése */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

h1 {
    font-size: 4vw;
    margin: 0;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 1px 2px 30px var(--bg-dark);
}
.explore {
    font-family: 'Bebas Neue', cursive, sans-serif;
    font-weight: 800;
    font-size: 2.5em;
    color: var(--text-dark);
    padding: 0.1em 0.3em;

}
.the-world {
    font-family: 'Bebas Neue', cursive, sans-serif;
    color: transparent;
    -webkit-text-stroke: 0.5px var(--text-dark);
    text-shadow: 1px var(--text-light);
    font-size: 2.5em;
    font-weight: 1000;
    letter-spacing: 1px;
}

.explore,
.the-world {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.explore.visible,
.the-world.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header elemek alapból rejtve */
header .logo,
header .hamburger,
header nav a {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
header .visible-header {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  h1 {
    font-size: 8vw; /* nagyobb, hogy olvasható maradjon */
    letter-spacing: 1px;
  }

  .explore {
    font-size: 1.2em;
  }

  .the-world {
    font-size: 1.2em;
    -webkit-text-stroke: 0.7px var(--text-dark);
    text-shadow: 0.7px var(--text-light);
  }
}
/* Hero szekció vége */














/* Footer */
.site-footer {
  background-image: url('../images/footer1.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-white);
  padding: 4rem 2rem 3rem;
  margin-top: 4rem;
  min-height: 500px;
  overflow: hidden;
}


.footer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas:
    "logo nav social"
    "copy copy copy";
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  grid-area: logo;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--accent-warm));
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.1);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.footer-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-warm);
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-warm);
  transform: translateY(-2px);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-social {
  grid-area: social;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-social-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--accent-warm);
  color: var(--text-dark);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(218, 165, 114, 0.3);
}

.footer-copy {
  grid-area: copy;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* Footer mobil responsive */
@media (max-width: 768px) {
  .site-footer {
    min-height: 50vh;            /* mobilon kisebb arány */
  }

  .footer-content {
    margin-top: auto;
    position: static;
    padding: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav"
      "social"
      "copy";
    gap: 0.2rem;
    text-align: center;
  }

  .footer-logo {
    margin-top: 8rem;
    align-items: center;
  }

  .footer-logo-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo-img {
    width: 50px;
    height: 50px;
  }

  .footer-nav-links {
    justify-content: center;
    gap: 0.8rem;
  }

  .footer-social {
    align-items: center;
  }

  .footer-social-links {
    justify-content: center;
    margin-top: 0.25rem;
  }

  .footer-copy {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-social-title {
    margin-bottom: 0.25rem;
  }

  .footer-tagline {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 1rem 0.5rem;
  }

  .footer-content {
    position: static;
    padding: 0;
    gap: 0rem;
  }

  .footer-nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .footer-social-links {
    gap: 0.8rem;
  }

  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .footer-copy {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
  }
}


/* Footer szekció vége */

/* Görgetősáv stílusok */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(44, 64, 51, 0.1);
  border-radius: 10px;
  border: 2px solid transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--secondary-dark), var(--primary-light));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--primary-light), var(--primary-medium));
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(45deg, var(--primary-light), #b8e03f);
  box-shadow: inset 0 0 25px rgba(0,0,0,0.3);
}

::-webkit-scrollbar-corner {
  background: rgba(44, 64, 51, 0.1);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #9acd32 rgba(44, 64, 51, 0.1);
}

/* Scrollbar glow effect */
::-webkit-scrollbar-thumb {
  position: relative;
}

::-webkit-scrollbar-thumb:hover::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-light), #b8e03f);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.6;
  filter: blur(4px);
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    display: none; /* Mobilon elrejtjük a scrollbar-t */
  }
  
  ::-webkit-scrollbar-thumb {
    border-radius: 8px;
  }
}

/* Görgetési haladásjelző sáv
A magassága JavaScript-tel változik az oldal görgetésével */
#scroll-progress {
  position: fixed; /* Fix pozíció a képernyőn */
  top: 0;
  right: 0;
  width: 6px;
  height: 0; /* Kezdeti magasság 0, JS fogja növelni */
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-dark));
  border-radius: 3px;
  z-index: 100;
  transition: height 0.2s ease-out;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Mobil nézeten elrejtjük */
@media (max-width: 768px) {
  #scroll-progress {
    display: none;
  }
}
/* Görgetősáv stílusok vége */

/* Animációk és effektek */
/* Alapértelmezett rejtett állapot minden elemre */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animált állapot */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fáziskésleltetés az elemek egymás utáni megjelenéséhez
Minden elem 0.1 másodperccel később jelenik meg, mint az előző,
létrehozva egy kaszkádszerű animációs hatást */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* Oldalsó effekt alternatíva */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Betöltési képernyő */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-lily {
  width: 150px;
  height: 150px;
  animation: rotateLily 2s linear infinite;
  filter: invert(1) brightness(2) drop-shadow(0 0 20px rgba(255,255,255,0.5));
}

@keyframes rotateLily {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobil nézet */
@media (max-width: 768px) {
  .loading-lily {
    width: 100px;
    height: 100px;
  }
}
