/* ========================================
   MotioEdu - Style principal
   ======================================== */

/* --- Custom Properties --- */
:root {
  --turquoise: #028b93;
  --green: #36b06c;
  --green-alt: #25af71;
  --green-light: #76cc74;
  --green-soft: #5cc59f;
  --orange: #f5a623;
  --text: #2d3748;
  --text-light: #4a5568;
  --bg-section: #f0f9f5;
  --bg-white: #ffffff;
  --bg-dark: #1a202c;
  --header-height: 72px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

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

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

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
  height: var(--header-height);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--turquoise);
}

.header-logo img {
  height: 40px;
  width: 40px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-selector button {
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.lang-selector button:hover {
  color: var(--turquoise);
  border-color: var(--turquoise);
}

.lang-selector button.active {
  color: var(--bg-white);
  background: var(--turquoise);
  border-color: var(--turquoise);
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--green), var(--turquoise));
  color: white;
  box-shadow: 0 4px 15px rgba(2, 139, 147, 0.3);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 139, 147, 0.4);
}

.btn-cta-outline {
  background: transparent;
  color: var(--turquoise);
  border: 2px solid var(--turquoise);
}

.btn-cta-outline:hover {
  background: var(--turquoise);
  color: white;
}

.btn-cta-disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-cta-disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(2, 139, 147, 0.3);
}

.header-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 40px 20px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--turquoise);
}

.mobile-menu .lang-selector {
  margin-top: 20px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #e8f5ef 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--turquoise);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mockup {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

/* Phone Mockup CSS */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0d0d1a;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: white;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f8f8;
}

/* --- Concept Section --- */
.concept {
  padding: 100px 0;
  background: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.concept-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-section);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.concept-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-light), var(--green-soft));
  border-radius: 20px;
}

.concept-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.concept-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--turquoise);
}

.concept-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Gallery Section --- */
.gallery {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-section) 0%, #e0f2ec 100%);
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  margin-top: 20px;
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.carousel-card:hover {
  transform: translateY(-4px);
}

.carousel-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.carousel-card .card-label {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--turquoise);
  text-align: center;
  font-family: 'Nunito', sans-serif;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--turquoise);
  background: white;
  color: var(--turquoise);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--turquoise);
  color: white;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Benefits Section --- */
.benefits {
  padding: 100px 0;
  background: var(--bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--bg-section);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.benefit-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--turquoise), var(--green));
  border-radius: 16px;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-text h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-text p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- CTA Final Section --- */
.cta-final {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green), var(--turquoise));
  text-align: center;
  color: white;
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .btn-cta {
  background: white;
  color: var(--turquoise);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-final .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: white;
}

.footer-logo img {
  height: 36px;
  width: 36px;
}

.footer-contact a {
  color: var(--green-soft);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--green-light);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
}

/* ========================================
   Responsive - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .concept-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

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

  .carousel-card {
    flex: 0 0 280px;
  }
}

/* ========================================
   Responsive - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero .container {
    flex-direction: row;
  }

  .hero-content h1 {
    font-size: 3.8rem;
  }

  .container {
    padding: 0 40px;
  }

  .carousel-card {
    flex: 0 0 300px;
  }

  .cta-final h2 {
    font-size: 2.5rem;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-mockup {
    flex: none;
    margin-top: 20px;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

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

  .concept {
    padding: 60px 0;
  }

  .gallery {
    padding: 60px 0;
  }

  .benefits {
    padding: 60px 0;
  }

  .cta-final {
    padding: 60px 0;
  }

  .cta-final h2 {
    font-size: 1.6rem;
  }

  .footer {
    padding: 40px 0 20px;
  }
}

/* Desktop: hide hamburger for nav */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}
