:root{
    --bg:#0d131d;
    --card:#141d2a;
    --text:#edf2f7;
    --muted:#9ca7b5;
    --accent:#ff6b6b;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:Arial,sans-serif;
}

.wrapper{
    width:min(1100px,92%);
    margin:auto;
}

#loader{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--bg);
    opacity:1;
    visibility:visible;
    transition:opacity .5s ease,visibility .5s ease;
}

#loader.loaded{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.loader-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.loader-content img{
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:16px;
    animation:loader-pulse 1.2s ease-in-out infinite;
}

.loader-content h2{
    margin:16px 0 20px;
    font-size:24px;
    color:var(--text);
}

.loader-bar{
    width:180px;
    height:4px;
    overflow:hidden;
    border-radius:10px;
    background:rgba(255,255,255,.1);
}

.loader-progress{
    width:40%;
    height:100%;
    border-radius:10px;
    background:var(--accent);
    animation:loader-progress 1.2s ease-in-out infinite;
}

@keyframes loader-pulse{
    0%,100%{
        transform:scale(1);
        opacity:.75;
    }

    50%{
        transform:scale(1.08);
        opacity:1;
    }
}

@keyframes loader-progress{
    0%{
        transform:translateX(-150%);
    }

    100%{
        transform:translateX(450%);
    }
}

header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(13,19,29,.92);
    border-bottom:1px solid rgba(255,255,255,.05);
    backdrop-filter:blur(10px);
}

header .wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    text-decoration:none;
    font-weight:bold;
}

.logo img{
    width:42px;
    height:42px;
    border-radius:8px;
}

nav{
    display:flex;
    gap:20px;
}

nav a{
    color:var(--muted);
    text-decoration:none;
    transition:color .2s ease;
}

nav a:hover{
    color:var(--text);
}

.discord{
    text-decoration:none;
    color:white;
    background:#5865F2;
    padding:10px 14px;
    border-radius:8px;
    transition:transform .2s ease,background .2s ease;
}

.discord:hover{
    transform:translateY(-2px);
    background:#4752c4;
}

.hero{
    padding:60px 0;
}

.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
}

.intro{
    flex:1;
}

.intro h1{
    margin:0 0 12px;
    font-size:42px;
}

.intro p{
    color:var(--muted);
    margin-bottom:24px;
    line-height:1.6;
}

.button{
    display:inline-block;
    text-decoration:none;
    color:#111;
    background:var(--accent);
    padding:12px 18px;
    border-radius:8px;
    font-weight:bold;
    transition:transform .2s ease,filter .2s ease;
}

.button:hover{
    transform:translateY(-2px);
    filter:brightness(1.1);
}

.logo-area img{
    width:150px;
    border-radius:14px;
}

.portfolio{
    padding-bottom:60px;
}

.portfolio h2{
    margin-bottom:20px;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.gallery img{
    width:100%;
    height:190px;
    object-fit:cover;
    border-radius:10px;
    cursor:pointer;
    transition:transform .15s ease;
}

.gallery img:hover{
    transform:translateY(-4px);
}

.lightbox{
    position:fixed;
    inset:0;
    z-index:1000;
    background:rgba(0,0,0,.85);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:opacity .15s ease;
}

.lightbox[aria-hidden="false"]{
    opacity:1;
    pointer-events:auto;
}

.lightbox img{
    max-width:90%;
    max-height:85vh;
    border-radius:10px;
}

#close-lightbox{
    position:absolute;
    top:20px;
    right:20px;
    font-size:22px;
    border:none;
    background:none;
    color:white;
    cursor:pointer;
}

footer{
    border-top:1px solid rgba(255,255,255,.05);
    padding:20px 0;
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:10px;
}

.footer-brand img{
    width:34px;
    height:34px;
    border-radius:8px;
}

@media(max-width:850px){
    .hero-content{
        flex-direction:column;
        text-align:center;
    }

    .gallery{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:550px){
    nav{
        display:none;
    }

    .gallery{
        grid-template-columns:1fr;
    }

    .intro h1{
        font-size:32px;
    }

    .logo-area img{
        width:120px;
    }

    .discord{
        padding:9px 12px;
    }
}
