/* ==========================================================================
   CSS Variables - Tetrad Color Scheme & Eco-Minimalism
   ========================================================================== */

:root {
  /* Tetrad Color Scheme - Eco-Minimalism */
  --primary-color: #2D5016;          /* Deep Forest Green */
  --primary-light: #4A7C29;          /* Light Forest Green */
  --primary-dark: #1A3009;           /* Dark Forest Green */
  
  --secondary-color: #D4A574;        /* Warm Sand */
  --secondary-light: #E8C4A0;        /* Light Sand */
  --secondary-dark: #B8925C;         /* Dark Sand */
  
  --accent-color: #8B4513;           /* Earth Brown */
  --accent-light: #A0522D;           /* Light Brown */
  --accent-dark: #654321;            /* Dark Brown */
  
  --complement-color: #4A90E2;       /* Sky Blue */
  --complement-light: #6BA3E8;       /* Light Sky Blue */
  --complement-dark: #2E5A8A;        /* Dark Sky Blue */
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #E9ECEF;
  --dark-gray: #6C757D;
  --charcoal: #343A40;
  --black: #000000;
  
  /* Semantic Colors */
  --success-color: #28A745;
  --warning-color: #FFC107;
  --error-color: #DC3545;
  --info-color: var(--complement-color);
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --hero-gradient: linear-gradient(135deg, rgba(45, 80, 22, 0.9) 0%, rgba(139, 69, 19, 0.8) 100%);
  --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.95) 100%);
  
  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-xxl: 3rem;      /* 48px */
  --spacing-xxxl: 4rem;     /* 64px */
  
  /* Sizes */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --container-max-width: 1200px;
  --header-height: 70px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--white);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.8rem; font-weight: 700; }
h3 { font-size: 2.2rem; font-weight: 600; }
h4 { font-size: 1.8rem; font-weight: 600; }
h5 { font-size: 1.4rem; font-weight: 500; }
h6 { font-size: 1.2rem; font-weight: 500; }

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

a:hover {
  color: var(--complement-dark);
  text-decoration: underline;
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
  position: relative;
  padding-right: 1.5rem;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: var(--transition-normal);
  transform: translateX(0);
}

.read-more:hover {
  color: var(--primary-light);
  text-decoration: none;
  transform: translateY(-2px);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   Global Button Styles
   ========================================================================== */

.btn,
.button,
input[type='submit'],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  background: var(--primary-gradient);
  color: var(--white);
}

.btn:before,
.button:before,
input[type='submit']:before,
button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition-normal);
}

.btn:hover,
.button:hover,
input[type='submit']:hover,
button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  text-decoration: none;
}

.btn:hover:before,
.button:hover:before,
input[type='submit']:hover:before,
button:hover:before {
  left: 100%;
}

.btn:active,
.button:active,
input[type='submit']:active,
button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: var(--shadow-md);
}

/* Button Variants */
.btn-secondary,
.button.is-light {
  background: var(--secondary-gradient);
  color: var(--charcoal);
}

.btn-outline,
.button.is-outlined {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover,
.button.is-outlined:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-large,
.button.is-large {
  padding: var(--spacing-lg) var(--spacing-xxl);
  font-size: 1.2rem;
  min-width: 180px;
}

.btn-small,
.button.is-small {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.9rem;
  min-width: 120px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.section {
  padding: var(--spacing-xxxl) 0;
}

.has-text-centered { text-align: center; }
.has-text-left { text-align: left; }
.has-text-right { text-align: right; }

.has-background-light { background-color: var(--light-gray); }
.has-background-dark { background-color: var(--charcoal); }

.mb-6 { margin-bottom: var(--spacing-xxl); }
.mt-6 { margin-top: var(--spacing-xxl); }

.underline {
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: var(--spacing-lg) auto;
  border-radius: 2px;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: var(--header-height);
  z-index: 1000;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.navbar-brand .navbar-item:hover {
  color: var(--primary-light);
  transform: scale(1.05);
}

.navbar-menu .navbar-item {
  color: var(--charcoal);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-menu .navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-menu .navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.navbar-menu .navbar-item:hover::after {
  width: 80%;
}

.navbar-burger {
  color: var(--primary-color);
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--hero-gradient);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxxl) 0;
}

.hero .title,
.hero .subtitle {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: var(--spacing-xl);
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: var(--spacing-xxl);
}

.hero .buttons {
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* Animated Background Elements */
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.2;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.4;0.1" dur="2s" repeatCount="indefinite"/></circle></svg>');
  animation: float 20s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-100px, -100px) rotate(360deg); }
}

/* ==========================================================================
   Cards & Content Blocks
   ========================================================================== */

.card,
.item,
.testimonial,
.team-member,
.product-card,
.team-card,
.case-study-card {
  background: var(--card-gradient);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card:hover,
.item:hover,
.testimonial:hover,
.team-member:hover,
.product-card:hover,
.team-card:hover,
.case-study-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.card::before,
.item::before,
.testimonial::before,
.team-member::before,
.product-card::before,
.team-card::before,
.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition-normal);
  transform-origin: left;
}

.card:hover::before,
.item:hover::before,
.testimonial:hover::before,
.team-member:hover::before,
.product-card:hover::before,
.team-card:hover::before,
.case-study-card:hover::before {
  transform: scaleX(1);
}

/* Card Images */
.card-image,
.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  /* display: flex; */
  align-items: center;
  justify-content: center;
}

.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
  margin: 0 auto;
}

.card:hover .card-image img,
.case-study-card:hover .image-container img {
  transform: scale(1.1);
}

/* Card Content */
.card-content,
.content {
  padding: var(--spacing-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.card-content h3,
.content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
  font-weight: 600;
}

.card-content p,
.content p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   Timeline (Research Section)
   ========================================================================== */

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

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xxl);
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-light); }
  50% { box-shadow: 0 0 0 4px var(--white), 0 0 0 12px rgba(45, 80, 22, 0.3); }
  100% { box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-light); }
}

.timeline-content {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  width: calc(50% - 40px);
  position: relative;
  transition: var(--transition-normal);
}

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

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

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team-card .card-image {
  height: 300px;
  border-radius: 50%;
  width: 200px;
  margin: var(--spacing-xl) auto var(--spacing-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team-card .card-image img {
  border-radius: 50%;
}

.team-card .subtitle {
  color: var(--complement-color);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.gallery-grid {
  width: 100%;
}

.gallery-grid .columns {
  align-items: stretch;
}

.gallery-grid .column {
  display: flex;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
  background: var(--card-gradient);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xxl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.field {
  margin-bottom: var(--spacing-xl);
}

.label {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.input,
.textarea {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-normal);
  background-color: var(--white);
}

.input:focus,
.textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
  outline: none;
  transform: scale(1.02);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--dark-gray);
  opacity: 0.7;
}

.contact-info {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

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

.footer {
  background-color: var(--charcoal);
  color: var(--light-gray);
  padding: var(--spacing-xxxl) 0 var(--spacing-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-heading);
}

.footer p {
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

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

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

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding-left: var(--spacing-md);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: var(--transition-fast);
  color: var(--primary-light);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: var(--spacing-lg);
  text-decoration: none;
}

.footer-links a:hover::before {
  opacity: 1;
}

.social-links {
  margin-top: var(--spacing-lg);
}

.social-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  margin: 0 var(--spacing-sm);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--primary-light);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  animation: slideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-card-head {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  position: relative;
}

.modal-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

.modal-card-body {
  padding: var(--spacing-xl);
  color: var(--charcoal);
}

.modal-card-foot {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--gray);
  text-align: right;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   Success Page Styles
   ========================================================================== */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  position: relative;
}

.success-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"><animate attributeName="r" values="2;4;2" dur="3s" repeatCount="indefinite"/></circle><circle cx="75" cy="35" r="1.5" fill="white" opacity="0.1"><animate attributeName="r" values="1.5;3;1.5" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="70" r="1" fill="white" opacity="0.1"><animate attributeName="r" values="1;2.5;1" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
  animation: float 15s infinite linear;
  pointer-events: none;
}

.success-content {
  text-align: center;
  color: var(--white);
  padding: var(--spacing-xxl);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

.success-content h1 {
  color: var(--white);
  margin-bottom: var(--spacing-xl);
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.success-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   Privacy & Terms Pages
   ========================================================================== */

.privacy-page,
.terms-page {
  padding-top: 100px;
}

.content-page {
  background-color: var(--light-gray);
  min-height: 100vh;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xxxl) var(--spacing-xl);
}

.content-container h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  font-size: 2.5rem;
}

.content-container h2 {
  color: var(--primary-color);
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-lg);
}

.content-container p {
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.content-container ul {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

.content-container li {
  color: var(--charcoal);
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

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

@media screen and (max-width: 1024px) {
  .hero .title {
    font-size: 3rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: var(--spacing-xxl) 0;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
  
  .card-content,
  .content {
    padding: var(--spacing-lg);
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .team-card .card-image {
    width: 150px;
    height: 220px;
  }
  
  .success-content h1 {
    font-size: 2.2rem;
  }
  
  .success-content p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero .title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .hero .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  .btn,
  .button {
    width: 100%;
    max-width: 280px;
  }
  
  .team-card .card-image {
    width: 120px;
    height: 180px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-marker {
    left: 15px;
    width: 15px;
    height: 15px;
  }
  
  .timeline-container::before {
    left: 15px;
    width: 3px;
  }
}

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

@media print {
  .navbar,
  .footer,
  .hero,
  .modal {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  .card,
  .item,
  .testimonial,
  .team-member,
  .product-card {
    box-shadow: none;
    border: 1pt solid #ccc;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  .btn,
  .button {
    border: 1pt solid #000;
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 2px solid var(--complement-color);
  outline-offset: 2px;
}

/* ==========================================================================
   Custom Animations for Hand-drawn Style
   ========================================================================== */

@keyframes drawLine {
  0% {
    stroke-dashoffset: 100%;
  }
  100% {
    stroke-dashoffset: 0%;
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-1deg); }
}

.animate-wiggle {
  animation: wiggle 0.3s ease-in-out;
}

@keyframes bounce-in {
  0% {
    transform: scale(0.3) rotate(-5deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.9) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.animate-bounce-in {
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   Background Images with Cover and Overlay
   ========================================================================== */

.bg-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.bg-image > * {
  position: relative;
  z-index: 2;
}

/* Ensure all text over background images is white */
.bg-image,
.bg-image *,
.hero,
.hero * {
  color: var(--white) !important;
}

.bg-image h1,
.bg-image h2,
.bg-image h3,
.bg-image h4,
.bg-image h5,
.bg-image h6,
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}