/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
}

/* Centered Navbar */
.centered-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
    gap: 40px;
}

/* Navigation Sections */
.nav-section {
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
    gap: 24px;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FF6B6B;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #FF6B6B;
    border-radius: 50%;
}

/* Centered Logo */
.nav-center {
    display: flex;
    justify-content: center;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo-container:hover {
    background-color: rgba(255, 107, 107, 0.05);
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    text-decoration: none;
    color: #4a4a4a;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    font-size: 14px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: rgba(255, 107, 107, 0.08);
    color: #FF6B6B;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #FF5252, #FF7A7A);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    z-index: 1001;
    align-items: self-end;
}

.toggle-bar {
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 32px 24px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #FF6B6B;
}

.mobile-dropdown {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-content.active {
    max-height: 200px;
}

.mobile-dropdown-link {
    display: block;
    text-decoration: none;
    color: #666;
    padding: 12px 0 12px 20px;
    font-size: 16px;
    transition: color 0.2s ease;
    border-bottom: none;
}

.mobile-dropdown-link:hover {
    color: #FF6B6B;
}

.mobile-dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-trigger.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-cta-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}

.mobile-cta-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
    background: linear-gradient(135deg, #FF5252, #FF7A7A);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-container {
        gap: 24px;
        padding: 0 20px;
    }
    
    .nav-list {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-section,
    .nav-actions {
        display: none;
    }
    
    .navbar-container {
        grid-template-columns: auto 1fr auto;
        height: 70px;
        gap: 16px;
    }
    
    .nav-center {
        justify-content: center;
        flex: 1;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-image {
        width: 36px;
        height: 36px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    .mobile-menu {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 16px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
}