:root{
  --error: rgba(255, 80, 80, 0.342);
  --bg:#0f1724;
  --card:#0b1220;
  --accent:#5170FF;
  --muted:#94a3b8;
  --glass: rgba(255,255,255,0.04);
  --radius:14px;
  --maxw:1200px;
  --ff: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

svg{
  fill: #e6eef6;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--ff);
  color:#e6eef6;
  background:linear-gradient(180deg,var(--bg),#071022 120%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  font-size:16px;
}

.logo {
  height: 38px;
  width: auto;
  display: block;
}

.hero-logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* Layout container */
.container{
  width:90%;
  max-width:var(--maxw);
  margin:0 auto;
}

/* HEADER */
.site-header{
  width: 100vw;
  position:fixed;
  top:0;
  left:0;
  right:0;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(6,10,20,0.6), rgba(6,10,20,0.25));
  border-bottom: 1px solid rgba(255,255,255,0.03);
  z-index:1000;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  margin-bottom: 1px;
  position: relative;
  font-weight:800;
  font-size:1.1rem;
  letter-spacing:0.2px;
  color:var(--accent);
  text-decoration:none;
}
.brand span{color:inherit; opacity:0.85; font-weight:600; margin-left:6px}

/* NAV — desktop alap */
.nav{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav a{
  color:#cfe9ee;
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
  font-weight:500;
}
.nav a:hover{background:var(--glass)}
.btn-outline{border:1px solid rgba(255,255,255,0.06); padding:8px 12px}

/* HAMBURGER (desktopon rejtve) */
.hamburger{
  display:none;
  background:transparent;
  border:0;
  padding:6px;
  cursor:pointer;
  z-index:1100;
}
.hamburger span{
  display:block;
  width:22px;
  height:2px;
  background:#cfe9ee;
  margin:4px 0;
  border-radius:2px;
  transition:0.2s;
}

/* Hamburger animáció */
.hamburger.open span:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2){
  opacity:0;
}
.hamburger.open span:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */
.hero{
  min-height:76vh;
  display:flex;
  align-items:center;
  position:relative;
  padding-top:90px; /* space for fixed header */
  /*background-image: url(herobackground);*/
  background-size:cover;
  background-position:center;
  color: #e9fbf6;
}
.hero-overlay{
  position:absolute; inset:0; background:linear-gradient(180deg, rgba(2,6,23,0.5), rgba(2,6,23,0.6));
  mix-blend-mode:multiply;
}

.hero a{text-decoration: none;}
.hero-inner{position:relative; z-index:2; padding:50px 0; max-width:900px;}
.hero h1{font-size:2.4rem; margin:0 0 12px; line-height:1.05}
.hero h1 strong{display:block; font-size:2.8rem}
.hero .lead{color:var(--muted); margin-bottom:18px; font-size:1.05rem}
.hero-cta{display:flex;gap:12px;align-items:center}
.btn{background:var(--accent); color:#022; padding:12px 18px; border-radius:12px; text-decoration:none; font-weight:700; color: white; border: 0;}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06); padding:10px 16px; border-radius:12px; color:inherit}
.btn:hover, .btn-ghost:hover{opacity:0.95}

.services{background-color: var(--bg);}

.videobg{z-index: -200; position: absolute; filter:hue-rotate(300deg); height: 100vh; width: 100%; object-fit: cover;}

/* SECTIONS */
.section{padding:64px 0}
.section.alt{background: linear-gradient(to top, var(--card), var(--bg))}
.section h2{font-size:1.6rem;margin:0 0 6px}
.muted{color:var(--muted)}
.narrow{max-width:760px;margin:0 auto;}

#about{background-color: var(--card);}

/* GRID */
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){ .grid-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid-3{grid-template-columns:1fr} }

/* CARDS / THUMBS */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:18px;border-radius:12px;border:1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}
.thumb{height:120px;border-radius:10px;background:linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;color:var(--muted)}

/* CONTACT FORM */
.input-error{background-color: var(--error) !important; border-color: rgb(136, 0, 0) !important;}
.contact-section{background-color: var(--bg);}
.contact-form{display:grid;gap:12px}
.contact-form label{display:flex;flex-direction:column;font-size:0.9rem}
.contact-form input, .contact-form textarea{
  margin-top:8px;padding:12px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);
  background:transparent;color:inherit;outline:none
}

.form-actions{display:flex;gap:10px;align-items:center;margin-top:6px}
.small{font-size:0.85rem}

/* FOOTER */
.site-footer{padding:20px 0;border-top:1px solid rgba(255,255,255,0.02); margin-top:30px}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
.social a{color:var(--muted);text-decoration:none;margin-left:12px}

/* RESPONSIVE */
@media (max-width:900px){

  .hero{height: 100vh;}
  .hero a{text-align: center;}

  /* Mobil NAV — rejtve alapból */
  .nav{
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-height: 0;           /* magasság 0 */
  overflow: hidden;        /* tartalom elrejtése */
  flex-direction: column;
  padding: 0 12px;         /* padding a magasság animációhoz */
  border-radius: 12px;
  gap: 10px;
  background: rgba(2,6,23,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 2000;
  transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav.open{
    max-height: 500px;       /* elég nagy, hogy a tartalom beleférjen */
    padding: 12px;    
  }

  /* Mobil NAV — megnyitva */
  .open{
    display:flex !important;
  }

  #close{
    display: none;
  }

  .close{
    display: none !important;
  }

  /* Hamburger mobilon látszik */
  .hamburger{
    display:block;
  }

  .header-inner{
    gap:8px;
    position:relative;
  }

  .hero-inner{padding: 30px;}
  .hero h1{font-size:1.9rem}
  .hero h1 strong{font-size:2rem}
}

/* Small animations */
.card, .thumb {transition: transform .28s ease, box-shadow .28s ease}
.card:hover{transform:translateY(-6px)}
