/* home.css */

/* Main header text styles */
.main-header {
    font-family: 'Sora', sans-serif;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin: 40px 40px 20px;
    padding: 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.8) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Split word styling */
.main-header .deep {
    font-weight: 400;
}

.main-header .see {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        135deg,
        rgba(114, 160, 193, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
}

/* Subtitle styling */
.main-header .subtitle {
    display: block;
    font-size: 0.4em;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-top: 8px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Header Flexbox Layout */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 40px;
    background-color: transparent;
    box-shadow: none;
}

/* Support Center Button Styles */
.support-btn {
    padding: 15px 30px;
    background-color: rgba(240, 244, 248, 0.9);
    color: black;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    margin-left: 20px;
}

/* Hover and Active States for Support Button */
.support-btn:hover {
    background-color: #72A0C1;
    color: white;
}

.support-btn.active {
    background-color: #72A0C1;
    color: white;
}

/* Ensure Support Button Does Not Stretch */
.header .support-btn {
    flex: 0 0 auto;
}

/* Main content wrapper */
.nav-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.5s ease;
    position: relative;
    flex-grow: 1;
    margin-top: 50px;
    min-height: calc(100vh - 300px);
    width: 100%;
}

/* Row styling */
.nav-menu-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.nav-menu-row + .nav-menu-row {
    margin-top: 20px;
}

/* Menu items */
.nav-menu-item {
    padding: 15px 30px;
    background-color: rgba(240, 244, 248, 0.9);
    color: #1a2942;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    position: relative;
    min-width: 200px;
    z-index: 10;

}

.nav-menu-item:hover {
    background-color: #72A0C1;
    color: white;
}

.nav-menu-item.active {
    background-color: #72A0C1;
    color: white;
}

/* Submenu styling */
.nav-sub-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.nav-sub-menu.visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1001;
}

.nav-sub-menu-item {
    padding: 15px;
    background-color: #f0f0f0;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 16px;
}

.nav-sub-menu-item:hover {
    background-color: #72A0C1;
    color: white;
}

/* Footer wrapper styling */
.footer-wrapper {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    z-index: 100;
}

/* Logout button container */
.logout-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.logout-btn {
    padding: 12px 24px;
    background-color: rgba(240, 244, 248, 0.9);
    color: #333;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #72A0C1;
    color: white;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #666666;
}

footer p {
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Add a subtle animation on page load */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header {
    animation: fadeInSlideUp 0.8s ease-out forwards;
}
.main-header .see {
    font-weight: 600;  /* update from 300 to 600 */
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        135deg,
        rgba(114, 160, 193, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
}

/* Menu navigation state */
.nav-menu-container.menu-navigation {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 150px;
}

.nav-menu-container.menu-navigation .nav-menu-row {
    display: contents;
}

.nav-menu-container.menu-navigation .nav-menu-item {
    flex-direction: column;
    align-items: center;
    width: 200px;
    height: 60px;
    margin-bottom: 0;
    padding: 10px;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 600px) {
    .nav-menu-item {
        padding: 10px 20px;
        font-size: 0.9em;
        min-width: 150px;
    }

    .nav-sub-menu-item {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .nav-menu-container.menu-navigation .nav-menu-item {
        width: 150px;
    }

    .footer-wrapper {
        padding: 10px 0;
    }
}

/* Additional Responsive Adjustments for Header */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-end;
        padding: 10px 20px;
    }

    .main-header {
        text-align: center;
        margin: 20px 20px 0 20px;
    }

    .support-btn {
        margin-top: 10px;
        min-width: auto;
    }

    .nav-menu-container {
        padding: 20px;
    }
}