:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #1e6fd9;
  --accent-strong: #1554a4;
  --border: rgba(15,23,36,0.08);
  --radius: 12px;
  --pill: 999px;
  --shadow-soft: 0 8px 24px rgba(16,24,40,0.06);
  --shadow-strong: 0 18px 40px rgba(16,24,40,0.08);
  --focus: rgba(30,111,217,0.18);
}

html { color-scheme: light; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.logo-box {
  background: #d7e9ff;
  color: var(--accent-strong);
  padding: .25rem .55rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(30,111,217,0.18);
}

.navbar {
  display: flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-link:hover {
  background: rgba(30,111,217,0.06);
  color: var(--text);
  transform: translateY(-2px);
}

/* Active link */
.nav-link.active {
  background: rgba(30,111,217,0.12);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(30,111,217,0.18);
}

/* HERO SECTION (Home + About) */
.hero-section {
  background: linear-gradient(180deg, #f0f6ff, #ffffff);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(15,23,36,0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 .75rem;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 52ch;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-buttons {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.hero-visual .visual-card {
  width: 360px;
  height: 220px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About hero tweak */
.about-hero .hero-title {
  margin-bottom: .5rem;
}

/* Buttons */
.btn {
  padding: .65rem 1.1rem;
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(30,111,217,0.06);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.6);
  animation: ripple 600ms ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

/* Sections */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* OBJECTIVE SECTIONS (expanded) */
.objective-section {
  padding: 3.75rem 0;
}

.objective-section-alt {
  background: #f0f6ff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}

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

/* Stronger outline and larger presence for objectives */
.objective-inner {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(15,23,36,0.16);
  padding: 2.25rem 2.5rem;
}

.objective-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.objective-layout-reverse {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
}

.objective-text {
  max-width: 320px;
}

.objective-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  color: var(--accent-strong);
  margin: 0 0 .4rem;
}

.objective-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.objective-description p {
  margin: 0;
}

/* ABOUT BODY */
.about-body {
  padding: 2.75rem 0 3rem;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
}

.about-card p {
  margin-bottom: 1rem;
}

.about-signoff {
  margin-top: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: .65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .95rem;
}

input:focus, textarea:focus {
  outline: 3px solid var(--focus);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
/* QUIZ POPUP FEATURE */
#quiz-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(14px); /* stronger blur */
  background: rgba(0,0,0,0.22); /* slightly darker tint */
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#quiz-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.quiz-modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}

.quiz-modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.quiz-modal-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30,111,217,0.35); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(30,111,217,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30,111,217,0); }
}

.quiz-modal-content .btn-primary {
  animation: pulse 2.2s infinite ease-out;
}

/* When active */
.quiz-active #quiz-overlay,
.quiz-active #quiz-modal {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .objective-inner {
    padding: 2rem 1.5rem;
  }

  .objective-layout,
  .objective-layout-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .objective-text {
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 3rem 0 2.25rem;
  }

  .objective-section {
    padding: 3rem 0;
  }
}
/* CLEAN PROFESSIONAL SEGMENTED TOGGLE */
.model-toggle {
  max-width: 420px;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
}

.toggle-group {
  display: flex;
  border: 1px solid rgba(15,23,36,0.12);
  border-radius: var(--radius);
  background: #f8faff;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: .75rem 1rem;
  background: transparent;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: background .25s ease, color .25s ease;
}

.toggle-btn:hover {
  background: rgba(30,111,217,0.06);
}

.toggle-btn.active {
  background: white;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(30,111,217,0.25);
}

/* RESIZABLE EMBED WINDOW */
.model-embed {
  margin-top: 1.5rem;
  padding: 0;
  overflow: hidden;
  resize: vertical;
  min-height: 320px;
  max-height: 900px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.model-embed iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  pointer-events: auto;
}

/* FADE TRANSITION FOR MODEL SWITCHING */
.model-embed iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  opacity: 1;
  transition: opacity .45s ease;
}

.model-embed.fade iframe {
  opacity: 0;
}
