/* Let Educate - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Color Variables */
:root {
    --let-educate-blue: #1E3A8A;
    --let-educate-green: #51A52B;
}

/* Gradient Backgrounds */
.contact-card-gradient {
    background-image: linear-gradient(135deg, #1E3A8A, #51A52B);
}

.hero-bg {
    background: linear-gradient(135deg, #1E3A8A, #51A52B);
    position: relative;
}

.hero-bg-animated {
    background: linear-gradient(135deg, #1E3A8A, #51A52B);
    position: relative;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #1E3A8A, #51A52B); }
    50% { background: linear-gradient(135deg, #51A52B, #1E3A8A); }
}

/* Card Animations */
.service-card, .stat-card, .process-step, .university-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover, .stat-card:hover, .process-step:hover, .university-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.contact-input:focus {
    box-shadow: 0 0 0 3px rgba(81, 165, 43, 0.2);
    border-color: #51A52B;
}

/* Header Scroll Effect */
.header-scrolled {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Modal Animations */
.modal-active {
    display: flex !important;
    animation: backdrop-fade-in 0.3s ease-out forwards;
}

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

.modal-content-active {
    animation: modal-slide-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes modal-slide-in {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Skip Link Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1E3A8A;
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus Visible Styles */
:focus-visible {
    outline: 2px solid #51A52B;
    outline-offset: 2px;
}

/* Animation for Form Feedback */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Testimonial Carousel */
.testimonial-container {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    flex-shrink: 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader.hidden {
    display: none;
}

/* Mobile Menu Enhancements */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }
}

/* Dropdown Styles */
.group:hover .group-hover\:block {
    display: block !important;
}

.group .group-hover\:block {
    display: none;
}

.group.hover .group-hover\:block {
    display: block !important;
}

/* Ensure dropdown stays open when hovering over it */
.group:hover ul,
.group.hover ul {
    display: block !important;
}

/* Smooth dropdown transitions */
.group ul {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform-origin: top;
}

.group ul.hidden {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
}

.group ul:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Logo Visibility Styles */
.logo-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-container.scrolled {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.logo-container.scrolled:hover {
    background: rgba(30, 58, 138, 0.2);
}

/* Hero section logo visibility */
.hero-bg .logo-container,
.hero-bg-animated .logo-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-let-educate-blue { color: #1E3A8A; }
.text-let-educate-green { color: #51A52B; }
.bg-let-educate-blue { background-color: #1E3A8A; }
.bg-let-educate-green { background-color: #51A52B; }
.border-let-educate-blue { border-color: #1E3A8A; }
.border-let-educate-green { border-color: #51A52B; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
