*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, sans-serif;
    background:#f8fafc;
}

/* Navbar */

nav{
    background:black;
    color:white;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav h2{
    font-size:32px;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav ul li a{
    text-decoration:none;
    color:white;
    font-size:18px;
    transition:0.3s;
}

nav ul li a:hover{
    color:lightblue;
}

/* Home Section */

.home{
    height:90vh;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;
}

/* Profile Image */

.profile{
    width:180px;
    height:180px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:20px;

    box-shadow:0 4px 15px rgba(0,0,0,0.2);
}

/* Home Text */

.home h1{
    font-size:55px;
    margin-bottom:15px;
}

.home p{
    font-size:24px;
    color:#444;
    margin-bottom:25px;
}

/* Button */

button{
    padding:15px 30px;

    font-size:18px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:black;
    color:white;

    transition:0.3s;
}

button:hover{
    transform:scale(1.05);
}

/* About Section */

.about{
    background:white;

    padding:100px 80px;

    text-align:center;
}

.about h2{
    font-size:40px;
    margin-bottom:25px;
}

.about p{
    max-width:800px;

    margin:auto;

    font-size:22px;

    line-height:1.8;

    color:#555;
}

.skills{
    padding:100px 80px;
    text-align:center;
    background:#f5f5f5;
}

.skills h2{
    font-size:40px;
    margin-bottom:50px;
}

.skills-container{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
}

.skill-card{
    background:white;
    width:250px;
    padding:25px;
    border-radius:15px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    transition:0.3s;
}

.skill-card:hover,
.project-card:hover{
    transform:translateY(-10px) scale(1.05);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.skill-card h3{
    margin-bottom:10px;
}


.project-card:hover{
    transform:translateY(-10px);
}

.project-card h3{
    margin-bottom:15px;
}
.contact{
    padding:100px 80px;
    text-align:center;
    background:#f5f5f5;
}

.contact h2{
    font-size:40px;
    margin-bottom:40px;
}

.contact-info{
    font-size:22px;
    line-height:2;
}
footer{
    background:black;
    color:white;
    text-align:center;
    padding:20px;
}
@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:15px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    .home h1{
        font-size:35px;
    }

    .home p{
        font-size:18px;
    }

    .profile{
        width:140px;
        height:140px;
    }

    .skills-container,
    .projects-container{
        flex-direction:column;
        align-items:center;
    }
}
.dark-mode{
    background:#121212;
    color:white;
}

.dark-mode .about,
.dark-mode .projects{
    background:#1e1e1e;
    color:white;
}

.dark-mode .skills,
.dark-mode .contact{
    background:#2a2a2a;
    color:white;
}

.dark-mode .skill-card,
.dark-mode .project-card{
    background:#333;
    color:white;
}

.dark-mode footer{
    background:black;
    color:white;
}
#darkModeBtn{
    padding:10px 15px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:white;
    color:black;
}
#typing-text{
    font-size:24px;
    color:#444;
    margin-bottom:25px;
    border-right:3px solid black;
    padding-right:5px;
    white-space:nowrap;
    overflow:hidden;
}
.dark-mode #typing-text{
    color:white;
    border-right:3px solid white;
}
nav ul li a.active{
    color:lightblue;
}
.hidden{
    opacity:0;
    transform:translateY(50px);
    transition:all 1s;
}

.show{
    opacity:1;
    transform:translateY(0);
}
#topBtn{
    position:fixed;
    bottom:20px;
    right:20px;

    padding:12px 18px;

    border:none;
    border-radius:50%;

    cursor:pointer;

    display:none;

    font-size:20px;
}

.project-card {
    width: 350px;
    min-height: 200px;
}
.skill-progress{
    max-width:700px;
    margin:60px auto;
    text-align:left;
}

.skill-progress h3{
    margin-bottom:8px;
}

.progress-bar{
    width:100%;
    height:12px;
    background:#e5e7eb;
    border-radius:50px;
    overflow:hidden;
    margin-bottom:25px;
}

.progress{
    height:100%;
    border-radius:50px;
    background:linear-gradient(90deg,#111,#555);
}

.html{width:90%;}
.css{width:85%;}
.js{width:75%;}
.java{width:70%;}

.contact-form{
    max-width:700px;
    margin:auto;
    padding:40px;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    gap:15px;
}
.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: black;
    color: white;
    cursor: pointer;
}
body {
    background: #f8fafc;
}

.about,
.skills,
.projects,
.contact {
    background: white;
}

.skill-progress{
    max-width:700px;
    margin:60px auto;
    text-align:left;
}

.skill-progress h3{
    margin-bottom:8px;
}

.progress-bar{
    width:100%;
    height:12px;
    background:#e5e7eb;
    border-radius:50px;
    overflow:hidden;
    margin-bottom:25px;
}

.progress{
    height:100%;
    border-radius:50px;
    background:linear-gradient(90deg,#000,#555);
}

.html{width:90%;}
.css{width:85%;}
.js{width:75%;}
.java{width:70%;}

.contact-form{
    max-width:700px;
    margin:auto;
    padding:40px;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    gap:15px;
}
.projects-container{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:40px;
}
.project-card{
    width:350px;
    padding:30px;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}
.projects {
    padding: 80px 20px;
    text-align: center;
}
.projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
