@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
  /* Color System - Premium Zinc/Indigo Dark Theme */
  --color-bg: #09090b;
  --color-bg-rgb: 9, 9, 11;
  --color-surface: #121215;
  --color-surface-2: #18181b;
  --color-surface-hover: #202024;
  
  --color-accent: #6366f1; /* Indigo 500 */
  --color-accent-rgb: 99, 102, 241;
  --color-accent-hover: #4f46e5; /* Indigo 600 */
  --color-accent-subtle: rgba(99, 102, 241, 0.1);
  --color-gradient-start: #818cf8;
  --color-gradient-end: #c084fc;
  
  --color-fg: #f4f4f5; /* Zinc 100 */
  --color-fg-muted: #a1a1aa; /* Zinc 400 */
  --color-fg-subtle: #71717a; /* Zinc 500 */
  --color-line: rgba(63, 63, 70, 0.4); /* Zinc 700 with opacity */
  --color-line-hover: rgba(63, 63, 70, 0.8);
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Grid & Spacing */
  --max-width: 1200px;
  
  /* Scrollbars */
  --scrollbar-track: var(--color-bg);
  --scrollbar-thumb: var(--color-line-hover);
  
  color-scheme: dark;
  accent-color: var(--color-accent);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg);
}

/* Custom Scrollbars */
html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-fg-subtle);
  }
}

/* Layout Utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-content {
  max-width: var(--max-width);
}

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) {
  .px-12 { padding-left: 3rem; padding-right: 3rem; }
}
@media (min-width: 1024px) {
  .lg\:px-\[80px\] { padding-left: 80px; padding-right: 80px; }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
}

.col-span-2 { grid-column: span 2 / span 2; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.hidden { display: none; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--color-line);
  background-color: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-fg);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.wordmark:hover {
  opacity: 0.9;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-fg-muted);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-fg);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-fg);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-fg);
  border-color: var(--color-fg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-fg);
  border-color: var(--color-line);
}

.btn-secondary:hover {
  background-color: var(--color-surface-2);
  border-color: var(--color-fg-muted);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-has-icon {
  padding: 0.75rem 1.5rem;
}

.btn-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-secondary:hover .btn-icon {
  transform: translateY(3px);
}

/* Typography styles */
.t-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-fg);
}

.t-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.t-body-lg {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-fg-muted);
}

.t-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

.t-body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.t-ui {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Available projects badge */
.t-label.inline-flex {
  background-color: var(--color-accent-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  color: var(--color-fg);
  font-weight: 500;
}

/* Pulsing dot */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981; /* Emerald green */
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Gradient Words */
.accent-word {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.with-strike {
  position: relative;
  text-decoration: line-through;
  text-decoration-color: var(--color-fg-subtle);
  text-decoration-thickness: 2px;
}

/* Segment Filter Tabs */
.filter-tabs {
  display: inline-flex;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 0.25rem;
  border-radius: 9999px;
  margin-top: 2rem;
  gap: 0.25rem;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--color-fg-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--color-fg);
}

.filter-btn.active {
  background-color: var(--color-surface-2);
  color: var(--color-fg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Project Grid & Tiles */
.tile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-media {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-line);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-media img,
.tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile:hover .tile-media {
  transform: translateY(-6px);
  border-color: var(--color-fg-subtle);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.tile:hover .tile-media::after {
  opacity: 1;
}

.tile:hover .tile-media img,
.tile:hover .tile-media video {
  transform: scale(1.03);
}

.link-underline {
  text-decoration: none;
  color: var(--color-fg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 2px;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-fg);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-underline:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* Why Card Styles */
.why-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 2.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.why-card:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-line-hover);
}

.why-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border: 1px solid var(--color-line);
}

/* Process Step Rows */
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-line);
}

.step-row:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-fg-subtle);
  line-height: 1;
}

/* Styles / Capabilities Rows */
.style-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  .style-row {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }
}

.style-row:last-child {
  border-bottom: none;
}

.style-row h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Accordion (FAQ) - Mutual Exclusive standard details */
.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 1.5rem 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-fg);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-chevron {
  color: var(--color-fg-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-content {
  padding-top: 1rem;
  color: var(--color-fg-muted);
  line-height: 1.6;
}

/* Social links list */
.socials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.socials-list a {
  text-decoration: none;
  color: var(--color-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.socials-list a:hover {
  color: var(--color-fg);
}

/* Animation triggers */
.reveal {
  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);
}

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

/* Background Gradients */
.glow-effect {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
}
