/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #4f46e5;
  --primary-color-alt: #6366f1;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --text-color: #1f2937;
  --text-color-light: #6b7280;
  --white-color: #ffffff;
  --black-color: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.75rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --header-height: 4.5rem;
  --section-padding: 6rem 0;
  --container-margin: 0 1.5rem;
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Border radius */
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white-color);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: var(--container-margin);
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
}

.section {
  padding: var(--section-padding);
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--white-color);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  width: 2.5rem;
  height: 2.5rem;
}

.nav__title {
  font-size: 1.25rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -0.5rem;
  left: 0;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  z-index: -1;
}

.hero__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  z-index: 1;
}

.hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1-5);
  line-height: 1.1;
}

.hero__description {
  font-size: 1.125rem;
  color: var(--text-color-light);
  margin-bottom: var(--mb-2-5);
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.stat__label {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone {
  max-width: 300px;
  filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.2));
  animation: float 6s ease-in-out infinite;
}

.hero__floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-note {
  position: absolute;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.6;
  animation: float 4s ease-in-out infinite;
}

.note-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.note-2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.note-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.note-4 {
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== TRAINING MODULES SECTION ===== */
.training {
  background: var(--gray-50);
}

.training__module {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--white-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.training__module:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.training__module:last-child {
  margin-bottom: 0;
}

.training__module--reverse {
  direction: rtl;
}

.training__module--reverse .training__content,
.training__module--reverse .training__image {
  direction: ltr;
}

.training__content {
  padding: 1rem;
  text-align: left;
}

.training__icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mb-1);
}

.training__icon i {
  font-size: 2rem;
  color: var(--white-color);
}

.training__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--text-color);
}

.training__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.7;
}

.training__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--mb-2);
}

.training__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}

.training__feature i {
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.training__feature span {
  color: var(--text-color);
  font-size: var(--normal-font-size);
}

.training__image {
  text-align: center;
}

.training__image img {
  max-width: 300px;
  /* filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.2)); */
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.training__module:hover .training__image img {
  transform: scale(1.02);
}

/* ===== FEATURES SECTION ===== */
.features {
  background: var(--white-color);
}

.features__container {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature__card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-200);
}

.feature__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature__icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1-5);
}

.feature__icon i {
  font-size: 1.5rem;
  color: var(--white-color);
}

.feature__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.feature__description {
  color: var(--text-color-light);
  line-height: 1.7;
}

/* ===== DOWNLOAD SECTION ===== */
.download {
  background: var(--gradient-primary);
  color: var(--white-color);
}

.download__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.download__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.download__description {
  font-size: 1.125rem;
  /* margin-bottom: var(--mb-2-5); */
  opacity: 0.9;
  line-height: 1.7;
}

.download__buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.download__channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.download__btn {
  display: block;
  transition: var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white-color);
  padding: 0.25rem;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.download__btn img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.download__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.download__qr:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.qr__image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.download__channel-name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--white-color);
  opacity: 0.9;
  text-align: center;
  white-space: nowrap;
}

.download__image img {
  max-width: 400px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--white-color);
}

.about__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1-5);
}

.about__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__feature i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.about__feature h4 {
  font-size: 1.125rem;
  margin-bottom: var(--mb-0-25);
}

.about__feature p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.about__image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: var(--mb-2);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__right {
  display: flex;
  justify-content: center;
}

.footer__links {
  display: flex;
  gap: 3rem;
}

.footer__brand {
  margin-bottom: 0;
}

.footer__logo {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--mb-0-5);
}

.footer__title {
  font-size: 1.25rem;
  color: var(--white-color);
  margin-bottom: var(--mb-0-5);
}

.footer__description {
  color: var(--gray-300);
  font-size: var(--small-font-size);
  line-height: 1.6;
}

.footer__social-section {
  margin-top: 0;
}

.footer__social-title {
  font-size: 1.125rem;
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.footer__social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer__social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__social-qr {
  width: 70px;
  height: 70px;
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-qr:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer__social-qr img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.footer__social-name {
  font-size: var(--small-font-size);
  color: var(--gray-300);
  text-align: center;
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--mb-1);
  text-align: center;
}

.footer__copyright {
  color: var(--gray-300);
  font-size: var(--small-font-size);
}

.footer__group-title {
  font-size: 1.125rem;
  color: var(--white-color);
  margin-bottom: var(--mb-1);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: var(--gray-300);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--white-color);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large devices */
@media screen and (max-width: 992px) {
  :root {
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
  }
  
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
  
  .hero__container,
  .download__container,
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero__image {
    order: -1;
  }
  
  .hero__stats {
    justify-content: center;
  }
  
  .features__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .training__module {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Medium devices */
@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --section-padding: 4rem 0;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white-color);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: var(--z-modal);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .nav__link {
    font-size: 1.25rem;
  }
  
  .nav__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .hero__stats {
    gap: 1rem;
  }
  
  .features__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .training__module {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem;
    text-align: left;
  }
  
  .training__module--reverse {
    direction: ltr;
  }
  
  .training__module--reverse .training__content,
  .training__module--reverse .training__image {
    direction: ltr;
  }
  
  .download__buttons {
    gap: 1rem;
  }
  
  .download__channel {
    gap: 0.5rem;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__social-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Small devices */
@media screen and (max-width: 480px) {
  :root {
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --container-margin: 0 1rem;
  }
  
  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn--large {
    width: 100%;
    justify-content: center;
  }
  
  .download__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .about__feature {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  
  .training__module {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .training__module--reverse {
    direction: ltr;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-header {
  box-shadow: var(--shadow-md);
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav__link:focus,
.footer__link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-color: #000000;
    --text-color-light: #333333;
    --gray-200: #cccccc;
  }
} 