@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;
}

/* ============================================ */
/* 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: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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;
    }
}

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 - HIDDEN ON MOBILE */
/* ============================================ */
.hidden.lg\\:flex {
    gap: 6px !important;
}

/* 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;
}

.nav-link-enhanced span {
    display: none;
}

@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 */
#mobileMenu {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 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));
}

/* ============================================ */
/* 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;
    }
}

/* 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 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;
}

@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;
}

/* ===== 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;
}

/* 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;
}

/* Advanced Mobile Menu Styling */
.mobile-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(255, 20, 147, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 1.25rem;
    text-decoration: none;
    color: white;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.mobile-menu-card:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(255, 20, 147, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.mobile-menu-card:hover::before {
    left: 100%;
}

.mobile-menu-list-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-list-item:hover {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2) 0%, rgba(255, 20, 147, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    padding-left: 1.25rem;
    transform: translateX(4px);
}

.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: 0.75rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu-quick-feature:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(255, 20, 147, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.mobile-menu-quick-feature:active {
    transform: scale(0.95);
}

/* 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;
}




