/* =========================================================
   MLSC SVCE — DARK DESIGN SYSTEM
   Inspired by reference images: pure black, purple accent,
   bold Bebas Neue headings, yellow secondary CTA
   ========================================================= */

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

/* ─── Design Tokens ────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:      #000000;
  --bg-surface:   #0A0A0A;
  --bg-card:      #111111;
  --bg-card2:     #161616;
  --bg-elevated:  #1A1A1A;
  --bg-input:     #0D0D0D;

  /* Brand Colors */
  --purple:       #52cfed;
  --purple-light: #8be1f4;
  --purple-dark:  #20a6c9;
  --purple-glow:  rgba(82,207,237,0.25);
  --yellow:       #F5C518;
  --yellow-dark:  #D4AC00;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted:     #555555;
  --text-purple:    #9B6DD4;

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(123,47,190,0.4);
  --border-active:  rgba(123,47,190,0.8);

  /* Typography */
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Cascadia Code', 'Consolas', monospace;

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease:        250ms cubic-bezier(0.4,0,0.2,1);
  --ease-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);
  --ease-slow:   500ms cubic-bezier(0.4,0,0.2,1);

  /* Navbar */
  --navbar-h: 120px;

  /* Shadows */
  --shadow-purple: 0 8px 40px rgba(82,207,237,0.3);
  --shadow-card:   0 2px 20px rgba(0,0,0,0.5);
  
  /* Navbar */
  --bg-scrolled:   rgba(0,0,0,0.90);
}

body.light-theme {
  /* Backgrounds */
  --bg-base:      #F8F9FA;
  --bg-surface:   #FFFFFF;
  --bg-card:      #FFFFFF;
  --bg-card2:     #F1F3F5;
  --bg-elevated:  #FFFFFF;
  --bg-input:     #F1F3F5;

  /* Brand Colors - Keeping purple and yellow accents */
  /* For better contrast on light backgrounds, maybe adjust purple-glow */
  --purple-glow:  rgba(82,207,237,0.4);

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --text-purple:    #6B21A8;

  /* Borders */
  --border:         rgba(0,0,0,0.1);
  --border-hover:   rgba(82,207,237,0.4);
  --border-active:  rgba(82,207,237,0.8);

  /* Shadows */
  --shadow-card:    0 4px 20px rgba(0,0,0,0.05);

  /* Navbar */
  --bg-scrolled:    rgba(255,255,255,0.90);
}
/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.0; letter-spacing: 0.02em; text-transform: uppercase; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }

h1 { font-size: clamp(3.5rem, 9vw, 8rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.8rem, 4vw, 3rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { color: var(--text-secondary); line-height: 1.7; }

/* Italic + purple accent within headings */
.accent-word { color: var(--purple-light); font-style: italic; }
.accent-yellow { color: var(--yellow); }

/* ─── Layout ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: 800px; }
.section { padding: var(--space-24) 0; }
.section--sm { padding: var(--space-16) 0; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--ease-slow), border-color var(--ease-slow);
}

.navbar.scrolled {
  background: var(--bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.35rem; /* Increased size */
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
}

.navbar__logo-text .org { color: var(--text-primary); }
.navbar__logo-text .campus { color: var(--purple-light); }

/* Main Nav */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.navbar__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
  position: relative;
}

.navbar__link:hover, .navbar__link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0E0E0E;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 300;
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--ease), background var(--ease);
}

.navbar__dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

.navbar__bell, .theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
  width: 40px; height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.notifications-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  text-align: left;
}

.notifications-dropdown.active {
  display: flex;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
}

.notification-item:hover {
  background: var(--bg-hover);
}

.notification-item__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.notification-item__content h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.notification-item__content p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.navbar__bell:hover, .theme-toggle-btn:hover {
  color: var(--text-primary);
}

.navbar__signin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--ease);
}
.navbar__signin:hover { color: var(--text-primary); }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: transparent;
  border: none;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: transform var(--ease), opacity var(--ease);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--ease-slow);
  padding: var(--space-8);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.mobile-menu__link:hover { color: var(--text-primary); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary — white pill with arrow (like "CONTRIBUTE NOW ↗") */
.btn--primary {
  background: #FFFFFF;
  color: #000000;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-8);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn--primary:hover {
  background: #E0E0E0;
  transform: translateY(-1px);
}

/* Secondary — yellow pill (like "VIEW 🐛") */
.btn--yellow {
  background: var(--yellow);
  color: #000000;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-8);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn--yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

/* Purple filled */
.btn--purple {
  background: var(--purple);
  color: #000; /* Dark text for contrast against light blue */
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-8);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(82,207,237,0.35);
}
.btn--purple:hover {
  background: var(--purple-light);
  box-shadow: 0 6px 30px rgba(82,207,237,0.5);
  transform: translateY(-1px);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-8);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* Discord */
.btn--discord {
  background: #5865F2;
  color: white;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-8);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(88,101,242,0.35);
}
.btn--discord:hover { background: #4752C4; transform: translateY(-1px); }

/* "APPLY NOW" — dark pill with border */
.btn--apply {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--ease);
}
.btn--apply:hover {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
}

/* Sizes */
.btn--sm { padding: var(--space-2) var(--space-4); font-size: 0.78rem; }
.btn--lg { padding: var(--space-4) var(--space-12); font-size: 1rem; }

/* Arrow badge */
.btn-arrow {
  width: 26px; height: 26px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: rgba(123,47,190,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--purple { background: rgba(123,47,190,0.15); color: #9B6DD4; border: 1px solid rgba(123,47,190,0.3); }
.badge--yellow { background: rgba(245,197,24,0.12); color: var(--yellow); border: 1px solid rgba(245,197,24,0.3); }
.badge--white  { background: rgba(255,255,255,0.08); color: #CCC; border: 1px solid rgba(255,255,255,0.12); }
.badge--green  { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.badge--red    { background: rgba(239,68,68,0.12); color: #F87171; border: 1px solid rgba(239,68,68,0.25); }

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-header { margin-bottom: var(--space-12); }
.section-header--center { text-align: center; }
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-6);
}
.section-header__title {
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.section-header__sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}
.section-header--center .section-header__sub { margin: 0 auto; }

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--navbar-h) + var(--space-20));
  padding-bottom: var(--space-20);
  border-bottom: 1px solid var(--border);
}

/* ─── FORM ELEMENTS ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,190,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option { background: var(--bg-card); }
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.form-error { font-size: 0.78rem; color: #F87171; display: none; }
.form-error.visible { display: block; }

/* ─── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── TAG (filter pills) ─────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.tag:hover, .tag.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(123,47,190,0.3);
}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--purple);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--ease);
  z-index: 100;
  box-shadow: var(--shadow-purple);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--purple-light); transform: translateY(-2px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 0;
  position: relative;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.footer__link:hover { color: var(--text-primary); }

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.footer__brand-name .purple { color: var(--purple-light); }
.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}
.footer__social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--ease);
}
.footer__social:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(123,47,190,0.1);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Giant watermark text */
.footer__watermark {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 14rem);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.03);
  text-align: center;
  line-height: 1;
  padding: var(--space-8) 0;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ─── CURSOR CHAT BUBBLE (bottom-right) ─────────────────── */
.chat-btn {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  box-shadow: var(--shadow-purple);
  transition: all var(--ease);
}
.chat-btn:hover { transform: scale(1.1); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__nav, .navbar__actions .navbar__bell,
  .navbar__signin, .theme-toggle-btn, .navbar__actions .btn--apply { display: none; }
  .navbar__hamburger { display: flex; }
  .container { padding: 0 var(--space-4); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }

  /* Navbar actions — keep apply button small on mobile */
  .navbar__actions { gap: var(--space-2); }
  .navbar__actions .btn--apply {
    padding: var(--space-2) var(--space-4);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  /* Logo sizing */
  .navbar__logo-img { height: 40px !important; width: 40px !important; }
  .navbar__logo-text { font-size: 1.1rem; }

  /* Section spacing */
  .section { padding: var(--space-16) 0; }
  .section-header__title { font-size: clamp(1.8rem, 5vw, 3rem); }

  /* Newsletter form stacking */
  .newsletter-form {
    flex-direction: column !important;
    gap: var(--space-3) !important;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100% !important;
    text-align: center;
  }

  /* Footer watermark */
  .footer__watermark { font-size: clamp(3rem, 10vw, 5rem); }

  /* Notifications dropdown — position fixed on mobile for better UX */
  .notifications-dropdown {
    position: fixed;
    top: 70px;
    left: var(--space-4);
    right: var(--space-4);
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
  }

  /* Buttons — prevent overflow */
  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: 0.85rem;
  }

  /* Mobile menu refinement */
  .mobile-menu {
    padding-top: calc(var(--navbar-h) + var(--space-4));
  }
  .mobile-menu__link { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .navbar__actions { gap: var(--space-2); }

  /* Further reduce logo on very small screens */
  .navbar__logo-img { height: 34px !important; width: 34px !important; }
  .navbar__logo-text { font-size: 0.95rem; }

  /* Keep text readable */
  .container { padding: 0 var(--space-3); }
  body { font-size: 0.92rem; }

  /* Chat bubble & scroll-top — avoid overlap */
  .chat-btn { width: 38px; height: 38px; font-size: 0.95rem; bottom: var(--space-4); left: var(--space-4); }
  .scroll-top { bottom: var(--space-4); right: var(--space-4); }

  /* Footer socials wrap */
  .footer__socials { flex-wrap: wrap; }
}
