/* Custom Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Smooth scroll padding for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card Hover Animation */
.group:hover img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

/* Hero Section Gradient Overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
}

/* Line clamping for descriptions */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* ========== ENHANCED SCROLL ANIMATIONS ========== */

/* Base reveal animation - fades in from bottom */
/* Elements are visible by default, animation is optional */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.animate {
    opacity: 0;
    transform: translateY(60px);
}

.reveal.animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Alternative: elements always visible, just add animation on scroll */
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy support - visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Smooth parallax container */
.parallax-section {
    position: relative;
    overflow: hidden;
}

/* ========== HOVER EFFECTS ========== */

/* Enhanced card hover */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

/* Glow effect on hover */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Shimmer effect button */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::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 ease;
}

.btn-shimmer:hover::before {
    left: 100%;
}

/* Magnetic button effect */
.magnetic {
    transition: transform 0.3s ease;
}

/* ========== SMOOTH TRANSITIONS ========== */

/* Smooth image zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.15);
}

/* Smooth border animation */
.border-animate {
    position: relative;
}

.border-animate::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 300% 300%;
    animation: gradient-border 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-animate:hover::before {
    opacity: 1;
}

@keyframes gradient-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== SMOOTH PAGE LOAD ANIMATIONS ========== */

/* Initial load animation */
@keyframes page-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-enter {
    animation: page-enter 0.5s ease forwards;
}

/* Slide up entrance */
@keyframes slide-up-enter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-enter {
    animation: slide-up-enter 0.6s ease forwards;
}

/* ========== SMOOTH SCROLLBAR ========== */

/* Custom smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}




/* ========== INDEX.PHP CSS MOVED TO STYLE.CSS ========== */

/* Main Index Styles */
* { font-family: 'Outfit', sans-serif; }
        
/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(15px); }
}

@keyframes float-diagonal {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(-15px, -10px) rotate(2deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating { animation: float 6s ease-in-out infinite; }
.floating-slow { animation: float-slow 8s ease-in-out infinite; }
.floating-reverse { animation: float-reverse 7s ease-in-out infinite; }
.floating-diagonal { animation: float-diagonal 10s ease-in-out infinite; }
.bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

/* Hero background */
.hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #312e81 50%, #1e3a8a 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: hero-gradient 15s ease infinite;
}

@keyframes hero-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero rings */
.hero-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: pulse-ring 3s ease-out infinite;
}

.hero-ring-1 { width: 300px; height: 300px; top: 20%; left: 5%; animation-delay: 0s; }
.hero-ring-2 { width: 200px; height: 200px; top: 60%; right: 10%; animation-delay: 1s; }
.hero-ring-3 { width: 150px; height: 150px; bottom: 20%; left: 30%; animation-delay: 2s; }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.4); }
}

.badge-glow {
    animation: badge-glow 2s ease-in-out infinite;
}

/* Hero text */
.hero-title { animation: fade-in-up 0.8s ease-out forwards; }
.hero-subtitle { animation: fade-in-up 0.8s ease-out 0.2s forwards; opacity: 0; }
.hero-buttons { animation: fade-in-up 0.8s ease-out 0.4s forwards; opacity: 0; }
.hero-stats { animation: fade-in-up 0.8s ease-out 0.6s forwards; opacity: 0; }

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 10s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: 2s; }
.blob-3 { animation-delay: 4s; }

.float-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float-slow 8s ease-in-out infinite;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }

/* Card Sliders */
.card-slider { position: relative; overflow: hidden; padding: 20px 0; }

.card-slider .slide-track { display: flex; gap: 12px; transition: transform 0.4s ease; }

.card-slider .course-card {
    flex: 0 0 calc(33.333% - 11px);
    min-width: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .card-slider .course-card {
        flex: 0 0 calc(25% - 9px);
        min-width: calc(25% - 9px);
        max-width: calc(25% - 9px);
    }
}

.card-slider .course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.card-slider .card-pic { height: 140px; overflow: hidden; position: relative; }
@media (min-width: 1024px) { .card-slider .card-pic { height: 180px; } }

.card-slider .card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-slider .course-card:hover .card-pic img { transform: scale(1.1); }

.card-slider .card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.card-slider .card-tag.loc {
    background: rgba(255,255,255,0.95);
    color: #475569;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-slider .card-info { padding: 16px; }

.card-slider .card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.card-slider .card-btn {
    display: inline-flex;
    width: auto;
    padding: 6px 10px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .card-slider .card-btn { padding: 4px 8px; font-size: 9px; }
}

.card-slider .card-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.card-slider .slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-slider .slide-btn:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.card-slider .slide-btn.prev { left: -20px; }
.card-slider .slide-btn.next { right: -20px; }

/* ========== ADDITIONAL ANIMATIONS ========== */

