/* =========================================================
   Samuel Bosawer - IT Consultant & Web Developer
   Editorial / minimalist light theme
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0B1220;
  --ink: #1F2937;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --border: #E6E8EC;
  --bg: #FFFFFF;
  --bg-off: #F7F7F5;
  --accent: #1B2CC1;
  --accent-soft: #7692FF;
  --orange: #F76B1C;
}

/* -------------------- Base reset -------------------- */
html, body {
  background: var(--bg) !important;
  overflow-x: hidden;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--accent);
  color: #ffffff;
}

.container {
  max-width: 1140px;
}

/* -------------------- Header -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
main {
  padding-top: 77px;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
@media only screen and (min-width: 992px) {
  .site-header-inner {
    padding: 0 24px;
  }
}
.site-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media only screen and (max-width: 380px) {
  .site-logo { font-size: 16px; }
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.site-nav-links a:hover,
.site-nav-links a.current {
  color: var(--accent);
}
.btn-cta {
  background: var(--navy);
  color: #ffffff !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-cta:hover {
  background: var(--accent);
}
.mobile-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  color: var(--navy);
  line-height: 0;
}

/* -------------------- Language switch -------------------- */
.lang-switch {
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-btn {
  background: none;
  border: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.is-active {
  background: var(--navy);
  color: #ffffff;
}
.mobile-menu .lang-switch {
  display: inline-flex;
  margin-bottom: 36px;
}

/* -------------------- Mobile menu -------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  padding: 28px 30px;
  transition: right 0.35s ease;
  box-shadow: -20px 0 40px rgba(11, 18, 32, 0.1);
  overflow-y: auto;
}
.mobile-menu.is-open {
  right: 0;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.mobile-menu-top .site-logo {
  white-space: normal;
  line-height: 1.25;
}
.mobile-close {
  background: none;
  border: none;
  color: var(--navy);
  line-height: 0;
}
.mobile-menu-links {
  margin-bottom: 36px;
}
.mobile-menu-links li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}
.mobile-menu-social {
  display: flex;
  gap: 18px;
}
.mobile-menu-social a {
  color: var(--ink);
}
.mobile-menu-social svg {
  width: 20px;
  height: 20px;
}

/* -------------------- Hero -------------------- */
.hero {
  padding: 120px 0 100px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-name {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-role {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: #ffffff !important;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--navy) !important;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.hero-photo-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-off);
  box-shadow: 0 24px 48px rgba(11, 18, 32, 0.08);
  margin-bottom: 40px;
}
.hero-photo-frame img {
  width: 100%;
}

/* -------------------- Sections -------------------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-off);
}
.section-dark {
  background: var(--navy);
  color: #ffffff;
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-dark .section-label {
  color: var(--accent-soft);
}
.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.section-dark .section-heading {
  color: #ffffff;
}

/* -------------------- About -------------------- */
.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 20px;
}
.about-text:last-child {
  margin-bottom: 0;
}

/* -------------------- Services -------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 18, 32, 0.06);
}
.service-index {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* -------------------- Projects / Articles (card grid) -------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--navy);
  transition: transform 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
}
.project-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
#articles .project-media {
  aspect-ratio: 16 / 9;
}
.project-grid-narrow {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}
#building .project-media {
  aspect-ratio: 1 / 1;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-media img {
  transform: scale(1.05);
}
.project-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 6px 0 4px;
  line-height: 1.35;
}
.project-domain {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  margin-top: auto;
}
.project-link svg {
  width: 14px;
  height: 14px;
}
.project-card:hover .project-link {
  color: var(--accent);
}
.section-footnote {
  margin-top: 32px;
  font-size: 15px;
  color: var(--muted);
}
.section-footnote a {
  color: var(--accent);
  font-weight: 600;
}

/* -------------------- Experience -------------------- */
.experience-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 44px 0 12px;
}
.experience-group-title:first-of-type {
  margin-top: 0;
}
.experience-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.experience-list .experience-item:last-child {
  border-bottom: 1px solid var(--border);
}
.experience-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
}
.experience-role {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.experience-org {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.experience-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* -------------------- Contact -------------------- */
.contact-intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 420px;
  margin-bottom: 18px;
}
.contact-role {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
}
.contact-links {
  margin-bottom: 30px;
}
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.contact-links .contact-link:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-link-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}
.contact-link-value {
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.contact-link:hover .contact-link-value {
  color: var(--accent-soft);
}
.contact-social {
  display: flex;
  gap: 14px;
}
.contact-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-social svg {
  width: 18px;
  height: 18px;
}
.contact-social a:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

/* -------------------- Back to top -------------------- */
.backto-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.25);
  transition: opacity 0.3s ease, background 0.2s ease;
  cursor: pointer;
  z-index: 500;
}
.backto-top:hover {
  background: var(--accent);
}
.backto-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* -------------------- WhatsApp float -------------------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  z-index: 500;
  transition: transform 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-3px);
  color: #ffffff;
}
.wa-float svg {
  width: 26px;
  height: 26px;
}

/* -------------------- Footer -------------------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.site-footer-inner a:hover {
  color: var(--accent);
}

/* -------------------- Responsive -------------------- */
@media only screen and (max-width: 991px) {
  .hero { padding: 100px 0 70px; }
  .hero-name { font-size: 42px; }
  .hero-photo-frame { max-width: 320px; margin: 0 auto 48px; }
  .section { padding: 72px 0; }
  .section-heading { font-size: 28px; }
  .col-lg-4, .col-lg-7, .col-lg-5, .col-lg-6 { margin-bottom: 8px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  #projects .project-media {
    background: #22262a;
    padding: 14px;
  }
  #projects .project-media img {
    object-fit: contain;
  }
}

@media only screen and (max-width: 767px) {
  .hero-name { font-size: 34px; }
  .section-heading { font-size: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-media { aspect-ratio: 4 / 3; }
  .experience-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .site-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
