/* Home Page Styles */

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.animated-gradient {
    background: linear-gradient(-45deg, #FFFDF0, #FFF8DB, #FEF08A, #FDE047);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-text), var(--color-text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtext {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Stagger Utilities */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Stats Section — bridges hero & feature section */
.stats {
    padding: 0;
    margin-top: -60px;
    margin-bottom: -60px;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* ── Stat card entrance animation ── */
@keyframes stat-rise {
    0%   { opacity: 0; transform: translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stat-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-8px) scale(1); }
}

@keyframes stat-glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.3), 0 8px 30px rgba(0, 0, 0, 0.10); }
    50%      { box-shadow: 0 0 20px rgba(255, 193, 7, 0.6), 0 8px 30px rgba(0, 0, 0, 0.10); }
}

@keyframes num-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    65%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes top-bounce {
    0%   { letter-spacing: -6px; opacity: 0; transform: scale(0.5); }
    50%  { letter-spacing: 2px;  opacity: 1; transform: scale(1.12); }
    75%  { letter-spacing: -1px; transform: scale(0.97); }
    100% { letter-spacing: 0;   transform: scale(1); }
}

/* Pure white stat cards */
.stat-card {
    padding: 32px 30px;
    text-align: center;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3), 0 8px 30px rgba(0, 0, 0, 0.10) !important;
    transition: all 0.3s ease !important;

    /* Entrance only */
    opacity: 0;
    animation: 
        stat-rise 0.8s ease-out forwards;
}

/* Staggered delays for each card (Entrance only) */
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }

/* Number counter pop */
.stat-card h2.counter-val {
    display: inline-block;
    animation: num-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: inherit;
}

/* "Top" text bounce */
.stat-card h2:not(.counter-val) {
    display: inline-block;
    animation: top-bounce 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.36s;
}

.stat-card h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.stat-card span {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.stat-card p {
    color: var(--color-text-muted);
    margin-top: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Common Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-text);
}

/* Steps Section */
.steps-section {
    padding: 100px 0;
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
}

.step {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 1px solid transparent;
    transition: all var(--transition-norm);
}

.step:hover {
    border-color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.step h3 {
    margin-bottom: 10px;
    color: var(--color-text);
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Services */
.services-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: all var(--transition-norm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.2);
    border-color: var(--color-secondary);
}

/* Pricing */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.premium {
    transform: scale(1.05);
    border-color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
}

.pricing-card.premium::before {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--color-secondary);
    color: var(--color-text);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 10px;
    color: var(--color-text);
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    margin-top: 20px;
    font-style: normal;
    font-weight: 700;
    color: var(--color-primary-light);
}

/* Bottom CTA */
.cta-section {
    padding: 30px 0 30px 0;
    text-align: center;
}

.cta-box {
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .hero-actions, .cta-actions { flex-direction: column; }
    .pricing-card.premium { transform: scale(1); }
}

/* Updates & Carousel Section */
.updates-section {
    background-color: var(--color-primary);
    background-image: url('../assets/bg-pattern.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 100px 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.live-badge {
    background: var(--color-primary);
    color: #111;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.updates-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-card {
    background: #fcfcfc;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 14px 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.12);
    background: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--color-primary);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: #111;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.left {
    left: -18px;
}

.carousel-btn.right {
    right: -18px;
}

@media (max-width: 1200px) {
    .carousel-btn.left { left: 10px; }
    .carousel-btn.right { right: 10px; }
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .updates-section {
        padding-top: 140px;
    }
}


/* =========================================
   Why Choose Us Section (animated-feature-section) 
   ========================================= */

.feature-container-xl { flex-direction: row; }
@media (max-width: 768px) { 
    .feature-container-xl { flex-direction: column; padding: 30px 20px !important; }
    .feature-img-box img { width: 100% !important; max-width: 300px; }
}

/* WCU List Animations */
.wcu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wcu-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: default;
    
    /* Initially hidden for fadeUp */
    opacity: 0;
    transform: translateY(30px);
}

@keyframes wcu-fade-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hover Effect */
.wcu-item:hover {
    transform: translateX(6px) !important;
}

/* Trigger animation when section is visible (.visible added by intersection observer) */
.animated-feature-section.visible .wcu-item {
    animation: wcu-fade-up 0.7s ease-out forwards;
}

/* Stagger (150ms) */
.animated-feature-section.visible .wcu-item:nth-child(1) { animation-delay: 0.15s; }
.animated-feature-section.visible .wcu-item:nth-child(2) { animation-delay: 0.30s; }
.animated-feature-section.visible .wcu-item:nth-child(3) { animation-delay: 0.45s; }
.animated-feature-section.visible .wcu-item:nth-child(4) { animation-delay: 0.60s; }

/* WCU Image Animations */
.wcu-img-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wcu-img {
    width: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    
    /* Initially hidden for fadeRight */
    opacity: 0;
    transform: translateX(-40px);
}

@keyframes wcu-fade-right {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes wcu-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1); }
}

/* Chaining fadeRight (0.9s duration) with float loop */
.animated-feature-section.visible .wcu-img {
    animation: wcu-fade-right 0.9s ease-out forwards, 
wcu-float4sease-in-outinfinite0.9s;
}

/* Hover override */
.wcu-img:hover {
    transform: scale(1.03) !important;
    animation-play-state: paused !important;
}

