/* Custom Tailwind CSS Configuration */
@layer base {
    :root {
        scroll-behavior: smooth;
    }
}

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

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in-delayed {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in-delayed-2 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes fly-bird-1 {
    0% {
        transform: translateX(-100px) translateY(0);
    }
    50% {
        transform: translateX(50px) translateY(-30px);
    }
    100% {
        transform: translateX(-100px) translateY(0);
    }
}

@keyframes fly-bird-2 {
    0% {
        transform: translateX(100px) translateY(0);
    }
    50% {
        transform: translateX(-50px) translateY(40px);
    }
    100% {
        transform: translateX(100px) translateY(0);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.animate-fade-in-delayed {
    animation: fade-in-delayed 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delayed-2 {
    animation: fade-in-delayed-2 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-fly-bird-1 {
    animation: fly-bird-1 6s ease-in-out infinite;
}

.animate-fly-bird-2 {
    animation: fly-bird-2 8s ease-in-out infinite;
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Card Hover Effects */
.bird-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
}

.bird-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.program-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-radius: 1rem;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

/* Button Styles */
button {
    position: relative;
    overflow: hidden;
}

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

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Input Focus Effects */
input:focus, textarea:focus {
    transition: all 0.3s ease;
    background-color: rgba(71, 85, 105, 0.8) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #60a5fa, #22d3ee);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-blob {
        display: none;
    }

    .animate-fly-bird-1,
    .animate-fly-bird-2 {
        display: none;
    }
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-scale {
    animation: pulse-scale 2s ease-in-out infinite;
}

/* Navigation Bar Glow */
nav {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Hero Section Styles */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Section Transitions */
section {
    position: relative;
}

/* Smooth Link Transitions */
a {
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Special Effects for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .bird-card,
    .program-card,
    .testimonial-card {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    button {
        display: none;
    }
}
