/* ========================================
   TIAS Engineering Website Styles
   Technical, Premium, Light Theme
   ======================================== */

/* CSS Variables */
:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(59, 130, 246, 0.2);
  --text: #0f172a;
  --text-muted: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --steel: #64748b;
  --warning: #f59e0b;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --container-max: 1280px;
  --container-padding: 1.5rem;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ========================================
   Animated Technical Background
   ======================================== */

.technical-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(
      900px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(37, 99, 235, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  pointer-events: none;
}

/* Technical Grid Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    1000px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 0.08),
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    1000px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 0.08),
    transparent 80%
  );
  transition: mask-image 0.15s ease, -webkit-mask-image 0.15s ease;
}

/* Circuit Lines */
.circuit-lines {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: 
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(37, 99, 235, 0.06) 50%, 
      transparent 100%
    ),
    linear-gradient(0deg, 
      transparent 0%, 
      rgba(37, 99, 235, 0.06) 50%, 
      transparent 100%
    );
  background-size: 200% 1px, 1px 200%;
  animation: circuitPulse 8s ease-in-out infinite;
}

@keyframes circuitPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.35; }
}

/* Cursor Glow */
.glow-cursor {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(37, 99, 235, 0.06) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  pointer-events: none;
  transition: left 0.1s ease-out, top 0.1s ease-out;
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .circuit-lines {
    animation: none;
  }
  
  .glow-cursor {
    display: none;
  }
}

/* Touch Device Optimization */
@media (pointer: coarse) {
  .glow-cursor {
    display: none;
  }
}

/* ========================================
   Header
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  max-height: calc(72px - 8px);
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Navigation Tabs */
.main-nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.nav-tab {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

.nav-tab.active {
  color: var(--accent-strong);
  background: rgba(37, 99, 235, 0.12);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(121, 183, 227, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ========================================
   Main Content & Sections
   ======================================== */

.main-content {
  padding-top: 72px;
  min-height: calc(100vh - 72px);
}

.section {
  display: none;
  padding: 80px 0;
  animation: fadeIn 0.4s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.section-hero {
  padding: 100px 0 120px;
}

.section-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-supporting {
  font-size: 1rem;
  color: var(--steel);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

/* Capability Tags */
.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  appearance: none;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.tag:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-showcase {
  position: relative;
  width: clamp(420px, 38vw, 640px);
  height: clamp(420px, 38vw, 640px);
}

.showcase-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(360px, 34vw, 600px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(121, 183, 227, 0.3));
}

.tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(37, 99, 235, 0.42);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
  box-shadow:
    0 0 28px rgba(37, 99, 235, 0.12),
    inset 0 0 28px rgba(37, 99, 235, 0.08);
}

.tech-ring::before,
.tech-ring::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(37, 99, 235, 0.34);
  border-radius: 50%;
}

.tech-ring::before {
  inset: 20%;
  border-style: dashed;
  animation: rotate 20s linear infinite reverse;
}

.tech-ring::after {
  inset: 40%;
  border-style: dotted;
  animation: rotate 15s linear infinite;
}

.tech-ring-2 {
  width: 140%;
  height: 140%;
  opacity: 0.8;
  animation-direction: reverse;
  animation-duration: 45s;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   Services Section
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.service-card.service-card-targeted {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 8px 24px rgba(37, 99, 235, 0.12);
}

.service-card:focus {
  outline: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--steel);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

.service-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-left: 14px;
}

.service-list .service-sublist li {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.service-list .service-sublist li::before {
  content: '-';
  color: var(--steel);
}

/* ========================================
   Projects Section
   ======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card-reverse .project-content {
  order: 1;
}

.project-card-reverse .project-image {
  order: 2;
}

.project-card-text {
  min-height: 100%;
}

.focas-card {
  grid-column: span 2;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-card.featured .project-image {
  aspect-ratio: auto;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-cta {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.project-content {
  padding: 28px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-list {
  margin-bottom: 20px;
}

.project-tag {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

/* Project Detail Pages */
.section-project-detail {
  padding-bottom: 120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 10px 16px;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-link::before {
  content: '<';
  font-family: var(--font-mono);
}

.back-link:hover {
  color: var(--accent-strong);
  background: rgba(37, 99, 235, 0.12);
  transform: translateX(-2px);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.project-detail-copy .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.project-detail-lead {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.project-detail-media {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.project-detail-media img,
.project-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-video {
  background: #0f172a;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-detail-grid article {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.project-detail-grid h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.project-detail-grid p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.project-detail-gallery {
  margin-top: 56px;
}

/* Experience Section */
.experience-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.experience-tab {
  padding: 10px 18px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.experience-tab:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

.experience-tab.active {
  color: var(--accent-strong);
  background: rgba(37, 99, 235, 0.12);
}

.experience-panel {
  display: none;
}

.experience-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.experience-panel > .gallery-grid {
  margin-top: 32px;
}

.experience-copy {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.experience-copy .subsection-title {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.experience-copy .project-desc {
  max-width: 820px;
  margin: 0 auto 20px;
}

.experience-copy .project-tags {
  justify-content: center;
}

/* Gallery Subsections */
.subsection {
  margin-bottom: 60px;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  position: relative;
  outline: none;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.gallery-item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 8px 24px rgba(37, 99, 235, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.88));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Why TIAS Section
   ======================================== */

.why-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.why-lead {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.why-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.why-highlight {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.6;
}

/* Why Features */
.why-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.why-feature {
  padding: 40px 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.why-feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Use Cases */
.use-cases {
  max-width: 900px;
  margin: 0 auto;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.use-case-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--steel);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.use-case-item:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.use-case-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ========================================
   Contact Section
   ======================================== */

.section-contact {
  padding-bottom: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.contact-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--steel);
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* Contact Form */
.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(121, 183, 227, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8b8c8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

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

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-services {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: right;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
  .section-hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .capability-tags {
    justify-content: center;
  }
  
  .project-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .focas-card {
    grid-column: span 1;
  }

  .project-detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  
  .why-features {
    grid-template-columns: 1fr;
  }
  
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-info .section-title {
    text-align: center;
  }
  
  .contact-details {
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .header-cta {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .experience-tabs {
    width: 100%;
  }

  .experience-tab {
    flex: 1 1 100%;
  }

  .project-detail-copy .section-title {
    text-align: center;
  }

  .section-kicker,
  .project-detail-lead,
  .project-detail-copy .project-tags {
    text-align: center;
    justify-content: center;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  
  .use-case-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  
  .footer-nav {
    align-items: center;
  }
  
  .footer-link {
    text-align: center;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.18;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle,
  .hero-supporting {
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }

  .capability-tags {
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
