* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: segoe 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    scroll-behavior: smooth;
}
.container{
    width: 90%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}
header{
    background: #0052cc;
    padding: 1rem 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo{
    font-size: 1.5rem;
    font-weight: bold;
    display: left;
    left: 30%;
}
.logo h1{
    text-align: left;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}



nav ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

nav ul li a::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}
/* original code 
nav ul li a{
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}
nav ul li a::after{
    content: '';
    height: 2px;
    width: 0;
    background: #36b37e;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s ease;
}
nav ul li a:hover::after{
    width: 100%;
} */
.hero{
    background: #f4f5f7;
    text-align: center;
    padding: 5rem 1rem;
}
.hero h2{
    font-size: 2.5rem;
    color: #0052cc;
    animation: slideInDown 1s ease;
}
.hero .btn{
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: #36b37e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero .btn:hover{
    background: #2e9c6b;
    transform: scale(1.05);
}
section{
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(60px);
    animation: fadeUp 1s forwards;
}

section:nth-of-type(2){animation-delay: 0.3s;}
section:nth-of-type(3){animation-delay: 0.6s;}
section:nth-of-type(4){animation-delay: 0.9s;} 
h2{
    text-align: center;
    margin-bottom: 2rem;
    color: #0052cc;
}
.project a{
    display: inline-block;
    margin-top: 0.5rem;
    color: #0052cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.project a:hover{
    color: #36b37e;
    text-decoration: underline;
}
#contact{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: auto;

}
.form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: auto;
}
input, textarea{
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 15px;
}
button{
    padding: 0.75rem;
    border: none;
    background: #0052cc;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
button:hover{
    background: #003e99;
}
footer{
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
/* animation */
@keyframes fadeIn{
    from {opacity: 0;}
    to{opacity: 1;}
}
@keyframes slideInDown{
    from{
        opacity: 0;
        transform: translateY(-30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
/* responsive */
@media (max-width: 600px){
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}
.social-icons{
    text-align: center;
    margin: 2rem 0;
}
.icon {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #0052cc;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;

}
.icon i{
    vertical-align: middle;
}
.social-icons .icon:nth-child(1){animation-delay: 0.1s;}
.social-icons .icon:nth-child(2){animation-delay: 0.2s;}
.social-icons .icon:nth-child(3){animation-delay: 0.3s;}
.social-icons .icon:nth-child(4){animation-delay: 0.4s;}
.social-icons .icon:nth-child(5){animation-delay: 0.5s;}
.social-icons .icon:nth-child(6){animation-delay: 0.6s;}
.social-icons .icon:nth-child(7){animation-delay: 0.7s;}
.social-icons .icon:nth-child(8){animation-delay: 0.8s;} 
.icon:hover{
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
.fb:hover{background: #3b5998;}
.tw:hover{background: #1da1f2;}
.ig:hover{background: #e1306c;}
.li:hover{background: #0077b5;}
.gh:hover{background: #333;}
.wa:hover{background: #25d366;}
.yt:hover{background: #ff0000;}
.tk:hover{background: #000000;}
@keyframes popin{
    from{
        transform: scale(0.5);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
}
#scrollTopBtn{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 1.5rem;
    background-color: #0052cc;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
#scrollTopBtn:hover{
    background-color: #36b37e;
    transform: scale(1.1);
}
#subscribe{
    background-color: #f4f5f7;
    padding: 3rem 1rem;
    text-align: center;
}
#subscribe h2{
    color: #0052cc;
    margin-top: 1rem;
}
#subscribe p{
    margin-bottom: 1.5rem;
    color: #555;
}
.subscribe-form{
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 500px;
    margin: auto;
}
.subscribe-form input{
    padding: 0.75rem;
    width: 60%;
    min-width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.subscribe-form button{
    padding: 0.75rem 1.2rem;
    background-color: #0052cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
.subscribe-form button:hover{
    background-color: #36b37e;
}