:root {
  --primary-deep: #0b2216;
  --primary-light: #163f2b;
  --accent-gold: #dfb73c;
  --accent-soft: #fbf9f4;
  --text-main: #1c2b22;
  --text-muted: #53665c;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(11, 34, 22, 0.03);
  --shadow-md: 0 12px 34px rgba(11, 34, 22, 0.06);
  --shadow-lg: 0 24px 60px rgba(11, 34, 22, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
}

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

/* Force browsers (incl. Brave) to not apply device pixel scaling */
:root {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

/* Ensure sections stretch full viewport width */
.hero,
.section,
.site-header,
.site-footer {
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: 'Mukta', sans-serif;
  color: var(--text-main);
  background-color: var(--accent-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Mukta', sans-serif;
  font-weight: 800;
  color: var(--primary-deep);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(11, 34, 22, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrapper {
  background: var(--white);
  padding: 5px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-text h1 {
  font-size: 1.1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.estd-badge {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active { color: var(--primary-deep); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav drawer */
@media (max-width: 768px) {
  .brand-text h1 { font-size: 0.95rem; }
  .estd-badge { font-size: 0.65rem; }
  .logo { height: 36px; }

  .hamburger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(11,34,22,0.06);
    box-shadow: var(--shadow-md);
  }

  .nav.open { display: flex; }

  .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(11,34,22,0.05);
  }

  .nav .btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--primary-deep);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(11, 34, 22, 0.15);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-deep);
  border: 1px solid rgba(11, 34, 22, 0.12);
}
.btn-secondary:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  padding: 72px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-wrapper { margin-bottom: 16px; }

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  font-weight: 700;
  background: rgba(22, 63, 43, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual { position: relative; }

.main-graphic-card {
  height: 440px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-light));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(2deg);
  overflow: hidden;
}

.graphic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.graphic-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: 32px;
  left: -32px;
  background: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: rotate(-2deg);
}

.badge-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.badge-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section { padding: 96px 0; }

.section-head { margin-bottom: 52px; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ─── ABOUT ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.experience-card {
  background: var(--primary-deep);
  color: var(--accent-soft);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.experience-card h3 {
  color: var(--accent-gold);
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.modern-list { list-style: none; }

.modern-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 1rem;
}

.modern-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.body-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.stats-container {
  display: flex;
  gap: 24px;
}

.stat-card {
  background: var(--white);
  padding: 20px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-deep);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── COMMITTEE ───────────────────────────────────────── */
.committee { background: var(--white); }

.committee-fluid-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.profile-card {
  grid-column: span 2;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card.premium {
  grid-column: 2 / span 4;
  display: flex;
  background: var(--primary-deep);
  color: var(--white);
  margin-bottom: 20px;
}

.profile-card.premium .profile-thumb {
  width: 40%;
  height: 100%;
  min-height: 260px;
}

.profile-card.premium h3 {
  color: var(--white);
  font-size: 1.7rem;
}

.profile-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.profile-quote {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.profile-card.premium .profile-quote {
  color: rgba(255, 255, 255, 0.65);
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.profile-card:hover .profile-thumb img {
  transform: scale(1.05);
}

/* ─── ACTIVITIES ──────────────────────────────────────── */
.activities-modern-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.act-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 34, 22, 0.03);
  transition: all 0.3s ease;
}

.act-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: var(--accent-soft);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.act-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.act-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.act-card:hover {
  background: var(--primary-deep);
  color: var(--white);
  transform: translateY(-4px);
}
.act-card:hover h3 { color: var(--white); }
.act-card:hover p { color: rgba(255,255,255,0.72); }
.act-card:hover .act-icon { background: rgba(255,255,255,0.1); }

/* ─── GALLERY ─────────────────────────────────────────── */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 200px;
  gap: 16px;
}

.g-item {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.g-item:hover img { transform: scale(1.06); }

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,34,22,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g-item:hover .g-overlay { opacity: 1; }

.g-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  background: var(--white);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-meta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.contact-details { margin-top: 40px; }

.c-info-block {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.c-icon {
  font-size: 1.3rem;
  background: var(--accent-soft);
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.c-info-block h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Floating Label Form */
.modern-form .form-group {
  position: relative;
  margin-bottom: 28px;
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 34, 22, 0.1);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.modern-form label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  pointer-events: none;
  background: transparent;
}

.modern-form input:focus ~ label,
.modern-form input:not(:placeholder-shown) ~ label,
.modern-form textarea:focus ~ label,
.modern-form textarea:not(:placeholder-shown) ~ label {
  top: -22px;
  left: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
}

.modern-form input:focus,
.modern-form textarea:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-block { width: 100%; }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links span {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero { padding: 48px 0 72px; }

  .main-graphic-card {
    height: 320px;
    transform: rotate(1deg);
  }

  .floating-badge {
    left: 16px;
    bottom: 20px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 28px;
  }

  .profile-card.premium {
    grid-column: span 6;
    flex-direction: column;
  }
  .profile-card.premium .profile-thumb {
    width: 100%;
    min-height: 200px;
  }

  .committee-fluid-grid { gap: 20px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .profile-card { grid-column: span 3; }
  .committee-fluid-grid { grid-template-columns: repeat(3, 1fr); }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .g-item.wide { grid-column: span 1; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  .stats-container { gap: 16px; }
}

@media (max-width: 576px) {
  .section { padding: 48px 0; }

  .profile-card { grid-column: span 6; }
  .committee-fluid-grid { grid-template-columns: 1fr; }
  .stats-container { flex-direction: column; }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .g-item.tall { grid-row: span 1; }
  .g-item.wide { grid-column: span 1; }

  .experience-card { padding: 28px 24px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}