/* ===== NAVIGATION BAR STYLES ===== */
:root {
    --primary: #c084fc;
    --primary-dark: #a855f7;
    --secondary: #818cf8;
    --bg-dark: #0a0a0f;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(168, 85, 247, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 20%, #0f0c1f, #05040a);
    color: var(--text-light);
}

/* Fixed Navigation Bar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 5%;
    background: rgba(8, 8, 14, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 2000;
    transition: all 0.3s ease;
    gap: 1rem;
}

.nav:hover {
    background: rgba(10, 10, 20, 0.98);
    border-bottom-color: var(--primary);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-mark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.logo-mark span {
    width: 5px;
    border-radius: 3px;
    transition: height 0.2s;
}

.logo-mark span:nth-child(1) {
    height: 8px;
    background: #94a3b8;
}

.logo-mark span:nth-child(2) {
    height: 15px;
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

.logo-mark span:nth-child(3) {
    height: 22px;
    background: var(--primary);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-text span {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Dropdown Container */
.dropdown {
    position: relative;
}

.drop-btn {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.drop-btn:hover {
    color: white;
}

/* Dropdown Menu */
.drop-menu {
    position: absolute;
    top: 42px;
    left: 0;
    min-width: 220px;
    background: rgba(18, 18, 28, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 0.6rem;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.25s ease;
    z-index: 2100;
}

.dropdown:hover .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drop-menu div {
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    color: #cbd5e6;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-menu div:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(129, 140, 248, 0.1));
    color: white;
    padding-left: 1.2rem;
}

/* ===== SEARCH BAR STYLES ===== */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    padding: 0.2rem 0.2rem 0.2rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    outline: none;
    width: 180px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 220px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(100deg, var(--primary-dark), var(--secondary));
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Mobile Search */
.mobile-search-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-container .search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    border: 1px solid var(--border-color);
}

.mobile-search-container .search-btn {
    width: 100%;
    padding: 0.8rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 18, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 1999;
}

.mobile-menu.open {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .drop-btn {
    width: 100%;
    text-align: left;
    padding: 0.8rem 0;
    font-size: 1rem;
}

.mobile-menu .drop-menu {
    position: static;
    background: transparent;
    border: none;
    padding: 0 0 0 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
}

.mobile-menu .dropdown.open .drop-menu {
    display: block;
}

.mobile-menu .drop-menu div {
    padding: 0.6rem 0.8rem;
}

/* Highlight for search matches */
.search-highlight {
    background: linear-gradient(120deg, rgba(168, 85, 247, 0.5), rgba(129, 140, 248, 0.4));
    border-radius: 4px;
    padding: 0 2px;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { background: rgba(168, 85, 247, 0.8); }
    100% { background: rgba(168, 85, 247, 0.4); }
}

/* Search Toast Notification */
.search-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(100deg, var(--primary-dark), var(--secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 880px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        padding: 0.7rem 5%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-mark span {
        width: 4px;
    }
}

/* Main Content Offset (for pages using this nav) */
.main-content-offset {
    padding-top: 85px;
}