:root {
  --color-background: #0b0c0e; /* Dark background */
  --color-surface: #151619; /* Slightly lighter for cards */
  --color-text: #e5e5e5; /* Off-white for main text */
  --color-muted: #888888; /* Muted text */
  --color-primary: #ffffff; /* White for primary actions/titles */
  --color-accent: #aebec6; /* Glacier Blue / Technical Grey */
  --color-border: #333333; /* Subtle borders */
  --color-grid: rgba(255, 255, 255, 0.06);
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
  
  --spacing-container: 1200px;
  --border-radius: 2px; /* Sharp technical look */
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Utility */
.container {
  width: min(var(--spacing-container), 92vw);
  margin: 0 auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

p {
  color: var(--color-muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-background);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--full {
  width: 100%;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

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

.brand__logo-img {
  height: 65px;
  /* Removed filter as the new logo might have colors or specific background */
  /* filter: grayscale(100%) brightness(200%); */
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-muted);
}

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

.nav__cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

/* Hero */
.hero {
  padding: 180px 0 100px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  background: 
    linear-gradient(to bottom, rgba(11, 12, 14, 0.3) 0%, rgba(11, 12, 14, 1) 100%),
    url('assets/1.png') no-repeat center center/cover;
}

.hero__overlay {
  /* Pure CSS pattern overlay for technical feel */
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.hero__tag {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: #bbbbbb;
}

.hero__actions {
  display: flex;
  gap: 1rem;
}

/* Stats / Pillars (Horizontal Bar) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.pillar {
  padding: 2rem;
  border-right: 1px solid var(--color-border);
}

.pillar:last-child {
  border-right: none;
}

.pillar h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 500;
  margin: 0;
}

/* Section General */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border);
}

.section__header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section__label {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Specs List (Services) */
.specs-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
}

.spec-item {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
  transition: background-color 0.2s;
}

.spec-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.spec-id {
  font-family: var(--font-mono);
  color: var(--color-border); /* darker number */
  font-size: 1.5rem;
}

.spec-title h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.spec-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.spec-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
}

/* Process (Timeline) */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-left: 1px solid var(--color-border);
  margin-left: 1rem;
}

.process-step {
  padding: 0 0 4rem 3rem;
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 9px;
  height: 9px;
  background: var(--color-background);
  border: 1px solid var(--color-primary);
  border-radius: 0; /* Square dot */
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Visual Breaks (Parallax-like separators) */
.visual-separator {
  height: 500px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.visual-separator::after {
  /* Overlay for better transition */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 14, 0.2);
}

.sep-1 {
  background-image: url('assets/2.png'); /* Road/Canyon */
}

.sep-2 {
  background-image: url('assets/3.png'); /* Hiker/Vision */
}

/* Specific Section Backgrounds */
#methode {
  position: relative;
  background: 
    linear-gradient(to bottom, rgba(11, 12, 14, 0.95), rgba(11, 12, 14, 0.85), rgba(11, 12, 14, 0.95)),
    url('assets/4.png') no-repeat center center/cover;
  background-attachment: fixed;
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; /* For grid border effect */
  background: var(--color-border); /* Creates borders between items */
  border: 1px solid var(--color-border);
}

.case-card {
  background-color: var(--color-background);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Content must be above the background image and overlay */
.case-card > * {
  position: relative;
  z-index: 2;
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6; /* Increased opacity for better visibility */
  filter: grayscale(100%) contrast(1.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.case-card:hover::before {
  transform: scale(1.05);
  opacity: 0.7;
}

/* Gradient overlay to ensure text readability but keep image visible */
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(11, 12, 14, 0.6), rgba(11, 12, 14, 0.9));
}

.case-card:nth-child(1)::before { background-image: url('assets/1.png'); }
.case-card:nth-child(2)::before { background-image: url('assets/2.png'); }
.case-card:nth-child(3)::before { background-image: url('assets/3.png'); }
.case-card:nth-child(4)::before { background-image: url('assets/4.png'); }
.case-card:nth-child(5)::before { background-image: url('assets/hero-business.png'); }
.case-card:nth-child(6)::before { background-image: url('assets/hero-collaboration.png'); }

.case-card h4 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.case-metric {
  margin-top: auto;
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 1rem;
  font-family: var(--font-sans);
  border-radius: var(--border-radius);
}

.form-group input:focus,
.form-group textarea:focus, 
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
}

.faq-item h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-logo {
  height: 120px;
  object-fit: contain;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  left: 0;
  transition: top 0.3s, transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Active Hamburger State */
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Responsive */
@media (max-width: 960px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  
  .spec-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .spec-id {
    display: none;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigation Fix */
  .nav-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .nav {
    height: 70px; /* Fixed height on mobile */
    padding: 0 1rem; /* Ensure padding */
    justify-content: space-between; /* Keep logo and burger apart */
    flex-direction: row; /* Keep them in a row */
  }

  .brand__logo-img {
    height: 40px; /* Smaller logo on mobile */
  }

  .nav__links {
    display: none; /* Hide links by default */
    position: fixed;
    top: 70px; /* Below header */
    left: 0;
    right: 0;
    background: rgba(11, 12, 14, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
  }

  .nav__links.active {
    display: flex; /* Show when active */
  }

  .nav__links a {
    font-size: 1.2rem; /* Larger links for touch */
  }
  
  /* Adjust Hero Padding */
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem; /* Smaller font for mobile */
  }

  /* Smaller buttons on mobile */
  .hero__actions {
    flex-direction: column; /* Stack buttons on very small screens if needed, or keep row but smaller */
    width: 100%;
  }

  .hero__actions .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    width: 100%; /* Full width buttons on mobile often look better */
    text-align: center;
  }

  /* FAQ Grid Mobile */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer Mobile */
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
  
  .site-footer {
    padding: 3rem 0;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
