/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* ---------------------------------- */
/* Design tokens */
/* ---------------------------------- */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --navy: #0A1628;
  --navy-mid: #112240;
  --text-primary: #0A1628;
  --text-secondary: #475569;
  --accent: #0284C7;
  --accent-light: #EFF6FF;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 22px;
}

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

/* ---------------------------------- */
/* Section headers */
/* ---------------------------------- */

.section-header {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 48px;
  color: var(--navy);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.section-header::before {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

#consulting .section-header::before {
  content: "What I Do";
}

#current-work .section-header::before {
  content: "Active Projects";
}

#projects .section-header::before {
  content: "Built by Blue Signal";
}

#contact .section-header::before {
  content: "Get In Touch";
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

/* ---------------------------------- */
/* Navbar */
/* ---------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------------------------- */
/* Brand logo */
/* ---------------------------------- */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.brand-word {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: 22px;
}

.brand-tag {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 14px;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
}

.navbar-nav a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.navbar-nav a:hover {
  color: var(--accent);
}

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

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: background 0.15s ease;
}

.navbar-toggle:hover span {
  background: var(--accent);
}

/* ---------------------------------- */
/* Hero — kept as a dark band */
/* ---------------------------------- */

.hero {
  position: relative;
  min-height: 90vh;
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
  background-color: var(--navy);
  background-image: url('https://images.unsplash.com/photo-1565214975484-3cfa9e56f914?w=1600&q=85');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 40, 0.72) 0%,
    rgba(10, 20, 40, 0.55) 50%,
    rgba(10, 20, 40, 0.80) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-icon {
  display: flex;
  justify-content: center;
}

.hero-brand-text {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-word {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F8FAFC;
  font-size: 28px;
  margin-bottom: 0.25rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #CBD5E1;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  white-space: nowrap;
  font-size: 42px;
}

.hero-subtext {
  color: #64748B;
  font-size: 20px;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  opacity: 0.5;
  transform: translateX(-50%);
  animation: hero-chevron-bounce 1.8s infinite ease-in-out;
  transition: opacity 0.3s ease;
}

@keyframes hero-chevron-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  padding: 0.9rem 2.25rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--navy-mid);
}

/* ---------------------------------- */
/* Consulting */
/* ---------------------------------- */

.consulting {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.consulting-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.consulting-pitch {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.8;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consulting-grid .skills-list {
  align-content: start;
  max-width: 480px;
}

.skills-list li {
  background: var(--accent-light);
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  font-size: 16px;
}

/* ---------------------------------- */
/* Current Work */
/* ---------------------------------- */

.current-work {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 2rem;
}

.work-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.work-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
}

.work-badge {
  flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.work-card-client {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 1.25rem;
}

.work-card-body {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---------------------------------- */
/* Projects */
/* ---------------------------------- */

.projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.project-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

.project-description {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 1.25rem;
}

.project-link {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.project-link:hover {
  text-decoration: underline;
}

.project-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ---------------------------------- */
/* Contact */
/* ---------------------------------- */

.contact {
  background: var(--navy);
  text-align: center;
}

.contact .section-header {
  color: #F8FAFC;
  border-bottom-color: #1E3A5F;
}

.contact-line {
  color: #64748B;
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.contact-email:hover {
  text-decoration: underline;
}

/* ---------------------------------- */
/* Footer */
/* ---------------------------------- */

.footer {
  background: #060E1A;
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: #334155;
  font-size: 15px;
}

/* ---------------------------------- */
/* Responsive */
/* ---------------------------------- */

@media (max-width: 720px) {
  .section-inner {
    padding: 3rem 1.25rem;
  }

  .navbar-nav {
    gap: 1.25rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 4rem 1.5rem 5rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .work-card-top {
    flex-direction: column;
  }

  .section-header {
    font-size: 1.4rem;
  }
}

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

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 1.5rem 1rem;
  }

  .navbar-nav.is-open {
    display: flex;
  }

  .navbar-nav a {
    padding: 0.75rem 0;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    white-space: normal;
    font-size: 32px;
  }
}
