:root{
    --bg:#0f172a;
    --bg-secondary:#1e293b;
    --card:#162235;
    --text:#f8fafc;
    --muted:#94a3b8;
    --accent:#3b82f6;
    --border:#334155;
}

.light{
    --bg:#f8fafc;
    --bg-secondary:#ffffff;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#475569;
    --accent:#2563eb;
    --border:#cbd5e1;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:.3s;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,#2563eb22,transparent 40%),
    radial-gradient(circle at bottom right,#7c3aed22,transparent 40%);
    z-index:-1;
}

.container{
    width:min(1100px,90%);
    margin:auto;
}

header{
    position:sticky;
    top:0;
    backdrop-filter:blur(12px);
    background:rgba(15,23,42,.7);
    padding:1rem 0;
    z-index:100;
}

.light header{
    background:rgba(255,255,255,.7);
}

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

.logo{
    font-weight:800;
}

nav ul{
    display:flex;
    gap:1.5rem;
    list-style:none;
}

nav a{
    text-decoration:none;
    color:var(--muted);
}

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

.toggle{
    cursor:pointer;
    border:1px solid var(--border);
    background:var(--bg-secondary);
    color:var(--text);
    padding:.75rem 1rem;
    border-radius:10px;
}

.hero{
    min-height:90vh;
    display:flex;
    align-items:center;
}

.hero-grid{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:3rem;
    align-items:center;
    width:100%;
}

.profile-photo{
    width:250px;
    height:250px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid var(--accent);
}

h1{
    font-size:clamp(3rem,8vw,5rem);
    line-height:1;
}

.subtitle{
    margin-top:1rem;
    color:var(--muted);
    font-size:1.2rem;
}

.pill-container{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
    margin:1.5rem 0;
}

.skill-pill{
    padding:.6rem 1rem;
    border-radius:999px;
    border:1px solid var(--border);
    background:var(--bg-secondary);
}

.hero p{
    max-width:700px;
    color:var(--muted);
    margin-bottom:2rem;
    line-height:1.8;
}

section{
    padding:5rem 0;
}

.section-title{
    font-size:2rem;
    margin-bottom:2rem;
}

.large-text{
    max-width:850px;
    line-height:1.8;
    color:var(--muted);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:1.5rem;
}

.card{
    background:var(--card);
    border:1px solid var(--border);
    padding:1.5rem;
    border-radius:18px;
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    margin-bottom:.75rem;
}

.card p{
    color:var(--muted);
}

.cert-logo{
    width:80px;
    height:80px;
    object-fit:contain;
    margin-bottom:1rem;
}

.timeline{
    border-left:2px solid var(--border);
    padding-left:2rem;
}

.timeline-item{
    margin-bottom:2rem;
}

.timeline-item span{
    color:var(--muted);
}

.buttons{
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
}

.btn{
    text-decoration:none;
    padding:14px 24px;
    border-radius:12px;
    font-weight:600;
}

.btn-primary{
    background:var(--accent);
    color:white;
}

.btn-secondary{
    border:1px solid var(--border);
    color:var(--text);
}

footer{
    text-align:center;
    padding:4rem 0;
    border-top:1px solid var(--border);
    color:var(--muted);
}

footer p{
    margin:.5rem 0;
}

/* ---------- Mobile Navigation ---------- */

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:var(--text);
    font-size:2rem;
    cursor:pointer;
}

.mobile-theme{
    display:none;
}

.desktop-theme{
    display:block;
}

@media(max-width:768px){

    nav{
        position:relative;
    }

    .menu-toggle{
        display:block;
    }

    .desktop-theme{
        display:none;
    }

    .mobile-theme{
        display:block;
        list-style:none;
    }

    nav ul{

        display:none;

        position:absolute;

        top:70px;

        left:0;

        right:0;

        background:var(--bg-secondary);

        border:1px solid var(--border);

        border-radius:16px;

        padding:20px;

        flex-direction:column;

        gap:18px;

        text-align:center;

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

    }

    nav ul.show{
        display:flex;
    }

    nav ul li{
        list-style:none;
    }

    nav ul a{
        display:block;
        padding:8px;
    }

    .hero{
        min-height:auto;
        padding:4rem 0;
    }

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .profile-photo{
        width:180px;
        height:180px;
        margin:auto;
    }

    .pill-container{
        justify-content:center;
    }

    .buttons{
        flex-direction:column;
    }

    .btn{
        text-align:center;
    }

}
}