/* Google-style button font */
.font-google-sans {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Google Maps button specific styling */
.google-maps-btn {
    background: linear-gradient(135deg, #4285f4, #34a853);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.google-maps-btn:hover {
    background: linear-gradient(135deg, #3367d6, #2d8f47);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
    transform: translateY(-1px);
}

.google-maps-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* Custom CSS for Greenland Academy */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Navigation Enhancements */
nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition-base);
}

nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-link {
    position: relative;
    transition: var(--transition-base);
    padding: 0.5rem 0;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced navigation spacing */
nav .hidden.md\:flex.items-center.space-x-6 > a {
    margin: 0 0.25rem;
}

nav .hidden.md\:flex.items-center.space-x-6 > a:first-child {
    margin-left: 0;
}

nav .hidden.md\:flex.items-center.space-x-6 > a:last-child {
    margin-right: 0;
}

/* Better button separation */
nav button.ml-4 {
    margin-left: 1rem !important;
}

/* Hero Section Enhancements */
#home {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
    z-index: 1;
}

#home > div {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Enhanced Button Styles */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    color: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.8);
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Enhanced hover states for buttons */
.btn-primary:active, .btn-secondary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Card Enhancements */
.card-hover {
    transition: var(--transition-base);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Faculty Section Styles */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faculty-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.faculty-card:hover::before {
    transform: scaleX(1);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.faculty-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.faculty-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #f3f4f6;
}

.faculty-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.faculty-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faculty-qualification {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.faculty-specialty {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Gallery Enhancements */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: var(--transition-base);
}

.gallery-item img {
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-filter {
    transition: var(--transition-base);
}

.gallery-filter.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Section Enhancements */
section {
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Stats Counter */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number::after {
    transform: scaleX(1);
}

/* Add pulse animation to numbers when counting */
@keyframes numberPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.stat-number.counting {
    animation: numberPulse 0.5s ease-in-out;
}

/* Enhanced hover effects for different stat cards */
.stat-card:nth-child(1):hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-card:nth-child(2):hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card:nth-child(3):hover {
    border-color: rgba(124, 58, 237, 0.3);
}

/* Contact Form Enhancements */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile adjustments for about section stat cards */
    #about .grid.grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #about .stat-card {
        padding: 1rem;
        text-align: center;
    }
    
    #about .stat-number {
        font-size: 2rem;
    }
    
    #about .stat-card .text-gray-600 {
        font-size: 0.875rem;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Mobile Menu Enhancements */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
    max-height: 400px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Enrollment Modal Styles */
#enrollmentModal {
    backdrop-filter: blur(5px);
}

#enrollmentModal .animate-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

#enrollmentForm label {
    font-weight: 600;
    color: var(--text-dark);
}

#enrollmentForm input,
#enrollmentForm select,
#enrollmentForm textarea {
    border: 2px solid #e5e7eb;
    transition: var(--transition-base);
}

#enrollmentForm input:focus,
#enrollmentForm select:focus,
#enrollmentForm textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#enrollmentForm input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Form section styling */
#enrollmentForm > div {
    border-left: 4px solid transparent;
    transition: var(--transition-base);
}

#enrollmentForm > div:hover {
    border-left-color: var(--primary-color);
}

/* Loading spinner for form submission */
.loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    #enrollmentModal .max-w-2xl {
        max-width: 100%;
        margin: 1rem;
    }
    
    #enrollmentForm .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #enrollmentForm .flex.gap-4 {
        flex-direction: column;
    }
}

/* Image Lightbox Styles */
#imageLightbox {
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

#imageLightbox .animate-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

#lightboxImage {
    transition: opacity 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Lightbox navigation buttons */
#imageLightbox button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#imageLightbox button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Lightbox text styling */
#lightboxTitle {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#lightboxDescription {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Gallery image cursor pointer */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
    #imageLightbox button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #lightboxTitle {
        font-size: 1rem;
    }
    
    #lightboxDescription {
        font-size: 0.8rem;
    }
    
    #imageLightbox .max-w-6xl {
        padding: 1rem;
    }
}

/* Enhanced Enrollment Options Modal */
#enrollmentOptionsModal .animate-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

#mobileEnrollmentActions .animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced button hover effects */
.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

/* Mobile action sheet styling */
#mobileEnrollmentActions {
    backdrop-filter: blur(5px);
}

#mobileEnrollmentActions .bg-gray-50:hover {
    background-color: rgba(239, 246, 255, 0.8);
}

/* Enrollment options card styling */
#enrollmentOptionsModal .border-gray-200:hover {
    border-color: rgb(96, 165, 250);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Enhanced Navigation Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: #059669;
    background-color: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

/* Mobile menu hover effects */
.mobile-nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.mobile-nav-link:hover {
    color: #059669;
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    padding-left: 16px;
}

/* Enhanced button hover effects */
.enroll-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enroll-btn:hover::before {
    left: 100%;
}

.enroll-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.enroll-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Logo hover effect */
.logo-hover {
    transition: all 0.3s ease;
}

.logo-hover:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.2));
}

/* Enhanced Hero Background with Green Theme */
#home .bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

#home:hover .bg-cover {
    transform: scale(1.1);
}

/* Parallax effect for hero background */
@media (min-width: 768) {
    #home .bg-cover {
        background-attachment: fixed;
    }
}

/* Enhanced green overlay for better text readability */
#home .absolute.inset-0 > div:nth-child(2) {
    background: linear-gradient(135deg, 
        rgba(6, 78, 59, 0.9) 0%, 
        rgba(16, 185, 129, 0.85) 50%, 
        rgba(20, 184, 166, 0.85) 100%);
}

/* Enhanced animated elements with green theme */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Typography for Hero Section */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;600&display=swap');

.hero-title {
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced gradient text animation */
.text-gradient-animate {
    background: linear-gradient(135deg, #fbbf24, #f472b6, #60a5fa, #a78bfa);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile Optimization for Android and iPhone */
@media (max-width: 768px) {
    /* Base mobile styles */
    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Safe area insets for iPhone X and newer */
    .safe-area-top {
        padding-top: env(safe-area-inset-top);
    }
    
    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .safe-area-left {
        padding-left: env(safe-area-inset-left);
    }
    
    .safe-area-right {
        padding-right: env(safe-area-inset-right);
    }
    
    /* Navigation mobile optimization */
    nav {
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav-link {
        padding: 12px 16px;
        margin: 4px 0;
        font-size: 16px;
        min-height: 44px; /* iOS touch target minimum */
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-link {
        padding: 12px 16px;
        margin: 2px 0;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Logo mobile sizing */
    .logo-hover {
        height: 32px !important;
        width: auto;
    }
    
    /* Hero section mobile */
    #home {
        min-height: 100vh;
        padding: 20px 16px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
        padding: 0 8px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
        padding: 0 16px;
    }
    
    /* Buttons mobile */
    .enroll-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
        margin: 8px 0;
    }
    
    /* Section padding mobile */
    section {
        padding: 40px 16px;
    }
    
    /* Card mobile */
    .card-hover {
        margin: 8px 0;
        padding: 16px;
    }
    
    /* Faculty cards mobile */
    .faculty-card {
        margin: 8px 0;
        padding: 16px;
        min-height: 200px;
    }
    
    /* Gallery mobile */
    .gallery-item {
        margin: 8px 0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Contact form mobile */
    input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
        margin: 8px 0;
        border-radius: 8px;
        min-height: 44px;
    }
    
    /* Footer mobile */
    footer {
        padding: 32px 16px 40px;
        text-align: center;
    }
    
    /* Mobile menu improvements */
    #mobile-menu {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Touch-friendly spacing */
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        margin: 8px 4px;
        min-height: 44px;
        font-size: 16px;
    }
    
    /* iOS specific fixes */
    @supports (-webkit-touch-callout: none) {
        /* iOS Safari specific */
        .hero-title {
            -webkit-font-smoothing: antialiased;
        }
        
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        textarea {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            border-radius: 8px;
        }
    }
    
    /* Android specific fixes */
    @media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
        /* Chrome Android specific */
        .nav-link {
            -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2);
        }
    }
}

/* Small mobile devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    nav {
        padding: 0 12px;
    }
    
    section {
        padding: 32px 12px;
    }
}

/* Large mobile devices (iPhone Plus, Android large) */
@media (min-width: 376px) and (max-width: 414px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Tablet mobile optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    nav {
        padding: 0 24px;
    }
    
    section {
        padding: 48px 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Tablet adjustments for about section stat cards */
    #about .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    #about .stat-card {
        padding: 0.75rem;
    }
    
    #about .stat-number {
        font-size: 1.75rem;
    }
}

/* Small tablets and large phones */
@media (min-width: 576px) and (max-width: 767px) {
    #about .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    #about .stat-card {
        padding: 0.75rem;
    }
    
    #about .stat-number {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav, footer, .scroll-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .card-hover {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
