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

html{
    scroll-behavior:smooth;
}

body{
    background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    color:white;
}

/* NAVBAR */


nav h2{
    font-weight:700;
    letter-spacing:2px;
}

nav{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    padding:15px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(10px);
    background:rgba(0,0,0,0.6);
    z-index:1000;
}

nav ul{
    display:flex;
    gap:30px;
    list-style:none;
}

nav ul li a{
    text-decoration:none;
    color:white;
    transition:0.3s;
}

nav ul li a:hover{
    color:cyan;
}

/* DROPDOWN */
.dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:30px;
    left:0;
    background:#111;
    padding:10px 0;
    border-radius:8px;
    display:none;
    flex-direction:column;
    min-width:160px;
}

.dropdown-menu li{
    padding:8px 15px;
}

.dropdown-menu li a{
    color:white;
    display:block;
}

.dropdown-menu li a:hover{
    background:rgba(0,255,255,0.2);
}

.dropdown:hover .dropdown-menu{
    display:flex;
}




/* HERO */
.hero{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    text-align:center;
    padding-top:80px;
}

.hero h1{
    font-size:50px;
    background:linear-gradient(90deg,cyan,white,cyan);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:fadeIn 2s ease forwards;
}

.hero h3{
    margin-top:15px;
    font-weight:300;
    animation:fadeIn 3s ease forwards;
}

.hero button{
    margin-top:25px;
    padding:12px 30px;
    border:none;
    border-radius:25px;
    background:linear-gradient(45deg,cyan,blue);
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.hero button:hover{
    transform:scale(1.1);
}

/* ABOUT */
.about{
    padding:80px 10%;
    display:flex;
    gap:50px;
    flex-wrap:wrap;
    align-items:center;
}

.about img{
    width:300px;
    border-radius:50%;
    box-shadow:0 0 25px cyan;
    animation:float 4s ease-in-out infinite;
}

.about-text{
    flex:1;
}

.about-text h2{
    margin-bottom:15px;
}

.about-text p{
    color:#ccc;
    line-height:1.6;
}

/* SKILLS */
.skills{
    padding:60px 10%;
    text-align:center;
}

.skill-bars{
    margin-top:30px;
}

.skill{
    margin:15px 0;
}

.bar{
    height:10px;
    background:#444;
    border-radius:10px;
    overflow:hidden;
}

.progress{
    height:10px;
    background:cyan;
    width:0;
    animation:load 2s forwards;
}

/* FOOTER */
footer{
    text-align:center;
    padding:20px;
    background:#000;
    margin-top:40px;
}

/* ANIMATIONS */
@keyframes fadeIn{
    from{opacity:0; transform:translateY(30px);}
    to{opacity:1; transform:translateY(0);}
}

@keyframes float{
    0%{transform:translateY(0px);}
    50%{transform:translateY(-20px);}
    100%{transform:translateY(0px);}
}

@keyframes load{
    from{width:0;}
    to{width:80%;}
}

/* RESPONSIVE */
@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:10px;
    }

    .hero h1{
        font-size:32px;
    }

    .about{
        flex-direction:column;
        text-align:center;
    }

}
