/* Görgetősáv elrejtése minden böngészőben */
html, body {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    scroll-behavior: smooth;
}

::-webkit-scrollbar { display: none; }

:root {
    --bg-color: #020806;
    --bg-surface: #0a2118;
    --accent-color: #10b981; 
    --accent-hover: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(10, 25, 18, 0.45);
    --glass-border: rgba(16, 185, 129, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.no-scroll { overflow: hidden !important; }

/* --- INTRO OVERLAY --- */
#intro-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
    padding: 1rem;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* --- LOKÁLIS HÁTTÉR & DINAMIKUS ÁRNYÉK/FÉNY ANIMÁCIÓ --- */
.bg-pattern {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 8, 6, 0.85), rgba(2, 8, 6, 0.95)),
                url('assets/wallaper.png') center/cover no-repeat;
    z-index: -2;
    animation: ambientBreathe 15s ease-in-out infinite alternate;
}

.bg-glow {
    position: fixed;
    top: -40vw; 
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;  
    height: 150vw; 
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 55%);
    z-index: -1;
    pointer-events: none;
    animation: wanderingGlow 15s ease-in-out infinite alternate;
}

@keyframes ambientBreathe {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

@keyframes wanderingGlow {
    0% { opacity: 0.2; transform: translateX(-50%) scale(0.8); }
    50% { opacity: 0.6; transform: translateX(-45%) scale(1.1); }
    100% { opacity: 0.3; transform: translateX(-55%) scale(0.9) translateY(5%); }
}

/* --- LAYOUT & PROFIL --- */
.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
}

.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%; height: 100%;
    border-radius: 35%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 35%;
    background: linear-gradient(45deg, var(--accent-color), transparent, #059669);
    z-index: 1;
    animation: rotateRing 6s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
    margin: 0 auto;
}

/* --- SKILL TAGEK --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* --- BENTO GRID KÁRTYÁK & 3D TILT & SPOTLIGHT --- */
.section-title-wrapper {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; width: 100%;
}

.section-title {
    font-size: 1.2rem; text-transform: uppercase; letter-spacing: 4px;
    color: var(--text-main); white-space: nowrap; font-weight: 700;
}

.title-line {
    height: 1px; flex-grow: 1;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.bento-grid {
    display: grid;
    /* Reszponzív oszlopok - a min(100%, 280px) megakadályozza a kilógást pici képernyőn */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem; width: 100%;
}

@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid .glass-card:first-child {
        grid-column: span 2; flex-direction: row; text-align: left; align-items: center;
    }
    .bento-grid .glass-card:first-child .card-img {
        width: 160px; height: 160px; margin-right: 2.5rem; margin-bottom: 0;
    }
    .bento-grid .glass-card:first-child .card-content {
        flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start;
    }
}

.glass-card {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(16, 185, 129, 0.08) 40%, 
        rgba(10, 25, 18, 0.6) 100%
    );
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden; 
    will-change: transform;
}

.glass-card::after {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.12; z-index: 0; pointer-events: none;
    border-radius: inherit; mix-blend-mode: overlay;
}

/* Hover effektek csak asztali gépeken, hogy érintőképernyőn ne ragadjanak be */
@media (hover: hover) {
    .glass-card:hover {
        background: linear-gradient(
            135deg, 
            rgba(255, 255, 255, 0.06) 0%, 
            rgba(16, 185, 129, 0.15) 50%, 
            rgba(10, 25, 18, 0.8) 100%
        );
        border-color: rgba(16, 185, 129, 0.5);
        box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(16, 185, 129, 0.1);
    }
    
    .glass-card::before {
        content: ""; position: absolute; inset: 0;
        background: radial-gradient(
            600px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
            rgba(16, 185, 129, 0.15), 
            transparent 40%
        );
        z-index: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
    }
    .glass-card:hover::before { opacity: 1; }
}

.glass-card > * { position: relative; z-index: 1; }

.card-img {
    width: 90px; height: 90px; border-radius: 20px;
    margin-bottom: 1.5rem; object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.card-title { font-size: 1.4rem; margin-bottom: 0.8rem; font-weight: 700; color: #fff; }
.card-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; flex-grow: 1; line-height: 1.6; }

/* Gombok */
.btn {
    text-decoration: none; padding: 0.8rem 2rem; border-radius: 12px;
    font-weight: 600; transition: var(--transition); cursor: pointer;
    border: none; display: inline-block; font-size: 0.95rem; text-align: center;
}

.primary-btn { background: var(--accent-color); color: var(--bg-color); }
.primary-btn:hover { background: var(--accent-hover); box-shadow: 0 0 20px var(--accent-glow); }

.outline-btn { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--accent-color); color: var(--accent-color); }
.outline-btn:hover { background: var(--accent-color); color: var(--bg-color); box-shadow: 0 0 20px var(--accent-glow); }

/* --- FOOTER --- */
.site-footer { text-align: center; padding: 3rem 1rem; margin-top: auto; width: 100%; }
.contact-links a { color: var(--text-main); text-decoration: none; margin: 0 1rem; font-weight: 600; font-size: 1.1rem; transition: var(--transition);}
.contact-links a:hover { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-glow); }
.copyright { color: var(--text-muted); font-size: 0.9rem; margin-top: 2rem; opacity: 0.5; }

/* --- ANIMÁCIÓK --- */
.reveal-item {
    opacity: 0; transform: translateY(30px); filter: blur(5px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}
.reveal-item.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- BRUTAL MODERN AGE VERIFICATION MODAL --- */
.age-verification-card.modern-ui {
    background: rgba(10, 17, 20, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(16, 185, 129, 0.05);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-verification-card.modern-ui.fade-out {
    opacity: 0; transform: scale(0.95) translateY(30px); pointer-events: none;
}

.shield-icon-container { position: relative; margin-bottom: 2rem; display: flex; justify-content: center; align-items: center; }
.shield-glow { position: absolute; width: 90px; height: 90px; background: var(--accent-color); filter: blur(45px); opacity: 0.25; border-radius: 50%; z-index: 0; }
.shield-icon { width: 85px; height: 85px; color: var(--accent-color); z-index: 1; filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5)); }

.age-verification-card.modern-ui .age-title { font-size: 1.25rem; font-weight: 600; letter-spacing: 2px; color: #ffffff; margin-bottom: 1rem; text-transform: uppercase; }
.age-verification-card.modern-ui .age-desc { color: #8b9bb4; font-size: 0.95rem; line-height: 1.6; margin-bottom: 2.5rem; font-weight: 300; }

.modern-btn {
    background: var(--accent-color); color: #030a08; width: 100%;
    padding: 1rem; font-size: 1rem; border-radius: 12px; letter-spacing: 1px;
    font-weight: 700; text-transform: uppercase; border: none; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}
.modern-btn:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45); }

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress-container {
    position: fixed; left: 30px; top: 50%; transform: translateY(-50%);
    height: 40vh; width: 3px; background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; z-index: 1000;
}
.scroll-progress-bar { width: 100%; height: 0%; background: var(--accent-color); border-radius: 10px; box-shadow: 0 0 15px var(--accent-glow); transition: height 0.1s ease-out; }

/* --- KINAGYÍTOTT KÁRTYA (MODAL) STÍLUSOK --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(2, 8, 6, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 100000; display: flex; justify-content: center; align-items: center; 
    opacity: 0; pointer-events: none; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    padding: 1rem;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
    position: relative; max-width: 850px; width: 100%; display: flex;
    flex-direction: column; transform: scale(0.95) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0; padding: 2.5rem; text-align: left;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 0 30px rgba(16, 185, 129, 0.1);
    
    /* Reszponzív módosítás: görgethető legyen, ha a szöveg túl hosszú */
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
.modal-content::-webkit-scrollbar { display: none; } /* Chrome, Safari */

.modal-overlay.active .modal-content { transform: scale(1) translateY(0); opacity: 1; }

.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border); color: var(--text-main); width: 40px;
    height: 40px; border-radius: 50%; font-size: 1.5rem; display: flex;
    justify-content: center; align-items: center; cursor: pointer;
    transition: var(--transition); z-index: 10;
}
.modal-close:hover { background: var(--accent-color); color: var(--bg-color); transform: rotate(90deg) scale(1.1); }

.modal-img {
    width: 100%; max-width: 300px; height: 300px; object-fit: cover;
    border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); margin-bottom: 1.5rem;
    align-self: center;
}

.modal-info { flex-grow: 1; display: flex; flex-direction: column; }
.modal-title { font-size: 2.2rem; margin-bottom: 1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.modal-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; line-height: 1.7; }
.modal-info .btn { align-self: flex-start; }

body.modal-open .container, body.modal-open .site-footer {
    filter: blur(8px) brightness(0.7); transition: filter 0.5s ease;
}

/* --- ENHANCED LANGUAGE SWITCHER --- */
.lang-switcher {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    background: rgba(10, 25, 18, 0.65); border: 1px solid var(--glass-border);
    padding: 0.5rem; border-radius: 24px; display: flex; align-items: center; gap: 0; 
    z-index: 100000; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, gap 0.4s ease, padding 0.4s ease;
    overflow: hidden; width: 54px; box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.lang-switcher:hover {
    width: 175px; gap: 0.8rem; background: rgba(10, 25, 18, 0.9); padding: 0.5rem 1.5rem 0.5rem 0.5rem; 
}

.lang-icon {
    width: 36px; height: 36px; display: flex; justify-content: center; align-items: center;
    font-size: 1.3rem; cursor: default; filter: drop-shadow(0 0 8px var(--accent-glow));
    flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,0.03); transition: var(--transition);
}
.lang-switcher:hover .lang-icon { background: rgba(16, 185, 129, 0.15); }

.lang-options {
    display: flex; flex-direction: column; gap: 0.4rem; opacity: 0; white-space: nowrap; transition: opacity 0.3s ease 0.1s;
}
.lang-switcher:hover .lang-options { opacity: 1; }

.lang-btn {
    background: transparent; border: none; color: var(--text-main); cursor: pointer; 
    font-size: 0.95rem; font-weight: 600; text-align: left; padding: 0.3rem 0.6rem; 
    border-radius: 8px; transition: var(--transition); display: flex; align-items: center; gap: 10px;
}
.flag-icon { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.lang-btn:hover, .lang-btn.active { color: var(--accent-color); background: rgba(16, 185, 129, 0.1); }

/* --- NYELVVÁLTÁS BLUR ANIMÁCIÓ --- */
.container, .site-footer, .age-verification-card { transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease; }
body.lang-transitioning .container, body.lang-transitioning .site-footer, body.lang-transitioning .age-verification-card {
    opacity: 0; filter: blur(12px) brightness(0.8); transform: scale(0.98);
}


/* =========================================================
   📱 RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================= */

/* --- TABLET NÉZET --- */
@media (min-width: 768px) {
    .modal-content { flex-direction: row; align-items: flex-start; gap: 3rem; padding: 3.5rem; }
    .modal-img { margin-bottom: 0; max-width: 300px; height: 300px; }
}

/* --- MOBIL NÉZET (Minden ami <= 768px) --- */
@media (max-width: 768px) {
    .container { padding: 2.5rem 1rem 3rem; }
    
    h1 { font-size: 2.2rem; }
    .bio { font-size: 1rem; padding: 0 0.5rem; }
    .avatar-container { width: 110px; height: 110px; }
    
    .glass-card { padding: 1.8rem; border-radius: 20px; }
    .card-title { font-size: 1.25rem; }
    
    .scroll-progress-container { left: 10px; height: 50vh; width: 2px; }

    /* Lang switcher áthelyezése mobilon a jobb felső sarokba, hogy ne zavarjon a görgetésben */
    .lang-switcher {
        top: 20px; 
        right: 15px; 
        transform: none; 
    }

    /* Modal (Popup) optimalizálása */
    .modal-content {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .modal-img {
        max-width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }
    .modal-title { font-size: 1.8rem; }
    .modal-desc { font-size: 0.95rem; }
    .modal-close { top: 0.8rem; right: 0.8rem; width: 35px; height: 35px; font-size: 1.2rem; }
}

/* --- KIS MOBILOK (Pl. iPhone SE, <= 480px) --- */
@media (max-width: 480px) {
    .bento-grid { gap: 1rem; }
    
    .age-verification-card.modern-ui { padding: 2.5rem 1.5rem; }
    .shield-icon { width: 65px; height: 65px; }
    .shield-glow { width: 70px; height: 70px; }
    .age-verification-card.modern-ui .age-title { font-size: 1.1rem; }
    
    .modal-content { padding: 1.5rem 1rem; }
    .modal-img { max-width: 150px; height: 150px; }
    .modal-title { font-size: 1.5rem; }
}