/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* Variables */
:root {
  --primary: #3D5A80;
  --secondary: #98C1D9;
  --accent: #EE6C4D;
  --background: #F7F9FB;
  --background-alt: #E0FBFC;
  --text-primary: #293241;
  --text-secondary: #5D6970;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.5rem;
}

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

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

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

/* Navigation */
.site-header {
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-xs) 0;
}

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

.logo-link {
  width: 180px;
}

.logo {
  max-width: 180px;
  height: auto;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--background);
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
}

.main-nav.active {
  right: 0;
}

.nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: var(--spacing-md);
}

.nav-list {
  list-style: none;
  padding: 0;
}

.nav-item {
  margin-bottom: var(--spacing-sm);
}

.nav-link {
  display: block;
  padding: var(--spacing-xs) 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1500;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

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

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

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

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--background-alt);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: var(--spacing-md);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.hero-shape {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 100%;
  height: 100%;
  background-color: var(--secondary);
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.2;
  z-index: 1;
}

/* Timeline Section */
.timeline-section {
  padding: var(--spacing-lg) 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-content {
  position: relative;
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  width: calc(50% - 40px);
  animation: fadeIn 0.5s ease-out;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.timeline-title {
  margin-bottom: var(--spacing-xs);
}

.timeline-dot {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 50%;
  z-index: 1;
}

/* Crisis Cards */
.crisis-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.crisis-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.crisis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.crisis-card-content {
  padding: var(--spacing-md);
}

.crisis-card-title {
  margin-bottom: var(--spacing-xs);
  font-size: 1.5rem;
}

.crisis-card-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

/* Education Section */
.education-section {
  background-color: var(--background-alt);
  padding: var(--spacing-lg) 0;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.education-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.education-item:hover {
  transform: translateY(-5px);
}

.education-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

/* Contact Form */
.contact-form-section {
  padding: var(--spacing-lg) 0;
}

.contact-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: var(--spacing-sm);
}

.footer-heading {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.footer-text {
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-link {
  margin-bottom: var(--spacing-xs);
}

.footer-link a {
  color: var(--background-alt);
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-md);
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent);
  color: white;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  padding: var(--spacing-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cookie-text {
  margin-bottom: var(--spacing-sm);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.cookie-settings {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: none;
}

.cookie-category {
  margin-bottom: var(--spacing-md);
}

.cookie-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
}

.cookie-category-description {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Thanks Page */
.thanks-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg);
}

.thanks-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

.thanks-title {
  margin-bottom: var(--spacing-sm);
}

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

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* IntlTelInput Styles */
.iti {
  width: 100%;
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .main-nav {
    position: static;
    height: auto;
    width: auto;
    box-shadow: none;
    background-color: transparent;
    flex-direction: row;
    padding: 0;
  }
  
  .nav-close {
    display: none;
  }
  
  .nav-list {
    display: flex;
  }
  
  .nav-item {
    margin: 0 var(--spacing-sm);
  }
  
  .nav-link {
    padding: var(--spacing-xs);
  }
  
  .nav-link:hover {
    transform: none;
  }
  
  .crisis-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .education-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-text {
    margin-bottom: 0;
    flex: 1;
  }
  
  .timeline-content {
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

@media (min-width: 992px) {
  html {
    font-size: 20px;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}