/* Google Fonts */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    scroll-behavior: smooth;
}

/* Navbar */
header{
    position: fixed;
    width: 100%;
    background: #58aec2;
    color: #fff;
    z-index: 1000;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.navbar .nav-links{
    list-style: none;
    display: flex;
}

.navbar .nav-links li{
    margin-left: 2rem;
}

.navbar .nav-links a{
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}
header:hover{
    background-color:#0e525b;
}

.navbar .nav-links li:hover{
    color: #00bcd4;
    background-color: #ddd;
}

/* Hero Section */
.hero{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    background: linear-gradient(135deg,#00bcd4,#8e44ad);
    color: #fff;
    min-height: 100vh;
    animation: fadeIn 2s ease-in-out;
}

.hero-text h1{
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1.5s ease forwards;
}

.hero-text p{
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 2s ease forwards;
}

.btn{
    background: #fff;
    color: #00bcd4;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover{
    background: #00bcd4;
    color: #fff;
}

/* Hero Image */
.hero-img img{
    width: 300px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

/* About Section */
.about{
    padding: 100px 5%;
    text-align: center;
}

.about h2{
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about p{
    font-size: 1.1rem;
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

/* Skills Section */
.skills{
    padding: 100px 5%;
    background: #f5f5f5;
    text-align: center;
}

.skills h2{
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.skill-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill{
    width: 250px;
}

.skill h3{
    margin-bottom: 0.5rem;
}

.skill-bar{
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 30px;
    overflow: hidden;
}

.skill-fill{
    height: 100%;
    width: 0;
    background: #00bcd4;
    border-radius: 30px;
    animation: fillSkill 2s forwards;
}

.skill-fill.css{
    background: #8e44ad;
}

.skill-fill.js{
    background: #f39c12;
}

/* Contact Section */
.contact{
    padding: 100px 5%;
    text-align: center;
}

.contact h2{
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-card{
    background: #111;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.contact-card:hover{
    background: #00bcd4;
    color: #fff;
    transform: translateY(-5px);
}

/* Footer */
footer{
    text-align: center;
    padding: 1.5rem;
    background: #111;
    color: #fff;
}

/* Animations */
@keyframes float{
    0%,100%{ transform: translateY(0);}
    50%{ transform: translateY(-20px);}
}

@keyframes slideInLeft{
    0%{opacity:0; transform: translateX(-50px);}
    100%{opacity:1; transform: translateX(0);}
}

@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes fillSkill{
    from{width:0;}
    to{width:80%;}
}

/* Responsive */
@media(max-width: 768px){
    .hero{
        flex-direction: column;
        text-align: center;
    }
    .hero-img img{
        margin-top: 2rem;
    }
    .skill-container{
        flex-direction: column;
        gap: 2rem;
    }
}
