/* ---------------------------------
    VARIABLES & BASE STYLES
--------------------------------- */
:root {
  --blue: #1e6fd8;
  --blue-600: #155bb5;
  --muted: #6b7280;
  --bg: #f7fbff;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --dark-bg: #111827;
  --dark-card: #1f2937;
  --dark-text: #f3f4f6;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: #0f172a;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode toggle */
body.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---------------------------------
    UTILITY CLASSES
--------------------------------- */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* ---------------------------------
    HEADER
--------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

.site-header.scrolled.dark-mode {
  background: rgba(31, 41, 55, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.nav a:hover, .nav a.active {
  background: var(--glass);
}

body.dark-mode .nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------
    MOBILE NAV (UPDATED)
--------------------------------- */
.nav-toggle {
    display: none; /* Hide by default */
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1000;
}

.hamburger {
    /* The middle bar of the icon */
    position: absolute;
    top: 50%;
    left: 4px;
    width: 24px;
    height: 2px;
    background-color: var(--blue);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    /* The top and bottom bars */
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--blue);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px; /* Position the top bar */
}

.hamburger::after {
    top: 8px; /* Position the bottom bar */
}

/* State when the menu is open */
.nav-toggle.open .hamburger {
    background-color: transparent; /* Hide the middle bar */
}

.nav-toggle.open .hamburger::before {
    top: 0; /* Move the top bar to the center */
    transform: rotate(45deg); /* Rotate to form a cross */
}

.nav-toggle.open .hamburger::after {
    top: 0; /* Move the bottom bar to the center */
    transform: rotate(-45deg); /* Rotate to form a cross */
}

@media (max-width: 700px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: 280px;
        background: var(--card);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 90;
    }

    body.dark-mode .nav {
        background: var(--dark-card);
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav ul {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
    }

    .nav a {
        padding: 1rem;
        border-radius: 10px;
    }

    .nav-inner {
        padding: 0.8rem 1rem;
    }
}


/* ---------------------------------
    HERO
--------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
   background-image: 
  linear-gradient(180deg, rgba(6, 12, 34, 0.25), rgba(6, 12, 34, 0.05)),
  url('assets/bg logo.png');
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 34, 0.25), rgba(6, 12, 34, 0.05));
  /* backdrop-filter: blur(2px); */
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  top: -10%;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero .tag {
  margin: 0 0 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
     min-height: 50vh;
    background-position: top center;
  }
 
  
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* ---------------------------------
    SECTIONS
--------------------------------- */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg));
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--blue);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* ---------------------------------
    CARDS & GRIDS
--------------------------------- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

body.dark-mode .card {
  background: var(--dark-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--blue);
  box-shadow: 0 4px 16px rgba(30, 111, 216, 0.2);
  margin-bottom: 1.5rem;
}

.about-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  margin-top: 0;
  line-height: 1.8;
}

.features {
  padding-left: 1rem;
}

.features li {
  margin-bottom: 0.5rem;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stat {
  background: linear-gradient(90deg, rgba(30, 111, 216, 0.08), rgba(30, 111, 216, 0.04));
  padding: 0.8rem;
  border-radius: 12px;
}

body.dark-mode .stat {
  background: rgba(30, 111, 216, 0.15);
}

.stat-num {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
}

/* ---------------------------------
    SUBJECTS GRID
--------------------------------- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.subject-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
}

.subject-card .icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* ---------------------------------
    GALLERY
--------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  transition: transform 0.2s ease;
}

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

.gallery-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------------------------------
    CONTACT FORM
--------------------------------- */
.form-card label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid #e6eefb;
  margin-top: 0.5rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 216, 0.2);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn.secondary {
  background: #e2e8f0;
  color: #334155;
}

.contact-card .map-wrap {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1rem;
}

.contact-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------
    FOOTER
--------------------------------- */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 4rem 2rem 2rem;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-container h3 {
  margin-bottom: 1rem;
  color: #facc15;
  font-size: 1.2rem;
}

.footer-container p,
.footer-container a {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.8;
}

.footer-container a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-socials a {
  font-size: 1.5rem;
  color: #d1d5db;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-section {
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

/* ---------------------------------
    WHATSAPP FLOAT
--------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  background-color: #20b358;
  transform: scale(1.1);
}

@media (max-width: 700px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}