/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: #4b5568;
  background-color: #fdfcff;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background: linear-gradient(135deg, #f7f3ff 0%, #eef6ff 100%);
  color: #465066;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(143, 168, 255, 0.2);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #88a3f5 0%, #bda2e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #88a3f5, #bda2e9);
  transition: width 0.3s ease;
}

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

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: linear-gradient(135deg, #e9f1ff 0%, #f4edff 52%, #ffeef7 100%);
  min-height: 0;
  text-align: center;
  color: #3f4d67;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(168, 162, 255, 0.2);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(150, 170, 220, 0.2);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #7d8fdf;
  box-shadow: 0 6px 20px rgba(144, 165, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(144, 165, 241, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #6f80cb;
  border: 2px solid #c9d7ff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

/* ============================================
   Main Content & Sections
   ============================================ */

main {
  padding: 2rem 0;
}

.section {
  background: white;
  padding: 3.5rem;
  margin-bottom: 2.5rem;
  scroll-margin-top: 96px;
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(183, 195, 240, 0.2);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(136, 163, 245, 0.08) 0%,
    rgba(197, 176, 240, 0.08) 100%
  );
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.section-icon {
  display: inline-block;
  font-size: 2.5rem;
  color: #88a3f5;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.section h2 {
  color: #2e3850;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #88a3f5 0%, #bda2e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section h3 {
  color: #3c4762;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #5e6b81;
  font-size: 0.95rem;
}

/* ============================================
   Highlight Box
   ============================================ */

.highlight-box {
  background: linear-gradient(135deg, #f7f3ff 0%, #edf5ff 100%);
  border-left: 5px solid #9ab0f3;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
}

.highlight-box:hover {
  box-shadow: 0 6px 20px rgba(154, 176, 243, 0.24);
  transform: translateX(5px);
}

.highlight-icon {
  font-size: 1.5rem;
  color: #88a3f5;
  flex-shrink: 0;
}

.highlight-content p {
  margin-bottom: 0;
}

.highlight-box a {
  color: #7d8fdf;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ============================================
   Principles Grid
   ============================================ */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.principle-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9f7ff 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #ebe9f7;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #88a3f5 0%, #bda2e9 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.principle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(154, 176, 243, 0.25);
  border-color: #b5c6fb;
}

.principle-card:hover::before {
  transform: scaleX(1);
}

.principle-icon {
  font-size: 2.2rem;
  color: #8ea8f3;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.principle-card:hover .principle-icon {
  transform: scale(1.2) rotate(5deg);
}

.principle-card h3 {
  color: #7c8fe0;
  margin-bottom: 0.8rem;
  margin-top: 0;
  font-size: 1.1rem;
}

.principle-card p {
  color: #616d83;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   Why Grid
   ============================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.why-card {
  background: linear-gradient(135deg, #f4f9ff 0%, #f8f3ff 100%);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(154, 176, 243, 0.2);
  background: linear-gradient(135deg, #edf6ff 0%, #f5ecff 100%);
}

.why-icon {
  font-size: 2rem;
  color: #8ea8f3;
  margin-bottom: 1rem;
}

.why-card h3 {
  color: #3f4a65;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.why-card p {
  color: #5f6d84;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================
   Links
   ============================================ */

a {
  color: #7d8fdf;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ab8fd9;
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: linear-gradient(135deg, #f7f2ff 0%, #eef5ff 100%);
  color: #6c7284;
  border-top: 1px solid #e8ebf7;
  padding: 2.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer a {
  color: #7d8fdf;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

footer a:hover {
  color: #ab8fd9;
}

footer small {
  display: block;
  margin-top: 1rem;
  opacity: 0.8;
}

/* ============================================
   Animations
   ============================================ */

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

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    gap: 0.8rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 2rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section h3 {
    font-size: 1.1rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1.5rem 0;
  }

  .section-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-brand h1 {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .section h3 {
    font-size: 0.95rem;
  }

  .highlight-box {
    padding: 1rem;
    flex-direction: column;
  }

  .highlight-icon {
    font-size: 1.2rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .principle-card {
    padding: 1.5rem;
  }

  .section-icon {
    font-size: 1.5rem;
  }

  main {
    padding: 1rem 0;
  }

  footer {
    padding: 1.5rem 0;
  }

  footer .container {
    gap: 0.5rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .navbar {
    position: static;
  }

  .hero-cta {
    display: none;
  }

  .section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ece9f8;
  }

  a {
    text-decoration: underline;
  }

  .highlight-box {
    border: 2px solid #9ab0f3;
  }
}
