:root {
    --bg: #050505;
    --text: #ffffff;
    --text-dim: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --font-title: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body { 
    background-color: var(--bg);
    color: var(--text); 
    font-family: var(--font-body); 
    overflow-x: hidden; 
    line-height: 1.6;
}

.loading-screen { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg);
    z-index: 10000; display: flex; align-items: center; justify-content: center; 
    transition: opacity 0.5s ease, visibility 0.5s; 
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loader-text { font-family: var(--font-title); font-size: 0.8rem; letter-spacing: 2px; font-weight: 700; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 5%; width: 100%; }
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-down { opacity: 0; transform: translateY(-40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.active { opacity: 1; transform: translate(0); }

.navbar { 
    display: flex; justify-content: space-between; align-items: center; padding: 30px 5%; 
    position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(5,5,5,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; }
.nav-links { display: flex; gap: 40px; }
.nav-link { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.3s; }
.nav-link:hover { color: var(--text); }
.nav-btn { font-size: 0.85rem; font-weight: 700; border: 1px solid var(--text); padding: 10px 25px; color: var(--text); text-decoration: none; transition: all 0.3s; }
.nav-btn:hover { background: var(--text); color: var(--bg); }

.hero { min-height: 90vh; display: flex; align-items: center; padding-top: 100px; padding-bottom: 50px; }

.hero-layout { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    align-items: center; 
    gap: 50px; 
}

.hero-content { max-width: 100%; }
.role-list { margin-bottom: 30px; }
.role-item { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--text-dim); line-height: 1.2; text-transform: uppercase; letter-spacing: -0.5px; }
.role-item:first-child { color: var(--text); }

.main-title { font-size: clamp(4rem, 12vw, 9rem); line-height: 0.9; font-weight: 800; letter-spacing: -2px; margin: 20px 0; }
.description-box { border-left: 2px solid var(--text); padding-left: 25px; }
.hero-description { font-size: 1.1rem; color: var(--text-dim); max-width: 500px; }
.hero-description strong { color: var(--text); font-weight: 600; }

.hero-visual { display: flex; justify-content: flex-end; }
.profile-frame {
    width: 380px; height: 380px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}
.profile-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    z-index: 1; pointer-events: none;
}
.profile-img {
    width: 100%; height: 100%; object-fit: cover;
    position: relative; z-index: 2;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s ease;
}
.profile-frame:hover .profile-img { filter: grayscale(0%) contrast(1); transform: scale(1.05); }

.partners-section { 
    padding: 60px 0; 
    background: var(--bg); 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.section-label { text-align: center; font-size: 0.75rem; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 15px; font-weight: 600; }

.marquee-wrapper { 
    display: flex; 
    overflow: hidden; 
    user-select: none; 
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-track { 
    display: flex; 
    width: max-content; 
    gap: 0; 
    animation: scroll 20s linear infinite; 
    will-change: transform; 
}

.marquee-group { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    padding-right: 60px; 
    flex-shrink: 0;
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.partner-item { display: flex; align-items: center; flex-shrink: 0; }
.partner-logo { 
    height: 90px; width: auto; 
    filter: none; opacity: 0.8; 
    transition: 0.3s; 
    display: block;
}
.partner-item:hover .partner-logo { opacity: 1; transform: scale(1.1); }

.skills-section { padding: 120px 0; }
.title { font-size: 3rem; margin-bottom: 60px; text-transform: uppercase; }

.skills-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 24px; 
}

.skill-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    padding: 30px 25px; 
    cursor: pointer; 
    transition: all 0.2s ease-out; 
    position: relative; 
    border-radius: 8px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 200px;
    user-select: none;
}

.skill-card:hover { 
    background: #0f0f0f; 
    border-color: rgba(255,255,255,0.3); 
    transform: translateY(-5px);
}
.skill-card:active {
    transform: scale(0.97) translateY(-2px);
    border-color: #fff;
    background: #1a1a1a;
}

.skill-icon-box {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}
.skill-svg { width: 24px; height: 24px; color: var(--text-dim); transition: 0.3s; }
.skill-card:hover .skill-icon-box { background: #fff; }
.skill-card:hover .skill-svg { color: #000; }

.skill-content { display: flex; flex-direction: column; gap: 5px; }
.skill-num { font-size: 0.75rem; color: #555; font-family: var(--font-title); }
.skill-name { font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: #ddd; transition: 0.3s; }
.skill-card:hover .skill-name { color: #fff; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000;
    display: flex; justify-content: center; align-items: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: all 0.8s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.modal-content {
    position: relative; width: 100%; max-width: 500px; background: #111; border: 1px solid rgba(255,255,255,0.2);
    padding: 60px 40px; text-align: left; transform: scale(0.95); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-dim); font-size: 2rem; line-height: 1; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: var(--text); }
.modal-header h3 { font-size: 2rem; margin-bottom: 20px; color: #fff; }
.modal-body p { font-size: 1.1rem; color: #ccc; line-height: 1.6; }

.outline-text2 { color: transparent; -webkit-text-stroke: 1px var(--text); }
.cta-title2 { font-size: clamp(1rem, 7vw, 3rem); line-height: 1; margin-bottom: 50px; }
.cta-box { padding: 100px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-title { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; margin-bottom: 50px; }
.outline-text { color: transparent; -webkit-text-stroke: 1px var(--text); }
.contact-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 80px; }
.contact-link { font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none; position: relative; }
.contact-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--text); transition: width 0.3s; }
.contact-link:hover::after { width: 100%; }
.footer-legal { font-size: 0.8rem; color: var(--text-dim); align-items: center; display: flex; justify-content: center; }

@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-visual { justify-content: center; order: -1; }
    .hero-content { margin-bottom: 20px; }
    .profile-frame { width: 250px; height: 250px; }
    .description-box { border-left: none; padding-left: 0; margin: 0 auto; max-width: 90%; }
    .role-item { font-size: 1.5rem; }
    .main-title { font-size: 5rem; margin: 10px 0; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar { padding: 20px; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    
    .marquee-wrapper {
        max-width: 100%;
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }
    .marquee-group { gap: 40px; padding-right: 40px; }
    .partner-logo { height: 60px; }
    
    .cta-box { padding: 60px 0; }
}

@media (max-width: 480px) {
    .skills-grid { grid-template-columns: 1fr; }
    .profile-frame { width: 220px; height: 220px; }
    .main-title { font-size: 4rem; }
}

.games-section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.game-card {
    height: 400px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.8) grayscale(20%);
}

.game-card:hover .game-img {
    transform: scale(1.08);
    filter: brightness(1) grayscale(0%);
}

.roblox-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #141414;
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    z-index: 5;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(0);
    transition: 0.4s ease;
}

.game-name {
    font-size: 1.4rem;
    color: #fff;
    font-family: var(--font-title);
    text-transform: uppercase;
    line-height: 1;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7289da; 
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
    margin-top: 5px;
    opacity: 0; 
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.discord-btn:hover {
    background: #141414;
}

.roblox-card:hover .discord-btn {
    opacity: 1;
    transform: translateY(0);
}
