:root{
    --primary-color: #222;
    --secondary-color: #00bcd4;
    --text-color: #555;
    --background-color: #f5f5f5;
    --white-color: #ffffff;
    --heading-color: #333;
}

body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--heading-color);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

header{
    background-color: var(--primary-color);
    padding: 15px 20px;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h2{
    color: var(--white-color);
}

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

nav ul li a{
    text-decoration: none;
    color: var(--white-color);
    font-weight: bold;
}

#home{
    text-align: center;
    padding: 100px 20px;
}

#home h1{
    font-size: 48px;
    margin-bottom: 15px;
}

#home p{
    font-size: 20px;
    color: var(--text-color);
}

#about{
    padding: 80px 20px;
    text-align: center;
    background-color: var(--white-color);
}

#about h2{
    font-size: 36px;
    margin-bottom: 20px;
}

#about p{
    max-width: 800px;
    margin: auto;
    font-size: 16px;
    padding: 0 10px;
    line-height: 1.8;
    color: #555;
    word-wrap: break-word;
}

#skills{
    padding: 80px 20px;
    text-align: center;
}

#skills h2{
    font-size: 36px;
    margin-bottom: 30px;
}

#skills ul{
    list-style: none;
}

#skills li{
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 20px;
    margin: 10px;
    border-radius: 8px;
    font-weight: bold;
}

#projects{
    padding: 80px 20px;
    text-align: center;
    background-color: var(--white-color);
}

#projects h2{
    font-size: 36px;
    margin-bottom: 30px;
}

.projects-container{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project{
    background-color: var(--white-color);
    width: 450px;
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px
rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.project-buttons{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.project-buttons a{
    text-decoration: none;
    background: #222;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.project-buttons a:hover{
    background: #00bcd4;
}

.project:hover{
    transform: translateY(-6px);
}

.project h3{
    color: var(--heading-color);
    margin-bottom: 10px;
}

.project p{
    color: var(--text-color);
    line-height: 1.6;
}

#resume{
    padding: 80px 20px;
    text-align: center;
    background-color: var(--white-color);
}

#resume h2{
    font-size: 36px;
    margin-bottom: 20px;
}

#resume p{
    font-size: 16px;
    padding: 0 10px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
}

#resume a{
    display: inline-block;
    text-decoration: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
}

#contact{
    padding: 80px 20px;
    text-align: center;
}

#contact h2{
    font-size: 36px;
    margin-bottom: 20px;
}

#contact p{
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
}

#contact a{
    display: inline-block;
    text-decoration: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
}

footer{
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px;
}

footer p{
    font-size: 16px;
}

nav ul li a:hover{
    color: var(--secondary-color);
    transition: 0.3s;
}

#resume a:hover{
    background-color: var(--secondary-color);
    color: white;
    transition: 0.3s;
}

#contact a:hover{
    background-color: var(--secondary-color);
    color: white;
    transition: 0.3s;
}

#themeBtn{
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

#themeBtn:hover{
    background-color: var(--secondary-color);
    transition: 0.3s;
}

.dark-mode{
    background-color: #121212;
    color: white;
}

.dark-mode header{
    background-color: #000;
}

.dark-mode #home{
    background-color: #121212;
}

.dark-mode #about{
    background-color: #1a1a1a;
}

.dark-mode #skills{
    background-color: #121212;
}

.dark-mode #projects{
    background-color: #1a1a1a;
}

.dark-mode .project{
    background-color: #2a2a2a;
}

.dark-mode #resume{
    background-color: #121212;
}

.dark-mode #contact{
    background-color: #1a1a1a;
}

.dark-mode footer{
    background-color: #000;
}

.dark-mode p{
    color: #ddd;
}

.profile-img{
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #00bcd4;
}

.project-img{
    width: 100%;
    max-width: 500px;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #00bcd4;
    background: #fff;
}

.social-links{
    margin-top:20px;
}

.social-links a{
    display:inline-block;
    background:#222;
    color:white;
    text-decoration:none;
    padding:12px 20px;
    margin:10px;
    border-radius:8px;
}

.social-links a:hover{
    background:#00bcd4;
}

.hero-buttons{
    margin-top: 25px;
}

.hero-buttons a{
    display: inline-block;
    background: #222;
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    margin: 8px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.hero-buttons a:hover{
    background: #00bcd4;
}

.menu-icon{
    display: none;
}

@media (max-width:768px){

    nav{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
    }

    .menu-icon{
        display: block;
        font-size: 28px;
        color: white;
        cursor: pointer;
        order: 2;
        margin-left: auto;
        margin-right: 8px;
    }

    #themeBtn{
        order: 3;
        width: auto;
        margin: 0;
        margin-left: 10px;
    }

    nav ul{
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 10px;
        order: 4;
    }

    nav ul.active{
        display: flex;
    }

    nav ul li{
        width: 100%;
    }

    nav ul li a{
        display: block;
        width: 100%;
        text-align: center;
        background: #333;
        padding: 12px;
        border-radius: 8px;
    }

    .project{
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    padding: 20px;
}

#about p,
#resume p{
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.8;
}

.project-img{
    width: 100%;
    height: auto;
}

.hero-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-buttons a{
    width: 100%;
    max-width: 300px;
}

.project-buttons{
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.project-buttons a{
    width: 100%;
    max-width: 250px;
}

.social-links{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links a{
    width: 100%;
    max-width: 300px;
}

#home{
    padding: 70px 20px;
}

#home h1{
    font-size: 32px;
}

#home p{
    font-size: 18px;
}

.profile-img{
    width: 140px;
    height: 140px;
}

#skills li{
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
}

#contact a{
    width: 100%;
    max-width: 300px;
}

#about,
#skills,
#projects,
#resume,
#contact{
    padding: 60px 15px;
}

#about h2,
#skills h2,
#projects h2,
#resume h2,
#contact h2{
    font-size: 28px;
}

.project{
    border-radius: 15px;
}

.project-img{
    border-radius: 12px;
}

footer p{
    font-size: 14px;
}

}