/* Custom CSS for Krishna Gopal Gaushala Sewa Trust */

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

nav{
	background-color: white;
    z-index: 1000;
}

/* Navbar link styles */
.nav-link {
    @apply relative text-gray-700 dark:text-gray-300 hover:text-green-600 dark:hover:text-green-400 font-medium px-3 py-2 rounded-lg transition-colors duration-300;
}

.nav-link-mobile {
    @apply text-gray-700 dark:text-gray-300 hover:text-green-600 dark:hover:text-green-400 font-medium px-4 py-3 rounded-lg transition-colors duration-300;
}

.nav-link.active,
.nav-link-mobile.active {
    @apply text-green-600 dark:text-green-400 font-bold;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #16a34a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Hero section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-section > *:not(img) {
    position: relative;
    z-index: 2;
}

/* Card hover effects */
.team-card,
.bg-white,
.bg-gray-50 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .team-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Button hover effects */
button,
a.bg-green-600 {
    transition: all 0.3s ease;
}

button:hover,
a.bg-green-600:hover {
    transform: translateY(-2px);
}

/* Loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Mobile menu transition */
#mobileMenu {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

/* Gradient backgrounds */
.bg-gradient-to-r {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Print styles */
@media print {
    .no-print,
    #navbar,
    #cursorCanvas,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-white,
    .dark\:bg-gray-800 {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd;
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
}

/* Accessibility focus styles */
:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Trust badge styles */
.trust-badge {
    border: 2px solid #16a34a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Modal animations */
#teamModal > div > div {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }