

:root{
    --primary:#2563eb;
    --primary-light:#dbeafe;

    --bg:#f8fafc;
    --card:rgba(255,255,255,.75);

    --text:#475569;
    --heading:#0f172a;
    --border:#e2e8f0;

    --shadow:0 15px 35px rgba(0,0,0,.08);
}

.dark-theme{
    --bg:#0f172a;
    --card:rgba(30,41,59,.75);

    --text:#cbd5e1;
    --heading:#ffffff;
    --border:#334155;

    --shadow:0 15px 35px rgba(0,0,0,.25);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    transition:.3s;
    overflow-x:hidden;
}

/* Animated Background */

.bg-gradient{
    position:fixed;
    inset:0;
    z-index:-2;
    background:
    radial-gradient(circle at top left,#93c5fd 0%,transparent 25%),
    radial-gradient(circle at top right,#60a5fa 0%,transparent 25%),
    radial-gradient(circle at bottom left,#bfdbfe 0%,transparent 30%),
    var(--bg);
}

.blob{
    position:fixed;
    width:500px;
    height:500px;
    background:#3b82f6;
    border-radius:50%;
    filter:blur(140px);
    opacity:.18;
    top:-150px;
    right:-150px;
    z-index:-1;
    animation:floatBlob 12s ease-in-out infinite;
}

@keyframes floatBlob{
    50%{
        transform:translate(-50px,50px);
    }
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:70px 0;
}

h1,h2,h3{
    color:var(--heading);
}

h2{
    text-align:center;
    font-size:2rem;
    margin-bottom:40px;
}

.card{
    background:var(--card);
    backdrop-filter:blur(15px);
    border:1px solid var(--border);
    border-radius:18px;
    padding:25px;
    box-shadow:var(--shadow);
    transition:.3s;
}

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

.btn{
    padding:12px 22px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
    display:inline-block;
}

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

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

.btn-outline{
    border:2px solid var(--primary);
    color:var(--primary);
}

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

/* Navbar */

nav{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    background:rgba(255,255,255,.6);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.2);
}

.dark-theme nav{
    background:rgba(15,23,42,.8);
}

.nav-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
}

.logo{
    font-size:1.2rem;
    font-weight:800;
    color:var(--primary);
}

.nav-links{
    display:flex;
    gap:25px;
}

.nav-links a{
    text-decoration:none;
    color:var(--heading);
    font-weight:500;
}

#theme-toggle{
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    cursor:pointer;
    font-size:18px;
    background:var(--card);
    border:1px solid var(--border);
}

/* Hero */

.hero{
    min-height:60vh;
    display:flex;
    align-items:center;
    padding-top:100px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:50px;
    align-items:center;
    text-align:center;
}

.hero h1{
    font-size:4rem;
    margin-bottom:10px;
}

.hero h3{
    color:var(--primary);
    margin-bottom:20px;
    font-size:1.4rem;
}

.hero p{
    font-size:1.05rem;
    margin-bottom:30px;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
}

.profile-img{
    width:300px;
    height:300px;
    object-fit:cover;
    border-radius:50%;
    margin:auto;
    display:block;
    border:6px solid white;
    box-shadow:0 25px 50px rgba(37,99,235,.25);
}

/* Skills */

.skills-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    justify-content:center;
}

.skill{
    padding:10px 18px;
    border-radius:50px;
    background:var(--primary-light);
    color:var(--primary);
    font-weight:600;
    transition: 0.3s ease;
    cursor: pointer;
}

.skill:hover{
    background:var(--primary);
    color:white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37,99,235,0.2);
}

/* Experience */

.timeline{
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline .card{
    position: relative;
    margin-left: 60px;
    padding: 30px;
}

.timeline .card::before{
    content: '';
    position: absolute;
    left: -48px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary-light);
    z-index: 1;
}

.timeline h3{
    margin-bottom:8px;
    font-size: 1.3rem;
}

.timeline span{
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline ul{
    margin-left:20px;
    margin-top:12px;
}

.timeline ul li{
    margin-bottom: 8px;
    color: var(--text);
}

/* Projects */

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.projects-grid ul{
    margin-left:20px;
    margin-top:10px;
}

/* Certificates */

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

.certificate-img{
    width:100%;
    height:200px;
    object-fit:contain;
    border-radius:10px;
    background:transparent;
    margin-bottom:15px;
}

/* Education */

.education-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

/* Contact */

.contact{
    text-align:center;
}

.contact-buttons{
    margin-top:25px;
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

/* Animation */

.fade{
    opacity:0;
    transform:translateY(40px);
    transition:.8s;
}

.fade.show{
    opacity:1;
    transform:translateY(0);
}

/* Footer */

footer{
    text-align:center;
    padding:25px;
    border-top:1px solid var(--border);
}

@media(max-width:900px){

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

    .hero p{
        margin:auto auto 30px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero h1{
        font-size:2.8rem;
    }

    .nav-links{
        display:none;
    }
}

