/* Custom Styles for Krishna World School */

/* Custom Color Variables */
:root {
    --primary-blue: #153c7a;
    --primary-yellow: #d9a520;
    --primary-blue-dark: #0f2d5c;
    --primary-blue-light: #1e4a8f;
    --primary-yellow-dark: #b8871a;
    --primary-yellow-light: #f0b835;
}

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

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

::-webkit-scrollbar-thumb {
    background: #153c7a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f2d5c;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button styles */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-semibold px-6 py-3 rounded-lg transition duration-300;
}

.btn-secondary {
    @apply bg-yellow-500 hover:bg-yellow-600 text-black font-semibold px-6 py-3 rounded-lg transition duration-300;
}

.btn-outline {
    @apply border-2 border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-white font-semibold px-6 py-3 rounded-lg transition duration-300;
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-300 resize-none;
}

/* Card styles */
.card {
    @apply bg-white rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300;
}

.card-hover {
    @apply hover:shadow-xl hover:-translate-y-1 transition-all duration-300;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: scale(95%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: scale(100%);
    opacity: 1;
    transition: all 0.2s ease;
}

.mobile-menu-exit {
    transform: scale(100%);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: scale(95%);
    opacity: 0;
    transition: all 0.2s ease;
}

/* Hero Section Typography */
.font-serif {
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Custom Color Utilities */
.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-blue-dark {
    background-color: var(--primary-blue-dark);
}

.bg-primary-blue-light {
    background-color: var(--primary-blue-light);
}

.bg-primary-yellow {
    background-color: var(--primary-yellow);
}

.bg-primary-yellow-dark {
    background-color: var(--primary-yellow-dark);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.text-primary-yellow {
    color: var(--primary-yellow);
}

.border-primary-blue {
    border-color: var(--primary-blue);
}

.border-primary-yellow {
    border-color: var(--primary-yellow);
}

.hover\:bg-primary-blue-dark:hover {
    background-color: var(--primary-blue-dark);
}

.hover\:bg-primary-yellow-dark:hover {
    background-color: var(--primary-yellow-dark);
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

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

/* Smooth image loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Professional image hover effects */
.image-hover-zoom {
    overflow: hidden;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}
