:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f0f4f8;
  --text: #111827;
  --muted: #5b6676;
  --accent: #0f766e;
  --accent-2: #0b3d5c;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --bg-1: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #eef2f7;
  --footer-bg: #0b1220;
  --footer-text: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.92);
}

body.theme-dark {
  --bg: #0b1220;
  --surface: #111827;
  --surface-alt: #0f172a;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --accent: #14b8a6;
  --accent-2: #38bdf8;
  --accent-soft: rgba(20, 184, 166, 0.2);
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.5);
  --bg-1: #0b1220;
  --bg-2: #0f172a;
  --bg-3: #111827;
  --footer-bg: #05070f;
  --footer-text: #e2e8f0;
  --nav-bg: rgba(17, 24, 39, 0.92);
}

body.theme-light {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f0f4f8;
  --text: #111827;
  --muted: #5b6676;
  --accent: #0f766e;
  --accent-2: #0b3d5c;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --bg-1: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #eef2f7;
  --footer-bg: #0b1220;
  --footer-text: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111827;
    --surface-alt: #0f172a;
    --text: #e5e7eb;
    --muted: #9aa4b2;
    --accent: #14b8a6;
    --accent-2: #38bdf8;
    --accent-soft: rgba(20, 184, 166, 0.2);
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 18px 45px rgba(2, 6, 23, 0.5);
    --bg-1: #0b1220;
    --bg-2: #0f172a;
    --bg-3: #111827;
    --footer-bg: #05070f;
    --footer-text: #e2e8f0;
    --nav-bg: rgba(17, 24, 39, 0.92);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
}

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

a {
  color: inherit;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-hide {
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  z-index: 1000;
}

.skip-link:focus {
  left: 10px;
}

.section {
  padding: 80px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

#main-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.theme-toggle {
  margin-left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle[aria-pressed="true"] .icon-sun {
  display: inline-block;
}

.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.theme-toggle svg {
  pointer-events: none;
}

#main-navbar .navbar-brand {
  gap: 12px;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.brand-role {
  font-size: 0.85rem;
  color: var(--muted);
}

#main-navbar .nav-link {
  font-weight: 500;
  color: var(--muted);
  padding: 1.2rem 1rem;
}

#main-navbar .nav-link:hover,
#main-navbar .nav-link:focus {
  color: var(--accent);
}

.fancy-toggler.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
}

.fancy-toggler.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(15, 118, 110)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-radius: 24px;
  margin: 24px auto;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 20px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-main,
.btn-ghost {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-main {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
  border: 1px solid transparent;
}

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

.btn-main:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

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

.highlight-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.highlight-title {
  font-weight: 600;
  display: block;
}

.highlight-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-image {
  max-width: 520px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.project-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-body h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 0;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.section-accent {
  background: linear-gradient(120deg, #0f766e 0%, #0b3d5c 100%);
  color: #ffffff;
}

.section-accent .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.checklist li {
  margin-bottom: 12px;
  padding-left: 26px;
  position: relative;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #ffffff;
}

.experience-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 24px;
  border-radius: 18px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  align-items: center;
}

.tech-item {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  aspect-ratio: 1 / 1;
  height: 120px;
}

.tech-item img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}


.contact-form .form-control {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  background: var(--surface);
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.contact-image {
  max-width: 440px;
  margin: 0 auto;
}

.modal-thanks {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-thanks.is-open {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.modal-content h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 24px;
}

#main-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 12px;
}

.footer-link {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 991px) {
  .hero {
    padding: 32px 0;
    margin: 16px 12px;
  }

  #main-navbar .navbar-nav {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-visual {
    margin-top: 24px;
  }

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

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

  .section-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

  .contact-copy {
    text-align: center;
  }

  .contact-form {
    text-align: left;
  }

  .contact-form .btn-main {
    width: 100%;
  }

  .contact-visual {
    margin-top: 32px;
  }
}

@media (max-width: 575px) {
  .mobile-hide {
    display: none !important;
  }

  .brand-text {
    display: flex;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-role {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: stretch;
    padding: 0 12px;
  }

  .highlight-item {
    width: 100%;
    margin: 0;
  }

  .project-media img {
    height: 180px;
  }

  .contact-image {
    max-width: 300px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(120px, 160px));
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .theme-toggle {
    margin: 8px 0 0;
  }

  .footer-links {
    align-items: flex-start;
    margin-top: 16px;
  }
}

