*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 80px ;
}

body{
    margin: 0;
     font-family: 'Mina', sans-serif;
    background: linear-gradient(135deg, #0609cf, #5e4107, #0f3460);
    color: #fff;
    min-height: 100vh;
    background-size: cover;
    display: flex;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    /* width: 100%; */
    /* top: 0; */
    color: gold;
    /* z-index: 1000; */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.logo{
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1c40f;
}

.nav-links{
    display: flex;
    gap: 20px;
    text-decoration: none;
    list-style: none;
    /* text-align: center; */
    font-weight: bolder;
    
    
}

.nav-links li a{
    text-decoration: none;
    color: gold;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover{
    color: #fff;
}

.menu-icon{
    display: none;
    font-size: 28px;
    cursor: pointer;
    text-align: center;
}

.bto-sub{
    padding: 10px 20px;
    background-color: #f39c12;
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.bto-sub:hover{
    background-color: #d35400;
    color: #fff;
}


.text .btn{
    display: inline-block;
    color: #000;
    border: none;
    font-size: 20px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #f39c12;
    transition: background 0.3s;
    padding: 12px 24px;
}

.text .btn:hover{
    background-color: #d35400;
    color: white;
}




.hero{
    min-height: 80vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
    flex-wrap: wrap;
}




.text{
    flex: 1;
    max-width: 500px;
    animation: fadeIn 1.2s ease;
}

.text .light{
    color: orange;
}



   /* .hero-image img{
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: fadeIn 1.5s ease;
}   */

 .hero img{
    max-width: 100%;
      object-fit: cover;
    height: 280px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    width: 280px;
    border: 5px solid #d4ac0d;
    border-radius: 50%;
    animation: fadeIn 1.5s ease;
}  

.hero p{
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.hero h2{
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

}


.fade{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade.visible{
    opacity: 1;
    /* transform: translateY(0); */
}

@media (max-width: 768px){
    .hero{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
    }
    .hero p{
        font-size: 1rem;
    }

    .hero h2{
        font-size: 2rem;
    }

     .hero-image img{
        width: 200px;
        height: 200px;
        margin-top: 20px;
        
    } 

    

    .hero{
        max-width: 90%;
    }

    .text, .hero img{
        width: 100%;
        margin: 1rem 0;
    }
    .navbar{
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links{
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 10px;
        right: 0;
        width: 100%;
        padding: 1px;
    }

    .nav-links li{
        text-align: center;
        
        
    }

    .nav-links.active{
        display: flex;
    }

    .menu-icon{
        display: block;
    }

    .bto-sub{
        margin-top: 10px;
    }

    .text h2{
        font-size: 2rem;
    }
    .hero-image{
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image img{
        width: 220px;
        height: 220px;
        margin-top: 20px;
    }
}

.text .hero-image{
    /* max-width: 100%; */
    margin-top: 20px;
}



@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underline{
    to{
        transform: scaleX(1);
    }
}



/* About section */
.about-container{
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: white;
    flex-wrap: wrap;
} 

section h2 {
    font-size: 2.5rem;
    color: #f1c40f;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

section h2::after{
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: #f1c40f;
    margin: 10px auto 0;
    animation: underline 1s ease forwards;
    transform: scaleX(0);
    transform-origin: center;
}

.about-image img{
    width:220px;
    border-radius: 20px;
    box-shadow:  0 0 20px rgba(255, 255, 255, 0.1);
    border: 3px solid #f1c40f;
    transition: transform 0.3s ease;
}

.about-content{
    max-width: 500px;
    text-align: left;
    font-size: 1.1rem;

}

.about-image img:hover{
    transform: scale(1.05);
}


.about-section{
    font-size: 1.5rem;
    color: #f1c40f;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Social link */

.social-link{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    right: 120px;
    /* position: relative; */
    color: #fff;
    font-size: 24px;
    transition: all 0.3s, ease-in-out;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link a:hover{
    color: #111;
    transform: scale(1.1) rotate(10deg);
    background: orange;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.5);
}

/* project section */
.Projects, .about-section{
    padding: 100px 10% 80px;
    background-color: #1e2a50;
    text-align: center;
    display: flex;
    flex-direction: row;
     justify-content: center;
    gap: 2rem;
    color: white;
    flex-wrap: wrap;
}

.Projects h2{
    font-size: 2.5rem;
    color: #f1c40f;
    margin-bottom: 40px;
    
}

.Project-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.Project-card{
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 20px;
    width: 280px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.Project-card h3{
    color: #f39c12;
    margin-bottom: 10px;
}


.Project-card p{
    color: #ccc;
    font-size: 0.95rem;
}

/* service section styling */
.Service-section{
    background-color: #1b1b2f;
    color: white;
    padding: 100px 10% 80px;
    text-align: center;
}
.Service-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: c3enter;
    gap: 2rem;
    
}
.Service-card{
    background-color: #2c3e50;
    padding: 30px;
    border-radius: 20px;
    width: 280px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.Service-card:hover{
    transform: translateY(-10px);
}
.Service-card h3{
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.Service-card p{
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}
.Service-button{
    margin-top: 40px;
    text-align: center;
}

/* Download cv */
.btn{
    background-color: #f1c40f;
    color: #1b1b2f;
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    display: inline-block;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover{
    background-color: #d4ac0d;
    transform: scale(1.05);
    cursor: pointer;
}

/* contact section styling */
.contact-section{
    background-color: #1b1b2f;
    color: white;
    padding: 100px 10% 80px;
    text-align: center;
}
.contact-form{
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form input,
.contact-form textarea{
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: #2c3e50;
    color: white;
    resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus{
    outline: 2px solid #f1c40f;
}
.contact-form button.btn{
    align-self: center;
}

button{
    background-color: orange;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover{
    background-color: darkorange;
}