
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'segoe UI', sans-serif;
    scroll-behavior: smooth;
}
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #2ecc71;
    --accent-glow:rgba(46, 204, 113, 0.4);
    --text: #ffffff;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
.list-darkmode-menu{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hamburger{
    position: relative;
    width: 30px;
    cursor: pointer;
    appearance: none;
    border: none;
    outline: none;
    background: var(--accent-glow);
    scale: 0.9;
    display: none;

    .bar,
    &::after,
    &::before{
        content: '';
        display: block;
        width: 100%;
        height: 3px;
        background: var(--dark-bg);
        margin: 6px 0;
        transition: 0.4s;
    }
    &.active::before{
        transform: rotate(-45deg) translate(-8px, 5px);
    }
     &.active::after{
        transform: rotate(45deg) translate(-8px, -5px);
    }

    &.active .bar{
        opacity: 0;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    padding-left: 2.5rem;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-menu a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.nav-menu a::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12% 5%;
    background: radial-gradient(circle at 75% 36%, var(--accent-glow) 0%, transparent 30%);
}

.hero-content {
    flex: 1;
    padding-right: 5rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}
.profile-img{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgb(18, 117, 5);
    box-shadow: 0 0 50px rgb(18, 186, 65);
    animation: float 3s ease-in-out infinite;
    filter: grayscale(0.2) contrast(1.1);
}

@keyframes float{
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-20px);}
}
.hero h1{
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent) 30%, #ffffff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p{
    font-size: 1.2 rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}
.hero-buttons {
    margin-top: 10%;
}
.btn{
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent), #27ae60);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn secondary{
    display: inline-block;
    background: linear-gradient(45deg, var(--accent), #27ae60);
    color: white;
    border-radius: 8px;
    text-decoration: none;
}
.about{
    padding: 5rem 5%;
    background: var(--darker-bg);
}

/* Skills */
.skills {
    padding: 5rem 5%;
    background: var(--darker-bg);
    padding-top: 0%;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.skill-card{
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}
.skill-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.contact{
     padding: 5rem 5%;
    background: var(--darker-bg);
    padding-top: 0%;
}
.contact-me{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.contact-id{
    padding: 2rem;
    width: 95%;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.contact-id:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}
.contact-id i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.contact-id a:hover{
    color: #27ae60;
}


/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 3rem 5%;
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}
/* Responsive */

@media screen and (max-width: 720px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content{
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .profile-img{
        width: 200px;
        height: 200px;
    }
    .nav-menu {
        display: flex;
    }
    .logo{
        font-size: 1.5rem;
        padding-left: 2rem;
    }
     nav{
        .list-darkmode-menu{
            ul{
                position: fixed;
                top: 89px;
                left: -100%;
                max-width: 60%;
                width: 50%;
                height: 100vh;
                background: rgb(16, 15, 15);
                align-items: flex-start;
                justify-content: flex-start;
                flex-direction: column;
                padding: 30px 50px;
                gap: 30px;
                transition: 0.3s ease;

                li{
                    a{
                        font-size: 22px;
                    }
                }
                &.active{
                    left: 0%;
                }
            }
            .hamburger{
                display: block;
            }
        }
    }
    
}
@media screen and (max-width: 992px){
    nav{
        .list-darkmode-menu{
            ul{
                position: fixed;
                top: 89px;
                left: -100%;
                max-width: 60%;
                width: 50%;
                height: 100vh;
                background: rgb(16, 15, 15);
                align-items: flex-start;
                justify-content: flex-start;
                flex-direction: column;
                padding: 30px 50px;
                gap: 30px;
                transition: 0.3s ease;

                li{
                    a{
                        font-size: 22px;
                    }
                }
                &.active{
                    left: 0%;
                }
            }
            .hamburger{
                display: block;
            }
        }
    }
}
@media screen and (max-width: 552px){
   nav{
        .list-darkmode-menu{
            ul{
                position: fixed;
                top: 89px;
                left: -100%;
                max-width: 60%;
                width: 50%;
                height: 100vh;
                background: rgb(12, 11, 11);
                align-items: flex-start;
                justify-content: flex-start;
                flex-direction: column;
                padding: 30px 50px;
                gap: 30px;
                transition: 0.3s ease;

                li{
                    a{
                        font-size: 22px;
                    }
                }
                &.active{
                    left: 0%;
                }
            }
            .hamburger{
                display: block;
            }
        }
    }
}


