:root{
  --bg:#0b0f14;
  --panel:#101823;
  --panel2:#0f1620;
  --text:#e8eef6;
  --muted:#aab6c5;
  --line:#233144;
  --brand:#6ee7ff;
  --brand2:#7c5cff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

:root[data-theme="light"]{
  --bg:#f0f9ff;
  --panel:#ffffff;
  --panel2:#e0f2fe;
  --text:#0c2340;
  --muted:#4b7ba7;
  --line:#bfdbfe;
  --brand:#0284c7;
  --brand2:#2563eb;
  --shadow: 0 10px 30px rgba(0,0,0,.1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(110,231,255,.12), transparent 60%),
              radial-gradient(1000px 500px at 90% 0%, rgba(124,92,255,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* Accessible focus styles */
:focus-visible{
  outline: 3px solid rgba(110,231,255,0.95);
  outline-offset: 3px;
}

[data-theme="light"] :focus-visible{
  outline: 3px solid rgba(2,132,199,0.9);
  outline-offset: 3px;
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin-inline:auto;
}

/* Utilities */
.muted{ color:var(--muted); }
.small{ font-size:.9rem; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(110,231,255,.35);
  background: linear-gradient(90deg, rgba(110,231,255,.18), rgba(124,92,255,.14));
  box-shadow: var(--shadow);
  cursor:pointer;
  font-weight:600;
  transition: all 0.3s ease;
  color: #ffffff;
}
.btn:hover{ 
  border-color: rgba(110, 231, 255, 0.7);
  box-shadow: 0 0 25px rgba(110, 231, 255, 0.5), inset 0 0 20px rgba(110, 231, 255, 0.15), var(--shadow);
  filter: brightness(1.1); 
  text-decoration: none;
  transform: translateY(-2px);
}
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  background: transparent;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:none;
  transition: all 0.3s ease;
}
.btn-ghost:hover{
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.15);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4), inset 0 0 20px rgba(124, 92, 255, 0.1);
  filter: brightness(1.1);
}
.btn-sm{ padding:10px 14px; font-size:.92rem; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.65);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .site-header{
  background: rgba(2, 132, 199, 0.08);
  border-bottom-color: rgba(2, 132, 199, 0.2);
}


/* Center the copyright within the footer */
.site-footer .footer-inner{
  position: relative;
}
.site-footer .footer-inner p.muted.small{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

@media (max-width: 640px) {
  .site-footer .footer-inner p.muted.small{
    position: static;
    transform: none;
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
}
[data-theme="light"] .btn{
  color: #0c2340;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.brand-mark{
  width:34px; height:34px; border-radius:10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(110,231,255,.26), rgba(124,92,255,.22));
  border:1px solid rgba(255,255,255,.10);
}
.site-nav{
  display:flex; align-items:center; gap:18px;
}

/* Language toggle buttons in nav */
.lang-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 10px; border-radius:8px; font-weight:600;
  border:1px solid rgba(255,255,255,0.06); background:transparent;
  color:inherit; text-decoration:none;
  transition: all 0.18s ease;
}
.lang-toggle:hover{ transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.lang-toggle.active{ background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

[data-theme="light"] .lang-toggle.active{ background: rgba(2,132,199,0.12); border-color: rgba(2,132,199,0.18); color: var(--text); }
.site-nav a{ color:var(--muted); font-weight:600; }
.site-nav a:hover{ color:var(--text); text-decoration:none; }

.nav-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.14);
  background: transparent;
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid var(--line);
  background: var(--panel2);
  color:var(--text);
  border-radius:12px;
  cursor:pointer;
  transition: all 0.3s ease;
  font-size:1.2rem;
}

.theme-toggle:hover{
  border-color:var(--brand);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.1), rgba(124, 92, 255, 0.08));
  box-shadow: 0 0 15px rgba(110, 231, 255, 0.2);
  transform: scale(1.05);
}

/* Sections */
.section{ padding:72px 0; }
.section-alt{
  background: linear-gradient(180deg, rgba(16,24,35,.55), rgba(16,24,35,.10));
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .section-alt{
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.08), rgba(59, 130, 246, 0.05));
  border-top-color: rgba(2, 132, 199, 0.15);
  border-bottom-color: rgba(2, 132, 199, 0.15);
}
.section-head{ margin-bottom:26px; }
.section-head h2{ margin:8px 0 8px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.kicker{
  display:inline-block;
  color: rgba(110,231,255,.95);
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.85rem;
  margin:0;
  transition: color 0.3s ease;
}

[data-theme="light"] .kicker{
  color: rgba(2, 100, 180, 0.95);
}

/* Hero */
.hero{ 
  padding:84px 0 56px; 
  position: relative;
  overflow: hidden;
}

.particles-container{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 26px;
  align-items:center;
  position: relative;
  z-index: 2;
}
.hero h1{
  font-size: clamp(2.2rem, 4.3vw, 3.4rem);
  line-height:1.05;
  margin:10px 0 10px;
}
.lead{ color:var(--muted); font-size:1.05rem; line-height:1.6; }
.hero-actions{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

.hero-visual{
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.hero-image{
  width: 100%;
  height: auto;
  display: block;
  max-width: 416px;
  border-radius: var(--radius);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.hero-visual:hover .hero-image{
  transform: scale(1.02);
  filter: brightness(1.08);
}

.hero-image{
  width: 100%;
  height: auto;
  display: block;
  max-width: 416px;
  border-radius: var(--radius);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.hero-visual:hover .hero-image{
  transform: scale(1.02);
  filter: brightness(1.08);
}

/* Hero Logo */
.hero-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 40px rgba(110, 231, 255, 0.2));
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-visual:hover .hero-logo {
  transform: scale(1.08) translateY(-8px);
  filter: drop-shadow(0 20px 60px rgba(110, 231, 255, 0.4))
          drop-shadow(0 0 30px rgba(124, 92, 255, 0.3));
}

[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 10px 40px rgba(2, 132, 199, 0.15));
}

[data-theme="light"] .hero-visual:hover .hero-logo {
  filter: drop-shadow(0 20px 60px rgba(2, 132, 199, 0.3))
          drop-shadow(0 0 30px rgba(37, 99, 235, 0.25));
}

/* Cards / Grid */
.grid{
  display:grid;
  gap: 16px;
}
.cards{ grid-template-columns: repeat(3, 1fr); }
.team-cards{ grid-template-columns: repeat(2, 1fr); }

/* Base Card Styles */
.card{
  background: linear-gradient(180deg, rgba(16,24,35,.80), rgba(15,22,32,.58));
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .card{
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(30, 144, 255, 0.04));
  border-color: rgba(2, 132, 199, 0.2);
}

.card h3{ margin:0 0 8px; }
.card p{ margin:0; color: var(--muted); line-height:1.6; }

/* Flip Card Styles */
.card-flipper{
  perspective: 1000px;
  height: 100%;
  cursor: pointer;
  position: relative;
  min-height: 180px;
}

.card-flipper .card-front,
.card-flipper .card-back{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-flipper .card-front{
  transform: rotateY(0deg);
}

.card-flipper .card-back{
  transform: rotateY(180deg);
}

.card-flipper:hover .card-front{
  transform: rotateY(-180deg);
}

.card-flipper:hover .card-back{
  transform: rotateY(0deg);
}

/* Flipped state for touch/click */
.card-flipper.flipped .card-front{
  transform: rotateY(-180deg);
}

.card-flipper.flipped .card-back{
  transform: rotateY(0deg);
}

.card-flipper .card-front h3,
.card-flipper .card-back p{
  text-align: center;
  margin: 0;
}

.placeholder{
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  display:grid; place-items:center;
  color: rgba(255,255,255,.55);
  border-radius: 14px;
}
.placeholder.small{ width:54px; height:54px; border-radius:16px; }

/* About */
.about-metrics{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin: 18px 0 20px;
  flex-wrap:wrap;
}
.metric{
  display:flex; align-items:baseline; gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.metric-value{ font-weight:900; font-size:1.4rem; color:var(--text); }
.metric-label{ color:var(--muted); }
.team-title{ margin:22px 0 10px; }

.person{ display:flex; gap:12px; align-items:center; }
.person h4{ margin:0; }
.person .muted{ margin:2px 0 0; }

/* Avatar Styling */
.avatar-wrapper{
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.avatar-image{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(110, 231, 255, 0.3);
  box-shadow: 
    0 0 30px rgba(110, 231, 255, 0.25),
    inset 0 0 20px rgba(110, 231, 255, 0.1);
  transition: all 0.3s ease;
}

.person:hover .avatar-image{
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 
    0 0 40px rgba(110, 231, 255, 0.4),
    inset 0 0 30px rgba(110, 231, 255, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.narrative{ margin-top:14px; }

/* Logos Carousel */
.logos-carousel{
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.05), transparent);
}

.carousel-track{
  display: flex;
  gap: 40px;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}

.carousel-track:hover{
  animation-play-state: paused;
}

/* Duplicate track for seamless loop */
.carousel-track::after{
  content: '';
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

.logo-item{
  flex-shrink: 0;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(124, 92, 255, 0.08));
  border: 1px solid rgba(110, 231, 255, 0.2);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(110, 231, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 200px;
}

.logo-item:hover{
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.15), rgba(124, 92, 255, 0.12));
  border-color: rgba(110, 231, 255, 0.4);
  box-shadow: 
    0 15px 40px rgba(110, 231, 255, 0.3),
    inset 0 0 30px rgba(110, 231, 255, 0.1);
}

.logo-img{
  max-height: 80px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.logo-item:hover .logo-img{
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(110, 231, 255, 0.5));
}

/* CTA */
.cta{
  background: radial-gradient(900px 500px at 20% 0%, rgba(110,231,255,.12), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(124,92,255,.10), transparent 55%),
              rgba(16,24,35,.28);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .cta{
  background: radial-gradient(900px 500px at 20% 0%, rgba(2, 132, 199, 0.15), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(37, 99, 235, 0.12), transparent 55%),
              rgba(240, 249, 255, 0.8);
  border-top-color: rgba(2, 132, 199, 0.15);
  border-bottom-color: rgba(2, 132, 199, 0.15);
}
.cta-inner{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items:center;
}
.cta-visual{ 
  height: 260px; 
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.05), rgba(124, 92, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 0 40px rgba(110, 231, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.cta-inner:hover .cta-image{
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Contact */
.contact-grid{ grid-template-columns: 1.3fr .7fr; }
.form label{ display:block; margin-bottom:12px; }
.form span{ display:block; margin-bottom:6px; color: var(--muted); font-weight:600; }
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] input,
[data-theme="light"] textarea{
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.2);
  color: var(--text);
}

input:focus, textarea:focus{
  border-color: rgba(110,231,255,.45);
  box-shadow: 0 0 0 4px rgba(110,231,255,.08);
}
.contact-list{
  list-style:none; padding:0; margin:10px 0 0;
  color: var(--muted);
}
.contact-list li{ margin:8px 0; }
.sep{
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
  margin:16px 0;
}

/* Footer */
.site-footer{
  padding:28px 0;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
}

[data-theme="light"] .site-footer{
  background: rgba(2, 132, 199, 0.08);
  border-top-color: rgba(2, 132, 199, 0.2);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
}
.footer-brand{ margin-bottom:6px; }

/* Cookie */
.cookie{
  position:fixed;
  inset:auto 0 16px 0;
  display:none;
  z-index:60;
}
.cookie-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-radius: var(--radius);
  background: rgba(16,24,35,.92);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .cta-inner{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .cards{ grid-template-columns: 1fr; }
  .team-cards{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; }

  .site-nav{
    position:absolute;
    right:20px; top:62px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:12px;
    border-radius: 16px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(11,15,20,.92);
    display:none;
    min-width: 220px;
  }
  .site-nav.is-open{ display:flex; }
}