:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #000000;
  --accent: #2563eb;
  --accent-soft: #e0ecff;
  --border: #e5e7eb;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --max-width: 1040px;
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #edf2ff 0, #f5f7fb 40%, #ffffff 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  line-height: 1.6;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0.6rem 0 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Layout shell */

body > header,
body > section,
body > footer {
  max-width: var(--max-width);
  margin: 1.75rem auto;
  padding: 0 1.5rem;
}


.section-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem;

}

.content-page {
  display: grid;
  gap: 1.25rem;
  line-height: 1.65;
}

.content-page h2 {
  margin: 0;
}

.content-page h3 {
  margin-top: 1.5rem;
  color: var(--heading);
}

.content-page p + h3,
.content-page ul + h3,
.content-page ol + h3 {
  margin-top: 2rem;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(245, 247, 251, 0.94),
    rgba(245, 247, 251, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
  font-size: 0.9rem;
}

header nav a {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.8rem;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.brand-mark {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 120px;
  max-width: 130px;
  height: auto;
}

.nav-contact {
  font-weight: 600;
  color: var(--accent);
}

/* Hero */

#hero {
  padding: 4.5rem 1.5rem 1.5rem;
}

#hero .section-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: 2.8rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 700px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

#hero h1 {
  font-size: clamp(2.4rem, 4vw, 2.9rem);
}

#hero h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

#hero p {
  font-size: 1rem;
  max-width: 38rem;
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

/* Hero CTA */

#hero a[href^="#contact"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-contact {
  align-self: flex-start;
}

.hero-portrait {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-soft);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  justify-self: end;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero a[href^="#contact"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.28);
  background: #1d4ed8;
}

/* Sections */

section {
  padding: 2.75rem 1.5rem;
}

section:not(#hero) {
  border-top:none;
}

section h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
}

section > p {
  max-width: 38rem;
}

/* About */

.service {
  gap: 0.5rem;
}

.service p:last-child {
  margin-bottom: 0.5rem;
}

/* Contact */

#contact p {
  margin-bottom: 1.3rem;
}

#contact form {
  width: 100%;
  padding: 0.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row.full {
  grid-column: 1 / -1;
}

#contact label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font: inherit;
  resize: vertical;
  min-height: 0;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#contact textarea {
  min-height: 120px;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  background: #f9fbff;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  grid-column: 1 / -1;
}

#contact button[type="submit"] {
  margin-top: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#contact button[type="submit"]:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.28);
}

.form-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.form-status.error {
  color: #b91c1c;
}

.contact-card.is-highlighted,
#contact form:focus-within {
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16), var(--shadow-soft);
  border-color: var(--accent);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-card.is-highlighted {
  animation: contactPulse 1.5s ease;
}

@keyframes contactPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.24);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
}

@media (max-width: 900px) {
  #hero .section-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-portrait {
    justify-self: center;
    width: 200px;
    height: 200px;
  }
}

/* Footer */

footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.footer-logo-img {
  width: 110px;
  max-width: 45%;
  height: auto;
  opacity: 0.24;
  filter: grayscale(100%);
}

/* Smooth scrolling for anchors */

html {
  scroll-behavior: smooth;
}

/* Responsive */

@media (max-width: 800px) {
  header nav {
    justify-content: space-between;
    gap: 1rem;
  }

  section {
    padding: 2.2rem 1.25rem;
  }

  #hero .section-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-portrait {
    display: none;
  }
}

@media (max-width: 520px) {
  header nav {
    gap: 0.9rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  #hero {
    padding-top: 3.4rem;
  }

  body > header,
  body > section,
  body > footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
