/* ============================================
   META UNIVERSITY — Premium Design System
   ============================================ */

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animation */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.4s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* === PREMIUM TYPOGRAPHY === */
.premium-heading {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.premium-subheading {
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.text-gradient-red {
    background: linear-gradient(135deg, #C41E3A 0%, #E53E3E 50%, #F4A261 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-dark {
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section label / eyebrow text */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C41E3A;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #C41E3A, #F4A261);
    border-radius: 1px;
}

.section-label-light {
    color: rgba(255, 255, 255, 0.8);
}

.section-label-light::before {
    background: linear-gradient(90deg, #F4A261, rgba(255, 255, 255, 0.6));
}

/* === PREMIUM CARDS === */
.premium-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C41E3A, #F4A261);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04),
                0 12px 40px rgba(196, 30, 58, 0.08),
                0 20px 60px rgba(0, 0, 0, 0.06);
}

.premium-card:hover::before {
    transform: scaleX(1);
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glass card on light bg */
.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-light:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* === PREMIUM BUTTONS === */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium-primary {
    background: linear-gradient(135deg, #C41E3A, #E53E3E);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 30, 58, 0.4);
}

.btn-premium-primary:active {
    transform: translateY(0);
}

.btn-premium-gold {
    background: linear-gradient(135deg, #F4A261, #FFB84D);
    color: #1f2937;
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.3);
}

.btn-premium-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244, 162, 97, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: #C41E3A;
    border: 2px solid rgba(196, 30, 58, 0.3);
}

.btn-premium-outline:hover {
    border-color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
    transform: translateY(-2px);
}

/* Button shimmer on hover */
.btn-premium::after {
    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.5s ease;
}

.btn-premium:hover::after {
    left: 100%;
}

/* === PREMIUM ICON CONTAINERS === */
.icon-premium {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(244, 162, 97, 0.08));
    color: #C41E3A;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.icon-premium::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(244, 162, 97, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

*:hover > .icon-premium::after,
.icon-premium:hover::after {
    opacity: 1;
}

.icon-premium-lg {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    font-size: 1.75rem;
}

.icon-premium-filled {
    background: linear-gradient(135deg, #C41E3A, #E53E3E);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.25);
}

/* === PREMIUM SECTION DIVIDERS === */
.section-wave-top {
    position: relative;
}

.section-wave-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: inherit;
    clip-path: ellipse(60% 100% at 50% 100%);
    z-index: 1;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.15), rgba(244, 162, 97, 0.15), transparent);
    margin: 0;
    border: none;
}

/* Decorative dots pattern */
.pattern-dots {
    background-image: radial-gradient(rgba(196, 30, 58, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* === PREMIUM STATS / COUNTERS === */
.counter-value {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    background: linear-gradient(135deg, #C41E3A, #F4A261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.counter-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #C41E3A, #F4A261);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 3px 3px 0 0;
}

.counter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.1);
}

.counter-card:hover::after {
    width: 60%;
}

/* === PREMIUM TIMELINE === */
.premium-timeline {
    position: relative;
    padding-left: 3rem;
}

.premium-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #C41E3A, #F4A261, rgba(244, 162, 97, 0.1));
}

.premium-timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #C41E3A, #E53E3E);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
    z-index: 2;
}

.premium-timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

/* === FLOATING DECORATIVE ELEMENTS === */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(8px) rotate(-2deg); }
    66% { transform: translateY(-10px) rotate(1deg); }
}

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

.float-animation-delayed {
    animation: float-delayed 7s ease-in-out infinite;
}

/* Glow effect */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.15); }
    50% { box-shadow: 0 0 40px rgba(196, 30, 58, 0.25); }
}

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

/* === PREMIUM SECTION BACKGROUNDS === */
.bg-premium-gradient {
    background: linear-gradient(135deg, #faf5f0 0%, #f8f0e8 25%, #fef7f0 50%, #f5eff0 75%, #f8f4f5 100%);
}

.bg-premium-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.bg-premium-red {
    background: linear-gradient(135deg, #8B0000 0%, #C41E3A 50%, #E53E3E 100%);
    position: relative;
    overflow: hidden;
}

.bg-premium-red::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Mesh gradient background */
.bg-mesh {
    background-color: #f8f9fa;
    background-image:
        radial-gradient(at 20% 20%, rgba(196, 30, 58, 0.03) 0, transparent 50%),
        radial-gradient(at 80% 40%, rgba(244, 162, 97, 0.04) 0, transparent 50%),
        radial-gradient(at 40% 80%, rgba(196, 30, 58, 0.02) 0, transparent 50%);
}

/* === PREMIUM FEATURE LIST === */
.premium-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.premium-feature-item:hover {
    background: rgba(196, 30, 58, 0.03);
}

.premium-feature-check {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #C41E3A, #E53E3E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    margin-top: 0.125rem;
}

/* === PREMIUM BADGE === */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(244, 162, 97, 0.08));
    color: #C41E3A;
    border: 1px solid rgba(196, 30, 58, 0.12);
}

.premium-badge-gold {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(255, 184, 77, 0.1));
    color: #b8860b;
    border-color: rgba(244, 162, 97, 0.15);
}

/* === SMOOTH IMAGE REVEAL === */
.img-reveal {
    overflow: hidden;
    border-radius: 1.25rem;
}

.img-reveal img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal:hover img {
    transform: scale(1.05);
}

/* === PREMIUM ACCORDION === */
.premium-accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-accordion-item:hover {
    border-color: rgba(196, 30, 58, 0.15);
}

.premium-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #1f2937;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.premium-accordion-content {
    padding: 0 1.5rem 1.25rem;
    color: #6b7280;
    line-height: 1.7;
}

/* === ENHANCED SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C41E3A, #F4A261);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C41E3A;
}

/* === LINK UNDERLINE ANIMATION === */
.link-premium {
    position: relative;
    color: #C41E3A;
    text-decoration: none;
    font-weight: 500;
}

.link-premium::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C41E3A, #F4A261);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-premium:hover::after {
    width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .reveal,
    .reveal-left,
    .reveal-right {
        transform: translateY(20px);
    }

    .reveal-scale {
        transform: scale(0.92);
    }

    .counter-value {
        font-size: 2.25rem;
    }

    .premium-heading {
        letter-spacing: -0.015em;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-stagger > * {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .float-animation,
    .float-animation-delayed,
    .glow {
        animation: none;
    }

    .btn-premium::after {
        display: none;
    }
}
