*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#0f172a;
    color:white;
    line-height:1.7;
    overflow-x:hidden;
}

body::before{
    content:"";

    position:fixed;
    inset:0;

    background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,.15), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(139,92,246,.15), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(59,130,246,.12), transparent 35%);

    z-index:-1;
}

nav{
    position:fixed;
    top:0;
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 10%;

    background:rgba(15,23,42,.85);
    backdrop-filter:blur(12px);

    z-index:1000;
}

.logo{
    font-size:1.4rem;
    font-weight:700;
    color:#38bdf8;
}

nav ul{
    display:flex;
    gap:30px;
    list-style:none;
}

nav a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

.hero{
    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:20px;

    position:relative;
}

.hero-glow{
    position:absolute;

    width:500px;
    height:500px;

    background:#38bdf8;

    border-radius:50%;

    filter:blur(200px);

    opacity:.08;

    z-index:-1;
}

.hero img{
    width:180px;
    height:180px;

    object-fit:cover;

    border-radius:50%;

    border:4px solid #38bdf8;

    margin-bottom:25px;

    box-shadow:
        0 0 20px rgba(56,189,248,.5),
        0 0 60px rgba(56,189,248,.3);

    animation:float 4s ease-in-out infinite;
}

.hero h1{
    font-size:clamp(3rem,6vw,5rem);
}

.hero-description{
    max-width:700px;

    margin-top:20px;

    color:#94a3b8;

    font-size:1.15rem;
}

.hero-buttons{
    display:flex;
    gap:15px;

    margin-top:30px;
}

.btn,
.btn-outline{
    padding:14px 28px;

    border-radius:12px;

    text-decoration:none;

    transition:.3s;
}

.btn{
    background:#38bdf8;
    color:#0f172a;
    font-weight:700;
}

.btn:hover{
    transform:translateY(-3px);
}

.btn-outline{
    border:1px solid #38bdf8;
    color:#38bdf8;
}

.btn-outline:hover{
    background:#38bdf8;
    color:#0f172a;
}

.hero-stats{
    display:flex;
    gap:60px;

    margin-top:50px;
}

.hero-stats div{
    text-align:center;
}

.hero-stats h3{
    color:#38bdf8;
    font-size:2rem;
}

.hero-stats span{
    color:#94a3b8;
}

section{
    max-width:1200px;
    margin:auto;
    padding:100px 20px;
}

section h2{
    text-align:center;
    margin-bottom:30px;

    font-size:2.2rem;
}

.section-text{
    max-width:800px;

    margin:auto;

    text-align:center;

    color:#cbd5e1;
}

.skills-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap:25px;
}

.skill-card{
    background:rgba(30,41,59,.65);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:
        0 10px 25px rgba(0,0,0,.25);

    transition:.3s;
}

.skill-card:hover{
    transform:translateY(-10px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.35);
}

.skill-card i{
    font-size:2.5rem;

    color:#38bdf8;

    margin-bottom:15px;
}

.skill-card h3{
    color:#38bdf8;

    margin-bottom:10px;
}

.project-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:25px;
}

.project-card{
    background:rgba(30,41,59,.65);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    box-shadow:
        0 10px 25px rgba(0,0,0,.25);

    transition:.3s;
}

.project-card:hover{
    transform:translateY(-10px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.35);
}

.project-card img{
    width:100%;
    height:220px;

    object-fit:cover;
}

.project-content{
    padding:25px;
}

.project-content h3{
    margin-bottom:10px;
}

.project-content p{
    color:#cbd5e1;
}

.project-tags{
    display:flex;
    flex-wrap:wrap;

    gap:10px;

    margin-top:20px;
}

.project-tags span{

    padding:6px 12px;

    border-radius:999px;

    background:#0f172a;

    border:1px solid #334155;

    color:white;

    font-size:.85rem;
}

body.light .project-tags span{

    background:#e2e8f0;

    border:1px solid #cbd5e1;

    color:#0f172a;
}

.socials{
    display:flex;

    justify-content:center;

    gap:25px;

    margin-top:30px;
}

.socials a{
    color:#38bdf8;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.socials a:hover{
    transform:translateY(-2px);
}

footer{
    padding:40px;

    text-align:center;

    color:#94a3b8;

    border-top:1px solid #1e293b;
}

.hidden{
    opacity:0;

    transform:translateY(50px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.show{
    opacity:1;

    transform:translateY(0);
}

/* MODAL */

.modal{
    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.75);

    justify-content:center;
    align-items:center;

    z-index:3000;
}

.modal-content{
    width:90%;
    max-width:600px;

    background:#1e293b;

    border-radius:20px;

    padding:30px;

    position:relative;

    animation:modalShow .25s ease;
}

.modal-content h2{
    margin-bottom:15px;
}

.modal-content p{
    color:#cbd5e1;

    margin-bottom:25px;
}

.close-modal{
    position:absolute;

    top:15px;
    right:20px;

    cursor:pointer;

    font-size:2rem;
}

@keyframes modalShow{

    from{
        opacity:0;
        transform:scale(.9);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }

}

@media(max-width:768px){

    nav{
        padding:15px 5%;
    }

    nav ul{
        gap:15px;

        font-size:.9rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-stats{
        gap:25px;

        flex-wrap:wrap;
    }

    .hero img{
        width:150px;
        height:150px;
    }

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

}

.menu-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.menu-toggle span{
    width:25px;
    height:3px;
    background:white;
    border-radius:10px;
}

@media(max-width:768px){

    .menu-toggle{
        display:flex;
    }

    .nav-links{
        position:absolute;

        top:70px;
        left:0;

        width:100%;

        background:#0f172a;

        flex-direction:column;

        text-align:center;

        padding:20px 0;

        display:none;
    }

    .nav-links.active{
        display:flex;
    }
}

.hero-background{

    position:absolute;

    inset:0;

    background-image:
        url("assets/notFoud404.jpg");

    background-size:cover;
    background-position:center;

    opacity:.08;

    filter:blur(4px);

    z-index:-2;
}

.timeline{

    max-width:800px;

    margin:auto;

    position:relative;
}

.timeline::before{

    content:"";

    position:absolute;

    left:20px;

    top:0;
    bottom:0;

    width:3px;

    background:#38bdf8;
}

.timeline-item{

    margin-left:60px;

    margin-bottom:40px;

    position:relative;
}

.timeline-item::before{

    content:"";

    width:16px;
    height:16px;

    border-radius:50%;

    background:#38bdf8;

    position:absolute;

    left:-48px;
    top:8px;
}

.timeline-item h3{
    color:#38bdf8;
}

.github-stats{

    display:flex;

    gap:20px;

    justify-content:center;

    flex-wrap:wrap;
}

.github-stats img{

    max-width:500px;

    width:100%;

    border-radius:15px;
}

#themeToggle{

    background:none;
    border:none;

    color:white;

    font-size:1.2rem;

    cursor:pointer;
}

body.light{

    background:#f8fafc;

    color:#0f172a;
}

body.light nav{
    background:rgba(255,255,255,.8);
}

body.light .skill-card,
body.light .project-card{
    background:white;
    color:#0f172a;
}

body.light .project-content p,
body.light .section-text{
    color:#475569;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:20px;
}