/* Base Styles & Reset */
:root {
  /* Primary Colors */
  --navy-900: #0A2463;
  --navy-800: #0F3184;
  --navy-700: #183DA5;
  --navy-600: #224BC6;
  --navy-500: #3D63E0;
  
  /* Secondary/Accent Colors */
  --orange-500: #FF7F50;
  --orange-600: #F7643C;
  --orange-700: #E74C27;
  --orange-400: #FF9B76;
  --orange-300: #FFBAA1;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  
  /* Functional Colors */
  --success: #28A745;
  --warning: #FFC107;
  --error: #DC3545;
  --info: #17A2B8;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Spacing System (8px) */
  --space-smol: 0.25rem;
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-7: 3.5rem;   /* 56px */
  --space-8: 4rem;     /* 64px */
  
  /* Other Variables */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
  margin-bottom: var(--space-2);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--orange-500);
}

ul {
  list-style: none;
}

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

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

/* Section Styles */
section {
  padding: var(--space-7) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--orange-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-1);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* Light Section Headers */
.section-header.light .section-title,
.section-header.light .section-description {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background-color: var(--orange-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 127, 80, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--navy-900);
  color: var(--white);
  transform: translateY(-2px);
}

.btn.full-width {
  width: 100%;
}

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

.btn-white:hover {
  background-color: var(--white);
  color: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 127, 80, 0.3);
}

/* Highlight Text */
.highlight {
  color: var(--orange-500);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--navy-900);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.back-to-top:before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--white);
  border-top: 2px solid var(--white);
  transform: rotate(45deg);
  margin-top: 4px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--orange-500);
  transform: translateY(-5px);
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 992px;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 768px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 576px;
  }
  
  section {
    padding: var(--space-5) 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .section-header {
    margin-bottom: var(--space-4);
  }
}
