/* ==========================================================================
   Astriva Technologies — Inner Pages Stylesheet
   pages.css
   Shared styles for all inner pages (about, portfolio, team, contact, etc.)
   ========================================================================== */


/* ==========================================================================
   PAGE HERO — Shared across all inner pages
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + clamp(60px, 8vh, 100px)) 0 clamp(60px, 8vh, 100px);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #0B1B4E 0%, #070E22 50%, var(--bg-primary) 100%);
}

/* Subtle grid lines */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Fade to page background */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.page-hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(79, 142, 247, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 60px);
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 28px;
}

.page-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-top: 12px;
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

/* Story Section */
.about-story {
  padding: var(--section-pad-y) 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story-text .section-badge { margin-bottom: 16px; }

.about-story-body {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-story-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
  margin-top: 28px;
}

/* SVG Illustration placeholder */
.about-story-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated glow orb inside the visual frame */
.about-visual-orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(79, 142, 247, 0.4) 0%, rgba(34, 211, 238, 0.15) 50%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.about-visual-orb::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(79, 142, 247, 0.2);
  animation: orbit 8s linear infinite;
}

.about-visual-orb::after {
  content: '';
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.15);
  animation: orbitReverse 12s linear infinite;
}

.about-visual-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Values Section */
.about-values {
  padding: var(--section-pad-y) 0;
  background: var(--bg-section-alt);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 142, 247, 0.35);
  box-shadow: 0 16px 40px rgba(79, 142, 247, 0.1);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.value-icon--blue   { background: rgba(79, 142, 247, 0.12); color: var(--color-primary); }
.value-icon--cyan   { background: rgba(34, 211, 238, 0.12); color: var(--color-accent); }
.value-icon--purple { background: rgba(167, 139, 250, 0.12); color: var(--color-ai); }

.value-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.value-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Industries Section */
.about-industries {
  padding: var(--section-pad-y) 0;
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

.industry-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
  text-align: center;
}

.industry-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: 0 12px 30px rgba(79, 142, 247, 0.12);
}

.industry-tile-icon {
  font-size: 28px;
  line-height: 1;
}

.industry-tile-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Presence Section */
.about-presence {
  padding: var(--section-pad-y) 0;
  background: var(--bg-section-alt);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.presence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.presence-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
}

.presence-flag {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.presence-city {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.presence-region {
  font-size: 14px;
  color: var(--text-secondary);
}

.presence-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 12px;
}

.presence-badge--india  { background: rgba(255, 153, 51, 0.15); color: #ff9933; }
.presence-badge--canada { background: rgba(34, 211, 238, 0.15); color: var(--color-accent); }


/* ==========================================================================
   PORTFOLIO PAGE
   ========================================================================== */

.portfolio-section {
  padding: var(--section-pad-y) 0;
}

/* Filter Tabs */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.filter-btn:hover {
  border-color: rgba(79, 142, 247, 0.5);
  color: var(--text-primary);
  background: rgba(79, 142, 247, 0.08);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 20px 50px rgba(79, 142, 247, 0.1);
}

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

/* Featured card — spans 2 columns */
.project-card--featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  background: linear-gradient(135deg, #0D1030 0%, #0A1628 100%);
  border-color: rgba(79, 142, 247, 0.25);
}

.project-card--featured-purple {
  background: linear-gradient(135deg, #0D0820 0%, #0A1628 100%);
  border-color: rgba(167, 139, 250, 0.25);
}

.project-card--featured::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 1;
}

.project-card--featured-purple::before {
  background: linear-gradient(90deg, var(--color-ai), var(--color-primary));
  opacity: 1;
}

.project-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.project-card-icon--blue   { background: rgba(79, 142, 247, 0.12); color: var(--color-primary); }
.project-card-icon--cyan   { background: rgba(34, 211, 238, 0.12); color: var(--color-accent); }
.project-card-icon--purple { background: rgba(167, 139, 250, 0.12); color: var(--color-ai); }
.project-card-icon--green  { background: rgba(52, 211, 153, 0.12); color: #34D399; }
.project-card-icon--orange { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.project-card-icon--red    { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.project-card-body { flex: 1; }

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.project-tag--healthcare { background: rgba(52, 211, 153, 0.12); color: #34D399; border: 1px solid rgba(52,211,153,0.2); }
.project-tag--ecommerce  { background: rgba(79, 142, 247, 0.12); color: var(--color-primary); border: 1px solid rgba(79,142,247,0.2); }
.project-tag--edtech     { background: rgba(167, 139, 250, 0.12); color: var(--color-ai); border: 1px solid rgba(167,139,250,0.2); }
.project-tag--legal      { background: rgba(251, 146, 60, 0.12); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }
.project-tag--logistics  { background: rgba(34, 211, 238, 0.12); color: var(--color-accent); border: 1px solid rgba(34,211,238,0.2); }
.project-tag--events     { background: rgba(244, 63, 94, 0.12); color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); }
.project-tag--enterprise { background: rgba(148, 163, 184, 0.12); color: var(--text-secondary); border: 1px solid rgba(148,163,184,0.2); }
.project-tag--devops     { background: rgba(255, 165, 0, 0.12); color: #ffa500; border: 1px solid rgba(255,165,0,0.2); }

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card--featured .project-title { font-size: 22px; }

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.project-features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

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

.tech-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.15);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Portfolio Stat Strip */
.portfolio-stats {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 64px;
}

.portfolio-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

/* Hidden project cards (for filter) */
.project-card[data-hidden="true"] {
  display: none;
}


/* ==========================================================================
   TEAM PAGE
   ========================================================================== */

.team-section {
  padding: var(--section-pad-y) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.team-grid-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Team Card */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent-color, var(--color-primary)), transparent);
}

.team-card--founder {
  --card-accent-color: var(--color-primary);
  grid-column: span 2;
  flex-direction: row;
  text-align: left;
  align-items: flex-start;
  padding: 40px;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.team-card--founder:hover { border-color: rgba(79, 142, 247, 0.4); }
.team-card--sales:hover   { border-color: rgba(34, 211, 238, 0.4); }
.team-card--bd:hover      { border-color: rgba(167, 139, 250, 0.4); }

.team-card--sales { --card-accent-color: var(--color-accent); }
.team-card--bd    { --card-accent-color: var(--color-ai); }

/* CSS Gradient Orb Avatar */
.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card--founder .team-avatar { width: 130px; height: 130px; }

.team-avatar--blue {
  background: radial-gradient(circle at 38% 38%, #a8d0ff 0%, #4F8EF7 35%, #1a3a8f 65%, #060c1a 100%);
  box-shadow: 0 0 40px rgba(79, 142, 247, 0.55), 0 0 80px rgba(79, 142, 247, 0.2);
}

.team-avatar--cyan {
  background: radial-gradient(circle at 38% 38%, #afffff 0%, #22D3EE 35%, #0e7490 65%, #060c1a 100%);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.55), 0 0 80px rgba(34, 211, 238, 0.2);
}

.team-avatar--purple {
  background: radial-gradient(circle at 38% 38%, #e0ccff 0%, #A78BFA 35%, #5b21b6 65%, #060c1a 100%);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.55), 0 0 80px rgba(167, 139, 250, 0.2);
}

/* SVG pattern inside orb */
.team-avatar svg {
  width: 44px;
  height: 44px;
  opacity: 0.35;
  position: absolute;
}

.team-card--founder .team-avatar svg { width: 52px; height: 52px; }

/* Orb pulse ring */
.team-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: pulse 3s ease-in-out infinite;
}

.team-card-content { flex: 1; }
.team-card--founder .team-card-content { padding-left: 8px; }

.team-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.team-card--sales .team-role { color: var(--color-accent); }
.team-card--bd    .team-role { color: var(--color-ai); }

.team-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.team-card--founder .team-skills { justify-content: flex-start; }

.team-skill-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--text-secondary);
}

.team-card--sales .team-skill-tag {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.2);
}

.team-card--bd .team-skill-tag {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

/* AI Agents Section */
.ai-agents-section {
  padding: var(--section-pad-y) 0;
  background: var(--bg-section-alt);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

.ai-agents-banner {
  background: linear-gradient(135deg, #0D1030 0%, #0A1628 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-agents-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.ai-agents-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
}

.ai-agents-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ai);
}

.agent-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ai);
  animation: pulse 2s ease-in-out infinite;
}

/* Team CTA */
.team-cta-strip {
  padding: 64px 0;
  text-align: center;
}

.team-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.team-cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-section {
  padding: var(--section-pad-y) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info */
.contact-info-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.4);
}

.contact-info-item:last-of-type { border-bottom: none; }

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-info-value a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info-value a:hover { text-decoration: underline; }

.contact-availability {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.availability-text {
  font-size: 13px;
  color: #34D399;
  font-weight: 600;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(6, 12, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.12);
}

.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='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option { background: #0A1628; color: var(--text-primary); }

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

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* Office Cards */
.offices-section {
  padding: 64px 0;
  background: var(--bg-section-alt);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.office-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.35);
}

.office-flag { font-size: 32px; margin-bottom: 14px; display: block; }
.office-city { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.office-region { font-size: 13px; color: var(--text-secondary); }

/* FAQ Accordion */
.faq-section { padding: var(--section-pad-y) 0; }

.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: rgba(79, 142, 247, 0.35); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */

.services-page-section { padding: var(--section-pad-y) 0; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.4);
}

.service-detail:last-child { border-bottom: none; }
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.service-detail-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.service-detail-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-detail-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.service-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.service-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Service Visual Box */
.service-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-visual-icon {
  font-size: 80px;
  opacity: 0.08;
  position: absolute;
}

.service-visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.service-visual-big-icon {
  width: 72px;
  height: 72px;
  color: var(--color-primary);
  margin: 0 auto 16px;
}

.service-visual-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.service-visual--cyan .service-visual-big-icon { color: var(--color-accent); }
.service-visual--purple .service-visual-big-icon { color: var(--color-ai); }


/* ==========================================================================
   BLOG PAGE
   ========================================================================== */

.blog-section { padding: var(--section-pad-y) 0; }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 64px;
}

.blog-empty-state {
  text-align: center;
  padding: 80px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.blog-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--color-primary);
  animation: glowPulse 3s ease-in-out infinite;
}

.blog-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-empty-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.blog-notify-form {
  display: flex;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.blog-notify-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(6, 12, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
}

.blog-notify-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.blog-notify-input::placeholder { color: var(--text-muted); }

.blog-topics {
  margin-top: 64px;
  text-align: center;
}

.blog-topics-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-topic-pill {
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: default;
  transition: border-color var(--transition), color var(--transition);
}

.blog-topic-pill:hover {
  border-color: rgba(79, 142, 247, 0.4);
  color: var(--text-primary);
}


/* ==========================================================================
   CAREERS PAGE
   ========================================================================== */

.careers-section { padding: var(--section-pad-y) 0; }

.why-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.why-work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.why-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.35);
}

.why-work-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.why-work-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.why-work-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Job Listings */
.jobs-section { padding: 64px 0; background: var(--bg-section-alt); border-top: 1px solid rgba(30,58,95,0.5); }

.jobs-list { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }

.job-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.job-item.open { border-color: rgba(79, 142, 247, 0.35); }

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
}

.job-header-left { flex: 1; }

.job-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.job-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--color-primary);
}

.job-expand-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.job-expand-btn .job-expand-icon { transition: transform var(--transition); }
.job-item.open .job-expand-icon { transform: rotate(45deg); }

.job-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.job-item.open .job-body { max-height: 600px; }

.job-body-inner {
  padding: 0 28px 28px;
  border-top: 1px solid rgba(30, 58, 95, 0.4);
}

.job-body-inner h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 20px 0 10px;
}

.job-body-inner ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-body-inner ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.job-body-inner ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 12px;
  top: 1px;
}

.job-apply-btn {
  margin-top: 20px;
  padding: 10px 28px;
  font-size: 14px;
}

/* General CV card */
.job-general-card {
  background: linear-gradient(135deg, #0D1030 0%, #0A1628 100%);
  border: 1px dashed rgba(79, 142, 247, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.job-general-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.job-general-text p {
  font-size: 14px;
  color: var(--text-secondary);
}


/* ==========================================================================
   LEGAL PAGES (Privacy Policy & Terms)
   ========================================================================== */

.legal-section { padding: var(--section-pad-y) 0; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sticky TOC */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.legal-toc-link:hover,
.legal-toc-link.active {
  background: rgba(79, 142, 247, 0.1);
  color: var(--color-primary);
}

/* Legal Content */
.legal-content { max-width: 100%; }

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.legal-section-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(30, 58, 95, 0.4);
}

.legal-section-block:last-child { border-bottom: none; }

.legal-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section-num {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 800;
  background: rgba(79, 142, 247, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.legal-content ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--color-primary);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }


/* ==========================================================================
   RESPONSIVE — Pages
   ========================================================================== */

@media (max-width: 1023px) {
  .about-story-grid,
  .contact-grid,
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }

  .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .service-detail--reverse { direction: ltr; }

  .team-card--founder { flex-direction: column; align-items: center; text-align: center; }
  .team-card--founder .team-skills { justify-content: center; }
  .team-card--founder .team-card-content { padding-left: 0; }

  .legal-toc { position: static; }

  .why-work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .values-grid,
  .presence-grid,
  .offices-grid { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card--featured,
  .project-card--featured-purple { grid-column: span 1; flex-direction: column; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card--founder { grid-column: span 1; }
  .team-grid-secondary { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .blog-notify-form { flex-direction: column; }

  .why-work-grid { grid-template-columns: 1fr 1fr; }

  .job-general-card { flex-direction: column; text-align: center; }

  .ai-agents-banner { padding: 32px 20px; }
}

@media (max-width: 479px) {
  .why-work-grid { grid-template-columns: 1fr; }
  .portfolio-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
}
