@tailwind base;
@tailwind components;
@font-face {
    font-family: 'Poppins';
    src: local('Poppins'), url('../assets/fonts/Poppins.ttf') format('truetype'),
        
}
@font-face {
    font-family: 'Mulish';
    src: local('Mulish'), url('../assets/fonts/Mulish.ttf') format('truetype'),        
}
@tailwind utilities;

@layer components {
    /* Animation Classes Only */
    .hover-lift {
        @apply transition-all duration-300 ease-in-out transform hover:-translate-y-2 hover:shadow-xl;
    }

    .stats-animate {
        @apply opacity-0;
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .stats-label-animate {
        @apply opacity-0;
        animation: fadeInUp 0.6s ease-out 0.2s forwards;
    }

    .live-pulse::before {
        content: '';
        @apply absolute -left-3 top-1/2 w-2 h-2 bg-green-400 rounded-full;
        transform: translateY(-50%);
        animation: pulse 2s infinite;
    }
}

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

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.testimonial-slide {
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide[x-show] {
    display: none;
}

.testimonial-slide[x-show="true"] {
    display: block;
}

/* Owl Carousel Custom Styles */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 -3rem;
    pointer-events: none;
}

.owl-prev, .owl-next {
    width: 3rem;
    height: 3rem;
    background-color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.2), 0 4px 10px -1px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #021f49 !important;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.owl-prev:hover, .owl-next:hover {
    background-color: #2aaacb !important;
    color: white !important;
}

.owl-dots {
    margin-top: 0.5rem;
    text-align: center;
}

.owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 5px 7px;
    background: #D6D6D6 !important;
    display: block;
    transition: opacity .2s ease;
    border-radius: 30px;
}

.owl-dot.active span {
    background: #2aaacb !important;
}

/* Activities Carousel Styles */
.activities-carousel .owl-stage-outer {
    padding: 10px 0;
}

.activities-carousel .owl-item {
    transition: all 0.3s ease;
}

.activities-carousel .owl-item:hover {
    transform: translateY(-5px);
}

.activities-carousel .owl-nav {
    margin-top: 1rem;
}

.activities-carousel .owl-nav button {
    margin: 0 10px;
}

/* Feature Box Animations */
.features-grid .feature-box {
    transition: all 0.3s ease;
}

.features-grid .feature-box:hover .icon-container {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.features-grid .feature-box .icon-container {
    transition: transform 0.3s ease;
}

.features-grid .feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gallery Hover Effects */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Video Carousel Styles */
.video-carousel {
    position: relative;
}

.video-carousel .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.video-carousel .owl-nav button.owl-prev,
.video-carousel .owl-nav button.owl-next {
    position: absolute;
    pointer-events: auto;
}

.video-carousel .owl-nav button.owl-prev {
    left: -1.5rem;
}

.video-carousel .owl-nav button.owl-next {
    right: -1.5rem;
}

.video-carousel .owl-dots {
    margin-top: 2rem;
    text-align: center;
}

.video-carousel .owl-dot {
    display: inline-block;
    margin: 0 4px;
}

.video-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background-color: #D1D5DB !important;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.video-carousel .owl-dot.active span {
    background-color: #1e90ff !important;
    transform: scale(1.2);
}

.video-carousel .owl-stage {
    display: flex;
    padding: 1rem 0;
}

.video-carousel .owl-item {
    padding: 0.5rem;
}

/* Video Modal Styles */
#videoModal {
    backdrop-filter: blur(5px);
}

#videoModal .aspect-video {
    aspect-ratio: 16 / 9;
}

/* Hero Carousel Animation */
.fadeOut {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Hero Carousel Styles */
.hero-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 20;
}

.hero-carousel .owl-nav button.owl-prev,
.hero-carousel .owl-nav button.owl-next {
    position: absolute;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-carousel .owl-nav button.owl-prev {
    left: 1rem;
}

.hero-carousel .owl-nav button.owl-next {
    right: 1rem;
}

.hero-carousel .owl-nav button:hover {
    background: var(--mc-secondary) !important;
    color: white !important;
}

/* Custom Button Styles */
.btn-primary {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    @apply bg-[#3dbddf];
    transform: translateY(-3px);
    background-color: #2aaacb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.btn-secondary {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    @apply bg-gray-100;
    transform: translateY(-3px);
    background-color: #D1D5DB;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Stats Card Animation */
.stats-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
    @apply bg-white/20;
    transform: translateY(-5px) scale(1.02);
}

.stats-card-value {
    @apply text-3xl font-bold text-mc-secondary mb-1;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stats-card-label {
    @apply text-sm text-gray-300;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Pulse Animation for Live Updates */
.live-pulse {
    position: relative;
}

.live-pulse::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}
