@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
/* CSS Reset - Add this AFTER @import, BEFORE * { scroll-behavior } */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #6366f1 100%);
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #4338ca 50%, #6366f1 100%);
    z-index: 0;
}

.gradient-bg > * {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, #3730a3, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.islamic-pattern {
    background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-hover-effect {
    transition: transform 0.6s ease;
}

.image-hover-effect:hover {
    transform: scale(1.08) rotate(1deg);
}

.moon-icon {
    filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.5));
}

.card-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.section-padding {
    padding: 5rem 1rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
}

.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.zoom-in { transform: scale(0.95); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Mobile Menu Icon Animation */
.hamburger {
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2.5px;
    background-color: #374151;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.25px;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.hamburger.is-active .hamburger-inner {
    transform: translate3d(0, 0, 0) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    transform: rotate(-45deg) translate3d(-4.7px, -4.5px, 0);
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    transform: translate3d(0, 0, 0) rotate(-90deg);
    top: 0;
}

/* Mobile Drawer Links Animation */
#mobile-drawer.is-open > div > a,
#mobile-drawer.is-open > div > div > a {
    opacity: 1;
    transform: translateX(0);
}

#mobile-drawer > div > a,
#mobile-drawer > div > div > a {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#mobile-drawer.is-open > div > a:nth-child(2) { transition-delay: 100ms; }
#mobile-drawer.is-open > div > a:nth-child(3) { transition-delay: 150ms; }
#mobile-drawer.is-open > div > a:nth-child(4) { transition-delay: 200ms; }
#mobile-drawer.is-open > div > a:nth-child(5) { transition-delay: 250ms; }
#mobile-drawer.is-open > div > a:nth-child(6) { transition-delay: 300ms; }
#mobile-drawer.is-open > div > a:nth-child(7) { transition-delay: 350ms; }
#mobile-drawer.is-open > div > div > a:nth-child(1) { transition-delay: 400ms; }
#mobile-drawer.is-open > div > div > a:nth-child(2) { transition-delay: 450ms; }

@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 1rem;
    }
}

/* Additional styles from individual HTML files */
/* teacher-training.html */
.section-padding {
    padding: 5rem 1rem;
}

/* terms.html */
/* No additional styles needed */

/* thankyou.html */
/* No additional styles needed */

/* privacy.html */
/* No additional styles needed */

/* 404.html */
/* No additional styles needed */

/* Specific styles for the 404 page */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scaleIn {
    animation: scaleIn 0.8s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Specific styles for the thank you page */
.checkmark-container {
    animation: fadeInScale 0.5s ease-out forwards;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4ade80;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4ade80;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4ade80;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    opacity: 1;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #ffffff;
    stroke-width: 3;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    opacity: 1;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px #4ade80;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

