/* Gestify - Modern Header Styles */

/* Header Container */
header {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    height: 80px;
}

header.scrolled {
    height: 70px;
    background-color: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

/* Navigation Menu */
nav {
    height: 100%;
}

nav ul.main-menu {
    display: flex;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul.main-menu li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

nav ul.main-menu li a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0 1.2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

nav ul.main-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul.main-menu li a:hover {
    color: white;
}

nav ul.main-menu li a:hover::before,
nav ul.main-menu li a.active::before {
    width: 70%;
}

nav ul.main-menu li a.active {
    color: white;
    font-weight: 600;
}

/* Client Area Button */
.client-area-btn {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.client-area-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.client-area-btn::before {
    content: '\f2f6';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Mobile Navigation */
.nav-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .header-container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    nav ul.main-menu li a {
        padding: 0 0.8rem;
    }
    
    .client-area-btn {
        padding: 0.5rem 1rem;
        margin-left: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xl) var(--spacing-lg);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul.main-menu {
        flex-direction: column;
        height: auto;
    }
    
    nav ul.main-menu li {
        margin: 0 0 var(--spacing-md) 0;
        height: auto;
    }
    
    nav ul.main-menu li a {
        color: var(--primary);
        padding: 0.8rem 0;
        height: auto;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    nav ul.main-menu li a::before {
        display: none;
    }
    
    nav ul.main-menu li a:hover {
        background-color: transparent;
        color: var(--secondary);
    }
    
    nav ul.main-menu li a.active {
        background-color: transparent;
        color: var(--secondary);
        font-weight: 700;
    }
    
    .client-area-btn {
        margin: 1.5rem 0 0 0;
        width: 100%;
        justify-content: center;
    }
}

/* Main Content Adjustment */
main {
    padding-top: 80px; /* Match header height */
}

@media screen and (max-width: 992px) {
    main {
        padding-top: 70px;
    }
}