/* ============================================
   SynaptIQ s.r.o. — Neural Elegance Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-deep: #040810;
  --bg-primary: #060a14;
  --bg-secondary: #0c1222;
  --bg-tertiary: #111a2e;
  --bg-card: rgba(12, 18, 34, 0.75);
  --bg-card-hover: rgba(18, 28, 50, 0.85);
  --bg-glass: rgba(10, 16, 30, 0.6);
  --text-primary: #e4e8f0;
  --text-secondary: #8490a8;
  --text-muted: #5a6478;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-purple: #7c3aed;
  --accent-indigo: #4f46e5;
  --gradient-main: linear-gradient(135deg, #2563eb, #06b6d4, #7c3aed);
  --gradient-text: linear-gradient(135deg, #06b6d4, #2563eb, #7c3aed);
  --gradient-card: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.08));
  --gradient-border: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.4));
  --border-subtle: rgba(100, 130, 180, 0.12);
  --border-hover: rgba(6, 182, 212, 0.3);
  --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.15);
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
  --glow-blue: 0 0 30px rgba(37, 99, 235, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --section-padding: clamp(5rem, 10vw, 9rem);
  --container-width: 1180px;
  --nav-height: 80px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #22d3ee;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Neural Background Decorations --- */
.neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.neural-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
  animation: neuralDrift 30s ease-in-out infinite;
}

.neural-bg::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(6, 182, 212, 0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 45%, rgba(124, 58, 237, 0.2) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 10%, rgba(37, 99, 235, 0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(6, 182, 212, 0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 25%, rgba(124, 58, 237, 0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 75%, rgba(37, 99, 235, 0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 92% 80%, rgba(6, 182, 212, 0.18) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 90%, rgba(124, 58, 237, 0.15) 50%, transparent 50%);
  animation: neuralPulse 8s ease-in-out infinite;
}

@keyframes neuralDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(0.5deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.3deg); }
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Grid Pattern Overlay --- */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(100, 130, 180, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 130, 180, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 10, 20, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.08);
}

.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  border: 1px solid var(--border-subtle);
}

.lang-switcher a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.lang-switcher a:hover {
  color: var(--text-secondary);
}

.lang-switcher a.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 750px;
  animation: heroFadeIn 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero h1 .line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

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

/* Decorative hero node */
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
}

.hero-node {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: nodeFloat 6s ease-in-out infinite;
}

.hero-node:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(6, 182, 212, 0.15);
  animation-delay: 0s;
}

.hero-node:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(37, 99, 235, 0.15);
  animation-delay: -2s;
}

.hero-node:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(124, 58, 237, 0.2);
  animation-delay: -4s;
}

.hero-node:nth-child(4) {
  width: 12px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-cyan);
  border: none;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

@keyframes nodeFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-border);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  transform: translateY(-4px);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  transition: all var(--transition-smooth);
}

.card:hover .card-icon {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--glow-cyan);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Card accent variations */
.card.accent-purple .card-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.15);
}

.card.accent-purple:hover .card-icon {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--glow-purple);
}

.card.accent-purple .card-icon svg {
  stroke: var(--accent-purple);
}

.card.accent-blue .card-icon {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
}

.card.accent-blue:hover .card-icon {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--glow-blue);
}

.card.accent-blue .card-icon svg {
  stroke: var(--accent-blue);
}

.card.accent-indigo .card-icon {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}

.card.accent-indigo:hover .card-icon {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.15);
}

.card.accent-indigo .card-icon svg {
  stroke: var(--accent-indigo);
}

/* ============================================
   WHY SECTION (Prečo SynaptIQ)
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.why-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.why-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.news-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.news-card-image {
  height: 180px;
  background: var(--gradient-card);
  position: relative;
  overflow: hidden;
}

.news-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.news-card-image .news-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(6, 182, 212, 0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 50% 60%, rgba(37, 99, 235, 0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 75% 25%, rgba(124, 58, 237, 0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 40% 80%, rgba(6, 182, 212, 0.2) 50%, transparent 50%);
}

.news-card-body {
  padding: 1.5rem;
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.news-link:hover {
  gap: 0.7rem;
}

.news-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-brand .footer-logo {
  height: 50px;
  width: auto;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

/* ============================================
   PAGE HEADER (for subpages)
   ============================================ */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.breadcrumb .sep {
  opacity: 0.4;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.about-intro-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-visual {
  width: 300px;
  height: 300px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
}

.brain-visual::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.15);
  animation: nodeFloat 6s ease-in-out infinite;
}

.brain-visual::after {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.15);
  animation: nodeFloat 6s ease-in-out infinite -3s;
}

.brain-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
  animation: pulseDot 3s ease-in-out infinite;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.55rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::before {
  border-color: var(--accent-purple);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-item:nth-child(even) .timeline-year {
  color: var(--accent-purple);
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Team / Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.expertise-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

.expertise-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.expertise-item .expertise-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.expertise-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.expertise-item p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.06);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.project-card-header {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-header.ai-theme {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.project-card-header.auto-theme {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
}

.project-card-header.soft-theme {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.project-card-header svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255, 255, 255, 0.2);
  fill: none;
  stroke-width: 1;
}

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-tag.tag-ai { color: var(--accent-cyan); }
.project-tag.tag-auto { color: var(--accent-purple); }
.project-tag.tag-soft { color: var(--accent-blue); }

.project-card-body {
  padding: 1.5rem;
}

.project-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.project-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.03em;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-smooth);
}

.contact-info-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.contact-info-card .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .ci-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 1.5;
}

.contact-info-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(100, 130, 180, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 130, 180, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-placeholder span {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 1;
}

.reg-details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.reg-details h4 {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reg-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

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

.reg-row .reg-label {
  color: var(--text-muted);
}

.reg-row .reg-value {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
}

/* ============================================
   NEWS PAGE
   ============================================ */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-article {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  transition: all var(--transition-smooth);
}

.news-article:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.news-article-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 150px;
  background: var(--gradient-card);
  position: relative;
}

.news-article-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 60% 60%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.news-article-content .news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.news-meta .news-date {
  margin-bottom: 0;
}

.news-meta .news-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-purple);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  letter-spacing: 0.05em;
}

.news-article h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.news-article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 1px;
  background: var(--gradient-main);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    order: -1;
  }

  .brain-visual {
    width: 200px;
    height: 200px;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(6, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    gap: 0.25rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .menu-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .news-article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news-article-image {
    height: 120px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .lang-switcher {
    display: none;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }

/* Shimmer effect for decorative lines */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 182, 212, 0.3) 25%,
    rgba(124, 58, 237, 0.3) 50%,
    rgba(6, 182, 212, 0.3) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
