:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --text: #e5e5e5;
  --text-muted: #888888;
  --gold: #a68b5b;
  --blue: #2f54eb;
  --padding: 6vw;
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  /* Technical sans for body */
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Italiana', serif;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.section {
  padding: 120px 0;
  position: relative;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Noise Texture */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
  opacity: 0.03;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px var(--padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  mix-blend-mode: difference;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img-nav {
  height: 32px;
  width: auto;
}

/* Ensure visibility on dark */
.logo-text-nav {
  font-family: 'Italiana', serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  white-space: nowrap;
}

.menu-link:hover {
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
}

.menu-link.active {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 0.9)), url('../assets/images/hero.png') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.main-logo {
  height: 140px;
  width: auto;
  margin-bottom: 0px;
  opacity: 0.95;
}

.hero-title {
  font-size: clamp(40px, 6vw, 90px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--gold);
}

/* Method Section */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.method-img:hover {
  filter: grayscale(0%);
}

/* Service List */
.service-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
  display: flex;
  gap: 30px;
  align-items: baseline;
}

.service-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-num {
  font-family: 'Italiana';
  font-size: 20px;
  color: var(--gold);
  min-width: 40px;
}

.service-content {
  width: 100%;
}

.service-title {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 500;
}

.service-desc {
  font-weight: 300;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* CTA */
.cta-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  font-family: 'Space Grotesk';
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
  background: var(--gold);
  color: #000;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px var(--padding);
  font-family: 'Space Grotesk';
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Form Styles for Contact Page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.form-input, .form-textarea {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Added for refactoring --- */

/* Helper classes */
.text-center {
  text-align: center;
}

.delay-1 {
  transition-delay: 0.1s !important;
}

.delay-2 {
  transition-delay: 0.2s !important;
}

/* Component-specific classes */
.menu-link-special {
  border: 1px solid var(--gold);
  padding: 8px 16px; /* Adjusted padding */
}

.section-title-large {
  font-size: 48px;
  margin-bottom: 24px;
}

.section-title-medium {
  font-size: 36px;
  margin-bottom: 60px;
}

.section-title-xlarge {
    font-size: clamp(36px, 5vw, 64px);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
}

.process-info-box {
  margin-top: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.process-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.process-info-value {
  font-size: 24px;
  font-family: 'Italiana';
}

.specialty-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.specialty-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

.nda-section {
  text-align: center;
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nda-title {
  font-family: 'Italiana';
  font-size: clamp(60px, 10vw, 140px);
  line-height: 1;
}

.nda-subtitle {
  font-family: 'Space Grotesk';
  letter-spacing: 0.3em;
  color: var(--gold);
  font-size: 14px;
  margin-top: -10px;
}

.footer-right {
  text-align: right;
}

.footer-links {
  margin-top: 20px;
  font-size: 10px;
  width: 100%;
  text-align: center;
}

.page-header {
  padding-top: 180px;
  padding-bottom: 60px;
}

.page-title {
  font-size: clamp(40px, 6vw, 80px);
  text-align: center;
}

.page-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 20px auto;
  color: var(--text-muted);
}

.cta-btn-full {
  width: 100%;
  text-align: center;
  cursor: pointer;
  background: transparent;
}

.sede-title {
  font-family: 'Italiana';
  font-size: 32px;
  margin-bottom: 20px;
}

.sede-info {
  color: var(--text-muted);
  line-height: 1.8;
}

.gold-link {
  border-bottom: 1px solid var(--gold);
}

/* Founder Section */
.founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: start;
}

.founder-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.founder-name {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 28px;
}

.founder-bio {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
}

.founder-credentials {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credential-value {
  font-family: 'Italiana', serif;
  font-size: 36px;
  line-height: 1;
}

.credential-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.founder-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.founder-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.founder-detail-item strong {
  color: var(--text);
  font-weight: 500;
}

.detail-dash {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Case Studies */
.case-list {
  display: flex;
  flex-direction: column;
}

.case-list li {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.case-list li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.case-tag {
  font-family: 'Italiana', serif;
  font-size: 20px;
  color: var(--gold);
  padding-top: 4px;
}

.case-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0;
}

@media (max-width: 768px) {
  .case-list li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Form sent confirmation */
.form-sent {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-sent.visible {
  display: block;
}

.form-sent-msg {
  font-family: 'Italiana', serif;
  font-size: 24px;
  color: var(--gold);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    mix-blend-mode: normal; /* Difference blend mode can be tricky on mobile */
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .menu-link {
    padding: 12px 0; /* More vertical padding for easier tapping */
    width: 100%;
  }

  .menu-link-special {
    padding: 12px 16px; /* Adjusted padding */
    width: fit-content;
  }

  .section {
    padding: 80px 0;
  }

  .hero-content {
    gap: 20px;
  }

  .main-logo {
    height: 100px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .founder-credentials {
    gap: 24px;
  }
}

