/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo {
    height: 40px !important;
    width: auto;
}

.logo-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #5e32a4;
}

.nav-links {
    display: flex;
    gap: 2rem !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links li {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5e32a4;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(4px);
}

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

/* Footer */
footer {
    background: #5e32a4;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
}

.footer-section ul {
    list-style: none;
    margin: 0 !important;
}

.footer-section ul li {
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem !important;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem !important;
    text-align: center;
    font-size: 0.9rem !important;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

.footer-section .social-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.8rem;
}

.footer-section .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section .social-icons a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #5e32a4;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    background: #7c3aed;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0 !important;
        gap: 0 !important;
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
        z-index: 998;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    padding 0.4s ease;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        padding: 1.5rem 2rem !important;
    }

    .nav-links li {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem !important;
        font-size: 1.2rem !important;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        transition: all 0.3s ease;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: rgba(139, 92, 246, 0.1);
        transform: translateX(5px);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}
