/* ============================================
   OverBitCore – Main Stylesheet
   Liquid Glass + 3D Parallax + Dark/Light + Responsive
   ============================================ */

/* ---------- Theme Variables ---------- */
:root,
[data-theme="dark"] {
  --bg-deep: #050510;
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  
  --accent: #7c5cff;
  --accent-hover: #9b82ff;
  --accent-glow: rgba(124, 92, 255, 0.45);
  --accent-2: #00d4ff;
  --accent-3: #ff6b9d;
  
  --border-glass: rgba(255, 255, 255, 0.13);
  --border-glass-strong: rgba(255, 255, 255, 0.22);
  
  --glass-bg: rgba(0, 0, 0, 0.35);
  --glass-bg-strong: rgba(0, 0, 0, 0.45);
  --glass-blur: 6px;
  --glass-blur-sm: 4px;
  
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glass-hover: 0 14px 44px rgba(0, 0, 0, 0.4);
  
  --input-bg: rgba(0, 0, 0, 0.28);
  --card-placeholder-1: linear-gradient(135deg, #1a1a3a, #2a1a4a);
  --card-placeholder-2: linear-gradient(135deg, #1a2a3a, #1a3a4a);
  --card-placeholder-3: linear-gradient(135deg, #2a1a3a, #3a1a2a);
  
  --nav-bg-scrolled: rgba(10, 10, 26, 0.78);
  --shape-border: rgba(255, 255, 255, 0.12);
  --shape-fill: rgba(255, 255, 255, 0.03);
  
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-deep: #eef1f8;
  --bg-primary: #f5f7fc;
  --bg-secondary: #e8ecf6;
  
  --text-primary: #12121f;
  --text-secondary: #4a4a62;
  --text-muted: #7a7a92;
  
  --accent: #6b4ef7;
  --accent-hover: #5a3de0;
  --accent-glow: rgba(107, 78, 247, 0.3);
  --accent-2: #0090c5;
  --accent-3: #e04d80;
  
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-strong: rgba(0, 0, 0, 0.14);
  
  --glass-bg: rgba(255, 255, 255, 0.55);         /* ↑ = fedettebb / világosabb */
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-blur: 7px;
  --glass-blur-sm: 5px;
  
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glass-hover: 0 14px 44px rgba(0, 0, 0, 0.12);
  
  --input-bg: rgba(255, 255, 255, 0.7);
  --card-placeholder-1: linear-gradient(135deg, #dce0f0, #c8c0e8);
  --card-placeholder-2: linear-gradient(135deg, #d0e0f0, #c0d8e8);
  --card-placeholder-3: linear-gradient(135deg, #e0d0e8, #e8c8d8);
  
  --nav-bg-scrolled: rgba(245, 247, 252, 0.85);
  --shape-border: rgba(0, 0, 0, 0.08);
  --shape-fill: rgba(0, 0, 0, 0.03);
  
  color-scheme: light;
}

:root {
  --container-max: 1140px;
  --section-pad: 100px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s var(--ease), color 0.3s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Liquid glass WebGL overlay – only draws panel shapes */

/* Live glass under fixed navbar – samples texts/cards scrolling below */
.nav-glass-backdrop {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(10, 10, 26, 0.25);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-glass-backdrop.is-ready {
  opacity: 1;
}

.liquid-glass-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}


/* ========== 3D PARALLAX + VERTEX SCENE ========== */
.parallax-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 90% 60% at 10% -10%, color-mix(in srgb, var(--accent) 32%, transparent), transparent),
    radial-gradient(ellipse 70% 50% at 90% 0%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent),
    radial-gradient(ellipse 60% 50% at 50% 110%, color-mix(in srgb, var(--accent-3) 14%, transparent), transparent),
    var(--bg-deep);
  transition: background 0.5s var(--ease);
}

.bg-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Vertex canvas sits above gradient */
.vertex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
}

/* Parallax layers for HUD / orbs */
.parallax-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  will-change: transform;
}

/* Soft orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}

.orb-a {
  width: 420px; height: 420px;
  background: var(--accent);
  top: -5%; left: -5%;
}

.orb-b {
  width: 320px; height: 320px;
  background: var(--accent-2);
  bottom: 5%; right: 0%;
  animation-delay: -7s;
}

.orb-c {
  width: 240px; height: 240px;
  background: var(--accent-3);
  top: 45%; right: 28%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.06); }
  66% { transform: translate(-30px, 25px) scale(0.94); }
}

/* HUD panels floating in space */
.hud-panel {
  position: absolute;
  padding: 10px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-deep) 40%, transparent);
  border: 1px solid var(--shape-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 90px;
  opacity: 0.55;
}

.hud-1 { top: 18%; left: 6%; }
.hud-2 { top: 42%; right: 7%; }
.hud-3 { bottom: 22%; left: 12%; }

.hud-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.hud-bar {
  height: 3px;
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  border-radius: 2px;
  overflow: hidden;
}

.hud-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

.hud-crosshair {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.35;
}

.hud-crosshair::before,
.hud-crosshair::after {
  content: "";
  position: absolute;
  background: var(--accent-2);
}

.hud-crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.hud-crosshair::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-50%);
}

.ch-1 { top: 28%; right: 22%; }
.ch-2 { bottom: 30%; right: 18%; }

/* ---------- Liquid Glass (WebGL only – no CSS blur layer) ---------- */
.glass,
.liquid-glass,
.glass-sm {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  box-shadow:
    var(--shadow-glass),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.glass,
.liquid-glass {
  border-radius: var(--radius);
}

.glass-sm {
  border-radius: var(--radius-sm);
}

.navbar.glass,
.navbar.liquid-glass {
  overflow: hidden;
  background: rgba(10, 10, 26, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.25);
}

.footer.liquid-glass {
  background: rgba(5, 5, 16, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* content above WebGL canvas */
main {
  position: relative;
  z-index: 2;
}

.footer {
  position: relative;
  z-index: 2;
}

.navbar {
  z-index: 10000;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

/* Product-showcase style section panels */
.section::before {
  content: "";
  position: absolute;
  inset: 24px 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 32px, var(--container-max) + 80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

/* Hero stays open – no panel */
.hero::before {
  display: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}


/* Navbar controls – separate liquid-glass chips */
.nav-link,
.theme-toggle,
.lang-btn,
.lang-switch {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
}

.nav-link {
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle,
.lang-switch {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
}

.logo {
  border-radius: 12px;
  overflow: hidden;
}

/* Content above parallax */
main {
  position: relative;
  z-index: 1;
}

/* ---------- Navbar (viewport-fixed) ---------- */
.navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 10000;
  border-radius: 100px;
  padding: 0;
  /* no transform here – transform breaks nested fixed in some cases */
  transition: top 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  top: 10px;
  background: var(--nav-bg-scrolled);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.logo:hover { opacity: 0.85; }

/* Navbar chips – liquid glass hover (each chip “lives”) */
.nav-link,
.theme-toggle,
.lang-btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-link:hover,
.theme-toggle:hover,
.lang-btn:hover {
  border-color: var(--border-glass-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(124, 92, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active,
.nav-link.active {
  background: rgba(124, 92, 255, 0.18);
}


.logo-icon {
  display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 40px;  /* Itt állítsd be a kívánt szélességet */
    height: 40px; /* Itt állítsd be a kívánt magasságot */
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.theme-toggle:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  transform: scale(1.06);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  padding: 3px;
  border-radius: 100px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover { color: var(--text-primary); }

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white));
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1000;
  position: relative;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
  border-radius: 100px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, 
    var(--text-primary) 0%, 
    color-mix(in srgb, var(--accent) 70%, white) 45%, 
    var(--accent) 70%, 
    var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  /* slightly translucent so liquid-glass can show through */
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent) 55%, transparent));
  color: white;
  box-shadow: 0 4px 22px var(--accent-glow);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  transform: translateY(-2px);
}

.glass-btn {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: hidden;
}

.full-width { width: 100%; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-card {
  padding: 36px 28px;
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-strong);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.about-icon {
  font-size: 2.15rem;
  margin-bottom: 18px;
}

.about-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-strong);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.project-image {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img {
  background: var(--card-placeholder-1);
}

.placeholder-img.alt {
  background: var(--card-placeholder-2);
}

.placeholder-img.alt2 {
  background: var(--card-placeholder-3);
}

.placeholder-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-primary) 25%, transparent);
}

.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.project-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-dot.concept {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-dot.experimental {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.status-dot.released {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.project-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}

.project-link:hover {
  color: var(--accent-hover);
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Általános stílus mindkét akció gombnak (átvéve a .btn-download mintájára) */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1; /* Egyenlő arányban osztoznak a helyen, így szimmetrikusak lesznek */
  padding: 10px 14px;
  background: var(--border-glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-glass-strong, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  color: var(--text-primary, #fff);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Opcionális finomhangolás ikonokhoz */
.btn-action svg {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.btn-action:hover svg {
  opacity: 1;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-strong);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.skill-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.skill-card h4 {
  font-size: 1.5rem !important;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.85rem !important;
  color: var(--text-muted);
  line-height: 2;
}

.skill-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.skill-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--border-glass);
  border: 1px solid var(--border-glass-strong);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-download svg {
  stroke-width: 2.5;
}


/* ---------- Contact ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  padding: 36px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  text-align: center;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.info-card {
  padding: 36px;
  height: 100%;
}

.info-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.contact-email {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--accent-hover);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all var(--transition);
  color: var(--text-primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-2px);
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--border-glass);
  background: color-mix(in srgb, var(--bg-deep) 75%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-brand .logo-icon {
  color: var(--accent);
}

.footer-copy,
.footer-made {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE – Tablet ========== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .container {
    padding: 0 28px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .about-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .hud-panel {
    opacity: 0.4;
  }
}

/* ========== RESPONSIVE – Mobile / small tablet ========== */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
    --radius: 18px;
  }

  .container {
    padding: 0 20px;
  }

  /* Navbar becomes more compact */
  .navbar {
    width: calc(100% - 24px);
    top: 12px;
    border-radius: 20px;
  }

  .navbar.scrolled {
    top: 8px;
  }

  .nav-container {
    padding: 14px 18px;
    gap: 12px;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* Hide desktop nav, show hamburger */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    flex-direction: column;
    padding: 100px 28px 40px;
    gap: 6px;
    transition: right 0.35s var(--ease);
    border-left: 1px solid var(--border-glass);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    padding: 16px 18px;
    font-size: 1.1rem;
    border-radius: 14px;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero {
    padding: 120px 0 70px;
    min-height: 100svh;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 32px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 15px 24px;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 40px;
  }

  .section-desc {
    font-size: 0.98rem;
  }

  /* Grids */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 28px 22px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image {
    height: 160px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .skill-card {
    padding: 22px 14px;
  }

  .skill-icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form,
  .info-card {
    padding: 28px 22px;
  }

  /* Parallax / HUD – lighter on mobile */
  .hud-panel,
  .hud-crosshair {
    display: none;
  }

  .bg-orb {
    filter: blur(50px);
    opacity: 0.25;
  }

  .orb-a { width: 220px; height: 220px; }
  .orb-b { width: 180px; height: 180px; }
  .orb-c { width: 140px; height: 140px; }
}

/* ========== RESPONSIVE – Small phones ========== */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    width: calc(100% - 16px);
  }

.nav-container {
    padding: 14px 18px;
    gap: 12px;
  }

  .logo-text {
    display: none;
  }
}

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .skill-card h4 {
    font-size: 0.9rem;
  }

  .skill-card p {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hud-panel {
    display: none;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  
  .parallax-layer {
    transition: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* card tilt transition (liquid-glass.js) */
.about-card,
.project-card,
.skill-card,
.contact-form,
.info-card {
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
  will-change: transform;
}