:root {
    --bg-color: #f8f9fa;
    --text-color: #1a1a1a;
    --accent-color: #000;
    --faded-text: #666;
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
.menu-bar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}
.mobile-menu-toggle{
    display: none !important;
  }
  .lang-link.is-active {
    font-weight: 800;
}
/* =========================================================
   MOBILE DRAWER MENU
   ========================================================= */

.mobile-menu-toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-button,
.mobile-menu-backdrop,
.mobile-drawer{
  display: none;
}

@media (max-width: 1024px){

  /* desktop nav elrejtése mobilon */
  .menu-bar{
    display: none !important;
  }

  .mobile-menu-button{
    display: flex;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 30;

    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15,23,42,.18);
  }

  .mobile-menu-button span{
    width: 18px;
    height: 1.5px;
    background: #0f172a;
    border-radius: 999px;
    transition: transform .25s ease, opacity .25s ease, width .25s ease;
  }

  .mobile-menu-backdrop{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(15,23,42,.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .mobile-drawer{
    display: flex;
    flex-direction: column;
    gap: 18px;

    position: fixed;
    top: 0;
    right: 0;
    z-index: 25;

    width: min(86vw, 360px);
    height: 100dvh;
    padding: 72px 18px 22px;

    background: linear-gradient(
      180deg,
      rgba(255,255,255,.72),
      rgba(240,247,255,.66)
    );
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);

    border-left: 1px solid rgba(15,23,42,.08);
    box-shadow: -14px 0 40px rgba(15,23,42,.18);

    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
  }

  .mobile-drawer-header{
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: .76rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #0f172a;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15,23,42,.08);
  }

  .mobile-drawer-links{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-drawer-links a{
    text-decoration: none;
    color: #0f172a;
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;

    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.24);
    background: rgba(255,255,255,.55);
    transition: all .2s ease;
  }

  .mobile-drawer-links a:hover,
  .mobile-drawer-links a:active{
    background: rgba(255,255,255,.9);
    border-color: rgba(0,212,255,.35);
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
  }

  .mobile-drawer-modules{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(15,23,42,.08);
  }

  .mobile-drawer-module{
    display: block;
    cursor: pointer;

    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.5);

    color: #0f172a;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.4;

    transition: all .2s ease;
  }

  .mobile-drawer-module:hover,
  .mobile-drawer-module:active{
    background: rgba(255,255,255,.92);
    border-color: rgba(0,212,255,.35);
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
  }

  /* open state */
  #mobile-menu-toggle:checked ~ .mobile-menu-backdrop{
    opacity: 1;
    pointer-events: auto;
  }

  #mobile-menu-toggle:checked ~ .mobile-drawer{
    transform: translateX(0);
  }

  #mobile-menu-toggle:checked ~ .mobile-menu-button span:nth-child(1){
    transform: translateY(6.5px) rotate(45deg);
  }

  #mobile-menu-toggle:checked ~ .mobile-menu-button span:nth-child(2){
    opacity: 0;
  }

  #mobile-menu-toggle:checked ~ .mobile-menu-button span:nth-child(3){
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* hogy ne lógjon alá a header */
  .hud-header{
    padding-right: 58px;
  }
}
  
/* --- Layout Container --- */
.container {
    width: min(100% - 40px, 1400px);
    margin: 0 auto;
}

.hero-section {
    width: 100%;
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.2s ease-out;
}

.header-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

/* --- Text Styling --- */
.terminal-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--faded-text);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent-color);
    animation: blink 1s steps(2) infinite;
    vertical-align: middle;
}

.main-manifesto {
    font-size: 1.05rem;
    font-weight: 300;
}

.main-manifesto p {
    margin-bottom: 2rem;
}

.highlight {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-left: 2px solid var(--accent-color);
    padding-left: 2rem;
    margin: 3rem 0 !important;
}

.logo-small { 
    width: 30%;
    margin-top: 0;
    opacity: 0.7;
}

/* --- Profile Image & Effects --- */
.image-side {
    position: sticky;
    top: 140px;
}

.profile-frame {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 10px;
    background: white;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: scan 6s linear infinite;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* --- RESPONSIVE DESIGN (MOBIL & TABLET) --- */

@media (max-width: 1024px) {
    .content-grid {
        gap: 3rem;
    }
}

@media (max-width: 850px) {
    .menu-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr; /* Egymás alá kerülnek */
    }

    .image-side {
        position: relative; /* Megszűnik a ragadás mobilon */
        top: 0;
        order: -1; /* A kép kerül felülre mobilon */
        max-width: 500px;
        margin: 0 auto 3rem;
    }

    .header-img {
        margin-top: 40px;
    }

    .main-manifesto {
        font-size: 1rem;
        text-align: left;
    }

    .logo-small {
                display: block;
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.65rem;
        gap: 0.8rem;
    }
    
    .highlight {
        padding-left: 1rem;
        font-size: 0.85rem;
    }
}