/* ==========================================================================
   KARMA ASSOCIATES - MODERN RECRUITMENT & CAREERS PORTAL
   Color Palette & Typography matching uploaded design reference
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Official Deep Teal & Soft Green Brand Palette */
  --primary: #1F5F5B;
  --primary-hover: #164744;
  --primary-light: #F0F7F6;
  --primary-border: #b8d8d6;
  --primary-glow: rgba(31, 95, 91, 0.25);

  --accent-cyan: #8FBF8F; /* Soft Green */
  --accent-sky: #2E6F95;  /* Sea Blue */
  --accent-violet: #7C5CBF;

  --navy-hero: #091a19;
  --navy-hero-deep: #051211;
  --navy-card: #0e2725;
  --navy-border: rgba(255, 255, 255, 0.12);

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --bg-body: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;

  --badge-fulltime: #F0F7F6;
  --badge-fulltime-text: #1F5F5B;
  --badge-onsite: #f1f5f9;
  --badge-onsite-text: #475569;
  --badge-hybrid: #fef3c7;
  --badge-hybrid-text: #d97706;
  --badge-remote: #f2f8f2;
  --badge-remote-text: #457845;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 34px rgba(31, 95, 91, 0.18);

  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 95, 91, 0.35);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-outline-dark:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-login {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-hero);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 25, 44, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 50px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(31, 95, 91, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--accent-sky);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (DARK NAVY WITH PROFESSIONAL PORTRAIT)
   ========================================================================== */
.hero-section {
  background: radial-gradient(ellipse 90% 70% at 70% 30%, #152c4e 0%, #0b192c 60%, #07101d 100%);
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-title .highlight-blue {
  color: var(--accent-cyan);
  display: inline-block;
}

.hero-desc {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Hero Search Card */
.hero-search-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.search-field i {
  color: #94a3b8;
  font-size: 1.1rem;
}

.search-field input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.search-field input::placeholder {
  color: #94a3b8;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
}

.search-btn {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 8px;
}

/* Popular Searches */
.popular-searches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 42px;
  font-size: 0.88rem;
}

.popular-label {
  color: #94a3b8;
  font-weight: 500;
}

.popular-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.popular-pill:hover,
.popular-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-item p {
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 500;
}

/* Hero Visual (Right Column) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Handwritten Note on Hero */
.handwritten-badge {
  position: absolute;
  top: 10px;
  left: -20px;
  z-index: 4;
  text-align: center;
  transform: rotate(-8deg);
  pointer-events: none;
}

.handwritten-text {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

.handwritten-arrow {
  width: 70px;
  height: 35px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  margin: 0 auto;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  z-index: 5;
  animation: floatUpDown 4s ease-in-out infinite;
}

.floating-badge.badge-top-right {
  top: 60px;
  right: -24px;
  animation-delay: 0s;
}

.floating-badge.badge-bottom-right {
  bottom: 80px;
  right: -16px;
  animation-delay: 2s;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.badge-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SECTION COMMON HEADERS
   ========================================================================== */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  white-space: nowrap;
}

.link-arrow:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}

/* ==========================================================================
   EXPLORE JOB CATEGORIES SECTION
   ========================================================================== */
.categories-section {
  padding: 90px 0 60px;
  background: #ffffff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.category-card:hover .category-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.category-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   FEATURED JOBS SECTION
   ========================================================================== */
.featured-jobs-section {
  padding: 60px 0 90px;
  background: var(--bg-soft);
}

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 28px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.job-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.company-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.company-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-pill {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
}

.job-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.job-company {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.job-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  color: #475569;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: #94a3b8;
  width: 16px;
  font-size: 0.9rem;
}

.meta-item.salary strong {
  color: var(--text-dark);
  font-weight: 700;
}

.job-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.job-tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-fulltime {
  background: var(--badge-fulltime);
  color: var(--badge-fulltime-text);
}

.tag-onsite {
  background: var(--badge-onsite);
  color: var(--badge-onsite-text);
}

.tag-hybrid {
  background: var(--badge-hybrid);
  color: var(--badge-hybrid-text);
}

.tag-remote {
  background: var(--badge-remote);
  color: var(--badge-remote-text);
}

.job-card-btn {
  width: 100%;
}

/* ==========================================================================
   WHY CHOOSE KARMA ASSOCIATES SECTION
   ========================================================================== */
.why-choose-section {
  padding: 90px 0;
  background: #ffffff;
  text-align: center;
}

.why-header {
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-col {
  padding: 10px;
}

.feature-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-col:hover .feature-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   TOP HIRING COMPANIES SECTION
   ========================================================================== */
.top-companies-section {
  padding: 40px 0 90px;
  background: #ffffff;
}

.companies-logos-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  align-items: center;
}

.company-logo-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  transition: var(--transition);
}

.company-logo-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.company-logo-card svg,
.company-logo-card img {
  max-height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   CTA BANNER (READY TO TAKE THE NEXT STEP)
   ========================================================================== */
.cta-section {
  padding: 0 0 90px;
  background: #ffffff;
}

.cta-banner-card {
  background: radial-gradient(ellipse 80% 80% at 70% 30%, #152c4e 0%, #0b192c 100%);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 25, 44, 0.25);
}

.cta-left {
  max-width: 580px;
}

.cta-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-desc {
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.6;
}

.cta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex-shrink: 0;
}

.cta-handwritten-note {
  position: absolute;
  top: -65px;
  right: 10px;
  text-align: right;
  pointer-events: none;
}

.cta-handwritten-text {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  transform: rotate(-6deg);
  white-space: nowrap;
}

.cta-handwritten-arrow {
  width: 50px;
  height: 30px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  margin-left: auto;
  transform: rotate(20deg);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 30px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL WINDOWS (APPLY, POST JOB, LOGIN)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 28px;
  max-height: 80vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-soft);
}

.file-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 100000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .popular-searches {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 30px;
  }
  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 44px 30px;
  }
  .cta-right {
    justify-content: center;
  }
  .cta-handwritten-note {
    right: 50%;
    transform: translateX(50%);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-hero);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-search-card {
    flex-direction: column;
    padding: 12px;
  }
  .search-divider {
    display: none;
  }
  .search-btn {
    width: 100%;
  }
  .floating-badge.badge-top-right {
    right: 0;
    top: 20px;
  }
  .floating-badge.badge-bottom-right {
    right: 0;
    bottom: 20px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
