/* Premium UI/UX Styles for Emergence Schools */

/* Alpine.js x-cloak - Hide elements until Alpine.js initializes */
[x-cloak] {
    display: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography Enhancements - Poppins Font */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    letter-spacing: -0.01em;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Premium Button Styles */

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid rgba(255, 222, 23, 0.3);
    border-top-color: #FFDE17;
}

/* Enhanced News Ticker */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-ticker {
    animation: scroll 40s linear infinite;
    display: flex;
    gap: 3rem;
}

.news-ticker:hover {
    animation-play-state: paused;
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}


/* Image lazy loading placeholder */
img[data-src] {
    filter: blur(8px);
    transition: filter 0.5s ease;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

img[data-src].loaded {
    filter: blur(0);
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(40, 55, 131, 0.95) 0%, rgba(40, 55, 131, 0.85) 100%);
}

.gradient-overlay-light {
    background: linear-gradient(135deg, rgba(255, 222, 23, 0.1) 0%, rgba(255, 222, 23, 0.05) 100%);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.premium-card {
    @apply bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #283783, #FFDE17);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.premium-card:hover::before {
    transform: scaleX(1);
}




/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #283783 0%, #1e2a5e 50%, #283783 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Hero CTA Buttons */
.hero-cta-btn {
    @apply px-12 py-6 rounded-2xl font-bold text-xl transition-all duration-300 transform relative overflow-hidden;
    min-width: 220px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.hero-cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-cta-primary {
    background-color: #FFDE17 !important;
    color: #283783 !important;
    box-shadow: 0 12px 35px rgba(255, 222, 23, 0.6), 0 6px 18px rgba(255, 222, 23, 0.4);
}

.hero-cta-primary:hover {
    background-color: #ffd700 !important;
    box-shadow: 0 18px 45px rgba(255, 222, 23, 0.8), 0 8px 22px rgba(255, 222, 23, 0.6);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
}

.hero-cta-primary:hover::before {
    left: 100%;
}

.hero-cta-secondary {
    background-color: #283783 !important;
    color: #FFFFFF !important;
    box-shadow: 0 12px 35px rgba(40, 55, 131, 0.6), 0 6px 18px rgba(40, 55, 131, 0.4);
}

.hero-cta-secondary:hover {
    background-color: #1e2a5e !important;
    box-shadow: 0 18px 45px rgba(40, 55, 131, 0.8), 0 8px 22px rgba(40, 55, 131, 0.6);
}

.hero-cta-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.6s;
}

.hero-cta-secondary:hover::before {
    left: 100%;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #283783 0%, #FFDE17 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Selection Color */
::selection {
    background-color: #FFDE17;
    color: #283783;
}

/* Premium Feature Cards */
.premium-feature-card {
    @apply bg-white rounded-3xl p-12 shadow-2xl hover:shadow-3xl transition-all duration-500 transform hover:-translate-y-4 border-2 border-gray-100 hover:border-emergence-yellow relative overflow-hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.premium-icon-container {
    @apply w-24 h-24 rounded-3xl bg-gradient-to-br from-emergence-blue to-blue-900 flex items-center justify-center mb-8 relative overflow-hidden shadow-2xl transform group-hover:scale-110 group-hover:rotate-6 transition-all duration-500;
}

.premium-icon-container svg {
    @apply w-12 h-12 text-white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Premium News Cards */
.premium-news-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.premium-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #283783, #FFDE17, #283783);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.premium-news-card:hover::before {
    transform: scaleX(1);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Premium Gallery Items */
.premium-gallery-item {
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.premium-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 3px;
    background: linear-gradient(135deg, #283783, #FFDE17, #283783);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-gallery-item:hover::after {
    opacity: 1;
}

/* Premium Result Cards */
.premium-result-card {
    position: relative;
    overflow: hidden;
}

.premium-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 222, 23, 0.3) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.premium-result-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Premium Staff Cards */
.premium-staff-card {
    @apply transform transition-all duration-500;
}

.premium-staff-card:hover {
    transform: translateY(-12px);
}

/* Premium Testimonial Cards */
.premium-testimonial-card {
    @apply rounded-3xl p-10 shadow-3xl hover:shadow-4xl transition-all duration-500 transform hover:-translate-y-4 relative overflow-hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.premium-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #283783, #FFDE17);
    transform: scaleY(0);
    transition: transform 0.5s ease;
}

.premium-testimonial-card:hover::before {
    transform: scaleY(1);
}

/* Premium Buttons */
.premium-btn-primary {
    @apply px-10 py-5 rounded-2xl font-black text-lg transition-all duration-300 transform hover:-translate-y-2 relative overflow-hidden;
    background: linear-gradient(135deg, #283783 0%, #1e2a5e 100%);
    color: white;
    box-shadow: 0 15px 40px rgba(40, 55, 131, 0.4), 0 5px 15px rgba(40, 55, 131, 0.3);
}

.premium-btn-primary:hover {
    background: linear-gradient(135deg, #1e2a5e 0%, #283783 100%);
    box-shadow: 0 25px 50px rgba(40, 55, 131, 0.5), 0 10px 20px rgba(40, 55, 131, 0.4);
}

.premium-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.6s;
}

.premium-btn-primary:hover::before {
    left: 100%;
}

.premium-btn-secondary {
    @apply px-10 py-5 rounded-2xl font-black text-lg transition-all duration-300 transform hover:-translate-y-2 relative overflow-hidden;
    background: linear-gradient(135deg, #FFDE17 0%, #ffd700 100%);
    color: #283783;
    box-shadow: 0 15px 40px rgba(255, 222, 23, 0.5), 0 5px 15px rgba(255, 222, 23, 0.4);
}

.premium-btn-secondary:hover {
    background: linear-gradient(135deg, #ffd700 0%, #FFDE17 100%);
    box-shadow: 0 25px 50px rgba(255, 222, 23, 0.6), 0 10px 20px rgba(255, 222, 23, 0.5);
}

.premium-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 55, 131, 0.2), transparent);
    transition: left 0.6s;
}

.premium-btn-secondary:hover::before {
    left: 100%;
}

.premium-btn-white {
    @apply px-10 py-5 rounded-2xl font-black text-lg transition-all duration-300 transform hover:-translate-y-2 relative overflow-hidden;
    background: white;
    color: #283783;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.premium-btn-white:hover {
    background: #f9fafb;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.premium-btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 55, 131, 0.1), transparent);
    transition: left 0.6s;
}

.premium-btn-white:hover::before {
    left: 100%;
}

/* Enhanced Premium Badge */
.premium-badge {
    @apply px-8 py-4 rounded-full font-black text-sm uppercase tracking-widest shadow-2xl;
    background: linear-gradient(135deg, #FFDE17 0%, #ffd700 100%);
    color: #283783;
    border: 3px solid rgba(40, 55, 131, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
}

.premium-badge:hover::before {
    left: 100%;
}

/* Enhanced Typography with Poppins */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.font-black {
    font-weight: 900;
}

/* Enhanced Shadows */
.shadow-3xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-4xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Clean White Text for Hero H1 */
.hero-gradient-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    position: relative;
    display: inline-block;
}

.hero-gradient-text span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


::-moz-selection {
    background-color: #FFDE17;
    color: #283783;
}

/* Footer - Force Blue Background */
footer {
    background-color: #283783 !important;
    color: #ffffff !important;
}

footer * {
    color: inherit;
}

footer h3,
footer h2,
footer h1 {
    color: #ffffff !important;
}

footer .text-emergence-yellow {
    color: #FFDE17 !important;
}

footer a {
    color: #e5e7eb !important;
}

footer a:hover {
    color: #FFDE17 !important;
}

footer p,
footer span,
footer li {
    color: #e5e7eb !important;
}


/* MODERN 2025 CONTACT PAGE STYLES
   ============================================ */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Floating Label Animation */
input:focus+label,
input:not(:placeholder-shown)+label,
textarea:focus+label,
textarea:not(:placeholder-shown)+label {
    top: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #283783 !important;
    font-weight: 600 !important;
}

/* Enhanced Form Input Styles */
input:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 55, 131, 0.15);
}

/* Glassmorphism Effect */
.backdrop-blur-xl {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Smooth Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced Card Hover Effects */
.group:hover .group-hover\:grayscale-0 {
    filter: grayscale(0);
}

/* Modern Button Ripple Effect */
button:active {
    transform: scale(0.98);
}

/* Smooth Scroll Behavior for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Enhanced Shadow Effects */
.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient Text Animation */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Contact Form Input Focus States */
input:focus,
textarea:focus {
    border-color: #283783;
    background-color: white;
    outline: none;
}

/* Social Media Button Hover Effects */
a[href*="wa.me"]:hover,
a[href*="facebook"]:hover,
a[href*="instagram"]:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Map Container Hover Effect */
.group:hover iframe {
    filter: grayscale(0);
    transition: filter 0.5s ease;
}

/* Contact Card Icon Animation */
.group:hover .w-16 {
    transform: rotate(6deg) scale(1.1);
}

/* =========================================
   MOBILE OPTIMIZATION (2026)
   ========================================= */
@media (max-width: 768px) {

    /* Reduce global font sizes */
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Adjust Section Spacing */
    .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-28 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .mt-32 {
        margin-top: 4rem !important;
    }

    .mb-20 {
        margin-bottom: 3rem !important;
    }

    /* Hero Text adjustments */
    .hero-gradient-text {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .premium-badge {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }

    /* Card Padding */
    .premium-card,
    .premium-feature-card,
    .premium-news-card {
        padding: 1.5rem !important;
    }

    /* Navigation Adjustments */
    .nav-link {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
}