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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200vh; /* For demo scrolling */
    color: #333;
}

/* Gradient Navbar */
.gradient-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-navbar.scrolled {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Background Animation */
.navbar-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #FF6B6B, #FF8E8E);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #4ECDC4, #44A08D);
    top: -75px;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #45B7D1, #96C93D);
    top: -60px;
    right: -60px;
    animation-delay: 4s;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Brand/Logo */
.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-logo {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.logo-layer {
    position: absolute;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer-1 {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    transform: rotate(0deg);
}

.layer-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: linear-gradient(135deg, #45B7D1, #96C93D);
    transform: rotate(45deg);
}

.layer-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: linear-gradient(135deg, #A8EDEA, #FED6E3);
    transform: rotate(90deg);
}

.brand-link:hover .layer-1 {
    transform: rotate(45deg) scale(1.1);
}

.brand-link:hover .layer-2 {
    transform: rotate(90deg) scale(1.1);
}

.brand-link:hover .layer-3 {
    transform: rotate(135deg) scale(1.1);
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--nav-color, #FF6B6B), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.2;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-text {
    position: relative;
    z-index: 1;
}

.nav-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 24px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dropdown-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dropdown-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #666;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.dropdown-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: translateX(4px);
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-text strong {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.dropdown-text span {
    font-size: 12px;
    opacity: 0.8;
}

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

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cta-text,
.cta-arrow {
    position: relative;
    z-index: 1;
}

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

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.toggle-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.toggle-line {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-brand-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-nav {
    padding: 32px 24px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease forwards;
}

.mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.5s; }

.mobile-link-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--mobile-color, #FF6B6B), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.mobile-link:hover .mobile-link-bg,
.mobile-link.active .mobile-link-bg {
    opacity: 0.3;
}

.mobile-link:hover,
.mobile-link.active {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-link-icon {
    position: relative;
    z-index: 1;
}

.mobile-link-text {
    position: relative;
    z-index: 1;
}

.mobile-footer {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

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

.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Color Indicator */
.color-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #96C93D, #F093FB);
    width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(5deg); 
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dynamic Color Variables */
.nav-link[data-color="#FF6B6B"] { --nav-color: #FF6B6B; }
.nav-link[data-color="#4ECDC4"] { --nav-color: #4ECDC4; }
.nav-link[data-color="#45B7D1"] { --nav-color: #45B7D1; }
.nav-link[data-color="#96C93D"] { --nav-color: #96C93D; }
.nav-link[data-color="#F093FB"] { --nav-color: #F093FB; }

.mobile-link[data-mobile-color="#FF6B6B"] { --mobile-color: #FF6B6B; }
.mobile-link[data-mobile-color="#4ECDC4"] { --mobile-color: #4ECDC4; }
.mobile-link[data-mobile-color="#45B7D1"] { --mobile-color: #45B7D1; }
.mobile-link[data-mobile-color="#96C93D"] { --mobile-color: #96C93D; }
.mobile-link[data-mobile-color="#F093FB"] { --mobile-color: #F093FB; }

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .dropdown-menu {
        min-width: 320px;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 1127px) {
    .main-nav,
    .navbar-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .navbar-container {
        height: 64px;
        padding: 0 20px;
    }
    
    .mobile-menu {
        top: 64px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .brand-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 16px;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .mobile-nav {
        padding: 24px 16px;
    }
    
    .mobile-footer {
        padding: 16px;
    }
}