/* =============================================
   SHREE NEPAL SECONDARY SCHOOL - BISHRAMPUR
   Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --navy-light: #1a3358;
  --gold:       #f4a900;
  --gold-light: #ffd166;
  --gold-dark:  #c98a00;
  --white:      #ffffff;
  --off-white:  #f0f4ff;
  --text-muted: #8899b5;
  --text-body:  #cdd6f4;
  --red-nepal:  #dc143c;
  --glass-bg:   rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --shadow-gold: 0 0 30px rgba(244,169,0,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ─── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── TYPOGRAPHY ────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-body); }

/* ─── LAYOUT ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ─── SECTION HEADER ────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header h2 { color: var(--white); margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.gold-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(244,169,0,0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(244,169,0,0.5); }
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-white {
  background: white;
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.3); }

/* ─── GLASS CARD ────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(244,169,0,0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* ─── NAVBAR ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand img {
  width: 46px; height: 46px; object-fit: contain; border-radius: 50%;
  border: 2px solid var(--gold);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-text .school-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  color: var(--white);
}
.nav-brand-text .school-sub {
  font-size: 0.62rem; color: var(--gold); font-weight: 500; letter-spacing: 0.5px;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: rgba(244,169,0,0.1);
}
.nav-epustakalaya {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 0.45rem 1rem !important;
}
.nav-epustakalaya:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(244,169,0,0.4); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ─── PAGE HERO ─────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(244,169,0,0.12) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.breadcrumb a { color: var(--gold); font-size: 0.85rem; }
.breadcrumb span { color: var(--text-muted); font-size: 0.85rem; }

/* ─── FOOTER ────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand h3 { color: var(--white); font-size: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1.25rem; position: relative; padding-bottom: 0.75rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--gold); border-radius: 1px; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-contact-item .icon { color: var(--gold); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem; text-align: center;
  color: var(--text-muted); font-size: 0.82rem;
}
.footer-bottom span { color: var(--gold); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in-2 { animation: fadeInUp 0.6s ease 0.15s both; }
.animate-in-3 { animation: fadeInUp 0.6s ease 0.3s both; }
.animate-in-4 { animation: fadeInUp 0.6s ease 0.45s both; }

/* ─── NOTICE BADGE ───────────────────────────── */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: 50px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
}
.badge-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); }
.badge-red  { background: linear-gradient(135deg, #dc143c, #ff4d6d); color: white; }
.badge-green{ background: linear-gradient(135deg, #2dd4bf, #0ea5e9); color: var(--navy); }

/* ─── LIGHTBOX ───────────────────────────────── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); border: 2px solid var(--gold); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: white; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: var(--gold); color: var(--navy); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links a { font-size: 0.76rem; padding: 0.4rem 0.65rem; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; background: rgba(10,22,40,0.98); padding: 1.5rem; gap: 0.5rem; border-bottom: 1px solid var(--glass-border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
}
