
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#2563eb;
    --secondary:#38bdf8;
    --dark:#0f172a;
    --light:#ffffff;
    --gray:#f5f7fb;
    --text:#333333;
    --shadow:0 10px 30px rgba(0,0,0,.1);
    --radius:20px;
}

html{
    scroll-behavior:smooth;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:var(--gray);
    color:var(--text);
    line-height:1.7;
    overflow-x:hidden;
    transition:all .3s ease;
}

/* Scrollbar */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#e5e7eb;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

/* Navbar */

.navbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:80px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    background:rgba(15,23,42,.95);
    backdrop-filter:blur(12px);
    z-index:1000;
}

.logo{
    color:white;
    font-size:30px;
    font-weight:700;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

.nav-links a:hover,
.nav-links a.active{
    color:var(--secondary);
}

#darkModeBtn{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:var(--secondary);
    cursor:pointer;
    font-size:18px;
}

/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:linear-gradient(
    135deg,
    #0f172a,
    #1e3a8a,
    #2563eb
    );
    color:white;
    padding:120px 20px;
}

.hero-content{
    max-width:900px;
}

.profile-img{
    width:250px;
    height:250px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid white;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
    transition:.4s;
}

.profile-img:hover{
    transform:scale(1.05);
}

.hero h1{
    font-size:clamp(2.5rem,6vw,4.5rem);
    margin-top:20px;
}

.hero h2{
    margin-top:15px;
    color:var(--secondary);
    min-height:50px;
}

.hero p{
    max-width:700px;
    margin:20px auto;
    font-size:18px;
}

.hero-buttons{
    margin-top:30px;
}

.btn{
    display:inline-block;
    padding:14px 30px;
    margin:10px;
    text-decoration:none;
    border-radius:12px;
    background:var(--secondary);
    color:white;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
}

.secondary{
    background:white;
    color:var(--primary);
}

/* General Sections */

section{
    padding:100px 10%;
}

.section-title{
    text-align:center;
    font-size:42px;
    margin-bottom:50px;
    color:var(--dark);
}

/* Cards */

.about-card,
.education-card,
.service-card,
.project-card,
.stat-card{
    background:white;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:.4s;
}

.about-card,
.education-card{
    padding:40px;
}

.service-card,
.project-card{
    padding:30px;
}

.service-card:hover,
.project-card:hover,
.stat-card:hover{
    transform:translateY(-10px);
}

/* Stats */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    padding:60px 10%;
}

.stat-card{
    text-align:center;
    padding:35px;
}

.stat-card h2{
    font-size:42px;
    color:var(--primary);
}

/* Skills */

.skill{
    margin-bottom:25px;
}

.skill p{
    font-weight:600;
    margin-bottom:8px;
}

.progress{
    width:100%;
    height:14px;
    background:#ddd;
    border-radius:50px;
    overflow:hidden;
}

.progress div{
    height:100%;
    border-radius:50px;
}

.html{
    width:95%;
    background:#e34f26;
}

.css{
    width:90%;
    background:#264de4;
}

.js{
    width:85%;
    background:#f7df1e;
}

.python{
    width:88%;
    background:#3776ab;
}

.java{
    width:80%;
    background:#f89820;
}

/* Services */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

/* Projects */

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.project-card h3{
    color:var(--primary);
    margin-bottom:10px;
}

/* Contact */

.contact-form{
    max-width:700px;
    margin:auto;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:1px solid #d1d5db;
    border-radius:12px;
    outline:none;
    transition:.3s;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 10px rgba(37,99,235,.2);
}

.contact-form button{
    width:100%;
    padding:15px;
    border:none;
    background:var(--primary);
    color:white;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
}

/* Footer */

footer{
    background:var(--dark);
    color:white;
    text-align:center;
    padding:40px 20px;
}

/* Back To Top */

#topBtn{
    position:fixed;
    right:20px;
    bottom:20px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:white;
    cursor:pointer;
    display:none;
    font-size:20px;
    box-shadow:var(--shadow);
}

/* Dark Mode */

.dark-mode{
    background:#121212;
    color:white;
}

.dark-mode .section-title{
    color:white;
}

.dark-mode .about-card,
.dark-mode .education-card,
.dark-mode .service-card,
.dark-mode .project-card,
.dark-mode .stat-card{
    background:#1f2937;
    color:white;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea{
    background:#1f2937;
    color:white;
    border:1px solid #374151;
}

/* Responsive */

@media(max-width:992px){

    .navbar{
        padding:0 5%;
    }

    .nav-links{
        gap:15px;
    }

}

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        height:auto;
        padding:15px;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        padding-top:180px;
    }

    .profile-img{
        width:180px;
        height:180px;
    }

    .section-title{
        font-size:32px;
    }

    section{
        padding:80px 6%;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:15px;
    }

    .btn{
        display:block;
        margin:10px auto;
        width:220px;
    }

}