/**
 * Sunrise Edu Group - Premium UI/UX Enhancements
 * International Standard Design System
 * Created: 2026-01-20
 */

/* ==================
   ENHANCED DESIGN TOKENS
================== */
:root {
    /* Premium Color Refinements */
    --premium-gradient: linear-gradient(135deg, #FF6B00 0%, #FF8E3C 50%, #FF6B00 100%);
    --premium-dark: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
    --premium-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);

    /* Refined Shadows */
    --shadow-glow: 0 0 40px rgba(255, 107, 0, 0.15);
    --shadow-premium-lg: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 107, 0, 0.1);

    /* Animation Curves */
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================
   PREMIUM TYPOGRAPHY
================== */
.display-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-header h2,
.section-title {
    letter-spacing: -0.01em;
}

.tagline-hindi {
    font-family: var(--font-hindi);
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ==================
   PREMIUM HERO SECTION
================== */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero-carousel .carousel-item::before {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(30, 58, 95, 0.85) 50%,
            rgba(15, 23, 42, 0.88) 100%);
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animated Background Shapes */
.hero-section .hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* ==================
   PREMIUM BUTTONS
================== */
.btn-primary {
    background: var(--premium-gradient);
    background-size: 200% 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.btn-ripple:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* ==================
   PREMIUM SECTION STYLES
================== */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.7rem;
    padding: 0.6rem 1.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* Section Divider Lines */
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--premium-gradient);
    border-radius: 4px;
    margin: 1.5rem auto;
}

/* ==================
   PREMIUM CARD DESIGNS
================== */
/* Universal Card Enhancements */
.branch-card-new,
.facility-card-new,
.testimonial-card,
.news-card,
.achievement-card {
    transition: all 0.4s var(--ease-premium);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Branch Cards - Premium */
.branch-card-new {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.branch-card-new:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 107, 0, 0.2);
}

.branch-card-image {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.branch-card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.branch-card-new:hover .branch-card-image::before {
    opacity: 1;
}

/* Facility Cards - Premium */
.facility-card-new {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.facility-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--premium-gradient);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-premium);
}

.facility-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

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

.facility-icon-new {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.4s var(--ease-premium);
}

.facility-card-new:hover .facility-icon-new {
    background: var(--premium-gradient);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial Cards - Premium */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(255, 107, 0, 0.1);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-info h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.testimonial-rating {
    margin-top: 1rem;
    color: #FBBF24;
    font-size: 0.9rem;
}

.testimonial-rating i {
    margin-right: 2px;
}

/* Achievement Cards - Premium */
.achievement-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.achievement-image {
    height: 200px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-premium);
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.1);
}

.achievement-content {
    padding: 1.5rem;
}

.achievement-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.achievement-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.achievement-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.student-name {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* News Cards - Premium */
.news-card {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    background: var(--white);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.news-image img {
    transition: transform 0.6s var(--ease-premium);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* ==================
   CTA SECTION PREMIUM
================== */
.cta-box-new {
    background: var(--premium-gradient);
    position: relative;
}

.cta-box-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-bg-shape {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==================
   STATS SECTION PREMIUM
================== */
.stats-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.4s var(--ease-premium);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--premium-gradient);
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ==================
   WELCOME SECTION PREMIUM
================== */
.welcome-section {
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 0% 50%, rgba(255, 107, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-premium-lg);
}

.experience-badge {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-premium-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-badge .years {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s var(--ease-premium);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.2);
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ==================
   PREMIUM ANIMATIONS
================== */
/* Staggered Fade In */
[data-aos="fade-up"] {
    transition-timing-function: var(--ease-premium);
}

/* Smooth Reveal */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    animation: revealUp 0.8s var(--ease-premium) forwards;
}

/* Glow Pulse */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 107, 0, 0.5);
    }
}

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

/* Premium Link Underline */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--premium-gradient);
    transition: width 0.3s var(--ease-premium);
}

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

/* ==================
   RESPONSIVE REFINEMENTS
================== */
@media (max-width: 991px) {
    .section-padding {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .welcome-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .feature-item {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ==================
   PREMIUM SCROLL EFFECTS
================== */
@supports (animation-timeline: scroll()) {
    .hero-content h1 {
        animation: heroParallax linear;
        animation-timeline: scroll();
        animation-range: 0 300px;
    }

    @keyframes heroParallax {
        to {
            transform: translateY(-30px);
            opacity: 0.5;
        }
    }
}

/* ==================
   PRINT STYLES
================== */
@media print {

    .hero-section,
    .scholarship-banner,
    .cta-section-new,
    .contact-cta-section {
        display: none;
    }
}