/* ================================
   CSS Reset & Base Styles
   ================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #e9e9e9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ================================
   Loading Animation
   ================================ */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #fafafa;
    border-top: 4px solid #6800b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   Fade-in Animation Classes
   ================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Navigation Section (Legacy - Hidden)
   ================================ */

.navbar {
    display: none;
}

/* ================================
   Main Section
   ================================ */

.main-section {
    width: 615px;
    min-height: 498px;
    background-color: #fafafa;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 28px;
    margin-bottom: 20px;
    position: relative;
}

/* Main Navigation (inside main section) */
.main-nav {
    position: absolute;
    top: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav-link {
    font-size: 18px;
    color: #333547;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.main-nav-link:hover {
    opacity: 0.7;
}

.main-nav-link.active {
    color: #333547;
    font-weight: 400;
}

.main-nav-link.disabled {
    color: #b0b0b0;
    pointer-events: none;
}

.profile-photo {
    width: 195px;
    height: 195px;
    background-color: #BCBCBC;
    border-radius: 25px;
    margin-bottom: 20px;
    margin-top: 0;
}

.name {
    font-size: 24px;
    font-weight: 400;
    color: #333547;
    margin-bottom: 8px;
}

.job-title {
    font-size: 18px;
    font-weight: 400;
    color: #7a7a7a;
    margin-bottom: 32px;
}

.description {
    font-size: 18px;
    font-weight: 400;
    color: #333547;
    line-height: 1.6;
    text-align: left;
    padding-top: 24px;
}

/* ================================
   Footer Section
   ================================ */

.footer-section {
    width: 615px;
    height: 154px;
    background-color: #fafafa;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-handle,
.email {
    font-size: 18px;
    font-weight: 400;
    color: #5d5d5d;
    margin: 0;
}

.email a {
    color: #5d5d5d;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.email a:hover {
    opacity: 0.7;
}

.social-handle a,
.email a {
    color: #5d5d5d;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-handle a:hover,
.email a:hover {
    opacity: 0.7;
}



/* ================================
   Responsive Design
   ================================ */

@media (max-width: 700px) {
    .main-section,
    .footer-section {
        width: 90%;
        max-width: 615px;
    }

    .main-section {
        padding: 30px 30px;
    }

    .footer-section {
        padding: 0 30px;
    }

    .main-nav {
        top: 30px;
        right: 30px;
        gap: 24px;
    }

    .main-nav-link {
        font-size: 16px;
    }

    .description,
    .job-title {
        font-size: 16px;
    }

    .social-handle,
    .email {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 20px 20px;
    }

    .main-nav {
        top: 20px;
        right: 20px;
        gap: 16px;
    }

    .main-nav-link {
        font-size: 14px;
    }

    .name {
        font-size: 20px;
    }

    .job-title {
        font-size: 14px;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
        margin-top: 35px;
    }

    .description {
        font-size: 14px;
    }

    .social-handle,
    .email {
        font-size: 14px;
    }
}

