/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
    background: #000;
    font-family: "Inter", sans-serif;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 18px 10vw;
    z-index: 50;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display:flex;
    justify-content:space-between;
    align-items:center;
}

header .logo {
    font-family: "Special Elite", monospace;
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    color: #eaeaea;
}

/* HAMBURGER */
.hamburger {
    width: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hamburger div {
    height: 3px;
    background: #fff;
    transition: 0.3s;
}
.hamburger.active div:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    padding: 120px 40px;
    transition: 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
}
.mobile-menu.open {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    z-index: 2000;
}

.menu-close:hover {
    opacity: 1;
}

/* GLOBAL SECTION SPACING */
section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
    
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
    padding-top: 180px; /* FIXED */
    padding-bottom: 4rem;
}

.hero h2 {
    font-size: clamp(2.4rem, 6vw, 4.2rem); /* FIXED */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.3rem;
    font-family: "Special Elite", monospace;
}

.hero p {
    font-size: 1.2rem;
    max-width: 540px;
    opacity: 0.85;
}

/* GRID LINES */
.grid-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: translateY(-20%);
    z-index: 0;
    pointer-events: none;
    animation: gridMove 60s linear infinite; /* lassabb, simább */
    will-change: transform; /* GPU optimalizáció */
}

/* CANVAS */
canvas#network {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.45;
    pointer-events: none; /* ne zavarja a scrollt */
}
/* ===== SECTION HEADINGS ===== */
section h2 {
    font-size: 2.6rem;
    margin-bottom: 1.4rem;
    background: linear-gradient(90deg, #41b4ff, #8f43ff);
    -webkit-background-clip: text;
    color: transparent;
    font-family: "Special Elite";
}

/* ===== CARDS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: 0.25s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: #41b4ff;
}

.card h3 {
    font-family: "Special Elite";
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}


/* ===== CONTACT ===== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form button {
  background: #41b4ff;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.contact-form button:hover {
  background: #2fa4f4;
}


/* ===== FOOTER ===== */
/* ===== FOOTER ===== */

footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;

    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(10px);

    border-top: 1px solid rgba(255,255,255,0.08);

    position: relative;
    overflow: hidden;
}

/* Social icons container */
.footer-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

/* Egységes Dev2Lab stílus ikonokhoz */
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-block;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;

  /* DEV2LAB gradient */
  background: linear-gradient(90deg, #41b4ff 0%, #8f43ff 100%);

  box-shadow: 0 6px 18px rgba(0,0,0,0.35);

  /* A háttér látszódjon át az SVG-n */
}
.social-icon rect {
  fill: transparent;
}
.social-icon g path {
  fill: #fff; /* ikon fehér marad */
}

/* Hover — Dev2Lab animáció */
.social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(65,180,255,0.22);
  opacity: 0.97;
}

/* Mobile */
@media (max-width: 480px) {
  .social-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
}


/* COOKIE BOX */
.cookie-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 90%;
  max-width: 420px;
  padding: 20px 22px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border-radius: 14px;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  transition: opacity 1.2s ease, transform 1.2s ease;
  backdrop-filter: blur(6px);
}

.cookie-box a {
  color: #41b4ff;
  text-decoration: underline;
}

.cookie-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #41b4ff, #8f43ff);
  border: none;
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cookie-btn:active {
  transform: scale(0.96);
}

.cookie-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  pointer-events: none;
}


.ecosystem-icons {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}


.ecosystem-icons img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.1); /* halk háttér, hogy ikon-szerű legyen */
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
}

.ecosystem-icons img:hover {
    transform: scale(1.12);
    opacity: 1;
}

.card a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}
.card a:hover {
  text-decoration: underline;
}


/* GLOBAL CONTENT WRAPPER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nagyobb képernyőn kicsit levegősebb */
@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

/* CARD USED AS LINK */
a.card {
  color: #fff;
  text-decoration: none;
}

a.card:visited {
  color: #fff;
}


/* ===== COOKIE BANNER V2 ===== */

.cookie-content h3 {
  font-family: "Special Elite", monospace;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.cookie-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.82;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.cookie-buttons .cookie-btn {
  flex: 1;
}

.accept-btn {
  background: linear-gradient(90deg, #41b4ff, #8f43ff);
  color: #000;
}

.decline-btn {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.decline-btn:hover {
  background: rgba(255,255,255,0.1);
}

.cookie-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.cookie-links a {
  color: #41b4ff;
  font-size: 0.85rem;
  text-decoration: none;
}

.cookie-links a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-box {
    bottom: 120px;
  }

}


/* ===== reCAPTCHA BADGE POSITION ===== */

.grecaptcha-badge {
    left: 20px !important;
    right: auto !important;
    bottom: 20px !important;

    transform: scale(0.9);
    transform-origin: left bottom;

    z-index: 9999;

    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}

/* Expand on hover */
.grecaptcha-badge:hover {
    width: 256px !important;
}

/* ===== LEGAL PAGES ===== */

.legal-page {
  padding-top: 180px;
  padding-bottom: 100px;
}

.legal-container {
  max-width: 900px;
}

.legal-updated {
  opacity: 0.6;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-content h3 {
  font-family: "Special Elite", monospace;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.legal-content p {
  line-height: 1.8;
  opacity: 0.88;
  font-size: 1rem;
}

.legal-content a {
  color: #41b4ff;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ===== FOOTER V2 ===== */

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: "Special Elite", monospace;
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand p {
  opacity: 0.7;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 220px));
  justify-content: center;
  gap: 50px;
  width: 100%;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-column h4 {
  font-family: "Special Elite", monospace;
  margin-bottom: 10px;
  color: #fff;
}

.footer-column a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.footer-column a:hover {
  color: #41b4ff;
}

.footer-contact-center {
  width: 100%;
  margin-top: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.footer-email {
  display: inline-block;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 1rem;
}

.footer-email:hover {
  color: #41b4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  opacity: 0.55;
  font-size: 0.9rem;
  text-align: center;
}

/* MOBILE */

@media (max-width: 480px) {

  .footer-links {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 30px;
  }

}