* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  background: #050505;
  color: #fff;
}

/* Canvas (stars) */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}


/* Navbar */
nav {
  position: fixed;
  top: 20px;
  right: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  background: rgba(44, 41, 41, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 100;
}

/* Left side: logo + title */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem; /* increased spacing between logo and title */
}

.nav-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 8px;
}

.nav-title {
  font-size: 1.2rem;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: #8ea9db;
  text-shadow: none;
}

/* Nav links */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #a5b8e0;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
}

/* underline animation */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8ea9db;
  transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #b8c6f0;
  text-shadow: 0 0 8px rgba(184, 198, 240, 0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #8ea9db;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ===== SECTION ===== */
.schools-section {
  padding: 140px 8% 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ===== TITLE ===== */
.section-title {
  font-size: 3rem;
  margin-bottom: 70px;
  font-family: 'Cinzel', serif;
  color: #dfe7ff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== GRID ===== */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 40px;
  justify-items: center;
  align-items: start;
}

/* ===== CARD ===== */
.school-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 240px;
  transition: transform 0.35s ease;
}

.school-card:hover {
  transform: translateY(-8px);
}

/* ===== LOGO ===== */
.school-card img {
  width: 360px !important;
  height:auto  !important;

  object-fit: cover;
  display: block;   
  margin-bottom: 0px;

  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.15))
    drop-shadow(0 0 25px rgba(174,188,232,0.25));

  transition: transform 0.35s ease, filter 0.35s ease;
}

.school-card:hover img {
  transform: scale(1.08);

  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.25))
    drop-shadow(0 0 25px rgba(174,188,232,0.45));
}

/* ===== SCHOOL NAME ===== */
.school-card p {
  margin: 0;
  margin-top: -80px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;

  text-shadow:
    0 0 8px rgba(255,255,255,0.5),
    0 0 18px rgba(255,255,255,0.25);
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .schools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 30px;
  }

  .school-card img {
    width: 140px !important;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

  .schools-section {
    padding: 100px 6% 60px;
    padding-bottom: 120px;
  }

  .schools-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .school-card {
    max-width: 100%;
  }

  .school-card img {
    width: min(320px, 90vw) !important;
    margin-top: -100px;
  }

  .school-card p {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }
}
/* ============================= */
/* Elegant Royal Animated Footer */
/* ============================= */
.footer {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75); /* translucent royal tone */
  backdrop-filter: blur(12px);
  color: #d6def8;
  padding: 70px 20px 30px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  border-top: 1px solid rgba(174, 188, 232, 0.3);
  margin-top: 80px;
}

/* Animated gradient line at top */
/* Base diagonal line styles */
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 150%; /* extended to cover diagonal */
  opacity: 0.8;
  filter: drop-shadow(0 0 12px rgba(252, 228, 152, 0.521));
  background: linear-gradient(90deg, transparent, #e7d28d, #8ea9db, #cdd9ff, transparent);
  background-size: 200% 100%;
}

/* Line 1 – slightly above */
.footer::before {
  content: ''; 
  position: absolute;
  height: 1.5px;
  width: 120%; /* wider than footer */
  top: 1%;    /* slightly top */
  left: -10%;  /* start slightly outside left */
  transform: rotate(3deg);
  transform-origin: left top;
  background: linear-gradient(90deg, transparent, #d4af37, #8ea9db, #cdd9ff, transparent);
  background-size: 200% 100%;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  animation: glow-flow 4s linear infinite;
}

/* Line 2 – from top-right to bottom-left at ~25deg */
.footer::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 200%;      /* long enough to cross diagonally */
  top: 0;
  right: -50%;      /* shift to start inside the footer */
  transform: rotate(-25deg); /* slant from top-right to bottom-left */
  transform-origin: top right;
  background: linear-gradient(90deg, transparent, #d4af37, #8ea9db, #cdd9ff, transparent);
  background-size: 200% 100%;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  animation: glow-flow-reverse 5s linear infinite;
}

/* Glow animation – left to right */
@keyframes glow-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Glow animation – right to left */
@keyframes glow-flow-reverse {
  0% { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
}


/*animated top 
/* Decorative floating particles */
.footer::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.07;
  animation: drift 40s linear infinite;
}
@keyframes drift {
  from { transform: translate(0,0); }
  to { transform: translate(-200px,-200px); }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Logo & Title */
.footer-logo img {
  width: 80px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(174,188,232,0.8));
}

.footer-logo h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #b3c7ff, #8ea9db, #cdd9ff, #b3c7ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 10s infinite linear;
}
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
/* Footer Stats Container */
.footer-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: -30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  z-index: 2;
}

/* Divider between stats */
.footer-stats .stat-divider {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, #8ea9db, #cdd9ff);
  opacity: 0.6;
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(174,188,232,0.5);
}

/* Individual Stat */
.footer-stats .stat-item {
  text-align: center;
  cursor: default;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.footer-stats .stat-item:hover {
  transform: translateY(-5px);
  text-shadow: 0 0 15px rgba(174,188,232,0.9), 0 0 30px rgba(174,188,232,0.5);
}

/* Number Styling */
.footer-stats .stat-item span {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Cinzel', serif;
  background: linear-gradient(90deg, #b3c7ff, #8ea9db, #cdd9ff, #b3c7ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s infinite linear;
  text-shadow: 0 0 10px rgba(174,188,232,0.7);
}

/* Label Styling */
.footer-stats .stat-item small {
  display: block;
  font-size: 0.85rem;
  color: #cdd9ff;
  letter-spacing: 1px;
  margin-top: 5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Gradient Animation */
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .footer-stats {
    gap: 20px;
  }
  .footer-stats .stat-divider {
    display: none;
  }
  .footer-stats .stat-item span {
    font-size: 2rem;
  }
  .footer-stats .stat-item small {
    font-size: 0.8rem;
  }
}


/* Navigation Links */
.footer-links {
  display: flex;
  gap: 40px;
  margin-top: -40px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #a5b8e0;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #cdd9ff;
  transition: width 0.3s ease;
}
.footer-links a:hover::before {
  width: 100%;
}
.footer-links a:hover {
  color: #796dc8;
  text-shadow: 0 0 10px rgba(174,188,232,0.8);
}

/* Social Icons (royal glow, no circles) */
.footer-social {
  display: flex;
  gap: 30px;
  justify-content: center;
  text-decoration: none;
  align-items: center;
}
.footer-social a {
  color: #a5b8e0;
  font-size: 1.7rem;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  text-decoration: none;
  align-items: center;
}
.footer-social a:hover {
  color: #4556aeb5;
  transform: scale(1.25);
}
.footer-logo-icon {
  width: 32px;       /* adjust size as needed */
  height: 32px;
  filter: brightness(100%);
}
.white-logo {
  filter: brightness(100%);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 40px;
  font-size: 1rem;
  color: #8ea9db;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 15px;
  letter-spacing: 1px;
}

/* 📱 Responsive */
@media (max-width: 767px) {
  .footer{
    margin-top: -120px;
  }
  .footer-logo h2{
    font-size: 1.8rem;
  }
  .footer-links{
    margin-top: 1px;
    gap: 25px;
    font-size: 1rem;
  }
}
/* ============================= */
/* MOBILE NAVBAR */
/* ============================= */

@media (max-width: 767px) {

  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;

    background: rgba(15, 25, 40, 0.95);

    flex-direction: column;
    gap: 1rem;

    padding: 1.2rem 2rem;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.4);

    min-width: 180px;

    z-index: 999;

    display: none;
  }

  .nav-links.show {
    display: flex;
    animation: slide-down 0.3s ease forwards;
  }

  .nav-links li {
    text-align: left;
  }
}

/* ==========================================
   UNIVERSAL NAVBAR + FOOTER TABLET FIXES
   iPad Mini / Air / Pro (768px–1024px)
   Does NOT affect mobile or laptop
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* ================= NAVBAR ================= */

    nav {
        top: 15px;
        left: 25px;
        right: 25px;
        padding: 0.8rem 1.5rem;
    }

    /* Keep desktop navigation */
    nav ul {
        display: flex !important;
        gap: 1.2rem;
        flex-wrap: nowrap;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .nav-left {
        gap: 0.8rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-title {
        font-size: 1rem;
    }

    /* Never show hamburger on tablets */
    .hamburger {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }

    /* ================= FOOTER ================= */

    .footer {
        margin-top: 60px;
        padding: 60px 30px 25px;
    }

    .footer-content {
        gap: 30px;
    }

    /* Logo */
    .footer-logo img {
        width: 70px;
    }

    .footer-logo h2 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    /* Stats */
    .footer-stats {
        gap: 25px;
        margin-top: -20px;
        margin-bottom: 30px;
    }

    .footer-stats .stat-divider {
        height: 40px;
    }

    .footer-stats .stat-item span {
        font-size: 2.2rem;
    }

    .footer-stats .stat-item small {
        font-size: 0.8rem;
    }

    /* Links */
    .footer-links {
        gap: 25px;
        margin-top: -20px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    /* Social Icons */
    .footer-social {
        gap: 25px;
    }

    .footer-social a {
        font-size: 1.5rem;
    }

    .footer-logo-icon {
        width: 28px;
        height: 28px;
    }

    /* Bottom Text */
    .footer-bottom {
        margin-top: 30px;
        font-size: 0.9rem;
    }

}

/* =====================================
   SCHOOLS PAGE TABLET FIX
===================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .school-card {
        min-height: 280px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        padding: 2px !important;
    }

    /* Increase logo size */
    .school-card img,
    .school-logo {
        width: 350px !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        flex-shrink: 0;
    }

    /* School text */
    .school-card h3,
    .school-card p,
    .school-name {
        margin-top: -80px !important;
        font-size: 1.2rem !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
}

/* ===================================
   BOSCOTSAV INFINITY ISLAND
=================================== */

.infinity-island{
    display:none;
}

@media (max-width:768px){

    .hamburger{
        display:none !important;
    }

    .nav-links{
        display:none !important;
    }

    body{
        padding-bottom:110px;
    }

    .infinity-island{

        position:fixed;

        left:50%;
        bottom:25px;

        transform:translateX(-50%);

        z-index:99999;

        display:flex;
        justify-content:center;
        align-items:center;
    }

    .island-trigger{

        width:68px;
        height:68px;

        border:none;
        outline:none;

        cursor:pointer;

        border-radius:999px;

        background:rgba(25,25,30,.85);

        backdrop-filter:blur(25px);

        border:1px solid rgba(255,255,255,.08);

        box-shadow:
            0 10px 40px rgba(0,0,0,.35),
            inset 0 1px 0 rgba(255,255,255,.08);

        color:#d4af37;

        font-size:2rem;

        transition:.5s cubic-bezier(.22,1,.36,1);
    }

    .infinity-symbol{
        display:block;
        transition:.4s ease;
    }

    .island-menu{

        position:absolute;

        left:50%;
        bottom:0;

        transform:
            translateX(-50%)
            scaleX(.3);

        width:320px;
        height:68px;

        border-radius:999px;

        background:rgba(25,25,30,.92);

        backdrop-filter:blur(25px);

        border:1px solid rgba(255,255,255,.08);

        display:flex;
        justify-content:space-evenly;
        align-items:center;

        opacity:0;
        pointer-events:none;

        transition:
            opacity .35s ease,
            transform .45s cubic-bezier(.22,1,.36,1);

        box-shadow:
            0 10px 40px rgba(0,0,0,.35);
    }

    .island-item{

        color:white;
        font-size:1.1rem;

        opacity:0;

        transform:translateY(12px);

        transition:.3s ease;

        text-decoration:none;
    }

    .island-item i{
        transition:.25s ease;
    }

    .island-item:active i{
        transform:scale(1.2);
    }

    .infinity-island.active .island-menu{

        opacity:1;

        pointer-events:auto;

        transform:
            translateX(-50%)
            scaleX(1);
    }

    .infinity-island.active .island-item{

        opacity:1;

        transform:translateY(0);
    }

    .infinity-island.active .island-trigger{

        transform:scale(.8);

        opacity:0;
    }

    .island-item.active{

        color:#d4af37;
    }

    @keyframes islandFloat{

        0%{
            transform:translateX(-50%) translateY(0);
        }

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

        100%{
            transform:translateX(-50%) translateY(0);
        }
    }

    .infinity-island{
        animation:islandFloat 5s ease-in-out infinite;
    }
}

/* Desktop */

@media (min-width:769px){

    .infinity-island{
        display:none !important;
    }
}