@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

/* ==================== RESET & VARIABLES ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #18181b;
  --bg-elevated: #1f1f23;
  --bg-card: #27272a;
  --border: #3f3f46;
  --border-light: rgba(255, 255, 255, 0.04);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #00A6D5;
  --accent-hover: #0093be;
  --accent-glow: rgba(0, 166, 213, 0.15);
  --accent-subtle: rgba(0, 166, 213, 0.08);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "IBM Plex Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 24px;
  height: 17px;
}

.logo-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.logo-dots span:nth-child(1),
.logo-dots span:nth-child(4) {
  background: transparent;
}

.logo-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  display: block;
}

.logo-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.lang-toggle button {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 48px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 24, 27, 0.2) 0%,
    rgba(24, 24, 27, 0.7) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 159, 213, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 159, 213, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 159, 213, 0.12),
    transparent
  );
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-cta {
  color: #fff !important;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 140px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-band {
  background: rgba(255, 255, 255, 0.015);
}

/* White body section (Medra-style) */
.section-white {
  background: #f9fafb;
}

.section-white .section-label {
  color: var(--accent);
}
.section-white .section-title {
  color: #18181b;
}
.section-white .section-desc {
  color: #6b7280;
}

.section-white .card {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.section-white .card:hover {
  background: #fff;
  border-color: #d1d5db;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.section-white .card-icon {
  background: rgba(0, 159, 213, 0.08);
}

.section-white .card-tag {
  background: rgba(0, 159, 213, 0.08);
}

.section-white .card h3 {
  color: #18181b;
}
.section-white .card p {
  color: #6b7280;
}

/* White section — technology steps */
.section-white .tech-number {
  color: rgba(0, 159, 213, 0.5);
}
.section-white .tech-content h3 {
  color: #18181b;
}
.section-white .tech-content p {
  color: #6b7280;
}
.section-white .tech-connector {
  background: #d1d5db;
}
.section-white .tech-connector::after {
  background: var(--accent);
  opacity: 0.8;
}

/* White section — value cards (careers) */
.section-white .value-card {
  background: #fff;
  border-color: #e5e7eb;
}
.section-white .value-card:hover {
  background: #fff;
  border-color: #d1d5db;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.section-white .value-card h4 {
  color: var(--accent);
}
.section-white .value-card p {
  color: #6b7280;
}

/* White section — job cards (careers) */
.section-white .job-card {
  background: #fff;
  border-color: #e5e7eb;
}
.section-white .job-card:hover {
  background: #fff;
  border-color: #d1d5db;
}
.section-white .job-info h4 {
  color: #18181b;
}
.section-white .job-meta span {
  color: #9ca3af;
}
.section-white .job-card .btn-outline {
  border-color: #d1d5db;
  color: #374151;
}
.section-white .job-card .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 159, 213, 0.04);
}

/* White section — contact */
.section-white .contact-info h3 {
  color: #18181b;
}
.section-white .contact-item-label {
  color: var(--accent);
}
.section-white .contact-item-value {
  color: #6b7280;
}
.section-white .contact-item-value a {
  color: #18181b;
}
.section-white .contact-item-value a:hover {
  color: var(--accent);
}

/* White section — forms */
.section-white .form-group label {
  color: #6b7280;
}
.section-white .form-group input,
.section-white .form-group textarea,
.section-white .form-group select {
  background: #fff;
  border-color: #e5e7eb;
  color: #18181b;
}
.section-white .form-group input:focus,
.section-white .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 213, 0.1);
  background: #fff;
}
.section-white .form-group input::placeholder,
.section-white .form-group textarea::placeholder {
  color: #9ca3af;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}

.section-title {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-align: center;
  line-height: 1.15;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 72px;
  text-align: center;
}

/* ==================== CARDS ==================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  padding: 44px 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent-subtle);
  color: var(--accent);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: 140px 48px;
  text-align: center;
  position: relative;
  background: #e8ecf0;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(0, 159, 213, 0.05) 0%,
    transparent 70%
  );
}

.cta-section .cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: #18181b;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.cta-section p {
  font-size: 17px;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  color: #fff;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text);
}

/* ==================== TIMELINE ==================== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
}

.timeline-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-item .timeline-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== FORM ==================== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  background: rgba(255, 255, 255, 0.03);
}

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

/* ==================== GRID LAYOUTS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==================== PAGE HEADER (inner pages) ==================== */
.page-header {
  padding: 180px 48px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 30% 0%,
      rgba(0, 159, 213, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 100%,
      rgba(0, 159, 213, 0.05) 0%,
      transparent 50%
    ),
    var(--bg);
}

.page-header .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 159, 213, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 159, 213, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(80px, 80px);
  }
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 159, 213, 0.06) 0%,
    transparent 50%
  );
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.page-header .hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 159, 213, 0.3), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(0, 159, 213, 0.2), transparent),
    radial-gradient(2px 2px at 50% 70%, rgba(0, 159, 213, 0.25), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(0, 159, 213, 0.15), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(0, 159, 213, 0.2), transparent),
    radial-gradient(2px 2px at 40% 10%, rgba(0, 159, 213, 0.2), transparent),
    radial-gradient(2px 2px at 70% 90%, rgba(0, 159, 213, 0.15), transparent);
  animation: particleFloat 12s ease-in-out infinite alternate;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.6;
  }
}

.page-header-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  animation: lineSweep 4s ease-in-out infinite;
}

@keyframes lineSweep {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.4;
  }
}

.page-header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== ANIMATIONS (AOS-style) ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .cards,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .hero {
    padding: 120px 24px 60px;
  }
  .section {
    padding: 100px 24px;
  }
  .page-header {
    padding: 140px 24px 60px;
  }
  .cards,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cta-section {
    padding: 100px 24px;
  }
  .section-desc {
    margin-bottom: 48px;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 24px;
  }
  .footer-links {
    justify-content: center;
  }
}
