:root {
  --fő-szín: #f97316;
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top right, #2a1a0f, #0b0f14 60%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed; /* EZ stabilizálja */
}

/* =========================
   NAVBAR
========================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(15, 18, 22, 0.6);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 22px;
}

.menu {
  display: flex;
  align-items: center; /* EZ IGAZÍTJA EGY VONALBA */
}

.menu a {
  margin-left: 24px;
  text-decoration: none;
  color: #b5b5b5;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.menu .cta {
  background: var(--fő-szín);
  color: #d1caca !important;
}

.menu .cta {
  background: var(--fő-szín);
  color: #ffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  z-index: 1;
}

.menu .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--fő-szín);
  background: var(--fő-szín);
  color: #000;
}

/* Fény sweep effekt */
.menu .cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.menu .cta:hover::before {
  left: 120%;
}

/* Kattintás */
.menu .cta:active {
  transform: translateY(-1px) scale(0.96);
}

.buttons {
  margin-top: 36px;
  display: flex;
  gap: 16px;
}

.btn {
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  line-height: 1;
}

.btn.primary {
  background: var(--fő-szín);
  color: #000;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.btn.primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px var(--fő-szín);
  background: var(--fő-szín);
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: left 0.6s ease;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn.secondary {
  border: 1px solid #2a2a2a;
  color: #fff;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.btn.secondary:hover {
  transform: translateY(-4px);
  border-color: var(--fő-szín);
  background: var(--fő-szín);
  box-shadow: 0 12px 30px var(--fő-szín);
}

.btn.secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(249, 115, 22, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn.secondary:hover::before {
  opacity: 1;
}

.btn.secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* =========================
   HERO
========================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  min-height: auto;
  padding: 160px 80px 80px;
  gap: 32px;
  flex: 1;
}

.hero-image img {
  width: 100%;
  max-width: 1000px; /* ← itt korlátozod */
  aspect-ratio: 1/1; /* mivel négyzetes */
  object-fit: cover;
  border-radius: 20px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.study-page .hero {
  grid-template-columns: 1fr;
  min-height: 55vh;
  align-items: flex-start;
  padding-top: 160px;
}

.study-page .hero-left {
  align-items: center;
  text-align: center;
}

.study-page .hero-left p {
  max-width: 560px;
  margin: 24px auto 0;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  color: var(--fő-szín);
  background: rgba(249, 115, 22, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: 14px;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 900;
}

.hero h1 span {
  color: var(--fő-szín);
}

.hero p {
  color: #bfbfbf;
  line-height: 1.6;
}

/* =========================
   HERO RIGHT
========================= */
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.glass {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  backdrop-filter: blur(20px);
  position: relative;
  box-shadow: 0 0 80px var(--fő-szín);
}

.icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  opacity: 0.25;
}

.icons div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 32px;
}

.overlay h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.overlay p {
  color: #d0d0d0;
}

/* =========================
   YEAR CARD (SÖTÉT)
========================= */
.year-card {
  background: linear-gradient(100deg, #2a2f36, #23272e);
  border-radius: 18px;
  padding: 28px;
  color: #eaeaea;

  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* 🎬 HOVER ANIMÁCIÓ */
.year-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--fő-szín);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.25),
    0 28px 60px rgba(0, 0, 0, 0.6);
}

/* =========================
   KÁRTYA TARTALOM
========================= */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.year-badge {
  background: rgba(249, 115, 22, 0.12);
  color: var(--fő-szín);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--fő-szín);
  border-radius: 50%;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #b6b6b6;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}

.topics-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #8b8b8b;
  margin-bottom: 12px;
}

/* =========================
   TAGS
========================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #fff;
  color: #111;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   TAG LINK RESET
========================= */
.tags a.tag {
  text-decoration: none;
  color: #111;
}

.tags a.tag:hover {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

/* =========================
   TANÉV DOBOZ (VILÁGOS)
========================= */
.year-box {
  background: #f3ece6;
  border-radius: 28px;
  padding: 28px;
  color: #111;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.year-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* =========================
   YEAR CARD GRID
========================= */
.years-grid {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 80px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .years-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .years-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOOTER
========================= */
.footer {
  width: 100%;
  background: #1f2429;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BAL OLDAL */
.footer-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-role {
  margin-top: 6px;
  font-size: 14px;
  color: var(--fő-szín);
}

/* JOBB OLDAL */
.footer-right {
  font-size: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-right .heart {
  color: var(--fő-szín);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 28px 24px;
  }
}

/* =========================
   CONTENT SZÉLESSÉG
========================= */
.years-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.year-card {
  padding: 32px 36px;
  margin-bottom: 40px;
}

/* SCROLL BELÉPŐ ALAP */
.year-card,
.glass {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.year-card.show,
.glass.show {
  opacity: 1;
  transform: none;
}

/* AKTÍV MENÜ */
.menu a.active {
  color: var(--fő-szín);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--fő-szín);
  z-index: 10000;
  pointer-events: none;
}

#output {
  white-space: pre-wrap;
}

.sql-block {
  background: #0b0f14;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 14px;
  color: var(--fő-szín);
}

pre {
  background: #0b0f14;
  padding: 14px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  overflow-x: auto;
  color: var(--fő-szín);
}

.img-toggle {
  margin-left: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: var(--fő-szín);
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.img-toggle:hover {
  transform: translateY(-2px);
}

.image-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 20px;
}

.image-container img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.img-toggle.show-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.project-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.05);
}

/* ===== THEME BUTTON DESIGN ===== */

.theme-btn {
  background: var(--fő-szín);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.3s ease;
}

/* Hover effekt */
.theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Kattintás animáció */
.theme-btn:active {
  transform: scale(0.96);
}

/* Glow effekt (passzol a hero glow-hoz) */
.theme-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-btn:hover::after {
  opacity: 1;
}

@media (max-width: 800px) {
  .img-toggle.show-img {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .years-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .year-card {
    padding: 24px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 34px;
  }

  .badge {
    font-size: 12px;
  }
}

/* =========================================
   HERO RIGHT ELREJTÉSE MOBILON
========================================= */

@media (max-width: 768px) {
  .hero-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 16px; /* kevesebb oldalsó padding */
  }

  .menu {
    gap: 16px;
  }

  .menu a {
    margin-left: 0; /* ez okozza az elcsúszást */
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 20px 50px; /* kisebb */
  }
}

.years-inner {
  padding: 0 32px;
}

@media (max-width: 768px) {
  .years-inner {
    padding: 0 14px;
  }
}

@media (max-width: 768px) {
  .year-card {
    width: 100%;
    padding: 22px; /* kisebb padding */
    margin-bottom: 28px;
    margin: 0;
  }
}

pre,
.sql-block {
  max-width: 100%;
}

/* =========================
   MOBILE HARD FIX
========================= */

@media (max-width: 768px) {
  /* container */
  .years-inner {
    max-width: 100%;
    padding: 0 16px;
  }

  /* kártya */
  .year-card {
    width: 100%;
    padding: 20px;
    margin-bottom: 24px;
  }

  /* hero igazítás */
  .hero {
    padding: 110px 16px 50px;
  }
}
