:root {
  --bg: #f6faff;
  --bg2: #d0e0f7;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #93a4c7;
  --max: 1220px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --phy: #38bdf8;
  --phy-d: rgba(56, 189, 248, 0.12);
  --phy-g: rgba(56, 189, 248, 0.32);
  --che: #4ade80;
  --che-d: rgba(74, 222, 128, 0.12);
  --mat: #fbbf24;
  --mat-d: rgba(251, 191, 36, 0.12);
  --bio: #f472b6;
  --bio-d: rgba(244, 114, 182, 0.12);
  --cs: #a78bfa;
  --cs-d: rgba(167, 139, 250, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 221, 236, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.09), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #081320 40%, #091524 100%);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
canvas { display: block; }
.container { width: min(92%, var(--max)); margin: auto; }
.page { min-height: 100vh; position: relative; z-index: 1; }
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}
.section { padding: 104px 0; position: relative; }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 760px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--phy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.gradient-all {
  background: white;
  -webkit-background-clip: text;
  font-weight: bolder;
  background-clip: text;
  color: transparent;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  padding: 10px;
}
.reveal.show { opacity: 1; transform: none; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #07111f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-row { display: flex; gap: 16px; align-items: flex-end; }
.loader-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loader-icon { font-size: 1.7rem; animation: loaderBounce 1.2s ease infinite; }
.loader-bar { width: 4px; height: 34px; border-radius: 6px; animation: loaderGrow 1.2s ease infinite; }
.loader-item:nth-child(1) .loader-bar { background: var(--phy); }
.loader-item:nth-child(2) .loader-bar { background: var(--che); }
.loader-item:nth-child(3) .loader-bar { background: var(--mat); }
.loader-item:nth-child(4) .loader-bar { background: var(--bio); }
.loader-item:nth-child(5) .loader-bar { background: var(--cs); }
.loader-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.95rem;
}
@keyframes loaderBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-14px) scale(1.2); opacity: 1; }
}
@keyframes loaderGrow {
  0%, 100% { transform: scaleY(0.4); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}
.floating-symbols {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floating-symbol {
  position: absolute;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  opacity: 0.05;
  animation: floatSymbol linear infinite;
  user-select: none;
}
@keyframes floatSymbol {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}




header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: all 0.35s ease;
}
header.scrolled {
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.32);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(92%, var(--max));
  margin: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}
.logo:hover { transform: translateX(4px); }
.logo-badge {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.78rem; color: #fff;
  background: linear-gradient(135deg, #0f2040, #1a3560);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
  position: relative; overflow: hidden;
}
.logo-badge::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--phy), var(--cs));
  opacity: 0; transition: opacity 0.35s;
}
.logo-badge span { position: relative; z-index: 1; }
.logo:hover .logo-badge::after { opacity: 0.26; }
.logo-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}
.logo-location { color: var(--muted); font-size: 0.72rem; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a, .nav-links button {
  background: none; border: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after, .nav-links button::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--phy), var(--cs));
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links button:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links button:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 18px !important;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--phy), var(--cs)) !important;
  color: #07111f !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.22);
}
.nav-cta::after { display: none !important; }
.menu-btn {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.7rem; cursor: pointer;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  padding: 14px; border-radius: 18px; margin-top: 8px;
}
.mobile-menu.show { display: flex; }
.mobile-menu a, .mobile-menu button {
  background: none; border: none; color: var(--muted);
  text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button:hover {
  background: rgba(56, 189, 248, 0.08); color: var(--phy);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 800; font-size: 0.94rem;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.35s var(--ease);
}
.btn:hover { transform: translateY(-4px) scale(1.03); }
.btn-primary {
  background: linear-gradient(135deg, var(--phy), #0ea5e9);
  color: #03101b;
  box-shadow: 0 12px 34px var(--phy-g);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}
.btn-cs {
  background: linear-gradient(135deg, var(--cs), #7c3aed);
  color: #fff;
  box-shadow: 0 12px 34px rgba(167, 139, 250, 0.32);
}
.btn-che {
  background: linear-gradient(135deg, var(--che), #16a34a);
  color: #03110b;
  box-shadow: 0 12px 34px rgba(74, 222, 128, 0.32);
}
.btn-danger {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #fff;
  box-shadow: 0 12px 34px rgba(251, 113, 133, 0.25);
}
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 110px;
  background-color: #03101b96;

  /* background: linear-gradient(135deg , #0f2040 , #06101d) ; */
  /* background-size: cover   ; */
}
.hero::before{
  
  content: "";
  position: absolute  ;
  inset: 0;
   animation: heroSlider 12s infinite;
  z-index: -1;
  background-position: top   center;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.06), transparent 35%),
    linear-gradient(180deg, transparent 35%, rgba(7, 17, 31, 0.85) 72%, #07111f 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: flex;
  /* grid-template-columns: 1.15fr 0.85fr; */
  gap: 46px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(216, 243, 255, 0.103);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: rgb(236, 250, 255);
  font-weight: 700; font-size: 0.82rem; margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--phy); box-shadow: 0 0 10px var(--phy);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.55; }
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 6.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero p {
  color: var(--bg);
  font-size: 1.04rem;
  line-height: 1.9;
  max-width: 660px;
  margin-bottom: 30px;
}
.hero-actions { 
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 34px;
}
.subject-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.subject-pill {
  padding: 8px 14px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 700; border: 1px solid;
  transition: all 0.35s var(--ease);
}
.subject-pill:hover { transform: translateY(-4px) scale(1.06); }
.p-phy { background: var(--phy-d); border-color: rgba(56, 189, 248, 0.32); color: var(--phy); }
.p-che { background: var(--che-d); border-color: rgba(74, 222, 128, 0.32); color: var(--che); }
.p-mat { background: var(--mat-d); border-color: rgba(251, 191, 36, 0.32); color: var(--mat); }
.p-bio { background: var(--bio-d); border-color: rgba(244, 114, 182, 0.32); color: var(--bio); }
.p-cs { background: var(--cs-d); border-color: rgba(167, 139, 250, 0.32); color: var(--cs); }
.hero-card {
  padding: 28px; border-radius: 24px; transition: all 0.4s var(--ease);
}
.hero-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(56, 189, 248, 0.24);
  box-shadow: 0 30px 70px rgba(56, 189, 248, 0.12);
}
.hero-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  margin-bottom: 16px;
}
.hero-list { list-style: none; display: grid; gap: 10px; }
.hero-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  transition: all 0.35s var(--ease);
}
.urdu-tagline {
  font-family: "Noto Nastaliq Urdu", serif;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 2.2;
  text-align: right;
  font-size: clamp(3.7rem , 5.6rem , 6rem);
  font-weight: 500;
}s
.hero-list li:hover { transform: translateX(6px); background: rgba(56, 189, 248, 0.08); }
.hero-list .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--phy); box-shadow: 0 0 10px var(--phy); flex-shrink: 0;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 26px;
}
.hero-stat {
  text-align: center; padding: 18px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.hero-stat:hover { transform: translateY(-6px); background: rgba(56, 189, 248, 0.08); }
.hero-stat h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem; line-height: 1; margin-bottom: 6px;
}
.hero-stat p { margin: 0; font-size: 0.78rem; line-height: 1.5; }


.achievements{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  
  gap: 15px;
  
}

.image1{

  width: 750px;
}

.image2{
  
  width: 750px;
}



.ach-grid, .subject-grid, .program-grid, .testi-grid, .dash-grid, .notes-grid {
  display: grid; gap: 20px; margin-top: 48px;
}
.ach-grid { grid-template-columns: repeat(4, 1fr); }
.subject-grid { grid-template-columns: repeat(5, 1fr); }
.program-grid { grid-template-columns: repeat(4, 1fr); }
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.dash-grid { grid-template-columns: repeat(3, 1fr); }
.notes-grid { grid-template-columns: repeat(3, 1fr); }
.ach-card, .subject-card, .program-card, .testi-card, .dash-card, .note-card {
  border-radius: 22px; transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.ach-card { padding: 28px 22px; text-align: center; }
.subject-card, .program-card, .testi-card, .dash-card, .note-card { padding: 26px 22px; }
.ach-card:hover, .subject-card:hover, .program-card:hover, .testi-card:hover, .dash-card:hover, .note-card:hover {
  transform: translateY(-10px) scale(1.02);
}
.ach-icon { font-size: 2.3rem; margin-bottom: 14px; }
.ach-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem; line-height: 1; margin-bottom: 6px;
}
.ach-card p, .subject-card p, .program-card p, .testi-text, .dash-card p, .note-card p {
  color: var(--muted); line-height: 1.75; font-size: 0.86rem;
}
.ach-blue:hover, .s-phy:hover, .pr-phy:hover, .t-phy:hover {
  background: rgba(56, 189, 248, 0.07); border-color: rgba(56, 189, 248, 0.25);
}
.ach-green:hover, .s-che:hover, .pr-che:hover, .t-che:hover {
  background: rgba(74, 222, 128, 0.07); border-color: rgba(74, 222, 128, 0.25);
}
.ach-yellow:hover, .s-mat:hover, .pr-mat:hover {
  background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.25);
}
.ach-pink:hover, .s-bio:hover, .pr-bio:hover {
  background: rgba(244, 114, 182, 0.07); border-color: rgba(244, 114, 182, 0.25);
}
.s-cs:hover, .pr-cs:hover, .t-cs:hover {
  background: rgba(167, 139, 250, 0.07); border-color: rgba(167, 139, 250, 0.25);
}
.subject-icon, .program-icon, .note-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.45rem; margin-bottom: 16px;
}
.program-icon { width: 54px; height: 54px; border-radius: 14px; }
.s-phy .subject-icon, .pr-phy .program-icon, .n-phy .note-icon { background: var(--phy-d); }
.s-che .subject-icon, .pr-che .program-icon, .n-che .note-icon { background: var(--che-d); }
.s-mat .subject-icon, .pr-mat .program-icon, .n-mat .note-icon { background: var(--mat-d); }
.s-bio .subject-icon, .pr-bio .program-icon, .n-bio .note-icon { background: var(--bio-d); }
.s-cs .subject-icon, .pr-cs .program-icon, .n-cs .note-icon { background: var(--cs-d); }
.subject-card h3, .program-card h3, .dash-card h3, .note-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem; margin-bottom: 8px; font-weight: 800;
}
.subject-card p, .program-card p, .note-card p { margin-bottom: 14px; }
.subject-tags, .note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.subject-tags span, .program-badge, .note-tags span {
  padding: 4px 9px; border-radius: 7px;
  font-size: 0.7rem; font-weight: 700; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
}
.program-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center; margin-top: 48px;
}
.about-canvas-wrap {
  min-height: 420px; border-radius: 50px; overflow: hidden; position: relative;
}

.about-canvas-wrap img{
  width: 100%;
}

#about-canvas { width: 100%; height: 420px; transform: scale(1.5); }
.about-panel { padding: 34px; border-radius: 26px; }
.about-panel p {
  color: var(--muted); line-height: 1.9; margin-bottom: 16px; font-size: 0.96rem;
}
.feature-list { display: grid; gap: 12px; margin-top: 18px; }
.feature {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 15px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.feature:hover { transform: translateX(8px); }
.feature strong { display: block; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.84rem; }
.stars { color: var(--mat); font-size: 0.92rem; margin-bottom: 12px; }
.testi-text { margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.94rem; flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg, var(--phy), #0ea5e9); }
.av2 { background: linear-gradient(135deg, var(--che), #16a34a); }
.av3 { background: linear-gradient(135deg, var(--cs), #7c3aed); }
.av4 { background: linear-gradient(135deg, var(--cs), #e2850b); }
.author-name { font-weight: 800; font-size: 0.92rem; }
.author-role { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px;
  margin-top: 48px; align-items: start;
}
.contact-card {
  padding: 30px; border-radius: 24px; transition: all 0.4s var(--ease);
}
.contact-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem; margin-bottom: 8px;
}
.contact-card > p {
  color: var(--muted); line-height: 1.75; margin-bottom: 22px; font-size: 0.88rem;
}
.info-list { display: grid; gap: 10px; }
.info-item {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 14px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.info-item:hover { transform: translateX(6px); background: rgba(56, 189, 248, 0.08); }
.info-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(56, 189, 248, 0.08); flex-shrink: 0;
}
.info-label { font-size: 0.72rem; color: var(--muted); }
.info-value { font-size: 0.9rem; font-weight: 600; }
form { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.74rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: #fff; outline: none;
  transition: all 0.35s;
}
input::placeholder, textarea::placeholder { color: rgba(147, 164, 199, 0.6); }
select option { background: #0d1b2e; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--cs); background: rgba(167, 139, 250, 0.08);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 110px 20px 60px; position: relative; overflow: hidden;
}
#auth-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.auth-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.42), rgba(7, 17, 31, 0.88));
}
.auth-box {
  position: relative; z-index: 2; width: min(100%, 480px);
  padding: 40px; border-radius: 28px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-badge {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center; margin: 0 auto 12px;
  font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #0f2040, #1a3560);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.auth-logo h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.32rem; font-weight: 800; margin-bottom: 4px;
}
.auth-logo p { color: var(--muted); font-size: 0.86rem; }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; border-radius: 9px;
  cursor: pointer; background: transparent; color: var(--muted);
  font-weight: 700;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--phy), var(--cs));
  color: #07111f;
}
.auth-msg {
  display: none; padding: 12px 14px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; margin-top: 4px;
}
.auth-msg.show { display: block; }
.auth-msg.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #6ee7b7;
}
.auth-msg.error {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fda4af;
}
.auth-switch {
  text-align: center; margin-top: 12px; color: var(--muted); font-size: 0.86rem;
}
.auth-switch button {
  background: none; border: none; cursor: pointer; color: var(--phy); font-weight: 700;
}
.dashboard-page { min-height: 100vh; padding: 110px 0 60px; }
.dash-header {
  padding: 28px 32px; border-radius: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.dash-header h2 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.65rem; margin-bottom: 6px;
}
.dash-header p { color: var(--muted); }
.dash-icon { font-size: 2rem; margin-bottom: 12px; }
.dash-table-wrap { padding: 28px; border-radius: 24px; overflow-x: auto; }
.dash-table-wrap h3 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.28rem; margin-bottom: 16px;
}
.dash-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.dash-table th, .dash-table td {
  padding: 14px; text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.dash-table th {
  color: #fff; background: rgba(255, 255, 255, 0.04); font-weight: 800;
}
.dash-table td { color: var(--muted); }
.status {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800;
}
.status.green {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac; border: 1px solid rgba(34, 197, 94, 0.26);
}
.status.yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.26);
}
.status.red {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.26);
}
.notes-panel {
  padding: 28px; border-radius: 24px; margin-top: 48px;
}
.notes-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.note-card .note-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.note-card .note-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0 44px; color: var(--muted); position: relative; z-index: 1;
}
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-subjects { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-subject { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; }
.footer-dot { width: 8px; height: 8px; border-radius: 50%; }
.d-phy { background: var(--phy); }
.d-che { background: var(--che); }
.d-mat { background: var(--mat); }
.d-bio { background: var(--bio); }
.d-cs { background: var(--cs); }

.attribution{
  color: white;
  /* background-color: red; */
  width: 300px;
  display: flex;
gap: 10px;
align-items: center;
}

.attribution p{
  font-size: 13px;
}
.attribution .agency{
  color: blue;
}

.hash-logo{
  width: 88px;
  
  margin-top: -1px;
}

@media (max-width: 1100px) {
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 14px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats, .subject-grid, .program-grid, .testi-grid, .dash-grid, .notes-grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 600px) {
  .nav { min-height: 72px; }
  .hero h1 { font-size: 2.7rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .ach-grid { grid-template-columns: 1fr; }
  .auth-box, .contact-card, .hero-card, .about-panel, .dash-header, .dash-table-wrap, .notes-panel { padding: 22px; }
  .dash-table th, .dash-table td { padding: 12px 10px; font-size: 0.82rem; }
}


.logo-badge {
  background: #fff !important;
  padding: 3px;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}
.auth-logo-badge {
  background: #fff !important;
  padding: 5px;
}
.auth-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.loader-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}



/* Final logo and responsive refinements */
.logo-badge {
  width: 42px !important;
  height: 42px !important;
  padding: 5px !important;
  background: #fff !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50% !important;
}
.auth-logo-badge {
  width: 78px !important;
  height: 78px !important;
  padding: 7px !important;
  background: #fff !important;
  border-radius: 50% !important;
}
.auth-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50% !important;
}
.loader-logo {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain;
  border-radius: 50% !important;
  background: #fff;
  padding: 7px !important;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}
.nav {
  padding-block: 8px;
}
.logo {
  min-width: 0;
}
.logo-name {
  white-space: nowrap;
}
.hero h1 {
  max-width: 980px;
}
.hero-content {
  padding-block: 30px;
}
.contact-card,
.hero-card,
.about-panel,
.dash-header,
.dash-table-wrap,
.notes-panel {
  padding: clamp(22px, 3vw, 34px) !important;
}
.static-note-card ul {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 18px;
  margin-top: 10px;
}
.static-note-card li {
  margin-bottom: 8px;
}
@media (max-width: 1100px) {
  .nav-links {
    gap: 12px !important;
  }
  .nav-links a,
  .nav-links button {
    font-size: 0.82rem !important;
  }
}
@media (max-width: 900px) {
  .logo-name {
    font-size: 0.9rem !important;
  }
  .logo-location {
    font-size: 0.68rem !important;
  }
  .logo-badge {
    width: 40px !important;
    height: 40px !important;
  }
  .hero {
    padding-top: 100px !important;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 4rem) !important;
  }
}
@media (max-width: 480px) {
  .container {
    width: min(94%, var(--max)) !important;
  }
  .logo-badge {
    width: 38px !important;
    height: 38px !important;
    padding: 4px !important;
  }
  .logo-name {
    font-size: 0.82rem !important;
  }
  .logo-location {
    font-size: 0.62rem !important;
  }
  .hero h1 {
    font-size: 2.35rem !important;
    line-height: 1.02 !important;
  }
  .section-title {
    font-size: 2rem !important;
  }
}



/* ===== Programs page responsive fixes ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
canvas,
svg,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(94%, var(--max));
}

/* Header / nav */
header {
  isolation: isolate;
}

.nav {
  min-height: 76px;
  padding: 8px 0;
}

.logo {
  min-width: 0;
}

.logo-badge {
  width: 42px !important;
  height: 42px !important;
  padding: 5px !important;
  border-radius: 50% !important;
  flex: 0 0 auto;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50% !important;
}

.logo-name {
  white-space: nowrap;
  font-size: clamp(0.82rem, 1.6vw, 0.98rem);
}

.logo-location {
  font-size: clamp(0.62rem, 1.3vw, 0.72rem);
}

.nav-links {
  gap: clamp(10px, 1.4vw, 20px);
}

.nav-links a,
.nav-links button {
  font-size: clamp(0.74rem, 1.1vw, 0.9rem);
}

.nav-cta {
  padding: 9px 14px !important;
}

/* Hero */
.hero {
  min-height: auto;
  padding-top: 112px;
  padding-bottom: 70px;
}

.hero-content {
  padding-block: 20px;
}

.hero-grid {
  width: 100%;
  padding: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(22px, 4vw, 46px);
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 5.7vw, 5rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 720px;
}

.hero-card {
  width: 100%;
  min-width: 0;
}

.hero-list li {
  align-items: flex-start;
}

/* Cards / sections */
.section {
  padding: clamp(68px, 8vw, 104px) 0;
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 20px);
}

.program-card,
.contact-card,
.hero-card {
  min-width: 0;
  overflow-wrap: break-word;
}

.program-card {
  display: flex;
  flex-direction: column;
}

.program-badge {
  width: fit-content;
  margin-top: auto;
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.info-item {
  min-width: 0;
}

.info-value {
  overflow-wrap: anywhere;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Form */
input,
select,
textarea {
  min-width: 0;
}

textarea {
  width: 100%;
}

/* Footer */
.footer-wrap {
  align-items: center;
}

.footer-subjects {
  justify-content: center;
}

.attribution {
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.hash-logo {
  width: clamp(64px, 9vw, 88px);
  height: auto;
  object-fit: contain;
}
.mobile-menu{
  background-color:#06101d;
}
/* Tablet */
@media (max-width: 1100px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    justify-content: center;
    text-align: center;
  }

  .attribution {
    justify-content: center;
  }
}

/* Mobile nav breakpoint */
@media (max-width: 980px) {
  .nav-links {
    display: none !important;
  }

  .menu-btn {
    display: block !important;
  }

  .mobile-menu {
    position: fixed;
    top: 74px;
    left: 4%;
    right: 4%;
    z-index: 1001;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .hero {
    padding-top: 104px !important;
    padding-bottom: 58px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.8rem) !important;
    line-height: 1.04 !important;
  }

  .hero-actions {
    align-items: stretch;
  }

  .program-grid,
  .contact-grid,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .program-card {
    padding: 22px !important;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 18px;
  }

  .footer-subjects {
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 600px) {
  .container {
    width: min(94%, var(--max)) !important;
  }

  .nav {
    min-height: 70px !important;
  }

  .logo-badge {
    width: 38px !important;
    height: 38px !important;
    padding: 4px !important;
  }

  .logo-name {
    font-size: 0.82rem !important;
  }

  .logo-location {
    font-size: 0.62rem !important;
  }

  .mobile-menu {
    top: 68px;
  }

  .hero {
    padding-top: 96px !important;
  }

  .hero h1 {
    font-size: 2.25rem !important;
  }

  .hero-card,
  .contact-card,
  .program-card {
    padding: 20px !important;
    border-radius: 20px;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem !important;
  }
  .hero-grid{
    flex-direction: column;
  }
  .section-subtitle,
  .hero p {
    font-size: 0.95rem;
    line-height: 1.75;
  }
  .urdu-tagline{
    font-size: 2.7rem;
  }

  .footer-subjects {
    justify-content: center;
  }

  .attribution {
    flex-direction: column;
    gap: 6px;
  }

  .hash-logo {
    width: 72px;
  }
}

/* Very small devices */
@media (max-width: 380px) {
  .logo-name {
    font-size: 0.76rem !important;
  }

  .logo-location {
    display: none;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 8px 12px;
  }
}
@keyframes heroSlider {
  0% {
    background-image: url("hero.png");
  }

  50% {
    background-image: url("hero1.png");
  }

  100% {
    background-image: url("hero2.png");
  }
}
