/* =====================================================
   UNIDOVO - Professional Education Consultancy Theme 2026
   Standard Education Industry Color Palette
   ===================================================== */

/* =====================================================
   1. BASE STYLES & SMOOTH SCROLLING
   ===================================================== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure containers never overflow on mobile */
.container {
    width: 100%;
    max-width: 100%;
}

/* Fix potential overflow from absolute positioned decorative elements */
section {
    overflow-x: hidden;
    /* NOTE: Do NOT use overflow:hidden on Y — it blocks scroll in some browsers */
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    /* Prevent any element from causing horizontal scroll */
    .hero-particles,
    .floating-icon,
    .blob {
        display: none;
    }

    /* Make sure grids collapse properly */
    .grid {
        overflow: hidden;
    }
}

/* Selection Color - Education Blue */
::selection {
    background-color: #5B4DFF;
    color: #ffffff;
}

/* =====================================================
   2. ADVANCED ANIMATIONS
   ===================================================== */

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Morphing Blob Animation */
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
    75% { border-radius: 60% 40% 60% 30% / 40% 50% 60% 50%; }
}

/* Slow Pulse Animation */
@keyframes pulseSlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

/* Gradient Background Size */
.bg-300\% {
    background-size: 300% 300%;
}

/* Gradient Animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(91, 77, 255, 0.3),
                    0 0 40px rgba(91, 77, 255, 0.2),
                    0 0 60px rgba(91, 77, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(91, 77, 255, 0.5),
                    0 0 60px rgba(91, 77, 255, 0.3),
                    0 0 100px rgba(91, 77, 255, 0.2);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Rotate Animation */
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bounce Soft */
@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scale Pulse */
@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Slide Up Reveal */
@keyframes slideUpReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wave Animation */
@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(0) translateY(-10px); }
    75% { transform: translateX(-10px) translateY(-5px); }
}

/* Text Gradient Animation */
@keyframes textGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Particle Float */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-10px) translateX(-5px) scale(0.9);
        opacity: 0.6;
    }
}

/* Typewriter Cursor */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pop In */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   3. ANIMATION UTILITY CLASSES
   ===================================================== */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-morph {
    animation: morph 8s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

.animate-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-slow-rotate {
    animation: slowRotate 30s linear infinite;
}

.animate-bounce-soft {
    animation: bounceSoft 2s ease-in-out infinite;
}

.animate-scale-pulse {
    animation: scalePulse 3s ease-in-out infinite;
}

.animate-wave {
    animation: wave 4s ease-in-out infinite;
}

.animate-text-gradient {
    background-size: 200% auto;
    animation: textGradient 4s linear infinite;
}

.animate-particle {
    animation: particleFloat 5s ease-in-out infinite;
}

.animate-pop-in {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }

/* =====================================================
   4. GLASSMORPHISM EFFECTS
   ===================================================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =====================================================
   5. GRADIENT UTILITIES - Education Consultancy Theme
   ===================================================== */
.gradient-primary {
    background: linear-gradient(135deg, #3A0088 0%, #5B4DFF 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #5C1AC3 0%, #5B4DFF 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #D06CFF 0%, #A100FF 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #0b0b14 0%, #12002B 50%, #0b0b14 100%);
}

.gradient-mesh {
    background:
        radial-gradient(at 40% 20%, hsla(271, 100%, 50%, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(251, 100%, 65%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(280, 100%, 71%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(271, 100%, 50%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(251, 100%, 65%, 0.3) 0px, transparent 50%);
}

.gradient-text {
    background: linear-gradient(135deg, #3A0088 0%, #5B4DFF 50%, #D06CFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   6. NAVIGATION STYLES
   ===================================================== */

/* Mobile menu slide animation */
.mobile-menu-panel {
    animation: slideDown 0.25s ease-out;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #A100FF, #5B4DFF);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #A100FF, #5B4DFF, #3A0088);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link:hover .nav-indicator,
.nav-link.text-primary-600 .nav-indicator {
    width: 100%;
}

/* =====================================================
   7. CUSTOM SCROLLBAR - Education Theme
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0b14;
}

::-webkit-scrollbar-thumb {
    background: #3A0088;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5B4DFF;
}

/* Admin Sidebar Scrollbar */
aside::-webkit-scrollbar {
    width: 5px;
}

aside::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* =====================================================
   8. BUTTON STYLES - Education Consultancy Theme
   ===================================================== */
.btn-primary {
    background: linear-gradient(135deg, #3A0088 0%, #5B4DFF 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-primary::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;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(58, 0, 136, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, #5C1AC3 0%, #5B4DFF 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-secondary::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;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(92, 26, 195, 0.4);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-accent {
    background: linear-gradient(135deg, #D06CFF 0%, #A100FF 100%);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(208, 108, 255, 0.3);
}

.btn-accent:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(208, 108, 255, 0.4);
}

.btn-navy {
    background: linear-gradient(135deg, #3A0088 0%, #12002B 100%);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    transform: scale(1.02);
}

/* =====================================================
   9. CARD STYLES - Education Consultancy Theme
   ===================================================== */
.card-hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(58, 0, 136, 0.15),
        0 0 0 1px rgba(161, 0, 255, 0.1);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #3A0088, #A100FF, #5B4DFF, #3A0088);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(15px);
}

.card-glow:hover::before {
    opacity: 0.5;
}

/* =====================================================
   10. LINE CLAMP UTILITIES
   ===================================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   11. HERO SECTION STYLES - Education Theme
   ===================================================== */
.hero-gradient {
    background: linear-gradient(135deg,
        #0b0b14 0%,
        #12002B 30%,
        #3A0088 50%,
        #12002B 70%,
        #0b0b14 100%);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #A100FF;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s ease-in-out infinite;
}

/* =====================================================
   12. WHATSAPP BUTTON
   ===================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* Scroll Indicator Z-Index Fix */
.animate-bounce {
    position: relative;
    z-index: 30;
}

/* Ensure scroll indicator stays clear of content - Transparent version */
section .animate-bounce a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border-radius: 9999px;
    backdrop-filter: none;
}

/* =====================================================
   13. FORM STYLES - Gentle Theme
   ===================================================== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #A100FF;
    box-shadow: 0 0 0 3px rgba(161, 0, 255, 0.1);
}

.form-label {
    transition: all 0.3s ease;
}

/* =====================================================
   14. SECTION DIVIDERS - Gentle Theme
   ===================================================== */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #5C1AC3, #A100FF);
    border-radius: 2px;
}

/* =====================================================
   15. COUNTER ANIMATION
   ===================================================== */
.counter-box {
    position: relative;
    overflow: hidden;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

/* =====================================================
   16. TESTIMONIAL CARD - Gentle Theme
   ===================================================== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(161, 0, 255, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* =====================================================
   17. FLOATING ELEMENTS
   ===================================================== */
.floating-icon {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.floating-icon.icon-1 {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 8%;
    animation: float 7s ease-in-out infinite 1s;
}

.floating-icon.icon-3 {
    bottom: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite 2s;
}

.floating-icon.icon-4 {
    bottom: 25%;
    right: 5%;
    animation: float 6.5s ease-in-out infinite 0.5s;
}

/* =====================================================
   18. RESPONSIVE TYPOGRAPHY
   ===================================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* =====================================================
   19. LOADING STATES - Malaysian Theme
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(58, 0, 136, 0.2);
    border-top-color: #3A0088;
    border-radius: 50%;
    animation: slowRotate 1s linear infinite;
}

/* =====================================================
   20. MISC UTILITIES
   ===================================================== */
.transition-smooth {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.z-header { z-index: 40; }
.z-modal { z-index: 50; }
.z-toast { z-index: 60; }
.z-tooltip { z-index: 70; }

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   21. BLOB SHAPES
   ===================================================== */
.blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: -2s;
}

.blob-3 {
    animation-delay: -4s;
}

/* =====================================================
   22. NOISE TEXTURE OVERLAY
   ===================================================== */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* =====================================================
   23. MARQUEE ANIMATION
   ===================================================== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* =====================================================
   24. TILT EFFECT
   ===================================================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card-inner {
    transition: transform 0.5s ease;
}

/* =====================================================
   25. ICON BOUNCE
   ===================================================== */
.icon-bounce:hover i {
    animation: bounceSoft 0.5s ease;
}

/* =====================================================
   26. UNDERLINE ANIMATION - Gentle Theme
   ===================================================== */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #5C1AC3, #A100FF);
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* =====================================================
   27. MAGNETIC BUTTON EFFECT
   ===================================================== */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* =====================================================
   28. SCROLL REVEAL
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   29. TYPING CURSOR
   ===================================================== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* =====================================================
   30. GRADIENT BORDER - Education Theme
   ===================================================== */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #3A0088, #A100FF, #5B4DFF, #3A0088);
    border-radius: inherit;
    z-index: -1;
}

/* =====================================================
   31. PARALLAX & IMMERSIVE EFFECTS
   ===================================================== */
.parallax-scroll {
    will-change: transform;
    transform: translateZ(0);
}

/* 3D Perspective Container */
.perspective-container {
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* Smooth Hardware Acceleration */
.hw-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Depth Shadow */
.depth-shadow {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Floating Animation Variants */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.float-gentle {
    animation: float-gentle 8s ease-in-out infinite;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #A100FF, #5B4DFF, #D06CFF);
    border-radius: inherit;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* Text Gradient Shine */
@keyframes gradient-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.text-gradient-shine {
    background: linear-gradient(90deg, #3A0088 0%, #A100FF 25%, #5B4DFF 50%, #A100FF 75%, #3A0088 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shine 4s linear infinite;
}

/* Particle Background */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(161, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(91, 77, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(208, 108, 255, 0.08) 0%, transparent 50%);
    animation: particle-drift 20s ease-in-out infinite alternate;
}

@keyframes particle-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

/* Smooth Page Transition */
.page-transition {
    animation: pageTransition 0.6s ease-out;
}

@keyframes pageTransition {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Infinite Scroll Marquee */
@keyframes marquee-infinite {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee-infinite {
    animation: marquee-infinite 40s linear infinite;
}

/* Magnetic Button */
.magnetic-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #A100FF, #5B4DFF);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
    z-index: -1;
}

.magnetic-button:hover::before {
    opacity: 1;
}

/* Scroll Snap Container */
.scroll-snap-container {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-snap-item {
    scroll-snap-align: start;
}

/* Blur Backdrop */
.blur-backdrop {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.8);
}

/* Neon Glow Text */
.neon-text {
    text-shadow:
        0 0 10px rgba(161, 0, 255, 0.8),
        0 0 20px rgba(161, 0, 255, 0.6),
        0 0 30px rgba(161, 0, 255, 0.4),
        0 0 40px rgba(161, 0, 255, 0.2);
}

/* Reveal Slide Up */
@keyframes reveal-slide-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-slide-up {
    animation: reveal-slide-up 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Stagger Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Responsive Parallax Disable for Mobile Performance */
@media (max-width: 768px) {
    .parallax-layer {
        transform: none !important;
    }

    .tilt-inner {
        transform: none !important;
    }
}

