/* === GLOBAL STYLES === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;700;900&display=swap');

body {
  background-color: #1C1C1C;
  color: #F2F2F2;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding-top: 70px;
}
    nav {
      background: #111111;
      padding: 1rem;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
    }
    .hamburger {
      display: none;
      font-size: 1.8rem;
      color: #f2f2f2;
      cursor: pointer;
    }
    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      align-items: center;
    }
    .nav-link {
      color: #F2F2F2;
      text-decoration: none;
    }
    .nav-link:hover {
      text-decoration: underline;
    }

    /* About section */
    .about-section {
      display: flex;
      flex-wrap: wrap;  
      justify-content: center;
      align-items: center;
      gap: 3rem;
      padding: 5rem 2rem;
    }
    .about-image img {
      width: 280px;
      border-radius: 50%;
      border: 3px solid #f2f2f2;
      max-width: 100%;
      height: auto;
    }
    .about-text {
      max-width: 600px;
    }
    .about-text h1 {
      font-size: 42px;
      margin-bottom: 0.5rem;
      color: #FFFFFF;
    }
    .about-text h2 {
      font-size: 24px;
      margin-bottom: 1rem;
      color: #f2f2f2;
    }
    .about-text p {
      font-size: 16px;
      line-height: 1.6;
      color: #CCCCCC;
    }
    .button {
      display: inline-block;
      margin-top: 1.5rem;
      padding: 0.8rem 1.5rem;
      background: #f2f2f2;
      color: #1C1C1C;
      text-decoration: none;
      border-radius: 8px;
      font-weight: bold;
      transition: all 0.3s ease;
    }
    .button:hover {
      background: #1C1C1C;
      color: #f2f2f2;
      border: 2px solid #F2F2F2;
    }
    .button-group {
      margin-top: 1.5rem;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .skills {
      margin-top: 1.5rem;
    }
    .skills h3 {
      color: #f2f2f2;
      margin-bottom: 0.5rem;
    }
    .skills ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.5rem;
    }
    .skills li {
      background: #2A2A2A;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      color: #F2F2F2;
      font-size: 0.9rem;
    }

    footer {
      text-align: left;
      padding: 2rem;
      font-size: 0.9rem;
      background-color: #111111;
      color: #888888;
    }

    @media (max-width: 768px) {
      .nav-container {
        display: none;
      }
      .hamburger {
        display: block;
        padding-left: 1rem;
      }
      .about-section {
        padding: 2rem 1rem;
      }
      .about-text h1 {
        font-size: 2rem;
      }
      .about-text h2 {
        font-size: 1.2rem;
      }
      .about-text p {
        font-size: 0.95rem;
      }
    }

    .modal {
      display: none;
      position: fixed;
      z-index: 2000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.7);
    }
    .modal-content {
      background-color: #2A2A2A;
      margin: 10% auto;
      padding: 2rem;
      border-radius: 8px;
      width: 90%;
      max-width: 400px;
      color: #F2F2F2;
      text-align: center;
    }
    .close {
      float: right;
      font-size: 1.5rem;
      cursor: pointer;
      color: #F2F2F2;
    }
    .close:hover {
      color: #ddd;
    }
    .modal-content a {
      color: #F2F2F2;
      text-decoration: underline;
    }
    .modal-content a:hover {
      color: #ddd;
    }

    @media (max-width: 480px) {
      .nav-container {
        flex-direction: row;
        justify-content: space-around;
        gap: 0.3rem;
      }
      .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.4rem;
      }
      .about-text h1 {
        font-size: 1.6rem;
      }
      .about-text h2 {
        font-size: 1rem;
      }
      .about-text p {
        font-size: 0.85rem;
      }
      .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
      }
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      right: -90%;
      height: 100%;
      width: 70%;
      background: #111111;
      padding: 2rem 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      transition: right 0.3s ease;
      z-index: 2001;
    }
    .mobile-menu .nav-link {
      font-size: 1rem;
    }
    .mobile-menu .closebtn {
      font-size: 2rem;
      color: #f2f2f2;
      cursor: pointer;
      align-self: flex-end;
    }
  .overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  pointer-events: none; /* 🔹 ez a kulcs */
}

.overlay.active {
  display: block;
  pointer-events: auto; /* csak aktív állapotban reagál */
}

.mobile-menu.active {
  right: 0;
}
  /* === PROJECTS PAGE FIX === */
.projects {
  background-color: #1C1C1C;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 100vw; /* <-- ne legyen szélesebb, mint a viewport */
  overflow-x: hidden; /* <-- ha valami mégis túlnyúlna, ne scrollozzon */
}

.projects h2 {
  color: #F2F2F2;
  margin-bottom: 2rem;
}

.projects .post {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden; /* << ez a lényeg, nem fog kilógni a tartalom */
}


.projects .post img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.projects .post p {
  color: #F2F2F2;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Grid layout fix, hogy a három poszter ne essen ki a keretből */
.projects .post div[style*="grid-template-columns"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.projects .post div[style*="cursor:pointer"] {
  background-color: #2A2A2A;
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.projects .post div[style*="cursor:pointer"]:hover {
  transform: translateY(-5px);
  background-color: #333333;
}
/* === FONT WEIGHT RESET === */
h1, h2, h3, h4, h5, h6,
strong, b {
  font-weight: 400; /* Regular Montserrat */
}

/* Címsor hierarchia */
h1 {
  font-weight: 700; /* erősebb, de nem túl vastag */
}
h2 {
  font-weight: 600;
}
h3 {
  font-weight: 500;
}

/* Footer szöveg */
footer {
  font-weight: 400;
}
/* === SOCIAL PAGE FIX === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.card {
  background: #2A2A2A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 60%;
  max-width: 300px;
  margin: 1rem auto 0 auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.card-content {
  padding: 1rem;
  text-align: center;
}

.card h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2F2F2;
}

.card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.5rem 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #F2F2F2;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #ddd;
}
/* === SOCIAL PAGE LINK FIX === */
.card-link {
  display: block;
  text-decoration: none; /* távolítja el az aláhúzást */
  color: inherit; /* örökli a szöveg színét (nem lesz kék) */
}

.card-link:hover {
  text-decoration: none;
}

/* Biztonság kedvéért: minden p és h3 belüli link */
.card-link h3, 
.card-link p, 
.card-link span {
  color: #F2F2F2; /* világos szöveg sötét háttéren */
}
/* === HERO SECTION (INDEX PAGE) === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
}

.hero .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero .video-overlay {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: #F2F2F2;
  font-size: 2rem;
  font-weight: 700;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.hero .video-overlay:hover {
  background: rgba(255,255,255,0.2);
}

/* === ACTIVE MENU LINK === */
.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  color: #ffffff;
}
/* === FOOTER REFINEMENT === */
footer {
  text-align: left;
  background-color: #111;
  color: #888;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #f2f2f2;
  text-decoration: none;
  margin: 0 0.3rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #42A5F5; /* finom kék, mint a linkjeid */
}
/* === SMOOTH FADE-IN ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;

}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: scale(1.03);


/* Finom kép-zoom a hoverre */
.card img { transition: transform 0.3s ease; }
.card:hover img { transform: scale(1.02); }}
html, body {
  overflow-x: hidden; /* Megakadályozza a vízszintes görgetést */
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}