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

body {
    line-height: 1.6;
    background-color: #E1E7E1;
    /* Soft sage background */
    color: #2F3E34;
    /* Deep green for text */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(74, 93, 82, 0.9);
    /* Deep muted green */
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
    height: 60px;
}

.navbar .logo {
    font-family: "Montserrat", serif;
    font-weight: 100;
    font-style: italic;
    font-size: 1.5rem;
}

.navbar .nav-links {
    font-style: normal;
    display: flex;
    gap: 1.5rem;
    padding-right: 20px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #C8D3C5;
    /* Light muted green hover */
}

/* About Section */
#about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    min-height: 100vh;
}

.about-container {
    display: flex;
    align-items: center;
    /* Align items vertically */
    justify-content: space-between;
    /* Creates space between left & right */
    width: 80%;
    max-width: 1200px;
    /* Increased max-width */
    margin: auto;
    gap: 50px;
    /* Increased gap for more space between left and right */
}

.about-left {
    flex: 1;
    /* Takes half of the width */
    text-align: center;
}

.about-image {
    border-radius: 50%;
    /* Circular image */
    /* Ensures the image fits nicely in the circle */
    border: 3px solid #2F3E34;
    /* Optional: adds a border around the image */
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.about-image {
    width: 525px;
    height: 525px;
    object-fit: cover;
}

.about-text-above,
.about-text-below {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: italic;
    font-size: 1.6rem;
    color: #2F3E34;
}

.about-right {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    flex: 1;
    /* Takes the other half of the width */
    padding-left: 30px;
    font-size: 1.4rem;
}

/* Skills Section */
#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    min-height: 100vh;
    background-color: #A7B7A3;
    /* Earthy sage for skills section */
}

.skills-container {
    text-align: center;
    width: 80%;
    max-width: 1200px;
}

.skills-container h2 {
    font-size: 2rem;
    color: #2F3E34;
    margin-bottom: 20px;
}

.skills-list {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-item {
    background-color: #C8D3C5;
    /* Muted green background */
    color: #2F3E34;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: #E1E7E1;
}

/* Sections */
.section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    padding-top: 60px;
    opacity: 0;
    transform: translateY(20px);
    /* Reduced movement to prevent gaps */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Section Colors */
#about {
    background-color: #E1E7E1;
    /* Soft sage */
}

#projects {
    background-color: #C8D3C5;
    /* Muted green */
}

#skills {
    background-color: #A7B7A3;
    /* Earthy sage */
}

.socials-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    object-fit: cover;
    /* Center items vertically */
    gap: 30px;
}

.socials-list li:hover {
    transform: translateY(-5px);
    background-color: #E1E7E1;
}

.socials-list li {
    transition: transform 0.3s;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(74, 93, 82, 0.95);
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .about-container {
        flex-direction: column;
        width: 95%;
        gap: 2rem;
    }

    .about-left, .about-right {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .about-image {
        width: 300px;
        height: 300px;
    }

    .about-text-above,
    .about-text-below {
        font-size: 1.3rem;
    }

    .about-right {
        font-size: 1.1rem;
    }

    .skills-container {
        width: 95%;
    }

    .skills-list {
        gap: 10px;
    }

    .skill-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .socials-list {
        justify-content: center;
        gap: 1rem;
    }

    .socials-list img {
        height: 40px !important;
        width: 40px !important;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .about-image {
        width: 250px;
        height: 250px;
    }

    .about-text-above,
    .about-text-below {
        font-size: 1.1rem;
    }

    .about-right {
        font-size: 1rem;
    }

    .skill-item {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Experience Section */
#experience {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    min-height: 100vh;
    background-color: #E1E7E1;
    /* Soft sage background */
    position: relative;
    overflow: hidden;
}

.experience-container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.experience-container h2 {
    font-size: 2rem;
    color: #2F3E34;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.experience-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2F3E34;
    border-radius: 3px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.experience-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.5s, box-shadow 0.5s;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--delay) * 0.1s);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.experience-header {
    background-color: #2F3E34;
    color: white;
    padding: 50px 20px 20px 20px;  /* Further increased top padding */
    position: relative;
    text-align: center;  /* Center the text */
}

.experience-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 62, 52, 0.8) 0%, rgba(47, 62, 52, 0.6) 100%);
    z-index: 1;
}

.experience-header h3 {
    margin: 0;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    padding: 0 20px;  /* Changed to symmetric padding */
}

.experience-header h4 {
    margin: 5px 0 0;
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    padding: 0 20px;  /* Changed to symmetric padding */
}

.experience-content {
    padding: 20px;
    position: relative;
}

.experience-content p {
    color: #2F3E34;
    margin: 0;
    line-height: 1.6;
}

.experience-date {
    position: absolute;
    top: 15px;  /* Adjusted top position */
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.experience-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    color: #2F3E34;
}
