/* ===== Custom Properties ===== */
:root {
  --color-bg:          #ffffff;
  --color-surface:     #f8f9fa;
  --color-navy:        #0d1b2a;
  --color-navy-mid:    #1b2e45;
  --color-accent:      #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-text:        #1a1a2e;
  --color-text-muted:  #6b7280;
  --color-border:      #e5e7eb;
  --color-white:       #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-y: scroll;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

ul { list-style: none; }
img, svg { display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--color-accent-dark); }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 48px 0; }
.section-alt { background-color: var(--color-surface); }

@media (min-width: 1024px) {
  .section { padding: 80px 0; }
}

/* ===== Navigation ===== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-navy);
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.nav-brand:hover { color: var(--color-white); opacity: 0.85; }

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-navy-mid);
  padding: 8px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 0;
}

.nav-links.open li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-links.open li:last-child { border-bottom: none; }

.nav-links.open a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }

  /* Reset mobile overrides when open on desktop */
  .nav-links.open {
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    border: none;
  }
  .nav-links.open li { border: none; }
  .nav-links.open a { display: inline; padding: 0; font-size: 14px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-large { padding: 16px 40px; font-size: 16px; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background-color: var(--color-navy);
  padding: 48px 0;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .page-hero { padding: 64px 0; }
  .page-hero h1 { font-size: 40px; }
  .page-hero p { font-size: 17px; }
}

/* ===== Hero (home) ===== */
.hero {
  flex: 1;
  background-color: var(--color-navy);
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero { padding: 120px 0; }
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 18px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 60px; }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 48px;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-icon {
  color: var(--color-accent);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .about-text h2 { font-size: 36px; }
}

/* ===== Section headings ===== */
.experience h2,
.deliveries h2,
.ventures h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .experience h2,
  .deliveries h2,
  .ventures h2 { font-size: 36px; }
}

/* ===== Experience Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--color-border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}

.timeline-entry:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.timeline-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.timeline-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.timeline-period {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: auto;
}

.timeline-content ul {
  list-style: disc;
  padding-left: 18px;
}

.timeline-content li {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.timeline-content li:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .timeline { padding-left: 48px; }
  .timeline::before { left: 8px; }
  .timeline-marker {
    left: -42px;
    width: 18px;
    height: 18px;
    top: 3px;
  }
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Delivery Cards ===== */
.delivery-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.delivery-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.delivery-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-outcome {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background-color: rgba(37, 99, 235, 0.08);
  border-radius: 4px;
  padding: 6px 12px;
}

/* ===== Venture Cards ===== */
.venture-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.venture-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.venture-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venture-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-live     { background-color: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-building { background-color: rgba(37,  99, 235, 0.10); color: var(--color-accent); }
.badge-dev      { background-color: rgba(107, 114, 128, 0.12); color: var(--color-text-muted); }

.venture-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.venture-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.venture-link:hover { color: var(--color-accent-dark); }

/* ===== PMO Philosophy ===== */
.philosophy {
  flex: 1;
  background-color: var(--color-navy);
}

.philosophy h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--color-white);
}

.pillar-grid {
  display: grid;
  gap: 40px;
}

.pillar-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .philosophy h2 { font-size: 36px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Contact ===== */
.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.contact-link:hover { color: var(--color-accent); }

.contact-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .contact-inner h2 { font-size: 36px; }
}

/* ===== Blog listing ===== */
.post-list {
  max-width: 720px;
}

.post-card {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.post-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.post-date,
.post-read-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.post-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--color-text);
}

.post-card h2 a:hover {
  color: var(--color-accent);
}

.post-card > p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.post-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.post-link:hover { color: var(--color-accent-dark); }

/* ===== Blog post page ===== */
.post-hero {
  padding-bottom: 40px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.post-hero-back {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.post-hero-back:hover { color: var(--color-white); }

.post-hero-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.post-hero h1 {
  font-size: 28px;
  max-width: 720px;
}

@media (min-width: 768px) {
  .post-hero h1 { font-size: 36px; }
}

.post-section { background-color: var(--color-bg); }

.post-body {
  max-width: 720px;
}

.post-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
}

.post-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-body ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 24px;
}

.post-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 14px;
}

.post-body li:last-child { margin-bottom: 0; }

.post-body strong { font-weight: 600; }

.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.post-back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.post-back-link:hover { color: var(--color-accent); }

/* ===== Credentials (about page) ===== */
.credentials h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.cred-grid {
  display: grid;
  gap: 20px;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.cred-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.cred-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 3px;
}

.cred-detail {
  font-size: 13px;
  color: var(--color-text-muted);
}

.about-text-secondary {
  margin-top: 16px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Philosophy page ===== */
.philosophy-intro {
  margin-bottom: 56px;
}

.philosophy-intro h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 14px;
}

.philosophy-intro p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .philosophy-intro h1 { font-size: 40px; }
}

.footer-on-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Technical Expertise ===== */
.tech-expertise h2,
.clients h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .tech-expertise h2,
  .clients h2 { font-size: 36px; }
}

.expertise-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(3, 1fr); }
}

.expertise-group {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.expertise-group h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ===== Client Brands ===== */
.client-frame {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.client-frame-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 6px 14px;
}

/* ===== Availability badge ===== */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}

/* ===== Contact page ===== */
.contact-full {
  flex: 1;
  background-color: var(--color-navy);
  display: flex;
  align-items: center;
}

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

.contact-full h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact-full .contact-sub {
  color: rgba(255, 255, 255, 0.65);
}

.contact-full .contact-link {
  color: rgba(255, 255, 255, 0.55);
}

.contact-full .contact-link:hover {
  color: var(--color-white);
}

.contact-full .contact-location {
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .contact-full h1 { font-size: 40px; }
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-navy);
  padding: 24px 0;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
