/*
Theme Name: IRSL Main Theme
Author: James Ogunjimi
Description: Main landing page theme for Infotech Academy - showcasing PAP, RAP, and WIOA programs
Version: 1.0
*/

body {
    font-family: "Inter", sans-serif;
}

/* Brand Gradient Text */
.gradient-text {
    background-image: linear-gradient(to right, #3b82f6, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal Styles */
.popup-backdrop {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.popup-content {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.55s; }
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Program Finder */
.finder-option {
    cursor: pointer;
    transition: all 0.3s ease;
}
.finder-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.finder-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Animated counter */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Program cards hover effect */
.program-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
}

/* Floating badge animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.float-badge {
    animation: float 3s ease-in-out infinite;
}
.float-badge:nth-child(2) { animation-delay: 0.5s; }
.float-badge:nth-child(3) { animation-delay: 1s; }

/* Subtle pulse for CTAs */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 28px rgba(59, 130, 246, 0.5); }
}
.cta-pulse {
    animation: subtle-pulse 2.5s ease-in-out infinite;
}

[v-cloak] { display: none; }
