/* Modern UI Enhancements
Controlss 
*/
:root {
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #4338ca 50%, #1e40af 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
}


.logo {
  font-weight: bold;
  font-size: 1.3rem;
  color: #2563eb !important;
  letter-spacing: 1px;
}

/* Ensure links are visible on the blue gradient header */
nav ul li a,
nav ul li a.contact-link,
.contact-link {
  color: black !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
  color: #2804c7;
  border-color: #ffdd57 !important;
}


/* Text Styles */
.gradient-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 3.8rem;
    line-height: 1.1;
    letter-spacing: -0.03em; /* Tighter spacing for high-end look */
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12)); 
}

/* Hero Section (FIXED SLIDER) */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
    position: relative;
    overflow: hidden;

    /* fallback image */
    background-image: url("https://images.unsplash.com/photo-1588072432836-e10032774350?w=1600&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* animation */
    animation: heroSlider 24s infinite;
}

/* Overlay (KEEP THIS ONLY — removed gradient from keyframes) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* Content stays above overlay */
.hero-content {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 850px;
    margin: 0 20px;
    position: relative;
    z-index: 2;
    animation: contentZoom 24s infinite;
}

/* TEXT */
.hero h1 {
    margin-bottom: 15px;
}

.hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ✅ FIXED HERO IMAGE SLIDER */
@keyframes heroSlider {
    0%, 30% {
        background-image: url("https://images.unsplash.com/photo-1588072432836-e10032774350?w=1600&q=80");
    }
    33%, 63% {
        background-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=1600&q=80");
    }
    66%, 96% {
        background-image: url("https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1600&q=80");
    }
    100% {
        background-image: url("https://images.unsplash.com/photo-1588072432836-e10032774350?w=1600&q=80");
    }
}

/* CONTENT ZOOM EFFECT */
@keyframes contentZoom {
    0%, 30% { transform: scale(1); }
    15% { transform: scale(1.03); }

    33%, 63% { transform: scale(1); }
    48% { transform: scale(1.03); }

    66%, 96% { transform: scale(1); }
    81% { transform: scale(1.03); }

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

/* Buttons */
.btn {
    display: inline-block;
    background: #ffdd57;
    color: #004aad;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse 3s infinite ease-in-out;
}

.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn:hover {
    background: #ffc107;
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Features */
.features {
    padding: 120px 40px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.features h2 {
    font-size: 2em;
    color: #004aad;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(241,245,255,0.96));
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #38bdf8 70%, #14b8a6);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.28);
}

.feature-card h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.7;
}

/* Happy Schools Slider */
.happy-schools-section {
    padding: 60px 24px 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,245,255,0.95));
}

.happy-schools-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.happy-schools-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #004aad;
    margin-bottom: 24px;
}

.happy-schools-slider {
    overflow: hidden;
    border-radius: 20px;
    padding: 18px 0;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.happy-schools-track {
    display: flex;
    width: max-content;
    animation: happy-schools-scroll 16s linear infinite;
}

.happy-schools-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 0 24px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 20px rgba(15,23,42,0.08));
}

.happy-schools-group img {
    max-height: 70px;
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

@keyframes happy-schools-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Footer */
footer {
    background: #004aad;
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: 0;
}

/* Installed app launch splash */
#appSplash {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 45%), linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #0f766e 100%);
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#appSplash.visible {
    opacity: 1;
}

.app-splash-badge {
    width: 110px;
    height: 110px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.32);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-splash-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 6px 24px rgba(2, 6, 23, 0.28);
}

/* Reliability Slider */
.reliability-section {
    padding: 80px 0;
    background: #ffffff;
}

.slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

.slide {
    display: none;
    animation: fadeIn 0.8s ease;
    text-align: center;
}

.slide.active {
    display: block;
}

.slide h3 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.slide p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #2563eb;
    width: 30px;
    border-radius: 6px;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Flex Slide Layout for Images */
.slide-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.slide-text { flex: 1.2; }
.slide-image { flex: 0.8; display: flex; justify-content: center; }
.slide-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    object-fit: cover;
}

@media (max-width: 768px) {
    .slide-flex { flex-direction: column; text-align: center; }
}



/* Hide toggle on desktop */
.menu-toggle {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%; /* hidden off screen */
    height: 50%;
    width: 150px;
    background: #e4e4e7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    transition: right 0.3s ease;
    z-index: 999;
  }

  nav ul.active {
    right: 0; /* slide in */
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: rgb(2, 2, 2);
    z-index: 1001;
  }

  nav ul.active {
    right: 0; /* slide in */
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    font-size: 1.2rem;
    width: 100%;
    padding: 10px 0;
  }
}


/* MODALS */
