/* ============================================
   INOVITUS 9 — Blueprint Design System
   Architectural / High-Performance / Optimistic
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors - Focused on Microsoft "Frontier" Palette */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --accent-blue: #005A9E;
  /* Deep Visionary Blue */
  --accent-blue-light: #E1EFFE;
  --text-primary: #1A202C;
  /* Near Black for readability */
  --text-secondary: #4A5568;
  --text-muted: #A0AEC0;
  --blueprint-line: rgba(0, 90, 158, 0.08);
  /* Faint grid lines */

  /* Styling constants */
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-std: 4px;
  /* Sharper, more architectural corners */
  --nav-height: 80px;
  --max-width: 1200px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Technical Grid Background Effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3 {
  color: var(--accent-blue);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-primary);
  /* Solid Pure White */
  border-bottom: 1px solid #E2E8F0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-logo {
  height: 60px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  /* Removes rectangular off-white image background */
}

/* Sub-items within pillars */
.pillar-projects {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-entry {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: white;
  border: 1px solid #E2E8F0;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.project-entry:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.item-thumb {
  width: 80px;
  height: 80px;
  background: var(--accent-blue-light);
  flex-shrink: 0;
  border-radius: var(--radius-std);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex-grow: 1;
}

.item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}

.item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Blueprint Placeholders */
.blueprint-item {
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 10px 10px;
  position: relative;
}

/* Language Toggle Custom */
.lang-toggle {
  display: flex;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-std);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: white;
  border: none;
}

.lang-btn.active {
  background: var(--accent-blue);
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero-grid-overlay {
  position: absolute;
  right: 0;
  top: 10%;
  width: 50%;
  height: 80%;
  z-index: -1;
  opacity: 0.8;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}

.hero h1 .frontier {
  display: block;
  font-weight: 300;
  /* Contrast style */
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

.btn-cta {
  background: var(--accent-blue);
  color: white;
  padding: 1rem 2.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-std);
  display: inline-block;
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 90, 158, 0.2);
}

/* ============================================
   PILLARS SECTION
   ============================================ */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.pillar-card {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border-left: 1px solid var(--accent-blue);
  transition: var(--transition);
}

.pillar-card:hover {
  background: white;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.pillar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.pillar-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.project-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-std);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.btn-submit {
  width: 100%;
  background: var(--accent-blue);
  color: white;
  padding: 1rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-status.success {
  color: var(--accent-blue);
}

.form-status.error {
  color: #B42318;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for code-bits */
.code-bit {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  opacity: 0.15;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================
   COMPACT PILLAR CARDS
   ============================================ */
.pillar-card--compact {
  text-align: center;
  padding: 2.5rem 2rem;
}

.pillar-card--compact .pillar-header {
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-card--compact .pillar-icon {
  width: 56px;
  height: 56px;
}

.pillar-card--compact .pillar-title {
  font-size: 1.3rem;
}

.pillar-card--compact .pillar-text {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================
   REFERENCES SECTION
   ============================================ */
.references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.reference-card {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-blue);
  padding: 2.5rem;
  transition: var(--transition);
}

.reference-card:hover {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.reference-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.reference-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-std);
  object-fit: cover;
  flex-shrink: 0;
}

.reference-title {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.reference-title a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

.reference-title a:hover {
  text-decoration: underline;
}

.link-arrow {
  font-size: 0.85em;
  opacity: 0.6;
  transition: var(--transition);
}

.reference-title a:hover .link-arrow {
  opacity: 1;
  transform: translateX(2px);
  display: inline-block;
}

.reference-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.reference-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.reference-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.reference-highlights span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.01em;
}

/* ============================================
   DEEP-DIVE SECTIONS (AI Frontiers)
   ============================================ */
.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.deepdive-card {
  background: white;
  border: 1px solid #E2E8F0;
  padding: 2.5rem;
  transition: var(--transition);
}

.deepdive-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: var(--accent-blue);
}

.deepdive-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-std);
  overflow: hidden;
  background: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deepdive-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deepdive-card h3 {
  font-size: 1.3rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.deepdive-block {
  margin-bottom: 1.25rem;
}

.deepdive-block h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.deepdive-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   STRATEGY SECTION
   ============================================ */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.strategy-card {
  background: var(--bg-secondary);
  border-left: 2px solid var(--accent-blue);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.strategy-card:hover {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.strategy-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
}

.strategy-icon svg {
  width: 100%;
  height: 100%;
}

.strategy-card h3 {
  font-size: 1.15rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.strategy-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-settings-btn {
  margin-top: 0.75rem;
  border: 1px solid #E2E8F0;
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  border-radius: var(--radius-std);
  transition: var(--transition);
}

.cookie-settings-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid #E2E8F0;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.cookie-banner h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.cookie-banner p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.cookie-btn {
  border: 1px solid #E2E8F0;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--radius-std);
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-secondary {
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.cookie-btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.cookie-btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
}

.cookie-btn-primary:hover {
  filter: brightness(1.05);
}

/* ============================================
   RESPONSIVE — NEW SECTIONS
   ============================================ */
@media (max-width: 768px) {
  .references-grid,
  .deepdive-grid {
    grid-template-columns: 1fr;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}