/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

.main-nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

/* Logo Styles */
.nav-logo {
    width: 180px;
    height: auto;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nav-logo.footer-logo img {
    filter: brightness(0) invert(1);
}

/* Desktop Navigation */
.desktop-menu {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

/* Navigation Links */
.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    font-size: 1rem;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #2563eb, #0ea5e9);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link.active {
    color: white;
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    min-width: 120px;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.nav-cta span {
    position: relative;
    z-index: 1;
    color: white;
}

.nav-cta i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    color: white;
}

.nav-cta:hover i {
    transform: translateX(4px);
}

/* Mobile Menu Button */
.mobile-menu-button {
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 1023px) {
    .mobile-menu-button {
        display: block;
    }
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-button span:first-child {
    top: 0;
}

.mobile-menu-button span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-button span:last-child {
    bottom: 0;
}

.mobile-menu-button.active span:first-child {
    transform: rotate(45deg);
    top: 50%;
}

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

.mobile-menu-button.active span:last-child {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    overflow-y: auto;
}

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

.mobile-nav-link {
    display: block;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: white;
    padding-left: 1rem;
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

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

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-dropdown-item i {
    font-size: 1.25rem;
    color: #2563eb;
    transition: transform 0.3s ease;
}

.nav-dropdown-item:hover i {
    transform: translateX(4px);
}

/* Mobile Dropdown */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.mobile-dropdown .mobile-nav-link {
    padding-left: 1.5rem;
}

/* Search Bar */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-search.focused {
    background: rgba(255, 255, 255, 0.15);
}

.nav-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    width: 100%;
    outline: none;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#backToTop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .desktop-menu {
        display: none;
    }

    .nav-logo {
        width: 150px;
    }

    .nav-search {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-logo {
        width: 120px;
    }

    .mobile-menu {
        max-width: 100%;
    }

    .mobile-nav-link {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 