/* === ROOT VARIABLES === */
:root {
  /* Color Scheme - Analogous palette with biomorphic influence */
  --primary-color: #3a6ea5;
  --primary-dark: #2a5080;
  --primary-light: #4a7fc5;
  --secondary-color: #6a9ac5;
  --accent-color: #41b883;
  --accent-dark: #319267;
  --accent-light: #5ecca8;
  --neutral-dark: #333333;
  --neutral-light: #f5f7fa;
  --neutral-mid: #8899aa;
  --text-color: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #1a2530;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  --gradient-light: linear-gradient(120deg, #f8f9fa, #e9ecef);
  
  /* Typography */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 8px var(--shadow-color);
  --shadow-lg: 0 8px 16px var(--shadow-color);
  --shadow-inset: inset 0 2px 4px var(--shadow-color);
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-dark);
}

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

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

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

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

/* Container & Sections */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.separator {
  height: 4px;
  width: 60px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* === BUTTONS === */
.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-dark);
  text-decoration: none;
}

.button:active,
button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

.button:focus,
button:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.3);
}

.primary-button {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.primary-button:hover {
  background-color: var(--primary-dark);
}

.secondary-button {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.secondary-button:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.submit-button {
  background-color: var(--accent-color);
  color: var(--text-light);
  width: 100%;
}

.submit-button:hover {
  background-color: var(--accent-dark);
}

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--accent-color);
  font-weight: bold;
  position: relative;
  padding-bottom: 2px;
  transition: all var(--transition-medium);
}

.read-more:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-medium);
}

.read-more:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.read-more:hover:after {
  width: 100%;
}

/* === HEADER & NAVIGATION === */
.header {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.navbar {
  padding: var(--spacing-sm) 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-item {
  margin: 0 var(--spacing-sm);
  color: var(--neutral-dark);
  font-weight: 500;
  position: relative;
}

.navbar-item:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

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

/* Navbar Toggle */
.navbar-burger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.navbar-burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--neutral-dark);
  border-radius: 9px;
  left: 0;
  transition: all var(--transition-medium);
}

.navbar-burger span:nth-child(1) {
  top: 0;
}

.navbar-burger span:nth-child(2) {
  top: 9px;
}

.navbar-burger span:nth-child(3) {
  top: 18px;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--spacing-xl) 0;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  max-width: 800px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* === VISION & MISSION SECTIONS === */
.vision-section,
.mission-section {
  position: relative;
  overflow: hidden;
}

.vision-text,
.mission-text {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition-medium);
}

.image-container:hover img {
  transform: scale(1.05);
}

/* === PORTFOLIO SECTION === */
.portfolio-section {
  background-color: var(--neutral-light);
  position: relative;
}

.portfolio-description {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px; /* Fixed height for card images */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.portfolio-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-md);
  background-color: var(--background-light);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  font-family: var(--heading-font);
}

.card-description {
  color: var(--neutral-dark);
  margin-bottom: var(--spacing-sm);
}

/* === PROJECTS SECTION === */
.projects-section {
  position: relative;
}

.projects-description {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

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

/* === RESOURCES SECTION === */
.resources-section {
  background-color: var(--neutral-light);
  position: relative;
}

.resources-description {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.resource-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: var(--spacing-sm);
}

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

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

.resource-list li {
  margin-bottom: var(--spacing-sm);
}

.resource-list a {
  display: inline-block;
  color: var(--primary-color);
  position: relative;
  padding-left: 20px;
}

.resource-list a:before {
  content: '→';
  position: absolute;
  left: 0;
  transition: transform var(--transition-medium);
}

.resource-list a:hover:before {
  transform: translateX(5px);
}

/* === SUCCESS STORIES SECTION === */
.success-stories-section {
  position: relative;
  overflow: hidden;
}

.success-stories-description {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: var(--spacing-md);
}

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

.testimonial-card .image {
  overflow: hidden;
  border-radius: var(--radius-round);
}

.testimonial-card .image img {
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.testimonial-card .media-content {
  padding-left: var(--spacing-sm);
}

.testimonial-card .title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.testimonial-card .subtitle {
  color: var(--neutral-mid);
  font-size: 1rem;
}

.testimonial-card .content {
  margin-top: var(--spacing-sm);
}

/* === TEAM SECTION === */
.team-section {
  background-color: var(--neutral-light);
  position: relative;
}

.team-description {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.team-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.team-card .card-subtitle {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

/* === CONTACT SECTION === */
.contact-section {
  position: relative;
  overflow: hidden;
}

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

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

.contact-form .label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--neutral-mid);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 184, 131, 0.2);
  border-color: var(--accent-color);
}

.contact-info {
  padding: var(--spacing-md);
  background-color: var(--neutral-light);
  border-radius: var(--radius-md);
}

.contact-item {
  margin-bottom: var(--spacing-md);
}

.contact-item h3 {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-item h3 i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.contact-item p {
  color: var(--neutral-dark);
}

/* === FOOTER === */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  position: relative;
}

.footer-brand {
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  font-family: var(--heading-font);
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: none;
}

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

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-light);
  text-decoration: none;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* === UTILITY CLASSES === */
.reverse-columns-mobile {
  flex-direction: row;
}

/* === SUCCESS PAGE === */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-lg);
}

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

.success-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.success-message {
  margin-bottom: var(--spacing-md);
}

/* === PRIVACY & TERMS PAGES === */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-light);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
  }
  
  .navbar-item {
    margin: var(--spacing-xs) 0;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .navbar-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .reverse-columns-mobile {
    flex-direction: column-reverse;
  }
  
  .image-container {
    margin-bottom: var(--spacing-md);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-buttons .button {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .vision-text,
  .mission-text {
    font-size: 1rem;
  }
  
  .team-card .card-image {
    height: 250px;
  }
}

/* === ANIMATIONS === */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}