/* ============================================================================
   AI Content Pipeline - Main Styles
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --text-color: #1e293b;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --success-color: #16a34a;
  --warning-color: #ea580c;
  --danger-color: #dc2626;
  --spacing-unit: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
}

/* ============================================================================
   Layout & Container
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

main {
  min-height: calc(100vh - 200px);
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */

.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: var(--spacing-unit) 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: var(--light-bg);
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem var(--spacing-unit);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================================================================
   Content Section
   ============================================================================ */

.content {
  padding: 4rem var(--spacing-unit);
}

.content .container {
  text-align: center;
}

/* ============================================================================
   Personal Home
   ============================================================================ */

.home-page {
  background: #fbfcf8;
  color: #172033;
}

.home-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.home-header .logo a {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.home-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 18, 0.82) 0%, rgba(10, 15, 18, 0.68) 45%, rgba(10, 15, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 15, 18, 0.15) 0%, rgba(10, 15, 18, 0.56) 100%);
}

.home-hero-content {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.home-kicker,
.home-section-label {
  color: #c0842d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0.75rem 0 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.home-lead {
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
  color: #eef2f0;
}

.home-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
}

.home-btn-primary {
  background: #f8fafc;
  color: #172033;
}

.home-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.home-career,
.home-topics,
.home-pipeline {
  padding: clamp(3rem, 7vw, 5.5rem) var(--spacing-unit);
}

.home-career h2,
.home-section-head h2,
.home-pipeline h2 {
  margin-top: 0.45rem;
  max-width: 680px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-career {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbfcf8 0%, #f4f1e8 100%);
  border-bottom: 1px solid #ded7c9;
}

.home-career::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 78%);
}

.home-career .container {
  position: relative;
}

.home-career-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.home-career-copy {
  display: grid;
  gap: 1rem;
  font-size: 1.08rem;
  color: #3f4c5a;
}

.home-career-copy p {
  max-width: 680px;
}

.home-career-stats {
  display: grid;
  gap: 0.75rem;
}

.career-stat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.15rem 1rem;
  align-items: start;
  min-height: 126px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #ded7c9;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(23, 32, 51, 0.06);
}

.career-stat span {
  grid-row: 1 / span 2;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
}

.career-stat strong {
  color: #172033;
  font-size: 1.02rem;
  line-height: 1.2;
}

.career-stat p {
  color: #5f6b76;
  line-height: 1.55;
}

.career-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 4rem);
  background: #d6d0c0;
  border: 1px solid #d6d0c0;
}

.career-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: var(--career-progress, 0%);
  height: 3px;
  background: #0f766e;
  transition: width 0.2s ease-out;
}

.career-milestone {
  min-height: 260px;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: #fbfcf8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.career-milestone-index {
  margin-bottom: auto;
  color: #c0842d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.career-milestone h3 {
  color: #172033;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.1;
  margin: 2rem 0 0.65rem;
}

.career-milestone p {
  color: #5f6b76;
  line-height: 1.6;
}

.gsap-ready [data-career-animate],
.gsap-ready [data-career-card] {
  opacity: 0;
  transform: translateY(24px);
}

.home-topics {
  background: #172033;
  color: #f8fafc;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1rem;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-topic {
  background: #172033;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-topic span {
  color: #c0842d;
  font-weight: 900;
  margin-bottom: auto;
}

.home-topic h3 {
  margin: 1.8rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.15;
}

.home-topic p {
  color: #cbd5d8;
  line-height: 1.65;
}

.home-pipeline {
  position: relative;
  overflow: hidden;
  background: #101820;
  color: #f8fafc;
}

.home-pipeline::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(15, 118, 110, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(192, 132, 45, 0.12), transparent 42%);
}

.home-pipeline .container {
  position: relative;
}

.home-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.home-project-hero h2 {
  max-width: 780px;
}

.home-project-hero p {
  color: #cbd5d8;
  font-size: 1.06rem;
  line-height: 1.7;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-console,
.project-module {
  background: #101820;
}

.project-console {
  min-height: 100%;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.project-console-top {
  display: flex;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0842d;
}

.project-console-top span:nth-child(2) {
  background: #0f766e;
}

.project-console-top span:nth-child(3) {
  background: #cbd5d8;
}

.project-console-body {
  padding-top: clamp(1rem, 3vw, 1.5rem);
}

.project-console-body p {
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.project-console-body ul,
.project-integrations ul {
  list-style: none;
}

.project-console-body li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.75rem;
  color: #cbd5d8;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-console-body li span {
  color: #c0842d;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.project-module {
  min-height: 230px;
  padding: clamp(1rem, 3vw, 1.35rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-module span,
.project-integrations span {
  color: #c0842d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: auto;
}

.project-module h3 {
  color: #f8fafc;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.1;
  margin: 2rem 0 0.65rem;
}

.project-module p {
  color: #cbd5d8;
  line-height: 1.6;
}

.project-integrations {
  margin-top: 1px;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: #f8fafc;
  border: 1px solid #d6d0c0;
  color: #172033;
}

.project-integrations span {
  display: inline-block;
  margin-bottom: 1rem;
}

.project-integrations ul {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.project-integrations li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d6d0c0;
  border-radius: 999px;
  color: #5f6b76;
  font-size: 0.9rem;
  font-weight: 800;
}

.gsap-ready [data-project-animate],
.gsap-ready [data-project-card] {
  opacity: 0;
  transform: translateY(24px);
}

.home-footer {
  margin-top: 0;
  background: #111827;
  border-top: 0;
  color: #d1d5db;
}

/* ============================================================================
   Error Section
   ============================================================================ */

.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--spacing-unit);
  text-align: center;
}

.error-section h1 {
  font-size: 8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.error-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.error-section p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #475569;
}

.btn-success {
  background-color: var(--success-color);
}

.btn-success:hover {
  background-color: #15803d;
}

.btn-danger {
  background-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #b91c1c;
}

/* ============================================================================
   Forms
   ============================================================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem var(--spacing-unit);
  text-align: center;
  color: var(--secondary-color);
  margin-top: 4rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .navbar .container {
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .error-section h1 {
    font-size: 5rem;
  }

  .error-section h2 {
    font-size: 1.5rem;
  }

  .home-hero {
    min-height: 82vh;
  }

  .home-hero-overlay {
    background: linear-gradient(180deg, rgba(10, 15, 18, 0.76) 0%, rgba(10, 15, 18, 0.82) 100%);
  }

  .home-actions,
  .home-btn {
    width: 100%;
  }

  .home-career-layout,
  .career-track,
  .home-project-hero,
  .project-showcase,
  .project-modules,
  .home-topic-grid {
    grid-template-columns: 1fr;
  }

  .career-track {
    gap: 0.75rem;
    background: transparent;
    border: 0;
  }

  .career-track::before {
    display: none;
  }

  .career-milestone {
    min-height: 220px;
    border: 1px solid #d6d0c0;
    border-radius: 8px;
  }

  .home-section-head {
    display: block;
  }

  .home-topic {
    min-height: 210px;
  }

  .project-module {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .home-header .navbar .container {
    display: grid;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .nav-links a {
    padding: 0.45rem 0.65rem;
  }
}
