:root {
  --navy: #0b1220;
  --navy-2: #11192b;
  --ink: #1c1c1c;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --muted: #6b7280;
  --accent: #7fccf7;
  --accent-2: #36b4fa;
  --border: #e5e7eb;
  --max-width: 1100px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-inner,
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  padding: 6px 0;
}

.nav-list a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 90px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 320px;
  margin: 0 auto 24px;
}

.hero-tagline {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-dark h2 span {
  color: var(--accent-2);
}

.section h2 {
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.section h2 span {
  color: var(--accent-2);
}

/* About & Experience: centered narrative blocks, so the text reads as an
   intentional, balanced column instead of hugging the left edge of the
   wide section with a lopsided gap on the right (as Services/Projects
   fill the full container width, and Testimonials is fully centered). */
#about .section-inner,
#experience .section-inner {
  text-align: center;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 18px;
  font-size: 16px;
}

.section-dark .prose p {
  color: rgba(255, 255, 255, 0.85);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.services-col p {
  margin: 0 0 12px;
}

.services-col ul {
  margin: 0;
  padding-left: 20px;
}

.services-col li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.project-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 18px;
}

/* Testimonials */
.testimonials .section-inner {
  text-align: center;
}

.testimonial-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 160px;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
}

.testimonial cite {
  display: block;
  font-style: normal;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--accent-2);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
}

.testimonial-dots button.active {
  background: var(--accent-2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-details h2 {
  margin-bottom: 20px;
}

.contact-details p {
  margin: 0 0 6px;
  font-size: 15px;
}

.contact-name {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-phone a {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-cta {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-cta p {
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
}

.site-footer p {
  margin: 4px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--accent-2);
}

/* Privacy page prose */
.legal-page .section-inner {
  max-width: 820px;
}

.legal-page h1 {
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  color: var(--ink);
  font-size: 15px;
}

.legal-page ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent-2);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list.open {
    max-height: 320px;
  }

  .nav-list li {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero {
    padding: 64px 20px;
  }

  .section {
    padding: 52px 0;
  }

  .section h2 {
    font-size: 26px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
