:root{
    --bg:#071a12;
    --sidebar:#0b2418;
    --card:#123522;
    --hero:rgba(11,36,24,.88);
    --text:#ffffff;
    --text-light:#d1fae5;
    --accent:#22c55e;
    --border:rgba(34,197,94,.35);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.landing-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
    background:#071a12;
}

.overlay{
    position:absolute;
    inset:0;
    background:radial-gradient(circle,rgba(34,197,94,.15),transparent 65%);
}

.crew-wall{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    position:relative;
    z-index:2;
}

.panel{
    width:60px;
    height:210px;
    overflow:hidden;
    background:#000;
    border-radius:8px;
    border:3px solid #052e16;
    cursor:pointer;
    transition:.35s;
}

.panel img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.panel:hover{
    transform:translateY(-8px);
    border-color:#22c55e;
    box-shadow:0 0 18px rgba(34,197,94,.5);
}

.panel:hover img{
    transform:scale(1.08);
}

.center-panel{
    width:180px;
    height:220px;
    border:4px solid #22c55e;
    box-shadow:0 0 20px #22c55e;
}

.center-panel:hover{
    transform:scale(1.04);
}

.intro{
    position:absolute;
    top:35px;
    text-align:center;
    z-index:5;
}

.intro h1{
    font-family:"Orbitron",sans-serif;
    font-size:2.5rem;
    letter-spacing:3px;
    color:#fff;
    text-shadow:0 0 15px rgba(34,197,94,.6);
}

.intro span{
    display:block;
    color:#22c55e;
}

.back-btn{
    position:fixed;
    top:15px;
    right:15px;
    z-index:999;
    padding:8px 15px;
    color:#fff;
    background:#123522;
    border:1px solid #22c55e;
    border-radius:8px;
    text-decoration:none;
    transition:.3s;
}

.back-btn:hover{
    background:#22c55e;
    color:#052e16;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Poppins",sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

img{
    display:block;
    max-width:100%;
}

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:var(--sidebar);
}

::-webkit-scrollbar-thumb{
    background:var(--accent);
    border-radius:20px;
}

.dashboard{
    display:grid;
    grid-template-columns:210px 1fr;
    min-height:100vh;
}

.sidebar{
    background:var(--sidebar);
    border-right:2px solid var(--accent);
    padding:20px 15px;
    height:100vh;
    position:sticky;
    top:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.logo{
    text-align:center;
}

.logo i{
    font-size:30px;
    color:var(--accent);
}

.logo h2{
    margin-top:8px;
    font-family:"Orbitron",sans-serif;
    font-size:20px;
}

.logo span{
    color:var(--accent);
}

.sidebar nav{
    margin-top:20px;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin-bottom:8px;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    border-radius:8px;
    color:var(--text);
    text-decoration:none;
    font-size:14px;
    transition:.3s;
}

.sidebar a:hover,
.sidebar a.active{
    background:var(--accent);
    color:#052e16;
}

.theme-toggle{
    margin:15px 0;
}

#themeBtn{
    width:100%;
    padding:10px;
    border:none;
    border-radius:8px;
    background:var(--accent);
    color:white;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.3s;
}

#themeBtn:hover{
    transform:translateY(-3px);
}

.sidebar-footer{
    text-align:center;
}

.sidebar-footer img{
    width:110px;
    margin:0 auto;
}

.content{
    padding:25px;
}

.hero{
    display:grid;
    grid-template-columns:170px 1fr 150px;
    align-items:center;
    gap:20px;
    padding:25px;
    background:var(--hero);
    border:2px solid rgba(34,197,94,.8);
    border-radius:15px;
}

.hero-image{
    display:flex;
    justify-content:center;
}

.hero-image img{
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--accent);
    box-shadow:0 0 18px rgba(34,197,94,.7);
    transition:.35s;
}

.hero-image img:hover{
    transform:scale(1.05);
}

.hero-text h1{
    font-family:"Orbitron",sans-serif;
    font-size:38px;
    line-height:1.2;
    margin-bottom:10px;
}

.hero-text span{
    display:block;
    color:var(--accent);
}

.hero-text p{
    color:var(--text-light);
    line-height:1.6;
    font-size:14px;
    margin-bottom:18px;
}

.hero-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 22px;
    border:2px solid var(--accent);
    border-radius:8px;
    color:var(--text);
    text-decoration:none;
    transition:.3s;
}

.hero-btn:hover{
    background:var(--accent);
    color:#052e16;
    transform:translateY(-3px);
}

.hero-art{
    display:flex;
    justify-content:center;
}

.hero-art img{
    width:100%;
    max-width:150px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:20px;
}

.card{
    background:var(--card);
    padding:18px;
    border-radius:12px;
    border:1px solid rgba(34,197,94,.3);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
    border-color:var(--accent);
    box-shadow:0 0 18px rgba(34,197,94,.3);
}

.card h2{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    font-family:"Orbitron",sans-serif;
    font-size:18px;
    color:var(--accent);
}

.card p{
    color:var(--text-light);
    line-height:1.6;
    font-size:13px;
}

.info{
    margin-top:12px;
}

.info p{
    display:flex;
    align-items:center;
    gap:8px;
}

.info i{
    color:var(--accent);
}

.hobby-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.hobby-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    border-radius:8px;
    border:1px solid rgba(34,197,94,.2);
    font-size:13px;
    cursor:pointer;
    transition:.3s;
}

.hobby-item > i:first-child{
    color:var(--accent);
}

.hobby-item span{
    flex:1;
}

.hobby-arrow{
    font-size:11px;
    color:var(--accent);
    transition:.3s;
}

.hobby-item:hover{
    background:var(--accent);
    color:#052e16;
    transform:translateX(5px);
}

.hobby-item:hover > i:first-child,
.hobby-item:hover .hobby-arrow{
    color:#052e16;
}

.hobby-item:hover .hobby-arrow{
    transform:translateX(4px);
}

.hobby-info{
    display:none;
    margin-top:10px;
    padding:10px;
    border-radius:8px;
    background:var(--sidebar);
    border:1px solid rgba(34,197,94,.3);
    color:var(--text-light);
    font-size:13px;
    line-height:1.5;
}

.hobby-info.show{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.hobby-info i{
    color:var(--accent);
    margin-top:2px;
}

.games-card{
    grid-column:span 2;
}

.game-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.game{
    overflow:hidden;
    background:var(--sidebar);
    border-radius:10px;
    border:1px solid rgba(34,197,94,.25);
    transition:.3s;
}

.game:hover{
    transform:translateY(-5px);
    border-color:var(--accent);
    box-shadow:0 0 15px rgba(34,197,94,.35);
}

.game img{
    width:100%;
    height:130px;
    object-fit:contain;
    background:#071a12;
    transition:.3s;
}

.game:hover img{
    transform:scale(1.03);
}
.game p{
    padding:10px;
    text-align:center;
    color:var(--text);
    font-size:13px;
    font-weight:600;
}

.gallery-card{
    margin-top:20px;
    padding:20px;
    background:var(--card);
    border-radius:15px;
    border:1px solid rgba(34,197,94,.3);
}

.gallery-card h2{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
    color:var(--accent);
    font-family:"Orbitron",sans-serif;
    font-size:20px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.gallery-item{
    height:200px;
    overflow:hidden;
    border-radius:10px;
    border:1px solid rgba(34,197,94,.25);
    background:#071a12;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
}

.gallery-item img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:5px;
    transition:.3s;
}

.gallery-item:hover{
    transform:translateY(-5px);
    border-color:var(--accent);
    box-shadow:0 0 15px rgba(34,197,94,.35);
}

.gallery-item:hover img{
    transform:scale(1.03);
}

.contact-card{
    margin-top:20px;
    padding:20px;
    background:var(--card);
    border-radius:15px;
    border:1px solid rgba(34,197,94,.3);
}

.contact-card h2{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
    color:var(--accent);
    font-family:"Orbitron",sans-serif;
    font-size:20px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.contact-grid div{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    background:var(--sidebar);
    border-radius:8px;
    border:1px solid rgba(34,197,94,.2);
    font-size:13px;
    transition:.3s;
}

.contact-grid div:hover{
    transform:translateY(-4px);
    border-color:var(--accent);
}

.contact-grid i{
    color:var(--accent);
    font-size:18px;
}

.contact-grid a{
    color:var(--text);
    text-decoration:none;
    transition:.3s;
}

.contact-grid a:hover{
    color:var(--accent);
}

footer{
    margin-top:20px;
    padding:15px;
    text-align:center;
    color:#86efac;
    font-size:13px;
    border-top:1px solid rgba(34,197,94,.2);
}
@media(max-width:1200px){
    .hero{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-image{
        justify-content:center;
    }

    .hero-art{
        display:none;
    }
}

@media(max-width:900px){
    .dashboard{
        grid-template-columns:1fr;
    }

    .sidebar{
        position:relative;
        height:auto;
        border-right:none;
        border-bottom:2px solid var(--accent);
    }

    .sidebar ul{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:8px;
    }

    .content{
        padding:18px;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .games-card{
        grid-column:auto;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .hero{
        padding:20px 12px;
    }

    .hero-text h1{
        font-size:28px;
    }

    .hero-btn{
        width:100%;
    }

    .game-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-item{
        height:150px;
    }
}

@media(max-width:480px){
    .sidebar{
        padding:15px;
    }

    .sidebar ul{
        grid-template-columns:1fr;
    }

    .content{
        padding:12px;
    }

    .card{
        padding:15px;
    }

    .contact-card{
        padding:15px;
    }

    .game-grid{
        grid-template-columns:1fr;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .gallery-item{
        height:200px;
    }
}

body.light-mode{
    --bg:#f0fdf4;
    --sidebar:#ffffff;
    --card:#ffffff;
    --hero:#ffffff;
    --text:#111827;
    --text-light:#374151;
    --accent:#16a34a;
}

body.light-mode .sidebar a{
    color:#111827;
}

body.light-mode .sidebar a:hover,
body.light-mode .sidebar a.active{
    background:var(--accent);
    color:white;
}

body.light-mode .hero,
body.light-mode .card,
body.light-mode .contact-card,
body.light-mode .gallery-card{
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

body.light-mode .gallery-modal{
    background:rgba(255,255,255,.85);
}

.hobby-info{
    display:none;
    margin-top:12px;
    padding:10px;
    gap:12px;
    align-items:center;
    background:var(--sidebar);
    border:1px solid rgba(34,197,94,.3);
    border-radius:8px;
}

.hobby-info.show{
    display:flex;
}

.hobby-info img{
    width:120px;
    height:90px;
    object-fit:cover;
    border-radius:8px;
    border:2px solid var(--accent);
}

.hobby-info h3{
    color:var(--accent);
    font-size:15px;
    margin-bottom:5px;
}

.hobby-info p{
    color:var(--text-light);
    font-size:12px;
    line-height:1.5;
}

@media(max-width:480px){
    .hobby-info{
        flex-direction:column;
        align-items:flex-start;
    }

    .hobby-info img{
        width:100%;
        height:180px;
    }
}
/* Gallery Preview Modal */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
}