/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #020617;
    --bg-gradient: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

/* --- Alapok --- */
html { scroll-behavior: smooth; }
body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* --- Navigáció --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; }
.highlight, .text-gradient { color: var(--accent); }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links a { color: var(--text-muted); text-decoration: none; margin-right: 20px; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: #fff; }

/* --- Gombok --- */
.btn-primary {
    background: var(--accent); color: #0f172a; border: none; padding: 12px 28px;
    border-radius: 50px; font-weight: 700; cursor: pointer; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-2px); }
.btn-secondary {
    background: transparent; color: #fff; border: 1px solid var(--glass-border);
    padding: 12px 28px; border-radius: 50px; cursor: pointer; transition: 0.3s;
}
.btn-secondary:hover { background: var(--glass-bg); border-color: var(--accent); }
.btn-primary.small { padding: 8px 20px; font-size: 0.85rem; }
.full-width { width: 100%; justify-content: center; }

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10%;
    position: relative;
    padding-top: 70px;
}
.hero-content { max-width: 600px; z-index: 2; }
.badge {
    display: inline-block; padding: 5px 12px; background: rgba(56, 189, 248, 0.1);
    color: var(--accent); border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2); margin-bottom: 20px;
}
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.cta-group { display: flex; gap: 15px; }

/* --- Hero Visual (Layered Glass) --- */
.hero-visual { position: relative; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; }
.glass-stack { position: relative; width: 100%; height: 100%; perspective: 1000px; }
.layer {
    position: absolute; width: 250px; height: 250px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: 0.5s;
}
.l1 { transform: rotateX(20deg) rotateY(-20deg) translateZ(0px); z-index: 1; }
.l2 { transform: rotateX(20deg) rotateY(-20deg) translateZ(40px) translateX(20px) translateY(-20px); z-index: 2; border-color: rgba(56, 189, 248, 0.2); }
.l3 {
    transform: rotateX(20deg) rotateY(-20deg) translateZ(80px) translateX(40px) translateY(-40px);
    z-index: 3; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--accent); text-shadow: 0 0 30px var(--accent-glow);
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotateX(20deg) rotateY(-20deg) translateZ(80px) translateX(40px) translateY(-40px); } 50% { transform: rotateX(20deg) rotateY(-20deg) translateZ(80px) translateX(40px) translateY(-60px); } }

/* --- Features Section --- */
#features { padding: 100px 10%; background: #0b1120; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.feature-card {
    background: var(--glass-bg); padding: 30px; border-radius: 20px;
    border: 1px solid var(--glass-border); transition: 0.3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5); }
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent);
    opacity: 0; transition: 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.icon-box { font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --- Tech Section (SzabodZ) --- */
#tech {
    margin: 100px 10%; padding: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border); border-radius: 24px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 50px; flex-wrap: wrap;
}
.tech-content { flex: 2; min-width: 300px; }
.tech-content h3 { font-size: 2rem; margin-bottom: 20px; }
.tech-list { list-style: none; margin-top: 20px; }
.tech-list li { margin-bottom: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.tech-list i { color: var(--accent); }
.tech-stat { flex: 1; display: flex; gap: 30px; min-width: 200px; }
.stat-box { text-align: center; }
.stat-box .number { display: block; font-size: 2.5rem; font-weight: 800; color: #fff; }
.stat-box .label { font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* --- Footer --- */
footer { text-align: center; padding: 40px; border-top: 1px solid var(--glass-border); margin-top: 50px; font-size: 0.9rem; color: var(--text-muted); }
.footer-links { margin-top: 10px; }
.footer-links a { color: var(--text-muted); margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* --- Login Modal & Utilities --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 2000;
}
/* assets/style.css javítás */

/* A doboz legyen rugalmasabb és kezelje a kifolyást */
.login-box {
    background: #111827;
    border: 1px solid var(--glass-border);
    padding: 30px; /* Kicsit csökkentettük a paddingot */
    border-radius: 20px;
    width: 90%; /* Mobilon ne legyen 100% */
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box; /* FONTOS: Ez tartja kereten belül a méreteket */
}

/* Az input mező ne lógjon túl */
.input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    box-sizing: border-box; /* EZ JAVÍTJA A KICSÚSZÁST: A padding beleszámít a szélességbe */
}
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.login-sub { text-align: center; margin-bottom: 25px; color: var(--text-muted); }
.input-group { position: relative; margin-bottom: 15px; }
.input-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--text-muted); }
.input-group input {
    width: 100%; padding: 12px 12px 12px 45px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 8px; color: #fff; outline: none;
}
.input-group input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }
#error-msg { color: #ef4444; font-size: 0.9rem; text-align: center; margin-bottom: 10px; min-height: 20px; }

.hidden { display: none !important; }

/* Scroll Animations Classes */
.fade-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- MOBIL OPTIMALIZÁLÁS (Responsive) --- */
@media screen and (max-width: 768px) {
    
    /* Navigáció: Mobilon egyszerűsítünk */
    .navbar {
        padding: 0 20px;
        height: 60px;
    }
    .logo { font-size: 1.2rem; }
    
    /* Mobilon rejtsük el a köztes linkeket, csak a Login gomb maradjon, vagy tegyük hamburger menübe (most egyszerűsítünk) */
    .nav-links a { display: none; } 
    .btn-primary.small { padding: 6px 15px; font-size: 0.8rem; }

    /* Hero Szekció: Egymás alá kerüljön a szöveg és a kép */
    #hero {
        flex-direction: column-reverse; /* A kép legyen felül vagy alul? Most szöveg alul, vizuális felül */
        padding: 100px 20px 40px 20px; /* Több hely felül a nav miatt */
        text-align: center;
        justify-content: center;
    }

    .hero-content { 
        width: 100%; 
        margin-top: 40px; 
    }

    h1 { font-size: 2.2rem; } /* Kisebb főcím */
    .hero-content p { font-size: 1rem; }
    
    .cta-group { 
        justify-content: center; 
        flex-direction: column; /* Gombok egymás alatt */
        gap: 10px;
    }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

    /* Vizuális elem (üvegrétegek) kicsinyítése */
    .hero-visual { width: 300px; height: 300px; margin-bottom: 20px; }
    .layer { width: 180px; height: 180px; }

    /* Features Grid: Egy oszlop */
    #features { padding: 60px 20px; }
    .grid-container { grid-template-columns: 1fr; } /* Egymás alá */

    /* Tech Szekció */
    #tech { 
        padding: 30px; 
        margin: 40px 20px; 
        flex-direction: column;
    }
    .tech-stat { 
        width: 100%; 
        justify-content: space-around; 
        margin-top: 30px;
    }

    /* Login Modal Mobil */
    .login-box {
        padding: 25px;
        width: 90%; 
        margin: 0 20px;
    }
    .login-box h2 { font-size: 1.5rem; }
}



