/* Custom Animations and Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Color Bar for Cards */
.color-bar {
    height: 4px;
    border-radius: 2px;
    width: 60px;
}

/* Logo Animation */
.logo-container h1 {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover h1 {
    transform: scale(1.05);
}

/* Navigation Link Animation */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fed885;
    transition: width 0.3s ease;
}

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

/* Hero Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Floating Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelay {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delay {
    animation: floatDelay 4s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spinSlow 8s linear infinite;
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 216, 133, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Program Cards */
.program-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(254, 216, 133, 0.1), transparent);
    transition: height 0.4s ease;
}

.program-card:hover::after {
    height: 100%;
}

/* Program Navigation */
.program-nav-btn {
    transition: all 0.3s ease;
}

.program-nav-btn.active {
    box-shadow: 0 4px 12px rgba(254, 216, 133, 0.3);
}

/* Program Content */
.program-content {
    transition: all 0.6s ease-out;
}

.program-content.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Program Content Animations */
.program-content img {
    transition: transform 0.5s ease;
}

.program-content:hover img {
    transform: scale(1.02);
}

/* Feature Icons Animation */
.program-content .group:hover .bg-gradient-to-r {
    transform: scale(1.1) rotate(5deg);
}

/* Stats Cards Hover Effect */
.program-content .grid > div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-content .grid > div:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Image Overlay Effects */
.program-content .relative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.program-content .relative:hover::before {
    opacity: 1;
}

/* Compact Testimonial Carousel */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Testimonial Dots */
.testimonial-dots {
    justify-content: center;
}

.testimonial-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-dot:hover {
    transform: scale(1.3);
}

.testimonial-dot.active {
    transform: scale(1.3);
}

/* Testimonial Images */
.testimonial-slide img {
    transition: transform 0.4s ease;
}

.testimonial-slide:hover img {
    transform: scale(1.05);
}

/* Quote Icon Animation */
@keyframes quote-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.testimonial-slide .bg-[#fed885] .fas,
.testimonial-slide .bg-[#ff6b6b] .fas {
    animation: quote-pulse 3s ease-in-out infinite;
}

/* Avatar Hover Effects */
.testimonial-slide .w-12 {
    transition: all 0.3s ease;
}

.testimonial-slide .w-12:hover {
    transform: scale(1.1);
}

/* CTA Button Effects */
#testimonials button {
    transition: all 0.3s ease;
}

#testimonials button:hover {
    transform: translateY(-2px);
}

/* Modern About Section Styles */
#about {
    position: relative;
}

/* Hero Introduction */
#about h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#about .bg-gradient-to-r.from-\[#fed885\].to-\[#ffd700\] {
    background: linear-gradient(135deg, #fed885, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Feature Cards */
#about .group.relative.bg-white {
    position: relative;
    overflow: hidden;
}

#about .group.relative.bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 216, 133, 0.03), transparent);
    transition: left 0.8s ease;
}

#about .group.relative.bg-white:hover::before {
    left: 100%;
}

/* Icon Containers */
#about .w-16.h-16.bg-gradient-to-br {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#about .group:hover .w-16.h-16.bg-gradient-to-br {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Feature Icons Animation */
@keyframes icon-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

#about .fas.fa-brain,
#about .fas.fa-heart,
#about .fas.fa-users {
    animation: icon-float 6s ease-in-out infinite;
}

#about .fas.fa-heart {
    animation-delay: 2s;
}

#about .fas.fa-users {
    animation-delay: 4s;
}

/* Background Pattern Animation */
@keyframes pattern-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(3px, -3px) rotate(0.5deg);
    }
    50% {
        transform: translate(-2px, 2px) rotate(-0.3deg);
    }
    75% {
        transform: translate(1px, -1px) rotate(0.2deg);
    }
}

#about svg {
    animation: pattern-drift 25s ease-in-out infinite;
}

/* Visual Impact Section */
#about .relative.rounded-3xl.overflow-hidden {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#about .relative.rounded-3xl.overflow-hidden:hover {
    transform: scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Floating Elements on Image */
#about .bg-white\/90.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Stats Cards */
#about .bg-white.rounded-2xl.p-6.shadow-lg {
    transition: all 0.3s ease;
}

#about .bg-white.rounded-2xl.p-6.shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Progress Bars */
#about .w-full.bg-\[#fed885\]\/20,
#about .w-full.bg-\[#043f51\]\/20 {
    transition: all 0.3s ease;
}

#about .bg-white.rounded-2xl.p-6.shadow-lg:hover .w-full.bg-\[#fed885\]\/20 .bg-\[#fed885\],
#about .bg-white.rounded-2xl.p-6.shadow-lg:hover .w-full.bg-\[#043f51\]\/20 .bg-\[#043f51\] {
    transform: scaleX(1.05);
}

/* Mission Statement Card */
#about .bg-gradient-to-r.from-\[#043f51\]\/5.to-\[#0891b2\]\/5 {
    transition: all 0.4s ease;
}

#about .bg-gradient-to-r.from-\[#043f51\]\/5.to-\[#0891b2\]\/5:hover {
    background: linear-gradient(135deg, rgba(4, 63, 81, 0.08), rgba(8, 145, 178, 0.08));
    transform: translateY(-2px);
}

/* CTA Section */
#about .bg-gradient-to-r.from-\[#043f51\].to-\[#0891b2\] {
    position: relative;
    overflow: hidden;
}

#about .bg-gradient-to-r.from-\[#043f51\].to-\[#0891b2\]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 1s ease;
}

#about .bg-gradient-to-r.from-\[#043f51\].to-\[#0891b2\]:hover::before {
    left: 100%;
}

#about .bg-gradient-to-r.from-\[#043f51\].to-\[#0891b2\] button {
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#about .bg-gradient-to-r.from-\[#043f51\].to-\[#0891b2\] button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(254, 216, 133, 0.3);
}

/* Decorative Elements */
#about .absolute.-bottom-6.-left-6,
#about .absolute.-top-6.-right-6 {
    transition: all 0.6s ease;
}

#about .relative:hover .absolute.-bottom-6.-left-6 {
    transform: translate(-20px, 10px) scale(1.2);
}

#about .relative:hover .absolute.-top-6.-right-6 {
    transform: translate(15px, -15px) scale(1.1);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 150px;
    color: rgba(254, 216, 133, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Button Hover Effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Icon Container Animation */
.icon-container {
    transition: all 0.3s ease;
}

.feature-card:hover .icon-container,
.program-card:hover .icon-container {
    transform: rotate(360deg) scale(1.1);
}

/* Scroll Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link {
    color: #374151 !important; /* text-gray-700 equivalent */
}

.navbar-scrolled .nav-link:hover {
    color: #043f51 !important;
}

.navbar-scrolled #mobile-menu-btn {
    color: #374151 !important; /* text-gray-700 equivalent */
}

.navbar-scrolled .logo-container h1 span:first-child {
    color: #043f51 !important;
}

.navbar-scrolled .btn-secondary {
    border-color: #043f51 !important;
    color: #043f51 !important;
}

.navbar-scrolled .btn-secondary:hover {
    background-color: #043f51 !important;
    color: white !important;
}

.navbar-scrolled .btn-primary {
    background-color: #fed885 !important;
    color: #043f51 !important;
}

.navbar-scrolled .btn-primary:hover {
    background-color: #043f51 !important;
    color: white !important;
}

/* Image Hover Effect */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #fed885;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #043f51;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(254, 216, 133, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(254, 216, 133, 0);
    }
}

button:hover {
    animation: pulse 1.5s infinite;
}

/* Enquiry Button Pulse Animation */
@keyframes enquiryPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 130, 31, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(245, 130, 31, 0);
    }
}

#enquiry-btn {
    animation: enquiryPulse 3s infinite;
}

#enquiry-btn:hover {
    animation: none;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Video Container */
video {
    object-fit: cover;
}

/* Hero Video Styles */
#hero-video {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

#hero-video::backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Video Fallback Styles */
#hero-video > div {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #043f51 0%, #fed885 50%, #043f51 100%);
    z-index: -1;
}

/* Video Loading Overlay */
#video-loading-overlay {
    transition: opacity 0.5s ease-out;
    z-index: 10;
}

/* Video Play Overlay */
#video-play-overlay {
    z-index: 15;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Card Glow Effect */
.feature-card:hover,
.program-card:hover,
.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(254, 216, 133, 0.3);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

button,
a,
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Animation for Images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

/* Video Section Styles */
@keyframes animate-bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: animate-bounce-slow 3s ease-in-out infinite;
}

#playButton {
    transition: opacity 0.4s ease;
}

#activityVideo {
    transition: transform 0.3s ease;
}

/* Video Section Stats Cards Animation */
#video .bg-white\/10:hover {
    box-shadow: 0 20px 40px rgba(254, 216, 133, 0.3);
}

/* Activity Highlights Hover Effect */
#video .group .w-16.h-16 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility: Focus Styles */
a:focus,
button:focus {
    outline: none;
}

/* Navigation Link Focus */
.nav-link:focus {
    color: #ffae00 !important;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    margin: -8px -12px;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .animate-bounce {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .floating-element {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .color-bar {
        width: 40px;
        height: 3px;
    }
    
    .animate-float,
    .animate-float-delay,
    .animate-bounce-slow {
        display: none;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .feature-card,
    .program-card,
    .testimonial-card {
        padding: 1.5rem !important;
    }
}
