* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Custom Cursor - Ultra Smooth */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #9933ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(153, 51, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(153, 51, 255, 0.3);
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
}

/* Navbar Scroll Effect */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(153, 51, 255, 0.3);
}

/* Navbar Active Link */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9933ff, #b366ff);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active::after {
    width: 100%;
}

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

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.animate-scroll {
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes modal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modal {
    animation: modal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FAQ Accordion - Ultra Smooth */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Module Categories - Ultra Smooth */
.module-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-category.active .module-content {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}

.module-category.active .module-icon {
    transform: rotate(180deg);
}

.module-icon {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-item-slider {
    color: #fff;
    padding: 0.75rem 1rem;
    background: rgba(153, 51, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(153, 51, 255, 0.2);
}

.module-item-slider:hover {
    background: rgba(153, 51, 255, 0.25);
    transform: translateX(5px);
    border-color: rgba(153, 51, 255, 0.5);
}

/* Custom Scrollbar for Modules */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9933ff 0%, #b366ff 100%);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b366ff 0%, #9933ff 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9933ff 0%, #b366ff 100%);
    border-radius: 6px;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b366ff 0%, #9933ff 100%);
}

/* Section Reveal */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #9933ff 0%, #b366ff 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(153, 51, 255, 0.5);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(153, 51, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(153, 51, 255, 0.8);
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent Layout Shift */
img {
    max-width: 100%;
    height: auto;
}

/* Focus Styles */
a:focus, button:focus {
    outline: 2px solid #9933ff;
    outline-offset: 4px;
}
