/* ============================================
   HOMEPAGE ENHANCED - ADVANCED ANIMATIONS
   ============================================ */

/* Particle Background */
.hero {
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
}

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        -45deg,
        rgba(124, 77, 255, 0.15),
        rgba(93, 169, 233, 0.15),
        rgba(139, 92, 246, 0.15),
        rgba(99, 102, 241, 0.15)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

/* 3D Text Effect for Hero Heading */
.hero__heading {
    background: linear-gradient(135deg, #fff 0%, #e0e0ff 50%, #c7c7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 5px 15px rgba(124, 77, 255, 0.4),
        0 10px 30px rgba(93, 169, 233, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(93, 169, 233, 0.8));
    }
}

/* Typing Animation for Hero Eyebrow */
.hero__eyebrow {
    overflow: hidden;
    border-right: 3px solid var(--accent-violet);
    white-space: nowrap;
    animation: typing 2s steps(20) 1s forwards, blink 0.75s step-end infinite;
    width: 0;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Magnetic Button Effect */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-magnetic:hover::before {
    width: 300px;
    height: 300px;
}

.btn-magnetic:active {
    transform: scale(0.95);
}

/* Ripple Effect on Click */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

.floating-badge {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    opacity: 0.8;
}

.floating-badge-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-badge-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.floating-badge-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 2s;
}

.floating-badge-4 {
    bottom: 20%;
    right: 12%;
    animation-delay: 3s;
}

/* Card 3D Tilt Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    will-change: transform;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.05);
}

/* Glassmorphism Enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 
        0 15px 50px rgba(124, 77, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

/* Scroll-Triggered Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Spotlight Effect on Hover */
.spotlight-container {
    position: relative;
    overflow: hidden;
}

.spotlight-container::before {
    content: '';
    position: absolute;
    top: var(--spotlight-y, 50%);
    left: var(--spotlight-x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.spotlight-container:hover::before {
    opacity: 1;
}

/* Parallax Scroll Effect */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.parallax-slow {
    transform: translateY(calc(var(--scroll-y, 0) * 0.3px));
}

.parallax-medium {
    transform: translateY(calc(var(--scroll-y, 0) * 0.5px));
}

.parallax-fast {
    transform: translateY(calc(var(--scroll-y, 0) * 0.7px));
}

/* Enhanced Counter Animation */
.counter-card {
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.counter-card:hover::before {
    left: 100%;
}

.counter-card__number {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 3rem;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Event Card Enhanced */
.event-card--featured {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 35, 0.95));
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-card--featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-violet), var(--accent-blue), var(--accent-violet));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.event-card--featured:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(124, 77, 255, 0.4),
        0 0 80px rgba(93, 169, 233, 0.3);
}

/* Badge Pulse Animation */
.event-card__badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

/* Benefit Card Hover Effects */
.benefit-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-blue));
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-card:hover::after {
    width: 100%;
}

.benefit-card:hover {
    transform: translateY(-15px) scale(1.03);
}

.benefit-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-card:hover .benefit-icon {
    transform: rotate(360deg) scale(1.2);
}

/* Quote Animation */
.quote--animated {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.quote--animated:hover {
    transform: perspective(1000px) rotateX(5deg);
}

.quote--animated::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 8rem;
    color: var(--accent-violet);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

/* Vision Item Stagger */
.vision-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vision-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.vision-item:nth-child(1) { transition-delay: 0.1s; }
.vision-item:nth-child(2) { transition-delay: 0.2s; }
.vision-item:nth-child(3) { transition-delay: 0.3s; }
.vision-item:nth-child(4) { transition-delay: 0.4s; }

.vision-number {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    transition: all 0.3s ease;
}

.vision-item:hover .vision-number {
    transform: scale(1.2) rotate(5deg);
}

/* Smooth Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.5);
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 0.5s ease-out forwards;
}

@keyframes trailFade {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(124, 77, 255, 0.2);
    border-top-color: var(--accent-violet);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero__heading {
        font-size: 2.5rem;
    }
    
    .floating-badge {
        display: none;
    }
    
    .card-3d:hover {
        transform: none;
    }
    
    .parallax-layer {
        transform: none !important;
    }
}

/* High Performance Mode */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-blue));
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.6);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 3rem;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, var(--accent-violet), transparent);
    border-radius: 10px;
    animation: scrollDown 2s ease-in-out infinite;
}

.scroll-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(15px);
    }
}

/* Enhanced Hero CTAs */
.hero__ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero__ctas .btn {
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__ctas .btn:hover {
    box-shadow: 0 15px 50px rgba(124, 77, 255, 0.5);
    transform: translateY(-5px) scale(1.05);
}

/* Stats Animation on Hover */
.counters-grid {
    perspective: 1000px;
}

.counter-card:hover {
    transform: translateY(-15px) rotateX(10deg) scale(1.05);
}

/* Quote Card Enhancement */
.quote {
    position: relative;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-violet);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.quote:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-width: 8px;
    box-shadow: 0 15px 40px rgba(124, 77, 255, 0.2);
}

/* Instagram Section Enhancement */
.instagram-feed-section {
    position: relative;
    overflow: hidden;
}

.instagram-feed-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Event Highlights Enhancement */
.event-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15), rgba(93, 169, 233, 0.15));
    border-radius: 50px;
    border: 1px solid rgba(124, 77, 255, 0.3);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(93, 169, 233, 0.25));
    border-color: rgba(124, 77, 255, 0.5);
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.3);
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--accent-violet);
}

/* Chips/Tags Enhancement */
.chip {
    transition: all 0.3s ease;
}

.chip:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

/* Connect Cards Enhancement */
.connect-card {
    position: relative;
    overflow: hidden;
}

.connect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(93, 169, 233, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.connect-card:hover::before {
    opacity: 1;
}

/* Section Title Enhancement */
.section__title {
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-blue));
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section__title.revealed::after {
    width: 100%;
}

