/* ========================================
   TOONATEK — Redesign
   ======================================== */

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

:root {
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.12);
  --hero-bg: #0b0b1a;
  --hero-surface: rgba(255, 255, 255, 0.08);
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #a1a1a6;
  --border: rgba(0, 0, 0, 0.06);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --nav-height: 56px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.3s var(--ease), color 0.4s var(--ease);
}

.nav-scrolled .nav-logo {
  color: var(--text);
}

.nav-logo:hover {
  opacity: 0.7;
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
  letter-spacing: 0.01em;
}

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

.nav-links a:hover {
  color: #fff;
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s var(--ease);
}

.nav-scrolled .lang-toggle {
  color: var(--text-secondary);
  border-color: var(--border);
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.nav-scrolled .lang-toggle:hover {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text);
}

.lang-divider {
  opacity: 0.3;
  font-weight: 300;
}

.lang-option {
  transition: all 0.3s var(--ease);
}

.lang-option.active {
  color: #fff;
  font-weight: 600;
}

.nav-scrolled .lang-option.active {
  color: var(--text);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-scrolled .mobile-menu-btn span {
  background: var(--text);
}

.mobile-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(2.3px, 2.3px);
}

.mobile-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(2.3px, -2.3px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: opacity 0.3s var(--ease);
}

.mobile-menu a:hover {
  opacity: 0.5;
}

.mobile-lang {
  margin-top: 12px;
  font-size: 0.875rem;
  padding: 8px 20px;
  color: var(--text-secondary);
  border-color: var(--border);
}

.mobile-lang:hover {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.15);
}

.mobile-lang .lang-option.active {
  color: var(--text);
}


/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(79, 70, 229, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 550px;
  height: 550px;
  right: -5%;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, rgba(79, 70, 229, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08) translate(-12px, -8px);
    opacity: 1;
  }
}

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

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 16px;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  padding: 12px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  background: #fff;
  color: var(--hero-bg);
  border-color: #fff;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}


/* ========================================
   SECTIONS (shared)
   ======================================== */

.section {
  padding: 140px 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 56px;
}


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

.services {
  background: var(--bg);
}

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

.service-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 44px 36px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 12px;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

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


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

.contact {
  background: var(--bg);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 0;
}

.contact-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 32px;
}

.contact-email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--primary);
  padding: 14px 36px;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.contact-email:hover {
  background: var(--primary);
  color: #fff;
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-logo {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  letter-spacing: -0.02em;
}

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


/* ========================================
   ANIMATIONS
   ======================================== */

.anim-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.anim-delay-1 { animation-delay: 0.12s; }
.anim-delay-2 { animation-delay: 0.24s; }
.anim-delay-3 { animation-delay: 0.36s; }
.anim-delay-4 { animation-delay: 0.48s; }
.anim-delay-5 { animation-delay: 0.65s; }

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-en], [data-ro] {
  transition: opacity 0.35s ease;
}

.lang-fading {
  opacity: 0 !important;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

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

  .service-card {
    padding: 32px 28px;
    border-radius: 16px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    padding: 10px;
  }

  .hero-orb {
    width: 300px;
    height: 300px;
    right: -15%;
    bottom: 10%;
  }

  .contact-inner {
    padding: 40px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
