/* Floating Header Styles */

/* Floating Header Container */
.floating-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    gap: 0;
    position: fixed;
    width: 898px;
    max-width: calc(100% - 80px);
    height: 72px;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 208, 205, 0.5);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.08), 0px 2px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    z-index: 1000;
}

/* Logo Container */
.header-logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 0;
    width: 144.51px;
    height: 32px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.header-logo {
    width: 144.51px;
    height: 24px;
    flex: none;
    order: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
}

/* Menu Container */
.header-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 16px;
    width: auto;
    height: 40px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Menu Item */
.header-menu-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 0;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: none;
    flex-grow: 0;
}

/* Active Menu Item */
.header-menu-item.active {
    background: #2D2D2D;
}

/* Nav Text */
.header-nav-text {
    height: 24px;
    font-family: 'Figtree', 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.15px;
    white-space: nowrap;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Active Nav Text (White) */
.header-menu-item.active .header-nav-text {
    color: #FFFFFF;
}

/* Inactive Nav Text (Dark) */
.header-menu-item:not(.active) .header-nav-text {
    color: #2D2D2D;
}

/* Hover State for Inactive Items */
.header-menu-item:not(.active):hover {
    background: rgba(45, 45, 45, 0.05);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex: none;
    order: 1;
    flex-grow: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #2D2D2D;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-menu-toggle .hamburger-line:nth-child(1) {
    top: 12px;
}

.mobile-menu-toggle .hamburger-line:nth-child(2) {
    top: 50%;
    margin-top: -1px;
}

.mobile-menu-toggle .hamburger-line:nth-child(3) {
    bottom: 12px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
    margin-top: -1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 50%;
    margin-top: -1px;
    bottom: auto;
}

/* Mobile Menu Overlay - Complete Redesign */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    position: relative;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.mobile-menu-link {
    display: block;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
    font-family: 'Figtree', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #2D2D2D;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mobile-menu-link:hover {
    background: rgba(45, 45, 45, 0.1);
}

.mobile-menu-link.active {
    background: #2D2D2D;
    color: #FFFFFF;
}

/* Mobile Menu Social Icons */
.mobile-menu-social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 300px;
    padding: 20px 0;
    margin-top: auto;
    margin-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.mobile-social-link {
    display: inline-block;
    width: 30px;
    height: 30px;
    transition: opacity 0.2s ease;
}

.mobile-social-link:hover {
    opacity: 0.7;
}

.mobile-social-link img {
    width: 30px;
    height: 30px;
    display: block;
}

/* Make social icons black in mobile menu (white background) */
.mobile-menu-social .mobile-social-link img {
    filter: brightness(0);
}

/* Increase bottom spacing for social icons on mobile devices (especially iPhone) */
@media (max-width: 768px) {
    .mobile-menu-social {
        margin-bottom: calc(60px + env(safe-area-inset-bottom, 20px));
    }
    
    .mobile-menu-wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .floating-header {
        width: calc(100% - 40px);
        padding: 16px 24px;
        gap: 0;
    }
    
    .header-menu {
        gap: 12px;
    }
    
    .header-menu-item {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .floating-header {
        width: calc(100% - 32px);
        padding: 12px 16px;
        gap: 8px;
        top: 10px;
        height: 60px;
        min-height: 60px;
        flex-wrap: nowrap;
    }
    
    .header-logo-container {
        width: 120px;
        height: 28px;
        flex: none;
        order: 0;
    }
    
    .header-logo {
        width: 120px;
        height: 20px;
    }
    
    /* Hide desktop menu on mobile */
    .header-menu {
        display: none;
    }
    
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .floating-header {
        padding: 10px 12px;
        gap: 8px;
        width: calc(100% - 24px);
    }
    
    .header-logo-container {
        width: 100px;
        height: 24px;
    }
    
    .header-logo {
        width: 100px;
        height: 18px;
    }
    
    .mobile-menu-container {
        padding: 80px 16px 60px;
        max-width: 100%;
        gap: 0;
        min-height: 100vh;
        height: 100vh;
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-menu-wrapper {
        padding: 100px 20px 30px;
        gap: 50px;
    }
    
    .mobile-menu-nav {
        max-width: 100%;
    }
    
    .mobile-menu-social {
        max-width: 100%;
    }
}

/* Fixed Header Variant (for scrolling) */
.floating-header.fixed {
    position: fixed;
    top: 20px;
}

/* Sticky Header Variant */
.floating-header.sticky {
    position: sticky;
    top: 20px;
    margin-bottom: 20px;
}

/* Main Content Spacing for Fixed Header */
body > main {
    padding-top: 120px;
}

@media (max-width: 768px) {
    body > main {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    body > main {
        padding-top: 90px;
    }
}

