/* ============= GLOBAL STYLES ============= */
html,
body {
    overflow-x: hidden;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
}

/* ============= NAVBAR ============= */
.navbar {
    background-color: #f5f5f5;
    padding: 1rem 0;
    position: relative;
}

.navbar::after {
    content: '';
    display: block;
    width: 90%;
    height: 1px;
    background-color: #ddd;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar img {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.name-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.my-name {
    font-weight: 700;
    color: #000;
}

.title {
    font-weight: 400;
    font-size: 0.9rem;
    color: #374151;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
    letter-spacing: 0.5px;
}

/* --- Close button --- */
.close-btn {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1100;
}

.nav-links.active .close-btn {
    opacity: 1;
    transform: rotate(90deg) scale(1);
}

/* ------ Responsive Navbar --------- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: #f5f5f5;
        flex-direction: column;
        padding-top: 3rem;
        transition: left 0.4s ease;
        border-right: 1px solid #ddd;
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin-top: 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============= ABOUT SECTION ============= */
.about-section {
    background-color: #f5f5f5;
    padding: 4rem 1rem;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .about-image img {
        width: 180px;
        height: 180px;
    }
}

/* ============= FOOTER ============= */
.footer {
    background-color: #f5f5f5;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    position: relative;
}

.footer::before {
    content: '';
    display: block;
    width: 90%;
    height: 1px;
    background-color: #ddd;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.footer a {
    text-decoration: none;
    color: rgb(108, 0, 0);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.footer a:hover {
    color: #1d4ed8;
    letter-spacing: 0.5px;
}

.footer .copyright {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer .copyright {
        text-align: center;
        margin-top: 1rem;
    }
}

/* ============= ANIMATIONS ============= */
@media (max-width: 768px) {
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links li {
        opacity: 0; 
    }

    .nav-links.active li {
        animation: slideIn 0.4s forwards;
    }

    .nav-links.active li:nth-child(1) {
        animation-delay: 0.1s;
    }
    .nav-links.active li:nth-child(2) {
        animation-delay: 0.2s;
    }
    .nav-links.active li:nth-child(3) {
        animation-delay: 0.3s;
    }
    .nav-links.active li:nth-child(4) {
        animation-delay: 0.4s;
    }
}
