/* ==============================================
   OPINTELLECT — Light Theme Design System
   Brand Colors: Navy #003e5b | Amber #edae49
   Aesthetic: Low-poly geometric, premium, warm
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --navy: #003e5b;
  --navy-light: #0a6d9e;
  --navy-dark: #002a3f;
  --navy-bg: #e6f0f5;
  --amber: #edae49;
  --amber-light: #f5c672;
  --amber-dark: #d49a35;
  --bg-primary: #faf8f5;
  --bg-warm: #f5f0e8;
  --bg-cool: #eef3f7;
  --text-heading: #0d2b3e;
  --text-body: #3a4f5e;
  --text-muted: #6b7f8e;
  --text-on-dark: #f0f4f8;
  --white: #ffffff;
  --shadow-xs: 0 1px 3px rgba(0, 30, 50, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 30, 50, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 30, 50, 0.10);
  --shadow-lg: 0 8px 40px rgba(0, 30, 50, 0.12);
  --shadow-glow: 0 4px 30px rgba(237, 174, 73, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1180px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: 'Inter', sans-serif;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--navy-dark);
  border-color: var(--amber);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 42, 63, 0.3);
  border-radius: 50%;
  border-top-color: var(--navy-dark);
  animation: spin 1s linear infinite;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  /* starts hidden for scroll animation */
  pointer-events: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--navy-bg);
}

.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.88rem;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero-scrub-container {
  height: 200vh;
  /* 100vh of scroll distance, first half animates, second half pauses */
  position: relative;
}

.hero {
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg-primary);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  width: 50%;
  margin-left: 0;
  padding: 0 5%;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber-dark);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  max-width: 100%;
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgb(233, 228, 222);
  /* Match image background */
  display: flex;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(233, 228, 222, 1) 0%, rgba(233, 228, 222, 0) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-base-image {
  width: 50%;
  /* Strictly 50% right side */
  height: 100%;
  margin-left: auto;
  object-fit: contain;
  object-position: right center;
}

.hero-anim-logo {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 40%;
  /* Fits inside the 50% left side */
  max-width: 500px;
  min-width: 100px;
  transform-origin: top left;
  z-index: 10;
  will-change: transform, opacity;
}

/* Geometric decorations for hero */
.hero-geo-1,
.hero-geo-2,
.hero-geo-3 {
  position: absolute;
  border-radius: 4px;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

.hero-geo-1 {
  width: 200px;
  height: 200px;
  background: var(--amber);
  top: 15%;
  right: -60px;
  transform: rotate(25deg);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: float 8s ease-in-out infinite;
}

.hero-geo-2 {
  width: 120px;
  height: 120px;
  background: var(--navy);
  bottom: 20%;
  left: 45%;
  transform: rotate(-15deg);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-geo-3 {
  width: 80px;
  height: 80px;
  background: var(--amber);
  top: 30%;
  left: -20px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: float 6s ease-in-out infinite 2s;
}

/* --- Problem Section --- */
.problem {
  background: var(--bg-cool);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0, 62, 91, 0.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.problem-card:hover::before {
  transform: scaleX(1);
}

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

.problem-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--navy-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.problem-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* --- Services Section --- */
.services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0, 62, 91, 0.06);
  transition: all var(--transition);
  text-align: center;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(237, 174, 73, 0.2);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.service-icon.assess {
  background: linear-gradient(135deg, #e6f0f5, #d0e4ef);
}

.service-icon.train {
  background: linear-gradient(135deg, #fef4e0, #fde8c0);
}

.service-icon.llm {
  background: linear-gradient(135deg, #e0f5ee, #c0ead8);
}

.service-icon.image {
  background: linear-gradient(135deg, #f0e6f5, #e0ccea);
}

.service-icon.auto {
  background: linear-gradient(135deg, #fef0e0, #fde0c0);
}

.service-icon.mentor {
  background: linear-gradient(135deg, #e6eef5, #ccdcef);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

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

/* --- Approach Section (Dark) --- */
.approach {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--text-on-dark);
  position: relative;
}

.approach .section-eyebrow {
  color: var(--amber-light);
}

.approach .section-header h2 {
  color: var(--white);
}

.approach .section-subtitle {
  color: rgba(240, 244, 248, 0.65);
}

.approach-quote {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--amber-light);
  font-style: italic;
  margin-bottom: 64px;
  opacity: 0.9;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.approach-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(237, 174, 73, 0.3), var(--amber));
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: rgba(237, 174, 73, 0.15);
  color: var(--amber);
  border: 2px solid var(--amber);
  transition: all var(--transition);
}

.step:hover .step-number {
  background: var(--amber);
  color: var(--navy-dark);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(237, 174, 73, 0.3);
}

.step h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step p {
  color: rgba(240, 244, 248, 0.6);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* Geometric decoration for approach */
.approach-geo {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.approach-geo-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -80px;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: float 12s ease-in-out infinite;
}

.approach-geo-2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: 5%;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: float 9s ease-in-out infinite reverse;
}

/* --- About Section --- */
.about {
  background: var(--bg-warm);
}

.about-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--amber);
  opacity: 0.4;
  animation: spin 30s linear infinite;
}

.about-text h2 {
  margin-bottom: 8px;
}

.about-text .founder-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber-dark);
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 12px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Topics Section --- */
.topics {
  background: var(--bg-primary);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.topic-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0, 62, 91, 0.06);
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(237, 174, 73, 0.15);
}

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

.topic-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--navy);
}

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

/* --- Contact Section --- */
.contact {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
}

.contact .section-eyebrow {
  color: var(--amber-light);
}

.contact h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact .section-subtitle {
  color: rgba(240, 244, 248, 0.6);
  margin-bottom: 48px;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(237, 174, 73, 0.2);
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(240, 244, 248, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--amber-light);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-geo {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.contact-geo-1 {
  width: 250px;
  height: 250px;
  top: -60px;
  left: -60px;
  background: var(--amber);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: float 10s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(240, 244, 248, 0.4);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  text-align: left;
}

.footer-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer-center {
  text-align: center;
}

.footer-center p {
  margin: 0;
}

.ai-credit {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 4px;
}

.footer-socials {
  text-align: right;
}

.footer-socials a {
  display: inline-block;
  color: rgba(240, 244, 248, 0.4);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--amber-light);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* --- Keyframes --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sparkAnim {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.5) rotate(var(--rot));
  }
}

.binary-spark {
  position: fixed;
  /* Use fixed so it aligns with clientX/clientY perfectly */
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--amber);
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  animation: sparkAnim 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  text-shadow: 0 0 8px rgba(237, 174, 73, 0.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .approach-steps::before {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-text .founder-name {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }
}

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

  .section-header {
    margin-bottom: 48px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-links .btn {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  /* --- Mobile Hero Layout --- */
  .hero-scrub-container {
    height: auto;
    /* No scroll runway on mobile */
  }

  .hero {
    min-height: auto;
    height: auto;
    padding: 100px 0 60px;
    /* Adjusted for vertical stack */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image-wrapper {
    position: relative;
    /* Change from absolute to stack naturally */
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    z-index: 1;
  }

  .hero .container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 24px;
    margin: 0;
    display: block;
    z-index: 2;
  }

  .hero-text {
    opacity: 1;
    transform: none;
    text-align: center;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 100%;
    height: 380px;
    /* Taller for better framing */
  }

  .hero-image-wrapper::after {
    background: linear-gradient(to bottom, rgba(233, 228, 222, 0) 50%, rgba(250, 248, 245, 1) 100%);
  }

  .hero-base-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    margin-left: 0;
  }

  .hero-anim-logo {
    display: none;
    /* Removed on mobile per request */
  }

  .problem-grid,
  .services-grid,
  .topics-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .approach-steps {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .contact-form-container {
    padding: 32px 24px;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo,
  .footer-socials {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 56px 0;
  }

  .about-photo img {
    width: 200px;
    height: 200px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-anim-logo {
    top: 5%;
    width: 45%;
    max-width: 160px;
  }
}