@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
    background: #0a0e27;
    color: #fff;
    transition: zoom 0.4s ease-in-out;
}

/* Global Text Size Scaling */
body.text-size-70 {
    zoom: 0.7;
}

body.text-size-80 {
    zoom: 0.8;
}

body.text-size-90 {
    zoom: 0.9;
}

body.text-size-100 {
    zoom: 1;
}

body.text-size-110 {
    zoom: 1.1;
}

body.text-size-120 {
    zoom: 1.2;
}

body.text-size-130 {
    zoom: 1.3;
}

body.text-size-150 {
    zoom: 1.5;
}

/* Active text size button state */
.text-size-global-btn.active-text-size,
.text-size-btn.active-text-size {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
    transform: scale(1.1);
    border: 2px solid #10b981 !important;
}

/* ============================================ */
/* VIBRANT ANIMATED BACKGROUND */
/* ============================================ */
.magical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #4c0519 50%, #0f766e 75%, #0a0e27 100%);
    animation: magicalShift 25s ease-in-out infinite;
    filter: brightness(1.1);
}

@keyframes magicalShift {
    0% { 
        background: 
            radial-gradient(circle at 10% 20%, rgba(124, 58, 255, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #4c0519 50%, #0f766e 75%, #0a0e27 100%);
    }
    25% {
        background: 
            radial-gradient(circle at 80% 40%, rgba(255, 20, 147, 0.5) 0%, transparent 50%),
            radial-gradient(circle at 20% 70%, rgba(0, 200, 255, 0.5) 0%, transparent 50%),
            radial-gradient(circle at 60% 30%, rgba(124, 58, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #1e3a8a 0%, #4c0519 25%, #0f766e 50%, #0a0e27 75%, #1f2937 100%);
    }
    50% {
        background: 
            radial-gradient(circle at 50% 50%, rgba(124, 58, 255, 0.5) 0%, transparent 50%),
            radial-gradient(circle at 70% 20%, rgba(255, 20, 147, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 30% 80%, rgba(0, 200, 255, 0.4) 0%, transparent 50%),
            linear-gradient(135deg, #4c0519 0%, #0f766e 25%, #0a0e27 50%, #1e3a8a 75%, #1f2937 100%);
    }
    75% {
        background: 
            radial-gradient(circle at 30% 60%, rgba(0, 200, 255, 0.5) 0%, transparent 50%),
            radial-gradient(circle at 80% 30%, rgba(124, 58, 255, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 20, 147, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #0f766e 0%, #0a0e27 25%, #1f2937 50%, #4c0519 75%, #1e3a8a 100%);
    }
    100% {
        background: 
            radial-gradient(circle at 10% 20%, rgba(124, 58, 255, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #4c0519 50%, #0f766e 75%, #0a0e27 100%);
    }
}

/* ============================================ */
/* GLASS MORPHISM EFFECTS */
/* ============================================ */
.glass-effect {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 255, 0.4);
    box-shadow: 0 8px 32px rgba(124, 58, 255, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.glass-effect:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(124, 58, 255, 0.6);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 58, 255, 0.3);
}

/* ============================================ */
/* HEADER NAVBAR STYLES - ULTRA COMPACT */
/* ============================================ */
nav.glass-effect {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(124, 58, 255, 0.3);
    box-shadow: 0 8px 30px rgba(124, 58, 255, 0.25);
    padding: 6px 12px !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
    border: 1px solid rgba(124, 58, 255, 0.3);
    border-radius: 0 0 20px 20px;
}

/* Sticky Header Hide on Scroll Down */
nav.glass-effect.hide {
    transform: translateY(-110%);
}

nav.glass-effect.show {
    transform: translateY(0);
    box-shadow: 0 12px 40px rgba(124, 58, 255, 0.4);
}

/* ============================================ */
/* LOGO AND BRANDING - ULTRA COMPACT */
/* ============================================ */
nav .flex.items-center.space-x-3 {
    gap: 8px !important;
}

#logoContainer {
    font-size: 20px !important;
    width: clamp(40px, 9vw, 56px);
    height: clamp(40px, 9vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    position: relative;
    background: radial-gradient(120% 120% at 50% 50%, rgba(124,58,255,0.35) 0%, rgba(34,211,238,0.35) 50%, rgba(255,20,147,0.35) 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

#logoContainer::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #a855f7, #22d3ee, #f472b6, #a855f7);
    filter: blur(0.5px);
    z-index: 0;
}

#logoContainer img {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    border-radius: 9999px !important;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

#logoContainer:hover {
    transform: scale(1.05);
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Extra small devices: tighten avatar size */
@media (max-width: 360px) {
    #logoContainer {
        width: 36px;
        height: 36px;
    }
}

nav .slide-in-right h1 {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

nav .slide-in-right p {
    font-size: 10px !important;
    margin: 0 !important;
    opacity: 0.7;
    display: none;
}

/* Show subtitle only on desktop */
@media (min-width: 1024px) {
    nav .slide-in-right p {
        display: block;
    }
    
    /* Hide mobile menu on desktop */
    #mobileMenu {
        display: none !important;
    }
}

nav .glow-text {
    background: linear-gradient(135deg, #7c3aff 0%, #ff1493 50%, #00c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    font-weight: 900;
    letter-spacing: 0.5px;
}

@keyframes gradientShift {
    0% { filter: drop-shadow(0 0 3px rgba(124, 58, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.4)); }
    100% { filter: drop-shadow(0 0 3px rgba(0, 200, 255, 0.4)); }
}

/* ============================================ */
/* DESKTOP NAV LINKS - RESPONSIVE DISPLAY */
/* ============================================ */
/* Desktop: Show nav menu */
@media (min-width: 1024px) {
    .hidden.lg\:flex {
        display: flex !important;
        gap: 6px !important;
    }
}

/* Mobile/Tablet: Hide desktop nav menu */
@media (max-width: 1023px) {
    .hidden.lg\:flex {
        display: none !important;
    }
}

/* ============================================ */
/* DROPDOWN NAVIGATION SYSTEM */
/* ============================================ */

/* Nav Dropdown Container */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Nav Links */
.nav-link-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
    background: rgba(124, 58, 255, 0);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link-enhanced span {
    display: inline-block;
    margin-left: 2px;
}

.nav-link-enhanced:hover {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.25), rgba(255, 20, 147, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 255, 0.4),
                0 0 15px rgba(255, 20, 147, 0.3);
}

.nav-dropdown:hover > .nav-link-enhanced {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.3), rgba(255, 20, 147, 0.2));
    box-shadow: 0 8px 25px rgba(124, 58, 255, 0.5);
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(124, 58, 255, 0.4);
    border-radius: 16px;
    padding: 16px;
    min-width: 280px;
    box-shadow: 0 20px 60px rgba(124, 58, 255, 0.4),
                0 10px 30px rgba(255, 20, 147, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    display: flex;
    gap: 20px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Sections */
.dropdown-section {
    flex: 1;
    min-width: 180px;
}

.dropdown-title {
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #7c3aff, #ff1493);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(124, 58, 255, 0.2);
    color: #fbbf24;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(124, 58, 255, 0.3);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Multi-column mega menu for large dropdowns */
.dropdown-menu.mega-menu {
    min-width: 600px;
    max-width: 800px;
}

/* Animation for dropdown items */
.dropdown-menu .dropdown-item {
    animation: slideInLeft 0.3s ease-out backwards;
}

.dropdown-menu .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu .dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu .dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu .dropdown-item:nth-child(5) { animation-delay: 0.25s; }
.dropdown-menu .dropdown-item:nth-child(6) { animation-delay: 0.3s; }
.dropdown-menu .dropdown-item:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 1280px) {
    .nav-link-enhanced span {
        display: inline;
    }
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.3), rgba(255, 20, 147, 0.2));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link-enhanced:hover {
    color: #ffed4a;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 5px 12px rgba(124, 58, 255, 0.3);
}

.nav-link-enhanced:hover::before {
    opacity: 1;
}

/* ============================================ */
/* SEARCH AND BUTTONS - RESPONSIVE */
/* ============================================ */
.hidden.md\\:flex {
    gap: 8px !important;
}

#globalSearch {
    padding: 6px 12px !important;
    font-size: 13px !important;
    width: 200px !important;
}

@media (max-width: 1200px) {
    #globalSearch {
        width: 150px !important;
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
}

#settingsBtn, #desktopAuthBtn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
}

/* Mobile Menu Button */
.lg\\:hidden {
    display: flex !important;
    gap: 6px !important;
}

#mobileMenuBtn {
    padding: 6px 10px !important;
    font-size: 20px !important;
}

/* Mobile Menu Scrollable Container - BEAUTIFUL DESIGN */
#mobileMenu {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999 !important;
    margin: 0;
    border-radius: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    
    /* Beautiful Glass Effect */
    background: linear-gradient(135deg, 
        rgba(20, 10, 50, 0.9) 0%,
        rgba(30, 15, 60, 0.85) 50%,
        rgba(20, 10, 50, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(138, 43, 226, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Smooth opening animation */
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobileMenu.hidden {
    display: none !important;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Custom Scrollbar for Mobile Menu */
#mobileMenu::-webkit-scrollbar {
    width: 8px;
}

#mobileMenu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

#mobileMenu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 58, 255, 0.6), rgba(255, 20, 147, 0.6));
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

#mobileMenu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 58, 255, 0.8), rgba(255, 20, 147, 0.8));
}

/* Mobile Menu Search Box - Enhanced */
#mobileMenuSearch {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(138, 43, 226, 0.05) 100%) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.4) !important;
    color: white !important;
    font-size: 0.95rem;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

#mobileMenuSearch:focus {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(138, 43, 226, 0.1) 100%) !important;
    border-color: rgba(138, 43, 226, 0.6) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 20px rgba(138, 43, 226, 0.3) !important;
}

#mobileMenuSearch::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Mobile Menu Grid - Main Navigation */
#mobileMenu .grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

/* ============================================ */
/* PERFORMANCE & OPTIMIZATION */
/* ============================================ */

/* Reduce animations on scroll */
body.scrolling * {
    animation-duration: 0.1s !important;
    transition-duration: 0.05s !important;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* GPU Acceleration for smooth animations */
.glass-effect,
.magic-btn,
.gallery-item,
.mobile-nav-btn-home,
.mobile-nav-btn-education,
.mobile-nav-btn-travel,
.mobile-nav-btn-news,
.mobile-nav-btn-community,
.mobile-nav-btn-marketplace {
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Optimize images for performance */
img {
    content-visibility: auto;
    contain: layout style paint;
}

/* Lazy load images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[src]:not([data-src]) {
    opacity: 1;
}

/* Optimize event listeners with passive mode */
body {
    scroll-behavior: smooth;
    touch-action: manipulation;
}

/* Reduce blur effects on low-end devices */
@media (max-width: 640px) {
    .glass-effect,
    .backdrop-blur-sm,
    .backdrop-blur {
        backdrop-filter: blur(8px) !important;
    }
    
    /* Mobile Menu Fix - BEAUTIFUL */
    #mobileMenu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: calc(100vh - 60px) !important;
        width: 100vw !important;
        background: linear-gradient(135deg, 
            rgba(20, 10, 50, 0.95) 0%,
            rgba(30, 15, 60, 0.9) 50%,
            rgba(20, 10, 50, 0.95) 100%) !important;
        border-bottom: 3px solid rgba(138, 43, 226, 0.6) !important;
    }
    
    #mobileMenu.hidden {
        display: none !important;
    }
    
    /* Better grid on mobile */
    #mobileMenu .grid-cols-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
    
    /* Better padding */
    #mobileMenu .p-6 {
        padding: 1.5rem 1rem !important;
    }
    
    /* Bigger menu cards on mobile */
    .mobile-menu-card {
        padding: 1rem 0.75rem !important;
        border-radius: 1.2rem !important;
    }
    
    .mobile-menu-card div:first-child {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .mobile-menu-card div:last-child {
        font-size: 0.8rem !important;
    }
    
    /* Bigger quick features */
    .mobile-menu-quick-feature {
        padding: 0.9rem 0.7rem !important;
        border-radius: 1.1rem !important;
    }
    
    .mobile-menu-quick-feature span:first-child {
        font-size: 1.8rem !important;
    }
    
    .mobile-menu-quick-feature span:last-child {
        font-size: 0.75rem !important;
    }
    
    /* Better search box on mobile */
    #mobileMenuSearch {
        padding: 0.8rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 0.9rem !important;
    }
}

/* Optimize shadows for performance */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Prevent layout shifts during animations */
.mobile-nav-btn-home,
.mobile-nav-btn-education,
.mobile-nav-btn-travel,
.mobile-nav-btn-news,
.mobile-nav-btn-community,
.mobile-nav-btn-marketplace {
    contain: layout style paint;
}

/* ============================================ */
/* UNIQUE MOBILE HEADER DESIGN */
/* ============================================ */
@media (max-width: 768px) {
    nav.glass-effect {
        padding: 4px 8px !important;
        border-radius: 0 0 16px 16px;
    }
    
    nav .flex.items-center.space-x-3 {
        gap: 4px !important;
    }
    
    #logoContainer {
        font-size: 18px !important;
        width: 28px;
        height: 28px;
    }
    
    nav .slide-in-right h1 {
        font-size: 14px !important;
    }
    
    nav .slide-in-right p {
        display: none !important;
    }
    
    #globalSearch {
        display: none !important;
    }
    
    .text-2xl.hover\\:scale-110 {
        font-size: 18px !important;
        padding: 4px !important;
    }
    
    /* Mobile Menu improvements for 768px */
    #mobileMenu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    #mobileMenu.hidden {
        display: none !important;
    }
    
    #mobileMenu .grid-cols-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    #mobileMenu .p-6 {
        padding: 1rem !important;
    }
    
    .mobile-menu-card {
        padding: 0.75rem !important;
    }
    
    /* Mobile text size adjustments */
    body.text-size-70 {
        zoom: 0.65;
    }
    
    body.text-size-80 {
        zoom: 0.75;
    }
    
    body.text-size-100 {
        zoom: 0.95;
    }
    
    body.text-size-120 {
        zoom: 1.1;
    }
    
    body.text-size-150 {
        zoom: 1.3;
    }
}

/* ============================================ */
/* MOBILE BOTTOM NAV - SUPER ATTRACTIVE */
/* ============================================ */
/* ULTRA FUTURISTIC MOBILE NAVIGATION */
/* ============================================ */
.mobile-bottom-wrap {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 12px;
    z-index: 60;
    pointer-events: auto;
}

.mobile-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 28px;
    padding: 8px 6px;
    background: linear-gradient(135deg, 
        rgba(10, 15, 35, 0.95) 0%, 
        rgba(15, 20, 45, 0.98) 50%,
        rgba(8, 12, 30, 0.95) 100%);
    box-shadow: 
        0 25px 70px rgba(124, 58, 255, 0.6),
        0 15px 40px rgba(255, 20, 147, 0.4),
        0 8px 20px rgba(0, 200, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(124, 58, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.mobile-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmerScan 3s infinite;
}

@keyframes shimmerScan {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Nav Button Structure */
.nav-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 8px 4px;
}

/* Icon Wrapper with Morphism */
.nav-icon-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 255, 0.15) 0%, 
        rgba(255, 20, 147, 0.15) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        inset 0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 26px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Ripple Effect */
.nav-ripple {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s ease-out;
}

/* Label Styling */
.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Active Indicator */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, 
        #7c3aff 0%, 
        #ff1493 50%, 
        #00c8ff 100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -2px 10px rgba(124, 58, 255, 0.8);
}

/* Hover Effects */
.mobile-nav-btn-home:hover .nav-icon,
.mobile-nav-btn-education:hover .nav-icon,
.mobile-nav-btn-travel:hover .nav-icon,
.mobile-nav-btn-news:hover .nav-icon,
.mobile-nav-btn-community:hover .nav-icon,
.mobile-nav-btn-marketplace:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(124, 58, 255, 0.6));
}

.mobile-nav-btn-home:hover .nav-icon-bg,
.mobile-nav-btn-education:hover .nav-icon-bg,
.mobile-nav-btn-travel:hover .nav-icon-bg,
.mobile-nav-btn-news:hover .nav-icon-bg,
.mobile-nav-btn-community:hover .nav-icon-bg,
.mobile-nav-btn-marketplace:hover .nav-icon-bg {
    background: linear-gradient(135deg, 
        rgba(124, 58, 255, 0.3) 0%, 
        rgba(255, 20, 147, 0.3) 100%);
    transform: scale(1.05);
}

.mobile-nav-btn-home:hover .nav-label,
.mobile-nav-btn-education:hover .nav-label,
.mobile-nav-btn-travel:hover .nav-label,
.mobile-nav-btn-news:hover .nav-label,
.mobile-nav-btn-community:hover .nav-label,
.mobile-nav-btn-marketplace:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Click Ripple Effect */
.mobile-nav-btn-home:active .nav-ripple,
.mobile-nav-btn-education:active .nav-ripple,
.mobile-nav-btn-travel:active .nav-ripple,
.mobile-nav-btn-news:active .nav-ripple,
.mobile-nav-btn-community:active .nav-ripple,
.mobile-nav-btn-marketplace:active .nav-ripple {
    opacity: 1;
    transform: scale(1.5);
}

/* ============================================ */
/* ACTIVE STATE - ULTRA PREMIUM */
/* ============================================ */
.mobile-nav-btn-home.active .nav-icon-bg,
.mobile-nav-btn-education.active .nav-icon-bg,
.mobile-nav-btn-travel.active .nav-icon-bg,
.mobile-nav-btn-news.active .nav-icon-bg,
.mobile-nav-btn-community.active .nav-icon-bg,
.mobile-nav-btn-marketplace.active .nav-icon-bg {
    background: linear-gradient(135deg, 
        rgba(124, 58, 255, 0.6) 0%, 
        rgba(255, 20, 147, 0.6) 50%,
        rgba(0, 200, 255, 0.6) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 35px rgba(124, 58, 255, 0.7),
        0 8px 20px rgba(255, 20, 147, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.3);
    animation: activeGlowPulse 2s ease-in-out infinite;
}

.mobile-nav-btn-home.active .nav-icon,
.mobile-nav-btn-education.active .nav-icon,
.mobile-nav-btn-travel.active .nav-icon,
.mobile-nav-btn-news.active .nav-icon,
.mobile-nav-btn-community.active .nav-icon,
.mobile-nav-btn-marketplace.active .nav-icon {
    transform: scale(1.25);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
            drop-shadow(0 4px 15px rgba(124, 58, 255, 0.9));
    animation: iconBounce 1.5s ease-in-out infinite;
}

.mobile-nav-btn-home.active .nav-label,
.mobile-nav-btn-education.active .nav-label,
.mobile-nav-btn-travel.active .nav-label,
.mobile-nav-btn-news.active .nav-label,
.mobile-nav-btn-community.active .nav-label,
.mobile-nav-btn-marketplace.active .nav-label {
    font-weight: 900;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(124, 58, 255, 1),
        0 0 30px rgba(255, 20, 147, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
    letter-spacing: 1px;
}

.mobile-nav-btn-home.active .nav-indicator,
.mobile-nav-btn-education.active .nav-indicator,
.mobile-nav-btn-travel.active .nav-indicator,
.mobile-nav-btn-news.active .nav-indicator,
.mobile-nav-btn-community.active .nav-indicator,
.mobile-nav-btn-marketplace.active .nav-indicator {
    transform: translateX(-50%) scaleX(1);
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

/* ============================================ */
/* INACTIVE STATE - BLURRED & DIMMED */
/* ============================================ */
.mobile-nav-btn-home:not(.active),
.mobile-nav-btn-education:not(.active),
.mobile-nav-btn-travel:not(.active),
.mobile-nav-btn-news:not(.active),
.mobile-nav-btn-community:not(.active),
.mobile-nav-btn-marketplace:not(.active) {
    opacity: 0.4;
    filter: blur(0.8px) grayscale(40%);
    transition: all 0.4s ease;
}

.mobile-nav-btn-home:not(.active) .nav-icon-bg,
.mobile-nav-btn-education:not(.active) .nav-icon-bg,
.mobile-nav-btn-travel:not(.active) .nav-icon-bg,
.mobile-nav-btn-news:not(.active) .nav-icon-bg,
.mobile-nav-btn-community:not(.active) .nav-icon-bg,
.mobile-nav-btn-marketplace:not(.active) .nav-icon-bg {
    background: linear-gradient(135deg, 
        rgba(124, 58, 255, 0.08) 0%, 
        rgba(255, 20, 147, 0.08) 100%);
    transform: scale(0.92);
}

.mobile-nav-btn-home:not(.active) .nav-icon,
.mobile-nav-btn-education:not(.active) .nav-icon,
.mobile-nav-btn-travel:not(.active) .nav-icon,
.mobile-nav-btn-news:not(.active) .nav-icon,
.mobile-nav-btn-community:not(.active) .nav-icon,
.mobile-nav-btn-marketplace:not(.active) .nav-icon {
    transform: scale(0.9);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.mobile-nav-btn-home:not(.active) .nav-label,
.mobile-nav-btn-education:not(.active) .nav-label,
.mobile-nav-btn-travel:not(.active) .nav-label,
.mobile-nav-btn-news:not(.active) .nav-label,
.mobile-nav-btn-community:not(.active) .nav-label,
.mobile-nav-btn-marketplace:not(.active) .nav-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */
@keyframes activeGlowPulse {
    0%, 100% {
        box-shadow: 
            0 15px 35px rgba(124, 58, 255, 0.7),
            0 8px 20px rgba(255, 20, 147, 0.5),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 20px 45px rgba(124, 58, 255, 0.9),
            0 12px 30px rgba(255, 20, 147, 0.7),
            inset 0 2px 15px rgba(255, 255, 255, 0.4);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.25) translateY(0); }
    50% { transform: scale(1.28) translateY(-3px); }
}

@keyframes indicatorPulse {
    0%, 100% {
        width: 30px;
        opacity: 1;
    }
    50% {
        width: 40px;
        opacity: 0.8;
    }
}

/* ============================================ */
/* MAGIC BUTTON STYLES */
/* ============================================ */
.magic-btn {
    position: relative;

}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
    max-width: 95%;
    max-height: 92%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.98);
    transition: transform 240ms ease;
}
.lightbox-overlay:active .lightbox-img { transform: scale(0.96); }
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.lightbox-caption {
    margin-top: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-align: center;
}

.magic-btn {
    position: relative;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    background: linear-gradient(135deg, #ffed4a 0%, #ffa500 50%, #ff6b00 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.magic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.magic-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 20px 50px rgba(255, 165, 0, 0.6),
                0 0 30px rgba(255, 107, 0, 0.4);
    filter: brightness(1.2);
}

.magic-btn:hover::before {
    left: 100%;
}

.magic-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ============================================ */
/* GLOW TEXT EFFECTS */
/* ============================================ */
.glow-text {
    color: #fff;
    text-shadow: 
        0 0 10px rgba(124, 58, 255, 0.6),
        0 0 20px rgba(255, 20, 147, 0.4),
        0 0 30px rgba(0, 200, 255, 0.3);
    animation: textGlowPulse 3s ease-in-out infinite;
}

@keyframes textGlowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(124, 58, 255, 0.6),
            0 0 20px rgba(255, 20, 147, 0.4),
            0 0 30px rgba(0, 200, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(124, 58, 255, 0.9),
            0 0 40px rgba(255, 20, 147, 0.7),
            0 0 60px rgba(0, 200, 255, 0.5);
    }
}

/* ============================================ */
/* CARD HOVER ANIMATIONS */
/* ============================================ */
.card-hover {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmerMove 3s infinite;
    opacity: 0;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.03) rotateX(3deg);
    box-shadow: 0 30px 60px rgba(124, 58, 255, 0.4),
                0 0 40px rgba(255, 20, 147, 0.2);
}

.card-hover:hover::before {
    opacity: 1;
}

/* Feature Card Compact - Mobile Optimized */
.feature-compact {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(124, 58, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(10px);
}

.feature-compact:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 25px rgba(124, 58, 255, 0.2),
                0 0 15px rgba(255, 20, 147, 0.15);
}

/* Feature Card Styling - Desktop */
.feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(20px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 30px 80px rgba(124, 58, 255, 0.35),
                0 0 40px rgba(255, 20, 147, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-12px) scale(1.03);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Dropdown styling - UPWARD DIRECTION */
#sizeDropdown,
#fontDropdown {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 280px;
    overflow-y: auto;
}

#sizeDropdown:not(.hidden),
#fontDropdown:not(.hidden) {
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow rotation */
#sizeArrow,
#fontArrow {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}
    display: inline-block;
}

@keyframes shimmerMove {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(50%, 50%) rotate(45deg); }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */
@keyframes bounce-in {
    0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1) rotate(0deg); }
}

.bounce-in {
    animation: bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(60px) skewX(10deg); }
    to { opacity: 1; transform: translateX(0) skewX(0deg); }
}

.slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    50% { transform: translateY(-20px) rotateZ(1deg); }
}

.float {
    animation: float 5s ease-in-out infinite;
}

@keyframes staggerEntry {
    from { opacity: 0; transform: translateY(30px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.stagger-item {
    animation: staggerEntry 0.6s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }
.stagger-item:nth-child(9) { animation-delay: 0.9s; }
.stagger-item:nth-child(10) { animation-delay: 1s; }

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(124, 58, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 20, 147, 0.6)); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes rotateGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Section styling */
.section {
    animation: fadeInSection 0.7s ease-out;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
h1, h2 {
    letter-spacing: 1px;
}

p {
    line-height: 1.8;
}

/* Button Styles */
button, a.magic-btn, input[type="button"], input[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Input Styles */
input, textarea, select {
    background: rgba(124, 58, 255, 0.1);
    border: 2px solid rgba(124, 58, 255, 0.3);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

input:focus, textarea:focus, select:focus {
    background: rgba(124, 58, 255, 0.2);
    border-color: rgba(124, 58, 255, 0.8);
    box-shadow: 0 0 20px rgba(124, 58, 255, 0.5),
                inset 0 0 20px rgba(124, 58, 255, 0.1);
    outline: none;
    transform: scale(1.02);
}

/* Footer Styling */
.footer-container {
    background: rgba(15, 23, 42, 0.6);
    border-top: 2px solid rgba(124, 58, 255, 0.3);
    border-radius: 20px 20px 0 0;
    padding: 40px 20px 20px;
}

.magic-btn { background: linear-gradient(90deg,#ffed4a20,#ff9a00a0); border: none; color: white; padding: 8px 12px; border-radius: 8px; }
.magic-btn:hover { transform: translateY(-2px); }

/* Footer modal inputs */
#quickContactModal input, #quickContactModal textarea { border: 1px solid rgba(255,255,255,0.06); }

/* Footer responsive */
@media (max-width: 640px) {
    .footer-container { padding: 16px; }
    .footer-container .grid { gap: 12px; }
}

/* Floating Animation */
.float {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Bounce Animation */
.bounce-in {
    animation: bounceIn 1.2s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate Animation */
.rotate-in {
    animation: rotateIn 1s ease-out;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Fade In Up */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce In Animation */
.animate-bounce-in {
    animation: bounceInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceInScale {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* FAQ Answer Animation */
.faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Section Management */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Dark Mode Styling */
body.dark-mode {
    background: #000000 !important;
    color: #ffffff !important;
}

body.dark-mode .magical-bg {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #000000 100%) !important;
    opacity: 0.8;
}

body.dark-mode .glass-effect {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode nav,
body.dark-mode .feature-compact,
body.dark-mode .feature-card {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .text-white {
    color: #ffffff !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode span,
body.dark-mode button {
    color: #ffffff !important;
}

/* ===== NEW MOBILE-FIRST APP FEATURES ===== */

/* Reading Progress Indicator */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    z-index: 100;
    transition: width 0.3s ease;
}

/* Reading Mode */
body.reading-mode {
    background: #f5f5f5 !important;
    line-height: 1.8 !important;
    letter-spacing: 0.5px;
}

body.reading-mode .magical-bg {
    opacity: 0 !important;
}

body.reading-mode .glass-effect {
    background: white !important;
    color: #333 !important;
}

body.reading-mode * {
    color: #333 !important;
}

/* Focus Mode - Hide Distractions */
body.focus-mode {
    --focus-blur: 8px;
}

body.focus-mode .bottom-nav,
body.focus-mode #interstitialAdModal,
body.focus-mode .ad-unit,
body.focus-mode [data-ad-slot],
body.focus-mode ins.adsbygoogle {
    display: none !important;
}

body.focus-mode nav {
    position: relative;
    z-index: 100;
}

body.focus-mode main,
body.focus-mode section {
    filter: none;
}

body.focus-mode .glass-effect:not(nav .glass-effect) {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(124, 58, 255, 0.05);
}

/* Pull-to-Refresh Icon */
#pullRefreshIcon {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 50;
    transition: transform 0.3s ease;
}

/* Smooth Transitions for Theme Changes */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.glass-effect {
    transition: background 0.5s ease, border-color 0.5s ease;
}

/* Mobile Bottom Navigation - New */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 40;
}

.bottom-nav button {
    position: relative;
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 1rem;
}

.bottom-nav button:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

/* Loading Bar Animation */
@keyframes slideProgress {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Swipe Gesture Animations */
.swipe-left {
    animation: swipeLeft 0.3s ease-out;
}

.swipe-right {
    animation: swipeRight 0.3s ease-out;
}

@keyframes swipeLeft {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes swipeRight {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Haptic Feedback Visual Indicator */
.haptic-feedback {
    animation: hapticPulse 0.3s ease-out;
}

@keyframes hapticPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Notification Toast Styles */
.notification-toast {
    animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Safe Area Handling for Notches */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    nav {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Scrollbar Styling for Desktop */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #f093fb);
}

/* Dark Mode Scrollbar */
body.light-theme::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme::-webkit-scrollbar-thumb {
    background: #667eea;
}

/* Selection Highlighting */
::selection {
    background: linear-gradient(45deg, #667eea, #f093fb);
    color: white;
}

::-moz-selection {
    background: linear-gradient(45deg, #667eea, #f093fb);
    color: white;
}

/* Focus States for Accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-hidden { display: none !important; }
    .mobile-full { width: 100% !important; }
    .mobile-text-sm { font-size: 0.875rem !important; }
    .mobile-p-2 { padding: 0.5rem !important; }
    .mobile-m-2 { margin: 0.5rem !important; }
    
    /* Better mobile spacing */
    nav { padding: 0.75rem 0.5rem !important; }
    .container { padding: 0.75rem !important; }
    
    /* Larger touch targets for mobile */
    button { min-height: 44px !important; min-width: 44px !important; }
    input, textarea { min-height: 44px !important; padding: 12px !important; }
    
    /* Better readable text on mobile */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.125rem !important; }
    
    /* Improved card spacing */
    .glass-effect { margin-bottom: 0.75rem !important; padding: 1rem !important; }
    
    /* Better grid for mobile */
    .grid { gap: 0.75rem !important; }
    
    /* Fix bottom nav positioning */
    body { padding-bottom: 100px !important; }
    
    /* Mobile-first optimizations */
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    
    /* Touch-friendly spacing */
    .glass-effect button { margin: 0.5rem 0; }
    
    /* Reduce animation complexity on mobile */
    * {
        -webkit-animation-duration: 0.5s !important;
        animation-duration: 0.5s !important;
    }
    
    /* Better keyboard handling */
    input:focus,
    textarea:focus {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Optimize for small screens */
    .text-4xl { font-size: 1.75rem !important; }
    .text-5xl { font-size: 2rem !important; }
    .text-6xl { font-size: 2.25rem !important; }
}

@view-transition { navigation: auto; }

/* Light Theme */
body.light-theme {
    background-color: #f5f5f5;
}

body.light-theme .magical-bg {
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
}

body.light-theme .glass-effect {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .glass-dark {
    background: rgba(240, 240, 240, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme p,
body.light-theme div,
body.light-theme span,
body.light-theme a {
    color: #333333 !important;
}

body.light-theme .text-white {
    color: #333333 !important;
}

body.light-theme .text-white.opacity-80 {
    color: #666666 !important;
}

body.light-theme .text-white.opacity-70 {
    color: #777777 !important;
}

body.light-theme .text-white.opacity-60 {
    color: #888888 !important;
}

body.light-theme input,
body.light-theme textarea,
body.light-theme select {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #333333 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #999999 !important;
}

body.light-theme .nav {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Modern Mobile Menu Styling with SVG Icons */
.mobile-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    min-height: 70px;
}

.mobile-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.mobile-menu-card > * {
    position: relative;
    z-index: 1;
}

.mobile-menu-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.2);
}

.mobile-menu-card:hover::before {
    opacity: 1;
}

.mobile-menu-card:active {
    transform: translateY(0) scale(0.98);
}

.mobile-menu-card .menu-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.375rem;
    stroke-width: 2;
    transition: all 0.25s ease;
}

.mobile-menu-card:hover .menu-icon {
    transform: scale(1.1);
    color: rgba(167, 139, 250, 1);
}

.mobile-menu-card .menu-label {
    font-size: 0.688rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.015em;
    line-height: 1.2;
}

.mobile-menu-quick-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    color: white;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 60px;
}

.mobile-menu-quick-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

.mobile-menu-quick-feature:active {
    transform: scale(0.98);
}

.mobile-menu-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.875rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.25s ease;
    position: relative;
}

.mobile-menu-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.25);
    transform: translateX(2px);
}

.mobile-menu-list-item:active {
    transform: scale(0.98);
}

/* Compact mode adjustments */
body.compact-mode .mobile-menu-card {
    padding: 0.75rem;
}

body.compact-mode .mobile-menu-list-item {
    padding: 0.625rem 0.75rem;
}

/* Settings Tab Styling */
.settings-tab-btn {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-tab-btn:hover {
    color: #FFD700;
}

.settings-tab-btn.active {
    color: #FFD700;
}

.settings-tab-content {
    animation: fadeIn 0.3s ease-in;
}

.settings-tab-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High Contrast Mode */
body.high-contrast {
    --tw-text-opacity: 1;
}

body.high-contrast * {
    border-width: 2px !important;
}

/* Developer Mode - Show debug info */
body.dev-mode::after {
    content: 'DEV MODE';
    position: fixed;
    top: 0;
    right: 0;
    background: red;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    z-index: 9999;
    border-radius: 0 0 0 4px;
}

/* Accent Colors */
body.accent-cyan {
    --accent-color: #00BFFF;
}

body.accent-pink {
    --accent-color: #FF1493;
}

body.accent-green {
    --accent-color: #00FF00;
}

/* Mobile Menu Quick Feature Buttons */
.mobile-menu-quick-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%,
        rgba(138, 43, 226, 0.1) 50%,
        rgba(255, 20, 147, 0.1) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-menu-quick-feature::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.mobile-menu-quick-feature:hover::before {
    width: 300%;
    height: 300%;
    top: -75%;
    left: -75%;
}

.mobile-menu-quick-feature:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%,
        rgba(138, 43, 226, 0.2) 50%,
        rgba(255, 20, 147, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mobile-menu-quick-feature:active {
    transform: translateY(-2px) scale(0.95);
}

.mobile-menu-quick-feature span:first-child {
    font-size: 1.8rem;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mobile-menu-quick-feature:hover span:first-child {
    transform: scale(1.2) rotate(-10deg);
}

.mobile-menu-quick-feature span:last-child {
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Enhanced Mobile Navigation Buttons */
.mobile-nav-btn-home, .mobile-nav-btn-education, .mobile-nav-btn-travel, 
.mobile-nav-btn-news, .mobile-nav-btn-community, .mobile-nav-btn-marketplace {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 5.5rem;
    padding: 0.5rem 0.3rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
}

/* Home - Yellow Gold Gradient with Pattern */
.mobile-nav-btn-home {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mobile-nav-btn-home:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.25) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(251, 191, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Education - Blue Sky Gradient */
.mobile-nav-btn-education {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(96, 165, 250, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn-education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(96, 165, 250, 0.05) 50%, transparent 70%);
    background-size: 20px 20px;
    pointer-events: none;
}

.mobile-nav-btn-education:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(96, 165, 250, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Travel - Green Forest Gradient */
.mobile-nav-btn-travel {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(74, 222, 128, 0.15) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn-travel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(74, 222, 128, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.mobile-nav-btn-travel:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(74, 222, 128, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* News - Red Fire Gradient */
.mobile-nav-btn-news {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(252, 92, 125, 0.15) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(239, 68, 68, 0.08) 50%, transparent 100%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mobile-nav-btn-news:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(252, 92, 125, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Community - Purple Magic Gradient */
.mobile-nav-btn-community {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(192, 132, 250, 0.15) 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn-community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        conic-gradient(from 0deg, rgba(168, 85, 247, 0.1) 0deg 90deg, transparent 90deg);
    pointer-events: none;
}

.mobile-nav-btn-community:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(192, 132, 250, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Marketplace - Orange Sunset Gradient */
.mobile-nav-btn-marketplace {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(251, 146, 60, 0.15) 100%);
    border: 2px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn-marketplace::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(180deg, rgba(249, 115, 22, 0.1) 0%, transparent 50%, rgba(251, 146, 60, 0.1) 100%);
    pointer-events: none;
}

.mobile-nav-btn-marketplace:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4) 0%, rgba(251, 146, 60, 0.25) 100%);
    border-color: rgba(249, 115, 22, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* All buttons active state */
.mobile-nav-btn-home:active, .mobile-nav-btn-education:active, .mobile-nav-btn-travel:active,
.mobile-nav-btn-news:active, .mobile-nav-btn-community:active, .mobile-nav-btn-marketplace:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .mobile-nav-btn-home, .mobile-nav-btn-education, .mobile-nav-btn-travel, 
    .mobile-nav-btn-news, .mobile-nav-btn-community, .mobile-nav-btn-marketplace {
        min-height: 5rem;
        padding: 0.4rem 0.25rem;
    }

    .mobile-nav-btn-home .text-xl, .mobile-nav-btn-education .text-xl, .mobile-nav-btn-travel .text-xl,
    .mobile-nav-btn-news .text-xl, .mobile-nav-btn-community .text-xl, .mobile-nav-btn-marketplace .text-xl {
        font-size: 1.25rem;
    }

    .mobile-nav-btn-home .text-xs, .mobile-nav-btn-education .text-xs, .mobile-nav-btn-travel .text-xs,
    .mobile-nav-btn-news .text-xs, .mobile-nav-btn-community .text-xs, .mobile-nav-btn-marketplace .text-xs {
        font-size: 0.6rem;
    }
}

@media (min-width: 381px) and (max-width: 480px) {
    .mobile-nav-btn-home, .mobile-nav-btn-education, .mobile-nav-btn-travel, 
    .mobile-nav-btn-news, .mobile-nav-btn-community, .mobile-nav-btn-marketplace {
        min-height: 5.25rem;
        padding: 0.45rem 0.3rem;
    }

    .mobile-nav-btn-home .text-xl, .mobile-nav-btn-education .text-xl, .mobile-nav-btn-travel .text-xl,
    .mobile-nav-btn-news .text-xl, .mobile-nav-btn-community .text-xl, .mobile-nav-btn-marketplace .text-xl {
        font-size: 1.35rem;
    }

    .mobile-nav-btn-home .text-xs, .mobile-nav-btn-education .text-xs, .mobile-nav-btn-travel .text-xs,
    .mobile-nav-btn-news .text-xs, .mobile-nav-btn-community .text-xs, .mobile-nav-btn-marketplace .text-xs {
        font-size: 0.65rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav-btn-home, .mobile-nav-btn-education, .mobile-nav-btn-travel, 
    .mobile-nav-btn-news, .mobile-nav-btn-community, .mobile-nav-btn-marketplace {
        min-height: 5.75rem;
        padding: 0.55rem 0.4rem;
    }

    .mobile-nav-btn-home .text-xl, .mobile-nav-btn-education .text-xl, .mobile-nav-btn-travel .text-xl,
    .mobile-nav-btn-news .text-xl, .mobile-nav-btn-community .text-xl, .mobile-nav-btn-marketplace .text-xl {
        font-size: 1.5rem;
    }

    .mobile-nav-btn-home .text-xs, .mobile-nav-btn-education .text-xs, .mobile-nav-btn-travel .text-xs,
    .mobile-nav-btn-news .text-xs, .mobile-nav-btn-community .text-xs, .mobile-nav-btn-marketplace .text-xs {
        font-size: 0.7rem;
    }
}

/* Positioning for bottom wrap */
.mobile-bottom-wrap {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 6px;
    z-index: 60;
    pointer-events: auto;
}

.mobile-bottom-bar {
    border-radius: 14px;
    padding: 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px) saturate(120%);
}

/* Circular icon style */
.mobile-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile-nav-btn-home .mobile-icon { background: radial-gradient(circle at 30% 30%, rgba(255,250,205,0.9), rgba(251,191,36,0.15)); color: #7c4b00 }
.mobile-nav-btn-education .mobile-icon { background: radial-gradient(circle at 30% 30%, rgba(235,248,255,0.95), rgba(59,130,246,0.12)); color: #03396c }
.mobile-nav-btn-travel .mobile-icon { background: radial-gradient(circle at 30% 30%, rgba(240,255,243,0.95), rgba(34,197,94,0.12)); color: #065f46 }
.mobile-nav-btn-news .mobile-icon { background: radial-gradient(circle at 30% 30%, rgba(255,243,244,0.95), rgba(239,68,68,0.12)); color: #6b0210 }
.mobile-nav-btn-community .mobile-icon { background: radial-gradient(circle at 30% 30%, rgba(250,245,255,0.95), rgba(168,85,247,0.12)); color: #3b0764 }
.mobile-nav-btn-marketplace .mobile-icon { background: radial-gradient(circle at 30% 30%, rgba(255,250,240,0.95), rgba(249,115,22,0.12)); color: #4b1f00 }

.mobile-nav-btn-home:active .mobile-icon, .mobile-nav-btn-education:active .mobile-icon,
.mobile-nav-btn-travel:active .mobile-icon, .mobile-nav-btn-news:active .mobile-icon,
.mobile-nav-btn-community:active .mobile-icon, .mobile-nav-btn-marketplace:active .mobile-icon {
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* Enhanced Desktop Navigation Links */
.nav-link-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-link-enhanced:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
    color: #fef08a;
}

.nav-link-enhanced:hover::before {
    left: 100%;
}

.nav-link-enhanced:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.15);
}

.nav-link-enhanced span {
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Mobile bottom padding to avoid nav overlap */
@media (max-width: 1023px) {
    main, .section {
        padding-bottom: 8rem !important;
    }
}

body.accent-yellow {
    --accent-color: #FFD700;
}

/* Footer styles */
.footer-container {
    background: linear-gradient(180deg, rgba(10,10,10,0.4), rgba(10,10,10,0.5));
    border-radius: 12px;
}

.footer-container h5 { color: #fff; }
.social-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,0.03); color:white; text-decoration:none; }
.social-btn:hover { transform:translateY(-3px); box-shadow:0 6px 14px rgba(0,0,0,0.5); }

#footerNewsletterEmail { border: 1px solid rgba(255,255,255,0.06); }

.magic-btn { 
    background: linear-gradient(90deg,#ffed4a20,#ff9a00a0); 
    border: none; 
    color: white; 
    padding: 8px 12px; 
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.magic-btn:hover::before {
    left: 100%;
}

.magic-btn:hover { 
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 237, 74, 0.4);
    filter: brightness(1.15);
}

.magic-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Advanced Glow Text Effect */
.glow-text {
    animation: textGlow 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 237, 74, 0.5);
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 237, 74, 0.5),
                     0 0 20px rgba(255, 157, 77, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 237, 74, 0.8),
                     0 0 30px rgba(255, 157, 77, 0.5),
                     0 0 40px rgba(255, 100, 100, 0.3);
    }
}

/* Card Hover Animation */
.card-hover {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 157, 77, 0.3);
}

.card-hover:hover::after {
    opacity: 1;
}

/* Bounce Animation */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide In From Right */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slide-in-right 0.7s ease-out;
}

/* Fade In Up */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float {
    animation: float 4s ease-in-out infinite;
}

/* Stagger Item Animation */
.stagger-item {
    animation: fade-in-up 0.6s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }
.stagger-item:nth-child(9) { animation-delay: 0.9s; }
.stagger-item:nth-child(10) { animation-delay: 1s; }

/* Shimmer Effect for Loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 237, 74, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 237, 74, 0.8);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Rainbow Text Animation */
@keyframes rainbow-text {
    0% { color: #ff0000; }
    16.66% { color: #ff7700; }
    33.33% { color: #ffff00; }
    50% { color: #00ff00; }
    66.66% { color: #0000ff; }
    83.33% { color: #4b0082; }
    100% { color: #9400d3; }
}

.rainbow-text {
    animation: rainbow-text 3s linear infinite;
}

/* Footer modal inputs */
#quickContactModal input, #quickContactModal textarea { border: 1px solid rgba(255,255,255,0.06); }

/* Footer responsive */
@media (max-width: 640px) {
    .footer-container { padding: 16px; }
    .footer-container .grid { gap: 12px; }
}

/* Advanced Interactive Button Styles */
button, a.magic-btn, [role="button"] {
    position: relative;
    overflow: hidden;
}

/* Ripple Effect Container */
button::before, a.magic-btn::before, [role="button"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

button:active::before, a.magic-btn:active::before, [role="button"]:active::before {
    width: 300px;
    height: 300px;
}

/* Smooth Transitions for All Interactive Elements */
button, a, input, select, textarea, [onclick], [role="button"] {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced Hover State for Links */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffed4a, #ff9a00);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Glowing Border Animation */
.glowing-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.glowing-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffed4a, #ff9a00, #ff6b6b, #4ecdc4);
    border-radius: inherit;
    animation: glow-border 3s linear infinite;
    z-index: -1;
}

@keyframes glow-border {
    0% {
        background: linear-gradient(45deg, #ffed4a, #ff9a00, #ff6b6b, #4ecdc4);
    }
    50% {
        background: linear-gradient(90deg, #ff9a00, #ff6b6b, #4ecdc4, #ffed4a);
    }
    100% {
        background: linear-gradient(45deg, #4ecdc4, #ffed4a, #ff9a00, #ff6b6b);
    }
}

/* Section Transitions */
.section {
    animation: sectionFadeIn 0.6s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Input Focus Glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 20px rgba(255, 237, 74, 0.5),
                inset 0 0 20px rgba(255, 237, 74, 0.1);
    transform: scale(1.02);
    border-color: rgba(255, 237, 74, 0.6) !important;
}

/* Loading Skeleton Animation */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Unique Section Styling */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffed4a, transparent);
    animation: slideInUnderline 0.8s ease-out;
}

@keyframes slideInUnderline {
    from {
        width: 0;
        left: 0;
    }
    to {
        width: 100%;
    }
}

/* Tooltip Animation */
[title], [data-tooltip] {
    position: relative;
}

[title]:hover::after, [data-tooltip]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    animation: tooltipFadeIn 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================ */
/* GALLERY ANIMATIONS */
/* ============================================ */

/* Fade in and slide up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for gallery items */
.gallery-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }
.gallery-item:nth-child(13) { animation-delay: 0.7s; }
.gallery-item:nth-child(14) { animation-delay: 0.75s; }
.gallery-item:nth-child(15) { animation-delay: 0.8s; }
.gallery-item:nth-child(16) { animation-delay: 0.85s; }

/* Shimmer effect on load */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Floating animation for gallery header icon */
@keyframes floatGallery {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.gallery-icon-float {
    animation: floatGallery 3s ease-in-out infinite;
    display: inline-block;
}

/* Pulse glow animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 255, 0.6), 0 0 60px rgba(255, 20, 147, 0.4);
    }
}

.gallery-item:hover {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Zoom and rotate on hover */
.gallery-zoom {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-zoom:hover {
    transform: scale(1.15) rotate(2deg);
}

/* Slide in from sides */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Border glow animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(124, 58, 255, 0.5);
    }
    25% {
        border-color: rgba(255, 20, 147, 0.5);
    }
    50% {
        border-color: rgba(0, 200, 255, 0.5);
    }
    75% {
        border-color: rgba(255, 237, 74, 0.5);
    }
}

.gallery-border-animate {
    border: 2px solid transparent;
    animation: borderGlow 3s linear infinite;
}

/* Heartbeat animation for special items */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.05);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.gallery-highlight:hover {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ============================================ */
/* ESSENTIAL UTILITY CLASSES - CRITICAL FIX */
/* ============================================ */

/* Hidden class - MOST IMPORTANT */
.hidden {
    display: none !important;
}

/* Flex classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Grid classes */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Padding classes */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Margin classes */
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-half { width: 50%; }
.w-third { width: 33.333%; }
.w-two-thirds { width: 66.667%; }

.h-full { height: 100%; }
.h-auto { height: auto; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.max-h-96 { max-height: 24rem; }

/* Rounded corners */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Text utilities */
.text-white { color: white; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Background colors with opacity */
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }

.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/8 { background-color: rgba(255, 255, 255, 0.08); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }

/* Red backgrounds */
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-red-500\/40 { background-color: rgba(239, 68, 68, 0.4); }
.bg-red-600 { background-color: #dc2626; }

/* Green backgrounds */
.bg-green-500\/40 { background-color: rgba(34, 197, 94, 0.4); }
.bg-green-600\/20 { background-color: rgba(22, 163, 74, 0.2); }

/* Blue backgrounds */
.bg-blue-500\/40 { background-color: rgba(59, 130, 246, 0.4); }
.bg-blue-600 { background-color: #2563eb; }

/* Yellow backgrounds */
.bg-yellow-300 { background-color: #fcd34d; }
.bg-yellow-400 { background-color: #facc15; }
.bg-yellow-500\/40 { background-color: rgba(234, 179, 8, 0.4); }

/* Orange backgrounds */
.bg-orange-500\/40 { background-color: rgba(249, 115, 22, 0.4); }

/* Gray backgrounds */
.bg-gray-500\/40 { background-color: rgba(107, 114, 128, 0.4); }
.bg-gray-600 { background-color: #4b5563; }

/* Purple backgrounds */
.bg-purple-600\/20 { background-color: rgba(147, 51, 234, 0.2); }

/* Transitions & Animations */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 0.3s; }
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }

/* Hover effects */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-white\/30:hover { background-color: rgba(255, 255, 255, 0.3); }
.hover\:text-yellow-300:hover { color: #fcd34d; }
.hover\:text-yellow-400:hover { color: #facc15; }

/* Focus states */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { outline-width: 2px; }
.focus\:ring-yellow-400:focus { outline-color: #facc15; }

/* Responsive utilities */
@media (max-width: 640px) {
    .hidden.sm\:block { display: none; }
    .sm\:block { display: block; }
}

@media (max-width: 768px) {
    .hidden.md\:flex { display: none; }
    .md\:hidden { display: none; }
    .md\:pb-0 { padding-bottom: 0; }
}

@media (max-width: 1023px) {
    .hidden.lg\:flex { display: none !important; }
    .lg\:hidden { display: block !important; }
    
    /* Show mobile menu button */
    .lg\:hidden.flex { display: flex !important; }
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Position */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-60 { z-index: 60; }

/* Border */
.border { border: 1px solid #e5e7eb; }
.border-b-2 { border-bottom-width: 2px; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-yellow-400 { border-color: #facc15; }
.border-transparent { border-color: transparent; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

/* Animations */
.animate-bounce { animation: bounce 1s infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.5rem); }
}

/* ============================================ */
/* EDUCATION HUB SPECIFIC STYLES - MERGED */
/* ============================================ */

/* ============================================ */
/* UNIQUE BUTTON VARIANTS - EDUCATION HUB */
/* ============================================ */
.btn-aurora {
    background: linear-gradient(135deg, #7c3aff 0%, #ec4899 50%, #22d3ee 100%);
    box-shadow: 0 12px 24px rgba(124,58,255,0.35), inset 0 0 12px rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-aurora:hover {
    filter: saturate(1.2);
    box-shadow: 0 18px 36px rgba(124,58,255,0.5), 0 0 24px rgba(236,72,153,0.35);
    transform: translateY(-2px);
}

.btn-neon {
    background: radial-gradient(circle at 30% 30%, #22d3ee 0%, #0ea5e9 60%, #7c3aff 100%);
    text-shadow: 0 0 12px rgba(255,255,255,0.6);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6), 0 0 40px rgba(124, 58, 255, 0.35);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-neon:hover {
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.9), 0 0 60px rgba(124, 58, 255, 0.6);
    transform: scale(1.05);
}

.btn-3d {
    background: linear-gradient(180deg, #7c3aff 0%, #5b21b6 100%);
    box-shadow: 0 10px 0 #3b0764, 0 16px 32px rgba(124,58,255,0.4);
    transform: translateY(0);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 0 #3b0764, 0 20px 40px rgba(124,58,255,0.5);
}
.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 8px 0 #3b0764, 0 10px 20px rgba(124,58,255,0.35);
}

.btn-glass {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.btn-outline-gradient {
    background: transparent;
    color: #fff;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #7c3aff, #ec4899, #22d3ee);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}
.btn-outline-gradient:hover {
    box-shadow: 0 8px 20px rgba(124,58,255,0.35);
    transform: translateY(-2px);
}

.btn-wire {
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.35);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-wire:hover {
    border-style: solid;
    border-color: rgba(124,58,255,0.5);
    box-shadow: 0 4px 12px rgba(124,58,255,0.3);
}

.btn-tilt {
    transform-style: preserve-3d;
    will-change: transform;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7c3aff, #ec4899);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-tilt:hover {
    transform: perspective(700px) rotateX(3deg) rotateY(-3deg);
    box-shadow: 0 10px 30px rgba(124,58,255,0.5);
}

/* ============================================ */
/* CLASS & FEATURE CARDS - EDUCATION HUB */
/* ============================================ */
.class-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.class-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #7c3aff, #ff1493, #00c8ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.class-card:hover::before {
    left: 100%;
}

.class-card:hover::after {
    opacity: 1;
}

.class-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(124, 58, 255, 0.6);
    box-shadow: 0 15px 40px rgba(124, 58, 255, 0.4), 0 0 20px rgba(124, 58, 255, 0.2);
}

.class-card.active {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6), 0 0 20px rgba(251, 191, 36, 0.3) !important;
    transform: scale(1.08) !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
}

.class-card.active .float {
    animation: bounce 2s infinite ease-in-out;
}

/* ============================================ */
/* FEATURE CARD STYLES */
/* ============================================ */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: scale(1);
}

.feature-card:hover {
    transform: scale(1.08) translateY(-12px) rotate(1deg);
    box-shadow: 0 25px 50px rgba(124, 58, 255, 0.5), 0 0 30px rgba(255, 20, 147, 0.3);
    border-color: rgba(124, 58, 255, 0.5);
}

/* Pulse Magic Animation */
.pulse-magic {
    animation: pulseMagicAnimation 2s ease-in-out infinite;
}

@keyframes pulseMagicAnimation {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.feature-card:hover .pulse-magic {
    transform: scale(1.3) rotate(10deg);
    animation: none;
}

.feature-card button {
    margin-top: auto;
    transition: all 0.3s ease;
}

.feature-card:hover button {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(124, 58, 255, 0.6);
}

/* ============================================ */
/* EXTENDED READING MODE STYLES */
/* ============================================ */
body.reading-mode {
    background: #f5f5f5;
}

body.reading-mode .magical-bg {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
}

body.reading-mode .glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-color: rgba(200, 200, 200, 0.3);
    color: #333;
}

body.reading-mode h1,
body.reading-mode h2,
body.reading-mode h3,
body.reading-mode p {
    color: #333 !important;
}

body.reading-mode .text-white {
    color: #333 !important;
}

body.reading-mode .text-white.opacity-90 {
    color: #555 !important;
}

body.reading-mode .text-white.opacity-80 {
    color: #666 !important;
}

/* ============================================ */
/* STATS SECTION */
/* ============================================ */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,200,0,0.1), transparent);
    pointer-events: none;
}

.stat-number {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================ */
/* ANIMATIONS FOR EDUCATION HUB */
/* ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.fade-in-scale {
    animation: fadeInScale 0.5s ease-out;
}

/* ============================================ */
/* STAGGER ITEMS */
/* ============================================ */
.stagger-item {
    animation: slideInUp 0.6s ease-out backwards;
}

/* ============================================ */
/* 3D ILLUSTRATION & LIGHTING EFFECTS */
/* ============================================ */
.depth-3d {
    transform-style: preserve-3d;
    perspective: 900px;
}

.card-3d {
    transform: translateZ(0);
    will-change: transform;
}
.card-3d:hover {
    transform: rotateX(3deg) rotateY(-3deg) translateZ(6px);
}

.light-sweep {
    position: relative;
    overflow: hidden;
}
.light-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    animation: sweep 4.5s ease-in-out infinite;
}

@keyframes sweep {
    0% { left: -150%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

/* Decorative floating blobs for hero */
.hero-decor {
    position: absolute;
    border-radius: 9999px;
    filter: blur(24px);
    opacity: 0.35;
    animation: float 10s ease-in-out infinite;
}
.hero-decor.blob1 { width: 160px; height: 160px; background: #7c3aff; top: 10%; left: 8%; }
.hero-decor.blob2 { width: 120px; height: 120px; background: #ec4899; top: 20%; right: 12%; animation-delay: 1.5s; }
.hero-decor.blob3 { width: 140px; height: 140px; background: #22d3ee; bottom: 12%; left: 18%; animation-delay: 3s; }

/* Aurora gradient background */
.aurora-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px circle at 10% 10%, rgba(124,58,255,0.15), transparent 40%),
                radial-gradient(1000px circle at 90% 20%, rgba(236,72,153,0.12), transparent 45%),
                radial-gradient(900px circle at 50% 80%, rgba(34,211,238,0.12), transparent 50%);
    filter: blur(40px);
    animation: auroraShift 18s ease-in-out infinite;
    pointer-events: none;
}

@keyframes auroraShift {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-12px) scale(1.02); opacity: 0.9; }
}

/* Tilt wave for hero headline */
.tilt-wave {
    display: inline-block;
    transform-origin: center;
    animation: tiltWave 6s ease-in-out infinite;
}

@keyframes tiltWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-1.3deg); }
}

/* Particle canvas container */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

canvas.particles {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.6;
}

/* Button glow ring */
.glow-ring {
    position: relative;
}
.glow-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(124,58,255,0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 300ms ease;
}
.glow-ring:hover::after { opacity: 1; }

/* Hero CTA ripple helper */
.ripple-dark {
    background: rgba(255,255,255,0.25);
}
/* Range Slider Styling */
input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff1493, #fbbf24);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #ff1493 100%);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6),
                0 0 30px rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8),
                0 0 40px rgba(255, 20, 147, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #ff1493 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6),
                0 0 30px rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8),
                0 0 40px rgba(255, 20, 147, 0.5);
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, rgba(255, 20, 147, 0.3), rgba(251, 191, 36, 0.3));
    height: 8px;
    border-radius: 5px;
}

/* Scrollbar Styling for Dropdowns */
#sizeDropdown::-webkit-scrollbar,
#fontDropdown::-webkit-scrollbar {
    width: 6px;
}

#sizeDropdown::-webkit-scrollbar-track,
#fontDropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#sizeDropdown::-webkit-scrollbar-thumb,
#fontDropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 58, 255, 0.6), rgba(255, 20, 147, 0.6));
    border-radius: 10px;
    transition: background 0.3s ease;
}

#sizeDropdown::-webkit-scrollbar-thumb:hover,
#fontDropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 58, 255, 0.9), rgba(255, 20, 147, 0.9));
}
}

input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, rgba(255, 20, 147, 0.3), rgba(251, 191, 36, 0.3));
    height: 8px;
    border-radius: 5px;
    border: none;

/* Hero Section Styling */
.relative.py-20 {
    border-radius: 1.5rem;
    overflow: hidden;
}

/* Logo Container Animation */
#logoContainer {
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Modern CTA Buttons */
.from-purple-600 {
    position: relative;
    overflow: hidden;
}

.from-purple-600::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
    z-index: 0;
}

.from-purple-600:hover::before {
    left: 100%;
}

/* Hero Heading Animation */
.text-7xl.font-bold {
    animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Logo Styling */
#logoContainer img {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#logoContainer img:hover {
    transform: scale(1.1) rotate(-2deg);
    border-color: rgba(168, 85, 247, 1);
}

/* Branding Text Gradient Animation */
.bg-gradient-to-r.from-purple-400 {
    animation: gradientShift 4s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* CTA Button Hover Effects */
.from-purple-600,
.from-blue-600,
.from-orange-600 {
    transform-origin: center;
}

.from-purple-600:hover,
.from-blue-600:hover,
.from-orange-600:hover {
    transform: translateY(-3px);
}

.from-purple-600:active,
.from-blue-600:active,
.from-orange-600:active {
    transform: translateY(-1px);
}

/* Hero Section Gradient Overlay */
.relative.py-20::before {
    animation: gradientPulse 6s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}


/* ============================================
   HERO SLIDESHOW STYLING
   ============================================ */

/* Slideshow slides */
.slideshow-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 20;
}

/* Slideshow dots/indicators */
.slideshow-dot {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slideshow-dot.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Float animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Slide fade in animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Slide left animation */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide right animation */
@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom in animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for icons */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Navigation button styling */
.slideshow-slide button {
    position: relative;
    overflow: hidden;
}

.slideshow-slide button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: left 0.4s ease;
    z-index: 0;
}

.slideshow-slide button:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-slide {
        height: 24rem;
    }
    
    .slideshow-slide h2 {
        font-size: 2rem !important;
    }
    
    .slideshow-dot {
        width: 10px;
        height: 10px;
    }
}

/* Smooth transitions for slide content */
.slideshow-slide.active h2 {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slideshow-slide.active p {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.slideshow-slide.active svg {
    animation: float 3s ease-in-out infinite, slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.slideshow-slide.active a,
.slideshow-slide.active button {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* ==================== NEW HERO ANIMATIONS ==================== */

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Floating Blob Animation */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(20px, -50px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
        opacity: 0.7;
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2s {
    animation-delay: 2s;
}

.animation-delay-4s {
    animation-delay: 4s;
}

/* Floating Text Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scale Hover Effect */
.transform {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Text Gradient Background Clip */
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Smooth Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Glass Effect Enhancement */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* Enhanced Hover Shadow */
.hover:shadow-2xl {
    transition: box-shadow 0.3s ease-out;
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-2xl\:white\/50:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.5);
}

/* Additional Utility Classes */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Shimmer Animation for Cards */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 3s infinite;
}

/* Card Hover Translation */
.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

/* Moving Magic Background Effect */
@keyframes magicMove {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.magic-bg-effect {
    position: relative;
    overflow: hidden;
}

.magic-bg-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 70%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: magicMove 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.magic-bg-effect > * {
    position: relative;
    z-index: 2;
}

/* Alternative glowing magic effect */
@keyframes magicGlow {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.magic-glow-effect {
    position: relative;
    overflow: hidden;
}

.magic-glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(147, 51, 234, 0.3),
        rgba(59, 130, 246, 0.3),
        rgba(147, 51, 234, 0.3),
        transparent
    );
    animation: magicMove 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.magic-glow-effect > * {
    position: relative;
    z-index: 2;
}
}