:root {
  --bg-0:#050B18;--bg-1:#0C1B36;
  --accent:#3BF4FB;--accent-2:#8C4AFF;--accent-3:#1DD6C5;
  --text:#E6F3FF;--muted:#9FB3C8;
  --stroke:rgba(255,255,255,0.08);
  --card:rgba(17,26,52,0.55);
  --radius:16px;--shadow:0 10px 30px rgba(59,244,251,0.12);
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{
  font-family:'Inter','Roboto',sans-serif;
  background:linear-gradient(180deg,var(--bg-0),var(--bg-1));
  color:var(--text);overflow-x:hidden;scroll-behavior:smooth;
}

/* HEADER */
header{
  position:fixed;top:0;left:0;width:100%;z-index:1000;
  background:rgba(5,11,24,0.7);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--stroke);
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 2rem;
}

/*  🔹 Nagyobb ikonok mindenhol */
header img,
nav img,
.hero img,
footer img {
  transform: scale(1.2);
  transition: transform 0.3s ease, filter 0.3s ease;
}
header img:hover,
nav img:hover,
.hero img:hover,
footer img:hover {
  transform: scale(1.35);
  filter: drop-shadow(0 0 10px var(--accent));
}

header img{height:48px;z-index:1200;}
nav{
  display:flex;gap:1.5rem;align-items:center;transition:all .4s ease;
}

/* 🔹 Menüelemek + neon suhanás */
nav a{
  color:var(--text);
  text-transform:uppercase;
  font-weight:500;
  letter-spacing:.08em;
  font-size:.9rem;
  transition:color .3s,text-shadow .4s ease;
  text-decoration:none; /* nincs aláhúzás */
  position:relative;
  overflow:hidden;
}

nav a::before {
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,transparent,var(--accent),transparent);
  transition:all 0.6s ease;
  opacity:0;
}
nav a:hover::before {
  left:100%;
  opacity:1;
}
nav a:hover {
  color:var(--accent);
  text-shadow:0 0 8px var(--accent);
}

/* HAMBURGER */
.menu-toggle{
  display:none;flex-direction:column;justify-content:center;
  width:30px;height:22px;cursor:pointer;z-index:1201;
}
.menu-toggle span{
  background:var(--accent);height:3px;width:100%;margin:3px 0;
  border-radius:2px;transition:.4s;
}
.menu-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.menu-toggle.open span:nth-child(2){opacity:0;}
.menu-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* FULLSCREEN MENU */
nav.active{
  position:fixed;top:0;left:0;width:100%;height:100vh;
  background:rgba(12,27,54,0.96);flex-direction:column;
  justify-content:center;align-items:center;gap:2rem;
  backdrop-filter:blur(20px);
  box-shadow:0 0 40px rgba(59,244,251,0.2);
  opacity:0;pointer-events:none;transition:opacity .4s ease;
}
nav.active.show{opacity:1;pointer-events:auto;}
nav.active a{font-size:1.3rem;text-shadow:0 0 8px rgba(59,244,251,0.3);}

/* HERO */
.hero{
  position: relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:75vh;text-align:center;
  padding:8rem 1rem 4rem;
}
.hero h1{
  font-size:clamp(2rem,5vw,4rem);
  background:linear-gradient(90deg,var(--accent-3),var(--accent-2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:700;
  letter-spacing:.04em;
  margin-bottom:.8rem;
  text-shadow:0 0 20px rgba(59,244,251,0.3);
  animation:glowPulse 4s ease-in-out infinite;
}
.hero p{
  font-size:1.1rem;
  color:var(--muted);
  margin-bottom:3rem;
  max-width:600px;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(59,244,251,0.2); }
  50% { text-shadow: 0 0 25px rgba(140,74,255,0.6); }
}

/* BUTTONS */
.btn{
  display:inline-block;padding:.9rem 1.8rem;border-radius:30px;
  font-weight:600;text-transform:uppercase;transition:.3s;
}
.btn-primary{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:var(--bg-0);box-shadow:0 0 20px rgba(59,244,251,0.4);
}
.btn-primary:hover{box-shadow:0 0 30px rgba(140,74,255,0.6);}
.btn-glass{
  border:1px solid var(--accent);background:rgba(255,255,255,0.05);
  color:var(--text);backdrop-filter:blur(8px);
}
.btn-glass:hover{
  background:rgba(255,255,255,0.1);box-shadow:0 0 15px rgba(59,244,251,0.2);
}

/* CARD GRID FIX */
section.grid{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:2rem;max-width:1200px;margin:4rem auto;padding:1rem;
}
.card{
  flex:1 1 300px;max-width:350px;
  background:var(--card);border:1px solid var(--stroke);
  border-radius:var(--radius);box-shadow:var(--shadow);
  padding:2rem;text-align:left;backdrop-filter:blur(12px);
  transition:.4s ease;position:relative;
}
.card:hover{
  transform:translateY(-10px);
  box-shadow:0 0 25px rgba(59,244,251,0.25);
}

/* --- CARD REPOSITIONING FIX --- */
section .card {
  margin: 0 auto;
  text-align: left;
  background: rgba(17, 26, 52, 0.7);
  border: 1px solid rgba(59, 244, 251, 0.15);
  box-shadow: 0 0 20px rgba(59, 244, 251, 0.12);
  border-radius: 18px;
  max-width: 700px;
  padding: 2.2rem;
  line-height: 1.7;
  color: var(--muted);
  backdrop-filter: blur(16px);
  transition: all 0.4s ease;
}
section .card:hover {
  box-shadow: 0 0 35px rgba(140, 74, 255, 0.25);
  transform: translateY(-6px);
}

/* FOOTER */
footer{
  text-align:center;padding:2rem;border-top:1px solid var(--stroke);
  font-size:.85rem;color:var(--muted);
  background:rgba(255,255,255,0.02);backdrop-filter:blur(8px);
  margin-top:4rem;
}

/* BACKGROUND CANVAS */
#bgCanvas{
  position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;
  background:radial-gradient(ellipse at top,rgba(12,27,54,0.6),transparent);
}

/* RESPONSIVE */
@media(max-width:900px){
  .menu-toggle{display:flex;}
  nav{display:none;}
  nav.active{display:flex;}
}

/* LIGHT MODE — neon edition */
:root.light {
  --bg-0: #f8fbff;
  --bg-1: #e9f1ff;
  --accent: #00d4ff;     /* világosabb neon cyan */
  --accent-2: #8c4aff;   /* lila marad */
  --accent-3: #1dd6c5;   /* türkiz marad */
  --text: #0a0a0a;
  --muted: #4c5460;
  --stroke: rgba(0,0,0,0.08);
  --card: rgba(255,255,255,0.8);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(140,74,255,0.15);
}

:root.light body {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
}

/* HEADER */
:root.light header {
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

:root.light header img:hover,
:root.light nav img:hover,
:root.light .hero img:hover,
:root.light footer img:hover {
  filter: drop-shadow(0 0 12px var(--accent));
}

/* NAVIGATION */
:root.light nav a {
  color: var(--text);
}
:root.light nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

/* HERO */
:root.light .hero h1 {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(59,244,251,0.4);
}
:root.light .hero p {
  color: var(--muted);
}

/* BUTTONS */
:root.light .btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 25px rgba(59,244,251,0.45);
}
:root.light .btn-primary:hover {
  box-shadow: 0 0 35px rgba(140,74,255,0.5);
}

:root.light .btn-glass {
  border: 1px solid var(--accent);
  background: rgba(255,255,255,0.4);
  color: var(--text);
  text-shadow: 0 0 5px rgba(0,0,0,0.1);
}
:root.light .btn-glass:hover {
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 15px rgba(0,212,255,0.4);
}

/* CARD */
:root.light .card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(59,244,251,0.25);
  color: var(--text);
  box-shadow: 0 0 25px rgba(59,244,251,0.15);
  backdrop-filter: blur(10px);
}
:root.light .card:hover {
  box-shadow: 0 0 40px rgba(140,74,255,0.3);
  transform: translateY(-6px);
}

/* FOOTER */
:root.light footer {
  background: rgba(255,255,255,0.6);
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  box-shadow: 0 0 20px rgba(59,244,251,0.15);
}

/* BACKGROUND CANVAS — világos háttérhez halványabb glow */
:root.light #bgCanvas {
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.4), transparent);
}

/* 👻 Ghost theme toggle styles */
.theme-toggle {
  filter: drop-shadow(0 0 15px rgba(59,244,251,0.6));
  transition: filter 0.6s ease, transform 0.4s ease;
}

.theme-toggle .ghost-icon {
  width: 58px;
  height: 58px;
  transition: filter 0.6s ease, transform 0.6s ease;
}

/* Dark mode (alapállapot) */
.theme-toggle:not(.light) .ghost-icon {
  filter: drop-shadow(0 0 20px rgba(140,74,255,0.6))
          drop-shadow(0 0 40px rgba(59,244,251,0.3));
  transform: rotate(0deg);
}

/* Light mode: a szellem “felragyog” és picit elfordul */
.theme-toggle.light .ghost-icon {
  filter: drop-shadow(0 0 25px rgba(0,212,255,0.8))
          drop-shadow(0 0 45px rgba(255,255,255,0.6));
  transform: rotate(8deg) scale(1.1);
}

