* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f0f0f0;
    color: #333;
    overflow-x: hidden;
}

header {
    background: linear-gradient(90deg, #4b79a1, #283e51);
    color: #fff;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 70px;
    overflow: hidden;
}

.header-container {
    width: 1250px;
    height: 60px;
    margin: 20px auto;
    overflow: hidden;
}

header h1 {
    float: left;
    width: 400px;
    margin: 10px 70px;
    padding-left: 16px;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-right: -30px;
    color: #ff9f00;
}

nav ul {
    float: right;
    display: flex;
    list-style: none;
    padding: 20px 0 ;
    overflow: hidden;
}

nav ul li {
    margin: 0 15px;
    overflow: hidden;
}

nav ul li a {
    position: relative;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.homeUnderline,
nav ul li a.aboutUnderline,
nav ul li a.skillsUnderline, 
nav ul li a.projectsUnderline, 
nav ul li a.contactUnderline {   
    color: #ff9f00;
}

nav ul li a.homeUnderline::after, 
nav ul li a.aboutUnderline::after,
nav ul li a.skillsUnderline::after, 
nav ul li a.projectsUnderline::after, 
nav ul li a.contactUnderline::after, 
nav ul li a:hover::after{
    content: '';
    width: 80%;
    height: 5px;
    background: #ff9f00;
    position: absolute;
    left: -10px;
    margin-top: 22px;
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    header{
        position: sticky;
        height: 60px;
    }

    header h1 {  
        margin: 10px 160px;
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .close-btn {
        display: block;
    }

    nav {
        display: flex;
        position: fixed;
        top: 0;
        left: -200px;
        height: 100%;
        width: 200px;
        background: #283e51;
        flex-direction: column;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
    }
    
    nav.open {
        left: 0;
    }
    
    nav ul {
        margin-top: 20px;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
        padding-left: 20px;
    }

    nav ul li a {
        display: block;
        width: 100%;
        overflow: hidden;
    }

    nav ul li a.homeUnderline::after, 
    nav ul li a.aboutUnderline::after,
    nav ul li a.skillsUnderline::after, 
    nav ul li a.projectsUnderline::after, 
    nav ul li a.contactUnderline::after, 
    nav ul li a:hover::after{
        content: '';
        width: 20%;
        height: 5px;
        background: #ff9f00;
        position: absolute;
        left: -10px;
        margin-top: 23px;
    }

    .menu-toggle.active + nav {
        display: flex;
    }

    .menu-toggle.active ~ .close-btn {
        display: block;
    }
}

.hero{
    position: relative;
    width: 100%;
    background-color: #0a192f;
}

.hero-container {
    position: relative;
    /* width: 1250px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 627px;
}

.content{
    float: left;
    width: 406px;
    margin-left: auto;
    margin-top: -80px;
}

.content h1 {
    font-size: 32px;
    color: #64ffda;
}
  
.content h2 {
    font-size: 50px;
    color: white;
    margin: 10px 0;
}

.content p {
    color: white;
    line-height: 1.7;
    margin-top: 10px;
    font-size: 22px;
    white-space: pre-wrap;
}
.social-icons {
    margin-top: 35px;
    margin-bottom: 30px;
    display: flex;
}

.social-icons button{
    border-radius: 50%;
    height: 35px;
    width: 35px;
    background-color: transparent; 
    border: 2px solid #00B0D0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.social-icons a {
    margin-top: 8px;
    color: #00B0D0;
    font-size: 20px;
}

.social-icons button,
.social-icons a i{
    overflow: hidden;
}

.social-icons button:hover {
    border: 2px solid #fff;
}

.social-icons button:hover .fa-facebook {
    color: #fff;
}

.social-icons button:hover .fa-instagram {
    color: #FF0953;
}

.social-icons button:hover .fa-whatsapp {
    color: #25D366;
}

.social-icons button:hover .fa-threads {
    color: #fff;
}
  
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #ffd700;
    color: #0a192f;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.btn:hover {
    background: #ff9f00;
}

.profile-picture {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background: linear-gradient(45deg, #00e5ff, #008fb3, #ff00ff, #ff007f);
    padding: 5px;
    border-radius: 50%;
    margin-top: -30px;
}

.pic {
    width: 100%;
    height: 100%;
    border-radius: 50%; 
    overflow: hidden;
    background-color: #0b1124;
    border: 5px solid #0b1124;
    position: relative;
}

.pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 1.27s ease-in-out;
}

.pic:hover img {
    transform: scale(1.1);
}

.profile-picture:hover {
    box-shadow: 0 0 30px 10px rgba(0, 191, 255, 0.8);
}

.contact-divider {
    width: 80px;
    height: 5px;
    background-color: #414040;
    margin: -20px auto 20px;
    border: none;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        height: 420px;
        padding-top: 40px;
        padding-left: 10px;
        padding-bottom: 40px;
    }

    .content {
        width: 100%;
        margin-left: 10px ;
        margin-top: -50px;
    }

    .content h1 {
        font-size: 18px;
    }

    .content h2{
        font-size: 24px;
    }

    .content p {
        font-size: 14px;
        width: 200px;
    }
    
    .social-icons {
        margin-top: 20px;
        overflow: hidden;
    }

    .social-icons button{
        height: 30px;
        width: 30px;
        margin: 0 5px;
        overflow: hidden;
    }

    .fa, .fa-brands{
        font-size: 18px;
    }

    .btn{
        width: 110px;
        height: 40px;
        font-size: 12px;
        padding: 10px;
        text-align: center;
        justify-content: center;
        overflow: hidden;
    }

    .profile-picture {
        position: absolute;
        top: 90px;
        left: 220px;
        width: 150px;
        height: 150px;
    }
    
    .profile-picture:hover {
        box-shadow: 0 0 30px 15px rgba(0, 191, 255, 0.8);
    }

    .pic {
        border: 3px solid #0b1124;
    }
}

footer {
    margin: 0 auto;
    position: relative;
    background: linear-gradient(90deg, #283e51, #4b79a1);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

.footer p {
  font-size: 16px;
  margin: 10px 0;
}

.footer-social-icons {
  margin: 20px 20px;
}

.footer-social-icons a {
  color: #c9d1d9;
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social-icons a:hover {
  color: #58a6ff;
}

.back-to-top {
    position: fixed;
    right: 8px;
    bottom: 50px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    overflow: hidden;
    background-color: #0071dc;
    border: 0;
    display: none;
}

.back-to-top i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}
