:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #0f1f3d;
  --muted: #54637d;
  --border: #dce4ef;
  --primary: #1f4ed8;
  --primary-strong: #1e40af;
  --secondary: #0ea5a4;
  --gradient: linear-gradient(135deg, #2e3a59 0%, #3f4c6b 100%);
  --shadow-soft: 0 10px 24px rgba(15, 31, 61, 0.08);
  --shadow-strong: 0 18px 34px rgba(15, 31, 61, 0.14);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #aab8cf;
  --border: #223147;
  --primary: #4f7dff;
  --primary-strong: #3f68e6;
  --secondary: #2dd4bf;
  --gradient: linear-gradient(135deg, #111c35 0%, #192544 100%);
  --shadow-soft: 0 10px 24px rgba(2, 8, 23, 0.5);
  --shadow-strong: 0 18px 34px rgba(2, 8, 23, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.theme-toggle-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-toggle-btn i {
  font-size: 0.95rem;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section-padding {
  padding: 5rem 0;
}

.light-bg {
  background: #edf2f8;
}

.accent-text {
  color: var(--secondary);
}

.page-header {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
  padding: 5.75rem 0;
  text-align: center;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.22), transparent 56%);
}

.page-header .container {
  position: relative;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  font-weight: 800;
}

.page-header p {
  margin: 0.95rem auto 0;
  width: min(720px, 100%);
  color: #d7e1f5;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.76rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 26px rgba(31, 78, 216, 0.24);
}

.btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(30, 64, 175, 0.32);
}

.btn-outline {
  background: #fff;
  color: #1f2f4b;
  border: 1px solid var(--border);
}

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

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .light-bg,
html[data-theme="dark"] .mv-card,
html[data-theme="dark"] .team-member,
html[data-theme="dark"] .contact-form-wrapper,
html[data-theme="dark"] .contact-info-wrapper,
html[data-theme="dark"] .message-card,
html[data-theme="dark"] .info-item {
  background: #111827 !important;
  border-color: #223147 !important;
}

html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .about-content p,
html[data-theme="dark"] .mv-card p,
html[data-theme="dark"] .team-member p,
html[data-theme="dark"] .info-item p {
  color: #aab8cf !important;
}

html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-100 {
  border-color: #223147 !important;
}

html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-indigo-50 {
  background: #162132 !important;
}

html[data-theme="dark"] .text-brand-600,
html[data-theme="dark"] .text-indigo-600 {
  color: #7ea3ff !important;
}

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

  .page-header {
    padding: 5rem 0;
  }
}
