/* ============================================
   The Lookeron School - Main Stylesheet
   Tailwind CSS + Custom Styles
   ============================================ */

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

/* ============================================
   Base Styles
   ============================================ */
* {
    font-family: 'Inter', system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   Hero Section Styles
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(59, 130, 246, 0.85) 50%, rgba(14, 165, 233, 0.8) 100%);
}

/* ============================================
   Glass Card Effect
   ============================================ */
.glass-card {
    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);
}

/* ============================================
   Gradient Text Effect
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Float Animation
   ============================================ */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   Mobile Menu Styles
   ============================================ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ============================================
   Feature Icon Gradient
   ============================================ */
.feature-icon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* ============================================
   Scroll Indicator Animation
   ============================================ */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   Form Section Border
   ============================================ */
.form-section {
    border-left: 4px solid #3b82f6;
}

/* ============================================
   Premium Form Input Styles
   ============================================ */
.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section input[type="date"],
.form-section select,
.form-section textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-section input[type="text"]:hover,
.form-section input[type="email"]:hover,
.form-section input[type="tel"]:hover,
.form-section input[type="date"]:hover,
.form-section select:hover,
.form-section textarea:hover {
    border-color: #93c5fd;
    background: rgba(255, 255, 255, 0.95);
}

.form-section input[type="text"]:focus,
.form-section input[type="email"]:focus,
.form-section input[type="tel"]:focus,
.form-section input[type="date"]:focus,
.form-section select:focus,
.form-section textarea:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-section label {
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Radio and Checkbox Styling */
.form-section input[type="radio"],
.form-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Required field indicator */
.form-section label:has(+ input[required])::after,
.form-section label:has(+ select[required])::after {
    content: '';
}

/* ============================================
   Mobile Responsive Form Styles
   ============================================ */
@media (max-width: 768px) {

    /* Form container */
    #registrationForm {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    /* Form sections */
    .form-section {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-left-width: 3px;
    }

    /* Section headers */
    .form-section h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        gap: 0.75rem !important;
    }

    .form-section h2>span:first-child {
        width: 3rem !important;
        height: 3rem !important;
    }

    .form-section h2 i {
        font-size: 1rem !important;
    }

    .form-section h2>div span:first-child {
        font-size: 1.1rem !important;
    }

    .form-section h2>div span:last-child {
        font-size: 0.75rem !important;
    }

    /* Sub-section headers (Guardian, Mother, Father) */
    .form-section h3 {
        font-size: 1rem !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .form-section h3>span:first-child {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    .form-section h3>span:last-child {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    /* Sub-section cards */
    .form-section>div.bg-white\/60 {
        padding: 1rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Input fields */
    .form-section input[type="text"],
    .form-section input[type="email"],
    .form-section input[type="tel"],
    .form-section input[type="date"],
    .form-section select,
    .form-section textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    /* Labels */
    .form-section label {
        font-size: 0.8rem !important;
    }

    /* Grid gaps */
    .form-section .grid {
        gap: 1rem !important;
    }

    /* Radio buttons container */
    .form-section .flex.gap-6 {
        gap: 1rem !important;
        flex-wrap: wrap;
    }

    /* Submit section */
    .text-center.bg-gradient-to-br {
        padding: 1.5rem !important;
    }

    .text-center.bg-gradient-to-br button {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Trust indicators */
    .text-center .flex.flex-wrap.gap-6 {
        gap: 0.75rem !important;
    }

    .text-center .flex.flex-wrap.gap-6>div {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    #registrationForm {
        padding: 1rem !important;
    }

    .form-section {
        padding: 1rem !important;
    }

    .form-section h2 {
        font-size: 1.1rem !important;
    }

    .form-section h2>span:first-child {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    /* Referral source cards - stack vertically */
    .form-section .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Submit button */
    .text-center.bg-gradient-to-br button {
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
        gap: 0.5rem !important;
    }
}

/* ============================================
   Gallery Styles - Smooth Hover Effects
   ============================================ */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0) scale(1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25);
}

/* Image zoom effect */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease !important;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay gradient */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.3);
    opacity: 1;
    z-index: 1;
    border-radius: 16px;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Overlay Icon */
.gallery-item .gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    width: 56px;
    height: 56px;
    background: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Lightbox Styles
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

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

/* ============================================
   Focus States for Accessibility
   ============================================ */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ============================================
   Custom Selection Colors
   ============================================ */
::selection {
    background: #3b82f6;
    color: white;
}

::-moz-selection {
    background: #3b82f6;
    color: white;
}

/* ============================================
   Loading Spinner (if needed)
   ============================================ */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #1e40af;
    color: #1e40af;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
}

/* ============================================
   Card Hover Effects
   ============================================ */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Image Lazy Loading Placeholder
   ============================================ */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.5rem;
    }

    .text-responsive-2xl {
        font-size: 1.75rem;
    }

    .text-responsive-3xl {
        font-size: 2rem;
    }
}

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

    header,
    footer,
    .mobile-menu {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ============================================
   Slider Styles
   ============================================ */

.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.hero-slider .owl-nav button {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
}

.hero-slider .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-slider .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active span {
    background: white !important;
    transform: scale(1.2);
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero-slider .owl-nav {
        display: none;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.animate-checkmark {
    animation: checkmark 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.4);
}