/* --- GLOBAL CONFIGURATION --- */
:root {
    --bg-color: #050505;
    --glass-bg: rgba(20, 20, 20, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}
::-webkit-scrollbar { display: none; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    user-select: none;
}
body.no-scroll { overflow: hidden !important; }

/* --- INTRO OVERLAY --- */
#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}
#intro-overlay.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.wrapper { display: flex; justify-content: center; align-items: center; height: 60px; transition: opacity 0.5s; }
.wrapper.hidden { opacity: 0; }

.ball {
    width: 14px; height: 14px; border-radius: 50%; margin: 0 8px;
    animation: bounce 1.5s ease infinite; background-color: #fff;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes bounce { 50% { transform: translateY(20px); } }

#intro-text {
    font-family: var(--font-heading); font-size: 1rem; color: #fff; letter-spacing: 4px;
    text-transform: uppercase; opacity: 0; margin-top: 30px;
    transition: opacity 0.8s; pointer-events: none;
}
#intro-text.visible { opacity: 1; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* --- FIXED BACKGROUND (KÉP & VIDEÓ) --- */
/* --- FIXED BACKGROUND (JAVÍTOTT) --- */
.video-container.fixed-background {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    overflow: hidden;
}

.video-background {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}

.video-background video, 
.video-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;   /* Fontos: kényszerítjük, hogy akkora legyen, mint a képernyő */
    height: 100%;  /* Fontos: kényszerítjük, hogy akkora legyen, mint a képernyő */
    object-fit: cover; /* Ez a varázslat: levágja a felesleget, de kitölti a teret */
    object-position: center; /* Középre igazítja a képet */
    z-index: -2;
}

/* A média lekérdezéseket (aspect-ratio media queries) TÖRÖLHETED, 
   mert az object-fit: cover ezt automatikusan megoldja! */

.vignette-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 130%); 
    pointer-events: none;
    z-index: -1;
}

/* --- SECTIONS --- */
section {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; justify-content: center; align-items: center;
    padding: 40px; box-sizing: border-box; background: transparent; 
}
#home { justify-content: flex-start; padding-left: 10%; }

/* --- HOME CONTENT --- */
.content-wrapper {
    display: flex; align-items: center; gap: 60px; opacity: 0;
    animation: fadeIn 1.2s ease-out forwards 0.5s; z-index: 10;
}

/* Profilkép */
.profile-pic-wrapper {
    position: relative; width: 160px; height: 160px;
    display: flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.profile-pic-wrapper::before {
    content: ''; position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%; z-index: -1;
    background: conic-gradient(#ffffff, #666666, #000000, #ffffff);
    animation: rotateGlow 8s linear infinite, mixAndUnmix 6s ease-in-out infinite alternate;
    filter: blur(10px);
}
.profile-pic {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid #1a1a1a; background: #000; position: relative; z-index: 2;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes mixAndUnmix { 0% { filter: blur(8px); opacity: 0.6; } 100% { filter: blur(18px); opacity: 0.9; } }

/* Typography */
.info-container { display: flex; flex-direction: column; text-align: left; }
h1 {
    font-family: var(--font-heading); font-size: 5rem; margin: 0; letter-spacing: 2px;
    background: linear-gradient(120deg, #fff 30%, #888 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}
.description { font-size: 1.2rem; color: var(--text-secondary); margin: 10px 0 30px; min-height: 1.5rem; font-weight: 300; }

/* --- SOCIAL GOMBOK --- */
.social-list-modern {
    list-style: none; padding: 0; margin: 0 0 30px 0;
    display: flex; gap: 12px; flex-wrap: wrap;
}
.social-list-modern .icon-content { position: relative; }
.social-list-modern .icon-content a {
    display: flex; justify-content: center; align-items: center;
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff; font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; overflow: hidden; text-decoration: none;
}
.social-list-modern .icon-content a .filled {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0; transition: opacity 0.4s ease;
}
.social-list-modern .icon-content a i { position: relative; z-index: 2; transition: transform 0.4s; display: block; }
.social-list-modern .icon-content a:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.social-list-modern .icon-content a:hover i { transform: scale(1.15); }
.social-list-modern .icon-content a:hover .filled { opacity: 1; }

/* Brand Colors */
.icon-content a[data-social="x"] .filled { background: #000; border: 1px solid #333; }
.icon-content a[data-social="twitch"] .filled { background: #9146FF; }
.icon-content a[data-social="youtube"] .filled { background: #FF0000; }
.icon-content a[data-social="steam"] .filled { background: #171a21; }

/* --- DISCORD CARD --- */
.discord-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 16px;
    width: 100%;
    max-width: 450px; 
    margin-top: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.discord-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); }

.discord-avatar-container { position: relative; width: 50px; height: 50px; margin-right: 15px; flex-shrink: 0; }
#discord-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.status-indicator {
    position: absolute; bottom: 0; right: 0; width: 14px; height: 14px;
    border-radius: 50%; border: 3px solid #1f1016; 
    z-index: 5;
}
.status-indicator.online { background-color: #43b581; box-shadow: 0 0 10px #43b581; }
.status-indicator.idle { background-color: #faa61a; box-shadow: 0 0 10px #faa61a; }
.status-indicator.dnd { background-color: #f04747; box-shadow: 0 0 10px #f04747; }
.status-indicator.offline { background-color: #747f8d; }
.status-indicator.streaming { background-color: #593695; box-shadow: 0 0 10px #593695; }

.discord-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; flex: 1; }
#discord-username { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 4px; line-height: 1.2; }

#discord-status-wrapper { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 24px; overflow: hidden; }
#discord-activity { font-size: 0.9rem; color: #b3b3b3; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; line-height: 1.6; }

.highlight-link { color: #1ED760; text-decoration: none; font-weight: 600; transition: color 0.2s ease, text-shadow 0.2s ease; }
.highlight-link:hover { color: #1eff66; text-decoration: underline; text-shadow: 0 0 8px rgba(30, 215, 96, 0.4); }

#activity-icon, #default-game-icon, #spotify-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
#default-game-icon, #spotify-icon { display: none; align-items: center; justify-content: center; text-align: center; font-size: 16px; }
#default-game-icon { color: #e0aaff; }
#spotify-icon { color: #1ED760; }

/* --- BENTO GRID --- */
.bento-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    width: 100%; max-width: 950px; margin: 0 auto;
}
.span-2 { grid-column: span 2; }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border); border-radius: 22px;
    padding: 28px; color: #eee;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column; justify-content: center;
}
.glass-panel:hover {
    transform: translateY(-5px); border-color: rgba(255,255,255,0.25);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.card-header h3 { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 1px; }
.card-header i { color: #ccc; }

.location-box {
    display: flex; align-items: center; gap: 15px; font-size: 1.1rem; font-weight: 500;
}
.location-box img {
    width: 32px; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); display: block;
}

/* Specs */
.lang-list { display: flex; flex-direction: column; gap: 12px; }
.lang-item { display: flex; justify-content: space-between; font-size: 0.9rem; align-items: center; }
.progress-bar { width: 100px; height: 5px; background: rgba(255,255,255,0.1); border-radius: 10px; }
.fill { height: 100%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.5); border-radius: 10px; }

.tech-stack { display: flex; gap: 20px; font-size: 2rem; color: #777; margin-top: 5px; }
.tech-stack i:hover { color: #fff; transform: scale(1.15); transition: 0.3s; }

.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.spec-item { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 6px; font-size: 0.9rem; }
.spec-label { color: #888; }
.spec-value { font-weight: 600; color: #fff; }

.gear-list { list-style: none; padding: 0; }
.gear-list li { padding: 6px 0; color: #ddd; display: flex; gap: 12px; align-items: center; font-size: 0.95rem; }
.gear-list i { color: #999; width: 20px; text-align: center; }

/* Side Nav */
.side-nav {
    position: fixed; top: 50%; right: 30px; transform: translateY(-50%);
    list-style: none; padding: 0; margin: 0; z-index: 100;
    display: flex; flex-direction: column; gap: 20px;
}
.nav-item a {
    position: relative; width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 16px; color: #fff; font-size: 1.2rem; transition: 0.3s;
}
.nav-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px);
    border-radius: 16px; z-index: -1; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
}
.nav-item a.active .nav-bg { background: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.4); }
.nav-item a.active i { color: #000; }
.nav-item a:hover { transform: scale(1.1); }

/* Scroll Down */
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); animation: bounce 2s infinite; font-size: 1.2rem;
}

@keyframes fadeIn { to { opacity: 1; } }

/* Mobile */
@media (max-width: 950px) {
    #home { justify-content: center; padding: 100px 20px; text-align: center; }
    .content-wrapper { flex-direction: column; gap: 30px; }
    h1 { font-size: 3.5rem; }
    .profile-pic-wrapper { margin-bottom: 10px; }
    .side-nav {
        bottom: 20px; top: auto; right: 50%; transform: translateX(50%);
        flex-direction: row; background: rgba(10,10,10,0.8); padding: 10px 20px; border-radius: 30px;
        backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
    }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .social-list-modern { justify-content: center; }
    .discord-card { margin: 0 auto; }
}