﻿/* MAA VIDYADAYINI ADHAYAN KENDRA
   Modern mobile-first design system */
:root {
  --primary: #ff6a00;
  --primary-dark: #d45400;
  --secondary: #0f2a44;
  --secondary-soft: #173a5c;
  --accent: #16e6d4;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #182436;
  --muted: #617086;
  --border: rgba(15, 42, 68, 0.1);
  --shadow: 0 22px 55px rgba(15, 42, 68, 0.12);
  --shadow-soft: 0 14px 32px rgba(15, 42, 68, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.15), transparent 22%),
    linear-gradient(180deg, #fffef9 0%, #f3f6fb 100%);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
summary {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 42, 68, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #ff9642);
  box-shadow: var(--shadow-soft);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--secondary);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu .is-active {
  background: var(--surface-alt);
}

.nav-menu .nav-cta {
  color: #fff;
  background: var(--secondary);
}

.hero {
  position: relative;
  padding: 4rem 0 2.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(22, 230, 212, 0.15), transparent 45%);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 106, 0, 0.24), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 215, 0, 0.22), transparent 18%),
    linear-gradient(135deg, rgba(15, 42, 68, 0.98), rgba(15, 42, 68, 0.86) 45%, rgba(255, 106, 0, 0.88) 100%);
  clip-path: ellipse(125% 100% at 50% 0%);
}

.hero-grid,
.two-col,
.contact-grid,
.split-layout,
.portal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1,
.section-head h2,
.page-hero h1,
.portal-intro h1,
.dashboard-header h1 {
  margin: 0;
  font-family: "Cinzel", serif;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 9vw, 4.9rem);
  line-height: 1.08;
}

.hero-tagline {
  margin: 1rem 0 0.65rem;
  color: #ffe4c6;
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-text {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.button-row,
.cta-row,
.contact-actions,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.92rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff8e2e);
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.26);
}

.btn-secondary {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 14px 30px rgba(15, 42, 68, 0.2);
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-whatsapp {
  color: #fff;
  background: #18b663;
  box-shadow: 0 14px 30px rgba(24, 182, 99, 0.24);
}

.hero-metrics,
.feature-grid,
.batch-grid,
.gallery-grid,
.dashboard-grid,
.quick-links,
.method-grid,
.stats-grid,
.testimonial-grid,
.admission-grid,
.resource-grid,
.compact-grid {
  display: grid;
  gap: 1rem;
}
.hero-metrics{
margin-top: 40px;
max-width: 650px;
}
.glass-card,
.card,
.feature-card,
.batch-card,
.gallery-card,
.contact-card,
.map-card,
.form-card,
.portal-card,
.dashboard-card,
.timeline-step,
.notice-bar,
.quick-link,
.stat-card,
.testimonial-card,
.process-card,
.resource-card,
.demo-cta,
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.glass-card {
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 
    0 24px 50px rgba(5, 18, 36, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.glass-card h2,
.notice-bar h2,
.section-head h2,
.portal-intro h1,
.page-hero h1,
.contact-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.glass-card p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.glass-badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  background: rgba(255, 215, 0, 0.18);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.chip-row span {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.metric {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--secondary);
}

.metric span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice-wrap {
  margin-top: -1rem;
}

.notice-bar {
  display: grid;
  gap: 1.2rem;
  padding: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.96), rgba(15, 42, 68, 0.96));
}

.section,
.page-section {
  padding: 4.5rem 0;
}

.section-alt {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 243, 248, 0.76));
}

.section-head h2,
.page-hero h1,
.contact-card h2,
.portal-intro h1,
.dashboard-header h1,
.feature-card h3,
.batch-card h3,
.dashboard-card h2,
.quick-link h3 {
  color: var(--secondary);
}

.section-copy,
.card p,
.feature-card p,
.batch-card p,
.contact-list li,
.form-card p,
.portal-intro p,
.dashboard-card p,
.quick-link p {
  color: var(--muted);
  line-height: 1.75;
}

.card,
.feature-card,
.batch-card,
.contact-card,
.form-card,
.portal-card,
.dashboard-card,
.quick-link,
.stat-card,
.testimonial-card,
.process-card,
.resource-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.94);
}

.founder-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f6f8fc);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.portrait {
  display: grid;
  place-items: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 24px 42px rgba(255, 106, 0, 0.22);
}

.portrait span {
  display: grid;
  place-items: center;
  width: calc(100% - 26px);
  height: calc(100% - 26px);
  border-radius: 50%;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(145deg, var(--secondary), var(--secondary-soft));
}

.clean-list,
.contact-list,
.announcement-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.clean-list li,
.contact-list li,
.announcement-list li {
  margin-bottom: 0.75rem;
}

.card,
.feature-card,
.batch-card,
.gallery-card,
.contact-card,
.form-card,
.portal-card,
.dashboard-card,
.quick-link,
.stat-card,
.testimonial-card,
.process-card,
.resource-card {
  border: 1px solid rgba(15, 42, 68, 0.07);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.card:hover,
.feature-card:hover,
.batch-card:hover,
.gallery-card:hover,
.contact-card:hover,
.form-card:hover,
.portal-card:hover,
.dashboard-card:hover,
.quick-link:hover,
.testimonial-card:hover,
.process-card:hover,
.resource-card:hover,
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.22);
  box-shadow: 0 20px 40px rgba(15, 42, 68, 0.08);
}

.timeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.timeline-step,
.timeline-arrow {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 20px;
}

.timeline-step {
  padding: 1rem;
  font-weight: 800;
  color: var(--secondary);
  background: var(--surface);
}

.timeline-arrow {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
}

.method-grid {
  margin-top: 2rem;
}

.batch-card strong {
  color: var(--primary);
}

.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
}

.stat-card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.75;
}

.gallery-card {
  overflow: hidden;
  min-height: 250px;
  background: var(--surface);
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 560ms ease;
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.testimonial-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.testimonial-card strong {
  color: var(--secondary);
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #ff9a3d);
}

.process-card h3,
.resource-card h3 {
  margin-top: 0;
  color: var(--secondary);
}

.process-card p,
.resource-card p {
  color: var(--muted);
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(255, 106, 0, 0.3);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 1);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  animation: slideDown 300ms ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1.0; transform: scale(1.05); }
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.page-hero {
  position: relative;
  padding: 4rem 0 2rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left top, rgba(255, 106, 0, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(15, 42, 68, 0.98), rgba(23, 58, 92, 0.94));
  clip-path: ellipse(120% 100% at 50% 0%);
}

.page-hero .container,
.portal-page .container,
.dashboard-page .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 8vw, 4rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.map-card {
  overflow: hidden;
  background: var(--surface);
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  font-weight: 700;
  color: var(--secondary);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 42, 68, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.42);
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.identity-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 42, 68, 0.62);
  backdrop-filter: blur(8px);
}

.identity-invite-card {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 420px);
  padding: 1.5rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.identity-invite-card h2,
.identity-invite-card p {
  margin: 0;
}

.identity-invite-card h2 {
  color: var(--secondary);
}

.identity-invite-card p {
  color: var(--muted);
  line-height: 1.6;
}

.identity-invite-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--secondary);
  background: var(--surface-alt);
  cursor: pointer;
}

.portal-page,
.dashboard-page {
  min-height: 100vh;
  padding: 1.4rem 0;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.2), transparent 24%),
    linear-gradient(180deg, #f7f9fd 0%, #edf2f7 100%);
  overflow-x: hidden;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.portal-card {
  display: grid;
  gap: 1.5rem;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.dashboard-shell {
  padding: 1.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.demo-box {
  display: inline-grid;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--surface-alt);
  color: var(--secondary);
  font-weight: 700;
}

.dashboard-card > div[style*="display: flex"] {
  flex-wrap: wrap;
}

.announcement-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(15, 42, 68, 0.08);
}

.announcement-list li:last-child {
  border-bottom: 0;
}

.quick-link {
  display: block;
}

.quick-link h3,
.quick-link p {
  margin: 0;
}

.quick-link p {
  margin-top: 0.45rem;
}

.demo-cta {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(15, 42, 68, 1), rgba(255, 106, 0, 0.95));
}

.demo-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.demo-cta p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.7rem;
}

.floating-actions a {
  min-width: 108px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.floating-actions a:nth-of-type(1) {
  background: var(--secondary);
}

.floating-actions a:nth-of-type(2) {
  background: #18b663;
}

.floating-actions a:nth-of-type(3) {
  background: linear-gradient(135deg, var(--primary), #ff8e2e);
}

.close-float {
  display: none;
}

.site-footer {
  padding: 1.5rem 0 calc(5rem + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.82);
  background: var(--secondary);
}

.footer-grid {
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.footer-credit {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developer-signature {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 100%;
  padding: 0.16rem 0.2rem 0.42rem;
  color: #fff4cf;
  font-family: "Cinzel", "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(1.18rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.18;
  text-transform: none;
  text-shadow:
    0 8px 22px rgba(255, 106, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14);
}

.developer-signature span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
}

.developer-signature::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.08rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffb15f, #fff8dc, transparent);
  transform: translateX(-50%);
}

.developer-signature.is-ready span {
  max-width: 0;
}

.developer-signature.is-writing span {
  animation:
    signatureWrite 1.75s steps(15, end) forwards,
    signatureCaret 760ms step-end 3;
}

.developer-signature.is-writing::after {
  animation: signatureUnderline 1.25s ease 1.05s forwards;
}

@keyframes signatureWrite {
  from {
    max-width: 0;
  }

  to {
    max-width: 22ch;
  }
}

@keyframes signatureCaret {
  0%,
  100% {
    border-right-color: transparent;
  }

  50% {
    border-right-color: rgba(255, 247, 215, 0.92);
  }
}

@keyframes signatureUnderline {
  from {
    width: 0;
  }

  to {
    width: min(100%, 12.5rem);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .hero-metrics,
  .feature-grid,
  .batch-grid,
  .gallery-grid,
  .dashboard-grid,
  .quick-links,
  .method-grid,
  .stats-grid,
  .testimonial-grid,
  .admission-grid,
  .resource-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .contact-grid,
  .split-layout,
  .portal-shell,
  .form-row,
  .founder-card,
  .portal-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: center;
  }

  .timeline-arrow {
    min-height: auto;
  }
}

@media (min-width: 980px) {
  .topbar {
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .notice-bar,
  .dashboard-header,
  .demo-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

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

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

  .testimonial-grid,
  .resource-grid,
  .method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .timeline-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 479px) {
  .topbar {
    padding: 0.8rem 0.85rem;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero,
  .page-hero {
    padding-top: 3.4rem;
  }

  .section,
  .page-section {
    padding: 3rem 0;
  }

  .glass-card h2,
  .notice-bar h2,
  .section-head h2,
  .portal-intro h1,
  .page-hero h1,
  .contact-card h2 {
    font-size: clamp(1.25rem, 6vw, 1.8rem);
  }

  .hero h1 {
    font-size: clamp(1.35rem, 7vw, 2.5rem);
    word-break: break-word; /* Prevent long words from causing overflow */
  }

  .button-row,
  .cta-row,
  .contact-actions,
  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-shell,
  .portal-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .dashboard-card > div[style*="display: flex"] {
    flex-direction: column;
  }

  .dashboard-card > div[style*="display: flex"] .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .floating-actions {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.2);
    backdrop-filter: blur(10px);
  }

  .floating-actions a {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.2rem;
    font-size: 0.8rem;
    box-shadow: none;
  }

  .close-float {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(15, 42, 68, 0.08);
    color: var(--secondary);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
  }
}

@media (max-width: 719px) {
  .topbar,
  .glass-card,
  .floating-actions,
  .identity-invite-modal {
    backdrop-filter: none;
  }

  .feature-card:hover,
  .batch-card:hover,
  .gallery-card:hover,
  .dashboard-card:hover,
  .quick-link:hover,
  .testimonial-card:hover,
  .process-card:hover,
  .resource-card:hover,
  .stat-card:hover,
  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.metric{
background:#ffffff;

padding:18px 22px;

border-radius:16px;

box-shadow:0 10px 25px rgba(0,0,0,0.15);

transition:0.3s;
}

.metric:hover{
transform:translateY(-5px);
box-shadow:0 20px 35px rgba(0,0,0,0.25);
}
.metric strong{
display:block;
font-size:18px;
color:#0f2c44;
margin-bottom:4px;
}

.metric span{
font-size:14px;
color:#666;
}
.logo{
height:40px;
width:auto;
}
.founder-photo img{
width:220px;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}
.portrait img{
  width:180px;
  height:180px;
  border-radius:50%;
  object-fit:cover;
}

/* Accessibility */
:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}

/* Topbar scrolled state */
.topbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 42, 68, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

/* Scroll to top button */
#scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  cursor: pointer;
}

#scroll-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover,
#scroll-to-top:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-3px);
}
