/* ============================================
   Parallax Media — Inspired by Atlasio style
   Clean, light, premium with accent color
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f8f7ff;
  --bg-accent: linear-gradient(135deg, #1a1145 0%, #2d1b69 40%, #4c2889 100%);
  --text: #1a1a2e;
  --text-secondary: #64648b;
  --text-muted: #9494b0;
  --accent: #6d28d9;
  --accent-light: #8b5cf6;
  --accent-bg: rgba(109, 40, 217, 0.08);
  --accent-border: rgba(109, 40, 217, 0.2);
  --border: #e8e8f0;
  --border-light: #f0f0f6;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-width: 1140px;
  --nav-height: 64px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-brand span {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.lang-switcher { display: none; }

/* Dropdown language selector */
.lang-dropdown {
  position: relative;
}
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.lang-dropdown-btn:hover {
  border-color: var(--accent-border);
  background: var(--white);
}
.lang-flag-mini {
  width: 18px;
  height: auto;
  border-radius: 2px;
}
.lang-chevron {
  transition: transform 0.2s;
}
.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown-menu,
ul.lang-dropdown-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none !important;
  list-style-type: none !important;
  padding: 6px 0;
  margin: 0;
  min-width: 160px;
  z-index: 1000;
}
.lang-dropdown.open .lang-dropdown-menu,
.lang-dropdown.open ul.lang-dropdown-menu {
  display: block !important;
}
.lang-dropdown-menu.lang-dropdown-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.lang-dropdown-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.lang-dropdown-menu li:hover {
  background: var(--bg-soft);
}
.lang-dropdown-menu li img {
  width: 18px;
  height: auto;
  border-radius: 2px;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background 0.2s;
}

.nav-contact:hover { background: var(--accent-light); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); transition: all 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 4rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f0ff 0%, #ede8ff 30%, #ffffff 100%);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--accent-border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
  background: var(--white);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title .accent {
  color: var(--accent);
  display: block;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

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

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.45s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}

.hero-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ---- Section Common ---- */
.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}

.section-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-center { text-align: center; }

/* ---- About (2-col) ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1rem 0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-deco {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.about-deco span {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
}

.about-deco span:first-child { opacity: 1; }
.about-deco span:nth-child(2) { opacity: 0.6; }

/* ---- Languages Grid ---- */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.lang-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lang-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.lang-card .flag { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.lang-card .flag-img { width: 40px; height: auto; margin-bottom: 14px; display: block; border-radius: 4px; }

/* ---- Network Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-xs);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

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

/* ---- Values (dark section) ---- */
.values-section {
  background: var(--bg-accent);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.values-section .section-title {
  color: white;
}

.values-section .section-title::after {
  background: rgba(255,255,255,0.4);
}

.values-section .section-sub {
  color: rgba(255,255,255,0.6);
}

.values-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.values-left {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.value-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.value-card h3 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.value-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.55;
  font-style: italic;
}

/* ---- Contact ---- */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  align-self: flex-start;
}

.btn-submit:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ---- Divider ---- */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-tag { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links, .nav-contact, #langDropdown { display: none; }
  .nav-links.open .mobile-lang-section { display: block !important; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    z-index: 9998;
  }

  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .values-layout { grid-template-columns: 1fr; }
  .values-left { position: static; }
  .hero { min-height: 70vh; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .cards-grid, .lang-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}
