/* ================= ROOT DESIGN SYSTEM ================= */

:root{
  --navy:#0b1f3a;
  --navy-dark:#07152a;
  --gold:#d4af37;
  --gold-light:#f5d77a;
  --white:#ffffff;
  --gray:#f4f6f9;

  --shadow-soft:0 10px 30px rgba(0,0,0,0.08);
  --shadow-medium:0 15px 40px rgba(0,0,0,0.12);
  --shadow-strong:0 20px 60px rgba(0,0,0,0.18);

  --radius:18px;
}

/* ================= GLOBAL ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Montserrat',sans-serif;
  background:var(--white);
  color:#222;
  line-height:1.7;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

.section{
  padding:110px 0;
  position:relative;
}

.section-header{
  text-align:center;
  margin-bottom:60px;
}

.section-header h2{
  font-size:36px;
  font-weight:700;
  color:var(--navy);
  margin-bottom:10px;
}

.section-header p{
  color:#666;
  font-weight:400;
}

/* ================= NAVBAR ================= */

.header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  z-index:1000;
  background:rgba(11,31,58,0.85);
  transition:0.4s ease;
}

.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

.logo h2{
  color:var(--white);
  font-size:22px;
  font-weight:700;
}

.logo span{
  color:var(--gold-light);
  font-size:12px;
  letter-spacing:1px;
}

.nav-menu ul{
  list-style:none;
  display:flex;
  gap:30px;
}

.nav-menu a{
  text-decoration:none;
  color:var(--white);
  font-weight:500;
  position:relative;
  transition:0.3s;
  z-index:1100;
}

.nav-menu a::after{
  content:"";
  position:absolute;
  width:0%;
  height:2px;
  left:0;
  bottom:-5px;
  background:var(--gold);
  transition:0.3s;
}

.nav-menu a:hover::after{
  width:100%;
}

.hamburger{
  display:none;
  flex-direction:column;
  cursor:pointer;
}

.hamburger span{
  height:3px;
  width:25px;
  background:white;
  margin:4px 0;
  transition:0.4s;
}

/* ================= HERO ================= */

.hero{
  min-height:100vh;
  padding:160px 0 60px;
  background:url('https://images.unsplash.com/photo-1588072432836-e10032774350') center/cover no-repeat;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:40px;
  position:relative;
  text-align:center;
  color:white;
  overflow:hidden;
}

.hero-overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(135deg, rgba(7,21,42,0.95), rgba(11,31,58,0.75));
  top:0;
  left:0;
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:900px;
  padding:0 1rem;
}

.hero h1{
  font-size:64px;
  font-weight:800;
  line-height:1.2;
}

.hero h1 span{
  color:var(--gold-light);
}

.hero p{
  margin:25px 0;
  font-size:18px;
  color:#eee;
}

.hero-buttons{
  margin-top:20px;
}

.btn{
  display:inline-block;
  padding:14px 32px;
  border-radius:50px;
  text-decoration:none;
  font-weight:600;
  transition:0.4s;
  margin:10px;
}

.primary-btn{
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:#000;
  box-shadow:var(--shadow-medium);
}

.primary-btn:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-strong);
}

.secondary-btn{
  border:2px solid var(--gold-light);
  color:white;
}

.secondary-btn:hover{
  background:var(--gold-light);
  color:black;
}

/* HERO RESPONSIVE TUNING */
.hero-content{
  width:100%;
}

.hero-stats{
  width:100%;
  max-width:1200px;
  position:relative;
  z-index:2;
}

@media (max-width: 1100px) {
  .hero{
    gap:32px;
  }

  .hero-content{
    padding:0 1.25rem;
  }

  .hero-stats{
    margin-top:40px;
  }
}

@media (max-width: 768px) {
  .hero h1{
    font-size:40px;
  }

  .hero p{
    font-size:16px;
  }

  .hero-buttons{
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .hero-stats{
    gap:18px;
    padding:0 10px;
  }

  .hero{
    padding-top:120px;
  }
}

/* Floating Stats */

.hero-stats {
 position: relative;
 margin-top: 80px;
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.stat-card {
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    color: #fff;
    transition: 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}


.stat-card i {
  font-size: 28px;
  color: #f5c542;
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 36px;
  font-weight: 700;
  color: #f5c542;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

/* ================= GLASS CARDS ================= */

.glass-card{
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(18px);
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow-soft);
  transition:0.4s ease;
}

.glass-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-strong);
}

/* ================= ABOUT ================= */

.about-section{
  padding-top:160px;
}

.about-content{
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  align-items:center;
}

.about-text{
  flex:1;
}

.vision-mission{
  flex:1;
  display:flex;
  gap:25px;
}

.principal-section{
  margin-top:80px;
}

.principal-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  margin-top:30px;
}

.principal-section .principal-card{
  text-align:center;
  min-height:320px;
  padding:40px 20px 30px;
  background:rgba(255,255,255,0.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow-medium);
  transition:transform 0.35s ease, box-shadow 0.35s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

.principal-section .principal-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-strong);
}

.principal-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid rgba(255,255,255,0.85);
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* ================= ACADEMICS ================= */

.academics-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

.academic-card i{
  font-size:35px;
  color:var(--gold);
  margin-bottom:15px;
}

/* ================= FACILITIES ================= */

/* ================= FACILITIES GRID PREMIUM ================= */

.facility-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  align-items:stretch;
}

.facility-item{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  background:#eee;
  transition:0.4s ease;
}

/* Auto Adjust Image Ratio */
.facility-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:0.6s ease;
}

/* Premium Hover */
.facility-item:hover img{
  transform:scale(1.08);
}

.facility-item:hover{
  box-shadow:var(--shadow-strong);
}

/* ================= GALLERY PREMIUM ================= */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#eee;
  box-shadow:var(--shadow-soft);
  aspect-ratio:4/3;
}

/* Auto Ratio Adjustment */
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.6s ease;
  display:block;
}

/* Smooth Zoom */
.gallery-item:hover img{
  transform:scale(1.12);
}

/* Subtle Overlay Effect */
.gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  opacity:0;
  transition:0.4s;
}

.gallery-item:hover::after{
  opacity:1;
}

/* ================= ACHIEVEMENTS ================= */

.achievements {
  padding: 100px 20px;
  background: #f8f9fc;
  text-align: center;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 700;
  color: #0d1b3e;
}

.section-title p {
  color: #777;
  margin-top: 10px;
}

.achievement-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.achievement-card {
  background: #fff;
  border-radius: 25px;
  padding: 50px 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  transition: 0.4s ease;
}

.achievement-card i {
  font-size: 40px;
  color: #f5c542;
  margin-bottom: 20px;
}

.achievement-card h3 {
  font-size: 42px;
  color: #0d1b3e;
  margin-bottom: 10px;
}

.achievement-card p {
  font-size: 15px;
  color: #666;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 80px rgba(0,0,0,0.15);
}

/* ================= TESTIMONIAL ================= */

.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

/* ================= ADMISSION ================= */

.admission-form,
.contact-form{
  display:flex;
  flex-direction:column;
  gap:20px;
  max-width:500px;
  margin:auto;
}

input, textarea{
  padding:14px;
  border-radius:10px;
  border:1px solid #ccc;
  font-family:inherit;
}

/* ================= CONTACT ================= */

.contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:40px;
  margin-top:40px;
}

.contact-info iframe{
  width:100%;
  height:250px;
  border-radius:var(--radius);
  border:none;
  margin-top:20px;
}

/* ================= FOOTER ================= */

.footer{
  background:var(--navy-dark);
  color:white;
  padding:60px 0 20px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:40px;
}

.footer a{
  color:#ccc;
  text-decoration:none;
}

.footer-bottom{
  text-align:center;
  margin-top:40px;
  font-size:14px;
  color:#aaa;
}

/* ================= WHATSAPP ================= */

.whatsapp-btn{
  position:fixed;
  bottom:25px;
  right:25px;
  background:#25d366;
  color:white;
  padding:16px;
  border-radius:50%;
  font-size:22px;
  box-shadow:var(--shadow-strong);
  z-index:999;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HEADER LOGO WITH TEXT ===== */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.logo-text h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.logo-text span {
  font-size: 11px;
  letter-spacing: 1px;
  color: #f5c542;
}
/* ===== FOOTER BRAND CLEAN ===== */

.footer-brand img {
  height: 65px;
  margin-bottom: 15px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.footer-brand .school-name {
  font-size: 13px;
  color: #f5c542;
  margin-bottom: 8px;
}

.footer-brand .tagline {
  font-size: 13px;
  opacity: 0.8;
}

/* ================= MOBILE NAVIGATION ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.4s ease;
}

/* Animate hamburger to X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 992px) {

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(10, 25, 70, 0.98);
    backdrop-filter: blur(20px);
    padding-top: 120px;
    transition: 0.5s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .nav-menu ul li a {
    font-size: 18px;
    color: #fff;
  }

  .hamburger {
    display: flex;
  }

  body.no-scroll {
    overflow: hidden;
  }
}
