:root {
  /* Colors */
  --c-error: rgba(255, 80, 80, 0.342);
  --c-bg: #0f1724;
  --c-card-bg: #0b1220;
  --c-accent: #5170FF;
  --c-secondary: #5b4bc4;
  /* Volt: darkpurple */
  --c-muted: #94a3b8;
  --c-text: #e6eef6;
  --c-glass: rgba(255, 255, 255, 0.04);

  /* Layout */
  --radius: 14px;
  --max-width: 1200px;

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--c-text);
  background: linear-gradient(180deg, var(--c-bg), #071022 120%);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;

  /* Page Transition State */
  opacity: 1;
  transform: scale(1);
  transform-origin: center 20vh;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}

/* Page Transitions */
body.is-leaving {
  opacity: 0;
  transform: scale(1.15);
  pointer-events: none;
}

body.is-loading {
  opacity: 0;
  transform: scale(0.95);
}

svg {
  fill: currentColor;
  /* Így automatikusan átveszi a szövegszínt */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   2. LAYOUT & UTILITIES (Elrendezés)
   ========================================= */
/* --- Section Headers (Címsorok és leírások) --- */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--c-text);
  /* Vagy white, ha sötét a háttér */
}

/* --- Action Wrapper (Gomb tároló) --- */
.action-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Ha nincs thumbnail, legyen egy szürke doboz */
.placeholder-img {
  background-color: #1e293b;
  width: 100%;
  height: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin-inline: auto;
  /* margin: 0 auto helyett modern */
}

.section {
  padding-block: 64px;
  /* padding-top/bottom helyett */
}

.section-alt {
  background: linear-gradient(to top, var(--c-card-bg), var(--c-bg));
}

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

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

/* Utility Classes */
.text-narrow {
  max-width: 760px;
  margin-inline: auto;
}

.text-muted {
  color: var(--c-muted);
}

/* Grid System */
.grid-wrapper {
  display: grid;
  gap: 18px;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================
   3. HEADER & NAVIGATION (Fejléc)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.6), rgba(6, 10, 20, 0.25));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

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

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  color: var(--c-accent);
  text-decoration: none;
}

.nav-brand span {
  color: var(--c-text);
  opacity: 0.85;
  font-weight: 600;
  margin-left: 6px;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  color: #cfe9ee;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background: var(--c-glass);
}

/* Hamburger Button */
.btn-hamburger {
  display: none;
  /* Mobilon lesz block */
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #cfe9ee;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hamburger Active State */
.btn-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.btn-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.btn-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================
   4. UI ELEMENTS & BUTTONS (Gombok)
   ========================================= */
/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.95;
}

/* Variants */
.btn-primary {
  background: var(--c-accent);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  padding: 10px 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  /* Pici emelkedés */
}

/* Large Floating Pill Button (Volt: all-reference) */
.btn-pill-large {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--c-accent);
  color: white;
  background: var(--c-accent);
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-pill-large:hover {
  background-color: var(--c-secondary);
  border: 2px solid var(--c-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(81, 112, 255, 0.3);
}

.btn-pill-large:active {
  transform: translateY(-1px);
}

/* =========================================
   5. HERO SECTION
   ========================================= */

/* Alapbeállítások nullázása */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  /* Oldalra ne lehessen görgetni */
}

.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 74px);
  height: calc(100dvh - 74px);
  max-height: calc(100dvh - 74px);
  width: 100%;

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

  padding: 0;
  margin: 0;
}

/* Admin bar fixek */
body.admin-bar .hero {
  height: calc(100vh - 74px - 32px);
  height: calc(100dvh - 74px - 32px);
  max-height: calc(100dvh - 74px - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .hero {
    height: calc(100dvh - 74px - 46px);
    max-height: calc(100dvh - 74px - 46px);
  }
}

/* Háttér elemek */
#galaxy-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #050a14;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5, 10, 20, 0.1) 0%, #050a14 100%);
  z-index: 0;
  pointer-events: none;
}

/* --- TARTALOM ELRENDEZÉS (GRID) --- */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;

  /* 1. JAVÍTÁS: Még szélesebb keretet adunk neki, szinte a teljes képernyőt */
  max-width: 1600px;
  width: 95%;
  /* Biztosítjuk, hogy kisebb képernyőn is legyen margó */
  padding: 0 20px;

  display: grid;
  /* 2. JAVÍTÁS: A szöveg kapja a hely nagy részét (kb 60-65%) */
  grid-template-columns: 0.8fr 1.4fr;

  /* 3. JAVÍTÁS: Kisebb rés a kettő között, hogy kiférjenek */
  gap: 40px;
  align-items: center;
}

/* --- BAL OLDAL (LOGÓ) --- */
.hero-col-left {
  display: flex;
  justify-content: flex-end;
  /* A szöveg felé toljuk a logót */
  padding-right: 20px;
  /* Kis extra térköz */
}

.hero-title {
  margin: 0;
  line-height: 0;
}

.hero-title img {
  display: block;
  /* 4. JAVÍTÁS: Visszavettük 380px-re. Ez még mindig nagy, de hagy helyet a szövegnek! */
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.9));
}

/* --- JOBB OLDAL (SZÖVEG) --- */
.hero-col-right {
  text-align: left;
  /* Biztosítjuk, hogy a szöveg kitöltse a rendelkezésre álló helyet */
  width: 100%;
  max-width: 800px;
  /* Hogy ne folyjon szét túl szélesre óriás monitoron */
}

.hero-lead-header {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-accent);
  margin-bottom: 2rem;
  text-shadow: 0px 20px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: -10px;
}

/* Az első sor kiemelése */
.hero-lead-main {
  font-size: 2.2rem;
  /* Ez viszont legyen hatalmas! */
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
  /* Új sorba kényszerítjük */
}

.hero-lead {
  font-size: 1.3rem;
  /* Picit visszavéve, hogy elegánsabb legyen */
  font-weight: 500;
  line-height: 1.4;
  color: #e2e8f0;
  margin-bottom: 2rem;
  text-shadow: 0px 20px 20px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.btn-pill-large,
.btn-outline {
  font-size: 1rem;
  padding: 14px 32px;
}

/* --- MOBIL NÉZET (1200px alatt már váltunk!) --- */
/* Hamarabb váltunk mobil nézetre, mert laptopon már szűkös lehet a két oszlop */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    /* Egy oszlop */
    text-align: center;
    gap: 30px;
    max-width: 700px;
    /* Mobilon középen tartjuk */
  }

  .hero-col-left {
    justify-content: center;
    padding-right: 0;
  }

  .hero-col-right {
    text-align: center;
    max-width: 100%;
  }

  .hero-title img {
    margin: 0 auto;
    max-width: 320px;
    /* Mobilon barátságos méret */
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .hero-lead:first-of-type {
    font-size: 1.8rem;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* =========================================
   CSISZOLT KOMPAKT MÓD (KESKENY VAGY ALACSONY ABLAKOKRA)
   ========================================= */
@media screen and (max-width: 450px), screen and (max-height: 700px) {

    .hero {
        /* Középre igazítjuk függőlegesen az egészet */
        display: flex;
        flex-direction: column;
        justify-content: center !important; 
        padding-top: 80px !important; /* Kisebb felső margó */
        padding-bottom: 20px !important;
        height: auto !important;
        min-height: 100vh;
    }

    .hero-content {
        /* Egymás mellé tesszük a logót és a szöveget */
        display: flex !important;
        flex-direction: row !important; /* Vízszintes elrendezés */
        align-items: center !important; /* Függőlegesen középre zárjuk őket */
        justify-content: center !important;
        gap: 20px !important; /* Szellősebb köz */
        text-align: left;
        max-width: 100%;
        margin: 0 auto;
    }

    /* --- LOGÓ FINOMÍTÁS --- */
    .hero-col-left {
        flex: 0 0 auto; /* Ne nyúljon meg */
    }

    .hero-title img {
        margin: 0 !important;
        max-width: 140px !important; /* Kisebb, kompaktabb logó */
        height: auto;
    }

    /* --- SZÖVEG FINOMÍTÁS --- */
    .hero-col-right {
        flex: 1; /* Kitölti a maradék helyet */
        padding: 0;
    }

    /* Kisebb "szemöldök" szöveg */
    .hero-eyebrow {
        font-size: 0.7rem !important;
        margin-bottom: 5px !important;
        display: block; /* Ezt hagyjuk meg, stílust ad */
    }

    /* A főcím méretének optimalizálása */
    .hero-lead:first-of-type {
        font-size: 1.3rem !important; /* Olvasható, de nem óriási */
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
        color: white;
    }

    /* A hosszú leírást ELREJTJÜK (ez marad, mert ez menti meg a helyet) */
    .hero-lead {
        display: none !important;
    }

    /* --- GOMBOK FINOMÍTÁSA (OLDALRA IGAZÍTVA) --- */
    .hero-actions {
        margin-top: 10px !important;
        display: flex !important;
        flex-direction: row !important; /* Egymás MELLÉ, nem alá! */
        flex-wrap: wrap; /* Ha nagyon nem fér el, törhet */
        gap: 10px !important;
        justify-content: flex-start; /* Balra igazítva a szöveg alá */
    }

    /* Kompakt gombok */
    .btn-pill-large, .btn-outline {
        width: auto !important; /* Ne legyen teljes szélességű */
        padding: 8px 16px !important; /* Kisebb belső térköz */
        font-size: 0.85rem !important; /* Kisebb betű a gombban */
        height: auto;
        line-height: 1;
    }

    /* Nyíl elrejtése */
    .scroll-down-indicator {
        display: none !important;
    }
}

/* --- SCROLL DOWN NYÍL --- */
.scroll-down-indicator {
    position: absolute;
    /* 30px helyett legyen 10px vagy 15px, így teljesen lemegy az aljára */
    bottom: 15px;          
    
    left: 50%;
    transform: translateX(-50%); /* Ez teszi vízszintesen középre */
    
    z-index: 20;
    color: rgba(255, 255, 255, 0.5); /* Kicsit halványabb alapból */
    cursor: pointer;
    
    /* Animáció */
    animation: bounce 2s infinite; 
    transition: all 0.3s ease;
}

/* Hover állapot: fehéredjen ki és világítson */
.scroll-down-indicator:hover {
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Maga a nyíl mérete */
.scroll-down-indicator svg {
    width: 40px;
    height: 40px;
    display: block;
}

/* --- A PATTOGÓ ANIMÁCIÓ (BOUNCE) --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        /* Alapállapotban tartja X tengelyen a középen */
        transform: translate(-50%, 0); 
    }
    40% {
        /* Felugrik */
        transform: translate(-50%, -10px); 
    }
    60% {
        /* Kicsit kevésbé ugrik fel */
        transform: translate(-50%, -5px); 
    }
}

/* =========================================
   6. SZOLGÁLTATÁS KÁRTYÁK (LOTTIE JAVÍTVA)
   ========================================= */


.service-card {
  position: relative;
  overflow: hidden;
  background-color: #0b101b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  isolation: isolate;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  /* --- ITT A VÁLTOZÁS: 320px helyett 250px --- */
  min-height: 250px;
}

/* A Lottie animáció (ez változatlan) */
.service-card-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  transform: scale(1.1);
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(80%) brightness(0.8);
}

/* --- SZÖVEG TARTALOM (KOMPAKTABB PADDING) --- */
.service-card-body {
  position: relative;
  z-index: 10;

  /* --- ITT A VÁLTOZÁS: 2rem helyett 1.5rem (kevesebb helyet foglal) --- */
  padding: 1.5rem;

  background: linear-gradient(to top, rgba(5, 10, 20, 0.95), transparent);
  pointer-events: none;
}

/* Cím mérete (picit kisebb, hogy passzoljon a kártyához) */
.service-card-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  /* 1.5rem helyett */
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.service-card-body p {
  color: #cbd5e1;
  font-size: 0.95rem;
  /* Picit kisebb betűk */
  line-height: 1.4;
  margin: 0;
  /* Felesleges alsó margó törlése */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* --- HOVER EFFEKTEK (Marad a régi) --- */
.service-card:hover {
  transform: translateY(-5px);
  border-color: #7000ff;
  box-shadow: 0 10px 30px -10px rgba(112, 0, 255, 0.3);
}

.service-card:hover .service-card-lottie {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0%) brightness(1);
}

/* =========================================
   7. PORTFOLIO ARCHIVE (Referenciák)
   ========================================= */
.portfolio-header {
  text-align: center;
  margin-bottom: 50px;
  padding-top: 20px;
}

.ref-card {
  display: block;
  background: white;
  /* Fehér háttér */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  /* Fontos: alapból sötét szín a szövegnek, mert a háttér fehér! */
  color: #444;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.ref-card-img-wrapper {
  height: 240px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ref-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Kártya szöveges része */
.ref-card-body {
  padding: 25px;
  background: white;
  position: relative;
  z-index: 3;
}

/* CÍMSOR SZÍNEK */
.ref-card-body h3 {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  /* Alapból sötét fekete */
  transition: color 0.3s ease;
  /* Finom színátmenet */
}

/* --- HOVER EFFEKT: Secondary színre váltás --- */
.ref-card:hover h3 {
  color: var(--c-secondary);
  /* Itt vált lilára/másodlagosra */
}

/* Szöveg kivonat (excerpt) */
.card-excerpt {
  font-size: 0.95rem;
  color: #666;
  /* Sötétszürke, hogy olvasható legyen */
  line-height: 1.6;
  margin-bottom: 20px;
}

/* "Részletek" felirat */
.read-more {
  display: inline-block;
  color: var(--c-accent);
  /* Ez maradhat az alap kék, vagy cseréld secondary-ra */
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

/* Ha ráviszed az egeret, a "Részletek" is legyen secondary színű? */
.ref-card:hover .read-more {
  color: var(--c-secondary);
}

.read-more::after {
  content: '→';
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.ref-card:hover .read-more::after {
  transform: translateX(5px);
}

/* --- Card Glow Effect (Maradhat) --- */
.ref-card::before,
.ref-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.ref-card::before {
  box-shadow: inset 0 0 0 2px var(--c-secondary);
  /* Keret színe is secondary lett */
}

.ref-card::after {
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--c-secondary), transparent 85%);
}

.ref-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px var(--c-secondary);
}

.ref-card:hover .ref-card-img {
  transform: scale(1.08);
}

.ref-card:hover::before,
.ref-card:hover::after {
  opacity: 1;
}

/* Modifier: Compact Card (Front Page) */
.grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.ref-card--compact .ref-card-img-wrapper {
  height: 140px;
}

.ref-card--compact .ref-card-body {
  padding: 15px;
}

.ref-card--compact h3 {
  font-size: 1rem;
}

/* =========================================
   8. SINGLE PROJECT
   ========================================= */

.project-wrapper {
  padding-bottom: 80px;
  position: relative;
  width: 100%;
}

/* Vissza gomb stílusa */
.link-back {
  display: inline-block;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  transition: color 0.3s;
}

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

/* 1. Cím és Kép */
.project-hero {
  text-align: center;
  margin-bottom: 40px;
}

.project-title-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 20px 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  /* Modern böngészőknek */
  word-wrap: break-word;
  /* Régebbi támogatás */
  hyphens: auto;
  /* Elválasztás, ha támogatja a böngésző */
  max-width: 100%;
  /* Biztosan ne lógjon túl */
}

.project-image-wrapper {
  width: 100%;
  margin-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-image-full {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Rács Elrendezés (Ez teszi egymás mellé) */
.project-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  /* Bal oldal fix, jobb oldal kitöltő */
  gap: 60px;
  align-items: start;
}

/* --- BAL OLDAL (Fehér doboz) --- */
.project-sidebar {
  background: #fdfdfd;
  /* Fehér háttér - FONTOS */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #222;
  /* Sötét szöveg a fehér alapon */
  position: sticky;
  top: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Címkék (pl. Ügyfél, Év) */
.info-label {
  display: block;
  /* Új sorba kényszeríti */
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  /* Szürke szín */
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 5px;
}

/* Értékek */
.info-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;

  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  /* Erőteljesebb tördelés hosszú nevekhez */
}

/* --- JOBB OLDAL (Szöveg) --- */
.project-content {
  color: #cbd5e1;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;

  /* --- JAVÍTÁS: Tördelés a leíráshoz --- */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  /* Biztos ami biztos */
  max-width: 100%;
  /* Hogy ne lógjon ki a keretből */
}

.entry-content p {
  margin-bottom: 20px;
}

/* --- Mobilon egymás alá törés --- */
@media (max-width: 900px) {
  .project-layout-grid {
    grid-template-columns: 1fr;
    /* Egy oszlop */
    gap: 40px;
  }

  .project-title-large {
    font-size: 1.8rem;
  }
}

/* =========================================
   9. FORMS 
   ========================================= */

.contact-form-wrapper {
  max-width: 100%;
}

.contact-form-wrapper p {
  margin-bottom: 30px;
  margin-top: 0;
}

/* Címkék */
.contact-form-wrapper label {
  font-weight: 600;
  font-size: 14px;
  color: #ddd;
  display: block;
  margin-bottom: 10px;
}

/* Input mezők */
.form-control,
.contact-form-wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]),
.contact-form-wrapper textarea {
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-family: var(--font-main);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  border-color: var(--c-accent);
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* --- GDPR CHECKBOX JAVÍTÁS --- */
.gdpr-wrapper {
  margin-bottom: 30px;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #ccc;
}

/* Ez teszi egymás mellé őket */
.gdpr-wrapper .wpcf7-list-item {
  display: flex;
  align-items: center;
  /* Középre igazítja függőlegesen */
  margin: 0;
}

.gdpr-wrapper label {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* A kis négyzet (Checkbox) */
.gdpr-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 15px;
  /* TÉRKÖZ A SZÖVEG ELŐTT */
  cursor: pointer;
  accent-color: var(--c-accent);
  flex-shrink: 0;
  position: relative;
  top: -1px;
  /* Pici finomhangolás, hogy pont középen legyen */
}

.gdpr-wrapper a {
  color: var(--c-accent);
  text-decoration: underline;
  margin-left: 4px;
}

/* --- GOMBOK ELRENDEZÉSE --- */
.form-buttons {
  display: flex;
  align-items: center;
  /* Egy vonalba a két gomb */
  gap: 20px;
  /* Távolság a két gomb között */
  margin-top: 10px;
}

/* KÜLDÉS GOMB (Nagy és kék) */
.contact-form-wrapper input[type="submit"] {
  background-color: var(--c-accent);
  color: white;
  padding: 14px 40px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  border: 0;
  transition: all 0.3s ease;
  font-size: 1rem;
  width: auto;
}

.contact-form-wrapper input[type="submit"]:hover {
  background-color: var(--c-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(91, 75, 196, 0.4);
}

/* TÖRLÉS GOMB (Kicsi és halvány) */
.btn-reset {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  /* Halvány szöveg */
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Halvány keret */
  padding: 10px 20px;
  /* Kisebb méret */
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  /* Kisebb betű */
  transition: all 0.3s;
  font-family: var(--font-main);
  margin-left: -80px;
}

.btn-reset:hover {
  color: white;
  border-color: white;
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- SIKERES KÜLDÉS --- */
.contact-form-wrapper input[type="submit"].success-btn {
  background-color: #2ecc71 !important;
  pointer-events: none;
}

/* --- VISSZAJELZŐ ÜZENETEK --- */
.wpcf7-response-output {
  margin-top: 30px !important;
  padding: 15px !important;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid transparent;
}

form.invalid .wpcf7-response-output {
  background-color: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c !important;
  color: #e74c3c;
}

form.sent .wpcf7-response-output {
  background-color: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71 !important;
  color: #2ecc71;
}

span.wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* =========================================
   10. FOOTER
   ========================================= */

.site-footer {
  background-color: #0a0a0a;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Ez igazítja középre függőlegesen a két oldalt */
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
}

/* --- Social Group Igazítás (ÚJ) --- */
/* --- Social Group Igazítás (JAVÍTOTT) --- */
.social-link-group {
  display: flex;
  flex-direction: column;
  /* Ez a kulcs: egymás alá rendezi az elemeket */
  align-items: center;
  /* Középre igazítja a szöveget a logó felett */
  gap: 10px;
  /* Kicsit kisebb térköz elég függőlegesen */
}

.social-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin: 0;
  /* Margin nullázása a pontos igazításhoz */
}

/* --- Discord Ikon (A HIÁNYZÓ RÉSZ) --- */
.discord-wrapper {
  display: block;
  /* Vagy inline-block */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 0;
  /* Fontos: eltünteti a kép alatti extra helyet */
}

/* EZT HAGYTAD KI: A kép konkrét mérete */
.discord-wrapper img {
  height: 50px;
  /* Beállítjuk a fix magasságot */
  width: auto;
  /* Arányos szélesség */
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.discord-wrapper:hover {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.2);
}

/* --- Footer Alsó Sor --- */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* Halvány vonal */
}

.footer-legal {
  display: flex;
  gap: 25px;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: white;
  text-decoration: underline;
}

/* Reszponzív igazítások */
@media (max-width: 768px) {

  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .social-link-group {
    justify-content: center;
    /* Mobilon középre igazítva */
    flex-direction: column;
    /* Mobilon egymás alá kerülhet a szöveg és a logó */
  }

  .footer-legal {
    justify-content: center;
  }
}

/* =========================================
   11. MEDIA QUERIES (Reszponzivitás)
   ========================================= */

@media (max-width: 900px) {

  /* Grid Collapse */
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile Navigation Logic */
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: auto;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 0 12px;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav-menu.is-open {
    max-height: 500px;
    padding: 12px;
    display: flex;
  }

  .btn-hamburger {
    display: block;
  }
}

@media (max-width: 768px) {

  /* Layout Stacking */
  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .project-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}