/* Base Styles and Variables */
:root {
  /* Primary Colors */
  --primary: #0066CC;
  --primary-light: #4D94DB;
  --primary-dark: #004C99;
  
  /* Secondary Colors */
  --secondary: #5AC8FA;
  --secondary-light: #8AD8FC;
  --secondary-dark: #2BA5D8;
  
  /* Accent Colors */
  --accent: #FF9500;
  --accent-light: #FFB143;
  --accent-dark: #CC7A00;
  
  /* Semantic Colors */
  --success: #34C759;
  --warning: #FFCC00;
  --error: #FF3B30;
  
  /* Neutral Colors */
  --neutral-100: #FFFFFF;
  --neutral-200: #F2F2F7;
  --neutral-300: #E5E5EA;
  --neutral-400: #D1D1D6;
  --neutral-500: #C7C7CC;
  --neutral-600: #8E8E93;
  --neutral-700: #636366;
  --neutral-800: #3A3A3C;
  --neutral-900: #1C1C1E;
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --heading-line-height: 1.2;
  --body-line-height: 1.5;
  
  /* Spacing */
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;
  --spacing-6: 48px;
  --spacing-7: 56px;
  --spacing-8: 64px;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.03);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Dark Mode Variables */
.dark-mode {
  --primary: #0A84FF;
  --primary-light: #5EB1FF;
  --primary-dark: #0066CC;
  
  --secondary: #64D2FF;
  --secondary-light: #9CE4FF;
  --secondary-dark: #32ADE6;
  
  --accent: #FF9F0A;
  --accent-light: #FFCF4D;
  --accent-dark: #CC7F08;
  
  --neutral-100: #1C1C1E;
  --neutral-200: #2C2C2E;
  --neutral-300: #3A3A3C;
  --neutral-400: #48484A;
  --neutral-500: #636366;
  --neutral-600: #8E8E93;
  --neutral-700: #AEAEB2;
  --neutral-800: #E5E5EA;
  --neutral-900: #F2F2F7;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
}

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

html {
  font-size: 62.5%; /* 10px as base for easier rem calculations */
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

body {
  font-family: var(--font-family);
  font-size: 1.6rem;
  line-height: var(--body-line-height);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--heading-line-height);
  margin-bottom: var(--spacing-2);
  color: var(--neutral-900);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: var(--neutral-100);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--spacing-2);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.6rem;
}

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

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

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

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

.btn-large {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 1.8rem;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: var(--spacing-2);
  right: var(--spacing-2);
  z-index: var(--z-fixed);
}

.theme-switch {
  opacity: 0;
  position: absolute;
}

.theme-switch-label {
  display: block;
  width: 50px;
  height: 26px;
  background-color: var(--neutral-400);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-fast);
}

.theme-switch-label i {
  position: absolute;
  top: 5px;
  transition: opacity var(--transition-fast);
}

.theme-switch-label .fa-moon {
  right: 7px;
  color: var(--neutral-800);
  opacity: 0;
}

.theme-switch-label .fa-sun {
  left: 7px;
  color: var(--neutral-100);
  opacity: 1;
}

.switch-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.theme-switch:checked + .theme-switch-label {
  background-color: var(--primary);
}

.theme-switch:checked + .theme-switch-label .switch-handle {
  transform: translateX(24px);
}

.theme-switch:checked + .theme-switch-label .fa-moon {
  opacity: 1;
}

.theme-switch:checked + .theme-switch-label .fa-sun {
  opacity: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-2);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--transition-normal);
}

.dark-mode header {
  background-color: rgba(28, 28, 30, 0.9);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-3);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: var(--spacing-3);
}

.nav-links a {
  color: var(--neutral-800);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.dark-mode .nav-links a {
  color: var(--neutral-300);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--neutral-800);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.dark-mode .nav-toggle span {
  background-color: var(--neutral-300);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: var(--spacing-3);
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #102258,#0f0330);
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: -1;
}

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

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-3);
  font-size: 5.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--neutral-300);
  font-size: 2.4rem;
  margin-bottom: var(--spacing-4);
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-2);
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: white;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

.arrow {
  margin-top: var(--spacing-1);
  width: 20px;
  height: 20px;
  position: relative;
}

.arrow span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 15px;
  background-color: white;
  transform-origin: bottom center;
}

.arrow span:first-child {
  transform: translateX(-50%) rotate(45deg);
}

.arrow span:last-child {
  transform: translateX(-50%) rotate(-45deg);
}

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

/* Features Section */
.features {
  padding: var(--spacing-7) var(--spacing-3);
  background-color: var(--neutral-100);
  transition: background-color var(--transition-normal);
}

.dark-mode .features {
  background-color: var(--neutral-200);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-5);
}

.section-header p {
  color: var(--neutral-700);
  font-size: 1.8rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-4);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--neutral-100);
  padding: var(--spacing-4);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-normal);
}

.dark-mode .feature-card {
  background-color: var(--neutral-300);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-3);
  font-size: 3.2rem;
}

.feature-card h3 {
  margin-bottom: var(--spacing-2);
}

.feature-card p {
  color: var(--neutral-700);
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2);
  padding: var(--spacing-6) var(--spacing-3);
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: var(--spacing-1);
}

.stat-label {
  font-size: 1.8rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials {
  padding: var(--spacing-7) var(--spacing-3);
  background-color: var(--neutral-200);
  transition: background-color var(--transition-normal);
}

.dark-mode .testimonials {
  background-color: var(--neutral-100);
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
}

.testimonial-content {
  background-color: var(--neutral-100);
  padding: var(--spacing-4);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-3);
  position: relative;
  transition: background-color var(--transition-normal);
}

.dark-mode .testimonial-content {
  background-color: var(--neutral-300);
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--neutral-100) transparent;
  transition: border-color var(--transition-normal);
}

.dark-mode .testimonial-content::after {
  border-color: var(--neutral-300) transparent;
}

.testimonial-content p {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding-left: var(--spacing-3);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--neutral-700);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-4);
}

.prev-btn, .next-btn {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--neutral-700);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.prev-btn:hover, .next-btn:hover {
  color: var(--primary);
}

.dots {
  display: flex;
  gap: var(--spacing-1);
  margin: 0 var(--spacing-2);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neutral-400);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-7) var(--spacing-3);
  background-color: var(--secondary);
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--spacing-2);
  font-size: 3.6rem;
}

.cta-content p {
  margin-bottom: var(--spacing-4);
  font-size: 1.8rem;
  opacity: 0.9;
}

/* Contact Section */
.contact {
  padding: var(--spacing-7) var(--spacing-3);
  background-color: var(--neutral-100);
  transition: background-color var(--transition-normal);
}

.dark-mode .contact {
  background-color: var(--neutral-200);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-4);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-2);
}

.info-item i {
  color: var(--primary);
  font-size: 2rem;
  margin-top: 0.3rem;
}

.social-links {
  display: flex;
  gap: var(--spacing-2);
  margin-top: var(--spacing-2);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--neutral-200);
  color: var(--neutral-800);
  border-radius: 50%;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dark-mode .social-links a {
  background-color: var(--neutral-300);
  color: var(--neutral-100);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
}

.contact-form {
  background-color: var(--neutral-100);
  padding: var(--spacing-4);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal);
}

.dark-mode .contact-form {
  background-color: var(--neutral-300);
}

.form-group {
  margin-bottom: var(--spacing-3);
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-2);
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-md);
  background-color: transparent;
  color: var(--neutral-800);
  transition: border-color var(--transition-fast);
  font-family: var(--font-family);
  font-size: 1.6rem;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .form-group select {
  color: var(--neutral-100);
  border-color: var(--neutral-600);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: var(--spacing-2);
  transform: translateY(-50%);
  color: var(--neutral-600);
  transition: all var(--transition-fast);
  pointer-events: none;
  background-color: var(--neutral-100);
  padding: 0 var(--spacing-1);
}

.dark-mode .form-group label {
  background-color: var(--neutral-300);
  color: var(--neutral-500);
}

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

.form-group textarea + label {
  top: var(--spacing-2);
  transform: translateY(0);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.8);
  color: var(--primary);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-2) center;
  background-size: 16px;
}

/* Footer */
footer {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding-top: var(--spacing-6);
  transition: background-color var(--transition-normal);
}

.dark-mode footer {
  background-color: var(--neutral-300);
  color: var(--neutral-800);
}

.footer-content {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: var(--spacing-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-3) var(--spacing-4);
  border-bottom: 1px solid var(--neutral-800);
}

.footer-logo p {
  margin-top: var(--spacing-2);
  opacity: 0.8;
}

.footer-column h4 {
  color: white;
  margin-bottom: var(--spacing-3);
  font-size: 1.8rem;
}

.dark-mode .footer-column h4 {
  color: var(--neutral-900);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.footer-column a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.dark-mode .footer-column a {
  color: var(--neutral-700);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-3);
  font-size: 1.4rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3,auto);
}

.language-selector select {
  background-color: transparent;
  color: var(--neutral-400);
  border: 1px solid var(--neutral-700);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
}

.dark-mode .language-selector select {
  color: var(--neutral-700);
}

/* Animation Classes */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

section.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-5);
  }
  
  .footer-logo {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 992px) {
  html {
    font-size: 60%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 4.8rem;
  }
  
  .hero p {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--neutral-100);
    padding: var(--spacing-3);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    align-items: center;
    gap: var(--spacing-3);
  }
  
  .dark-mode .nav-links {
    background-color: var(--neutral-200);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-2);
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-2);
    text-align: center;
  }
}