body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #1e1e2f;
    color: #fff;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 0.4em;
}

p {
    margin: 0 0 1em 0;
}

header {
    background-color: #1e1e2f;
    color: #fff;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: rgba(30, 30, 47, 0.95);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #ff6b6b;
}

#about {
    padding: 4em 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1e1e2f;
    text-align: center;
}

.profile-pic {
    width: 300px;
    border-radius: 50%;
    margin-bottom: 1em;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.resume-btn {
    display: inline-block;
    margin-top: 1em;
    padding: 0.8em 1.5em;
    background-color: #ff6b6b;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.resume-btn:hover {
    background-color: #ff5252;
    transform: scale(1.05);
}

#skills {
    padding: 4em 2em;
    text-align: center;
    background-color: #3b3b57;
}

.skills-container {
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap; */
    justify-content: center;
    /* align-items: center; */
    gap: 2em;
}

.skill img {
    width: 5em;
}

/* .skill {
    width: 20px;
} */

/* .skill-bar {
    background: #ddd;
    border-radius: 25px;
    overflow: hidden;
    height: 15px;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 25px;
    transition: width 1s ease, transform 0.3s ease;
} */

/* .html {
    background: #e34c26;
} */

/* .css {
    background: #264de4;
} */

/* .js {
    background: #f0db4f;
} */

/* .python {
    background: #306998;
} */

/* .sql {
    background: #00758f;
} */

/* .skill:hover .skill-fill {
    transform: scaleY(1.3);
} */

#projects {
    padding: 4em 2em;
    text-align: center;
    background-color: #1e1e2f;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

.project-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1em;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #000;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5em;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tech-tags {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 0.5em;
}

.project-buttons {
    display: flex;
    gap: 0.5em;
    margin-top: 0.5em;
}

.visit-btn {
    padding: 0.5em 1em;
    background: #00758f;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
    transition: transform 0.3s ease, background 0.3s ease;
}

.visit-btn:hover {
    background: #005f6b;
    transform: scale(1.05);
}

#contact {
    padding: 4em 2em;
    background-color: #1e1e2f;
    color: #fff;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 3em;
    flex-wrap: wrap;
    margin-top: 2em;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.contact-item img {
    width: 30px;
    height: 30px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #ff6b6b;
}

footer {
    background-color: #1e1e2f;
    color: #fff;
    text-align: center;
    padding: 2em 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible,
footer.visible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width:768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5em;
    }

    .skills-container {
        padding: 4em 2em;
        /* flex-direction: column; */
        flex-wrap: wrap;
        align-items: center;
    }
}