/* Global Styles & Variables */
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;

  --color-primary: #82AAE3; /* Pastel Blue */
  --color-primary-rgb: 130, 170, 227;
  --color-primary-dark: #6A8DCF;
  --color-secondary: #F9B5AC; /* Pastel Peach */
  --color-accent: #B3E283;   /* Pastel Green */
  --color-accent-dark: #9BCF65;

  --color-text-light: #FFFFFF;
  --color-text-dark: #222222; /* Enhanced contrast for titles */
  --color-text-medium: #4A4A4A; /* Good contrast for body text */
  --color-text-subtle: #666666;
  --color-text-light-footer: #EAEAEA;

  --color-bg-light: #FCFCFC;
  --color-bg-pastel: #EBF5FB; /* Very Light Pastel Blue */
  --color-bg-section-alt: #FFF9E6; /* Light Pastel Yellow/Cream */
  --color-bg-dark-overlay: rgba(0, 0, 0, 0.5);
  --color-footer-bg: #2C3E50; /* Dark blue/grey for footer */

  --border-radius-small: 8px;
  --border-radius-medium: 15px;
  --border-radius-large: 25px;

  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);

  --spacing-unit: 1rem; /* 16px */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%; /* Base font size */
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-medium);
  background-color: var(--color-bg-light);
  line-height: 1.65;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-primary-dark);
}

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

/* Layout */
.main-container {
  overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

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

.columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-top: -0.75rem;
}
.columns:not(:last-child) {
  margin-bottom: calc(1.5rem - 0.75rem);
}
.column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0.75rem;
}
.column.is-full {
  flex: none;
  width: 100%;
}
.column.is-two-thirds {
  flex: none;
  width: 66.6666%;
}
@media screen and (max-width: 768px) {
  .column.is-two-thirds {
    width: 100%;
  }
}


/* Buttons - GLOBAL STYLES */
.btn, button[type="submit"], input[type="submit"] {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border-radius: var(--border-radius-medium);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-width: 150px;
}

.btn-primary, .btn-submit {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
}
.btn-primary:hover, .btn-submit:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(var(--color-primary-rgb), 0.35);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(253, 253, 253, 0.85); /* Light with transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  height: var(--header-height);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: calc(var(--spacing-unit) * 1.8);
}
.main-nav ul li a {
  color: var(--color-text-dark);
  font-weight: 500;
  padding: 0.5em 0;
  position: relative;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transition: width 0.35s ease;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: var(--color-primary);
}
.main-nav ul li a:hover::after,
.main-nav ul li a:focus::after {
  width: 100%;
}

/* Burger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1005; /* Above mobile nav panel */
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background-color: var(--color-primary);
  height: 3px;
  width: 28px;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

.nav-toggle.is-active .hamburger { background-color: transparent; }
.nav-toggle.is-active .hamburger::before { transform: translateY(0px) rotate(45deg); }
.nav-toggle.is-active .hamburger::after { transform: translateY(0px) rotate(-45deg); }

@media (max-width: 768px) {
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: var(--spacing-unit) 0;
    gap: 0;
  }
  .main-nav ul.is-active { display: flex; }
  .main-nav ul li {
    width: 100%;
    text-align: center;
  }
  .main-nav ul li a {
    display: block;
    padding: calc(var(--spacing-unit) * 0.8) var(--spacing-unit);
    width: 100%;
  }
  .main-nav ul li a::after { display: none; } /* No underline for mobile items */
  .nav-toggle { display: block; }
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--color-text-light);
  padding: calc(var(--spacing-unit) * 4) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.3), rgba(0,0,0,0.6));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-title {
  color: var(--color-text-light); /* Explicitly white */
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  margin-bottom: var(--spacing-unit);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-subtitle {
  color: var(--color-text-light); /* Explicitly white */
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: calc(var(--spacing-unit) * 2);
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* General Content Section Styling */
.content-section {
  padding: calc(var(--spacing-unit) * 4) 0;
}
.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 1);
  color: var(--color-text-dark);
}
.section-title::after { /* Biomorphic underline */
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--color-primary);
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  margin: calc(var(--spacing-unit) * 0.6) auto 0;
  border-radius: 2px;
}
.section-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto calc(var(--spacing-unit) * 3);
  color: var(--color-text-medium);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}
.pastel-bg {
  background-color: var(--color-bg-pastel);
  border-top: 1px solid rgba(var(--color-primary-rgb),0.1);
  border-bottom: 1px solid rgba(var(--color-primary-rgb),0.1);
}

/* Card Styles */
.card {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%; /* For equal height cards in a grid */
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.card-image { /* Container for image */
  width: 100%;
  height: 220px; /* Fixed height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0; /* Placeholder bg */
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-content {
  padding: calc(var(--spacing-unit) * 1.5);
  flex-grow: 1; /* Allows content to fill space if cards are equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes content and potential actions apart */
}
.card-content h3 {
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
  color: var(--color-primary-dark);
  font-size: 1.3rem;
}
.card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-medium);
  margin-bottom: var(--spacing-unit);
  flex-grow: 1;
}
.read-more-link {
  color: var(--color-primary);
  font-weight: bold;
  display: inline-block;
  margin-top: auto; /* Pushes to bottom if card content is flex column */
  padding: 0.3em 0;
}
.read-more-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}


/* Statistics Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}
.stat-item {
  background-color: rgba(var(--color-primary-rgb), 0.08);
  padding: calc(var(--spacing-unit) * 1.8);
  border-radius: var(--border-radius-medium);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.15);
}
.stat-icon img {
  margin: 0 auto var(--spacing-unit);
  height: 60px; /* Consistent icon height */
  width: 60px;
  object-fit: contain;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-family: var(--font-primary);
  color: var(--color-primary-dark);
  margin-bottom: calc(var(--spacing-unit) * 0.3);
  line-height: 1;
}
.stat-description {
  color: var(--color-text-medium);
  font-size: 0.95rem;
}

/* Portfolio & Customer Stories (Carousels) */
.portfolio-carousel, .stories-carousel {
  display: flex;
  overflow-x: auto;
  gap: calc(var(--spacing-unit) * 1.8);
  padding: calc(var(--spacing-unit) * 0.5) 0 calc(var(--spacing-unit) * 1.5); /* Space for scrollbar + bottom padding */
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-pastel);
}
.portfolio-carousel::-webkit-scrollbar, .stories-carousel::-webkit-scrollbar {
  height: 8px;
}
.portfolio-carousel::-webkit-scrollbar-thumb, .stories-carousel::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
.portfolio-carousel::-webkit-scrollbar-track, .stories-carousel::-webkit-scrollbar-track {
  background: var(--color-bg-pastel);
}
.portfolio-carousel .card, .stories-carousel .card {
  min-width: 320px;
  flex: 0 0 auto;
}
@media (max-width: 768px) {
  .portfolio-carousel .card, .stories-carousel .card {
    min-width: 280px;
  }
}


/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}
.team-member .card-image { height: 280px; } /* Taller images for team members */

/* External Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 1.8);
}
.resource-card {
  background-color: var(--color-bg-light);
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--color-accent);
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.resource-card h4 {
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  font-size: 1.15rem;
}
.resource-card h4 a {
  color: var(--color-primary-dark);
}
.resource-card h4 a:hover {
  text-decoration: underline;
}
.resource-card p {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  line-height: 1.55;
}

/* Contact Section */
.contact-form-container {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 2.5);
  align-items: flex-start;
  background-color: var(--color-bg-pastel);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius-large);
}
.contact-form {
  flex: 2;
  min-width: 300px; /* Ensure form is not too squished */
}
.contact-info {
  flex: 1;
  min-width: 280px;
  background-color: var(--color-bg-light);
  padding: calc(var(--spacing-unit) * 1.8);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-soft);
}
.contact-info h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
  font-size: 1.4rem;
}
.contact-info p {
  margin-bottom: calc(var(--spacing-unit) * 0.8);
}
.contact-info strong { color: var(--color-text-dark); }
.form-group {
  margin-bottom: calc(var(--spacing-unit) * 1.3);
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  color: var(--color-text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: calc(var(--spacing-unit) * 0.8);
  border: 1px solid #D1D5DB; /* Light gray border */
  border-radius: var(--border-radius-small);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-bg-light);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light-footer);
  padding: calc(var(--spacing-unit) * 3.5) 0 calc(var(--spacing-unit) * 1.5);
  font-size: 0.92rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 2.5);
  margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.footer-nav, .footer-social, .footer-contact-info {
  flex: 1;
  min-width: 200px;
}
.site-footer h4 {
  font-family: var(--font-primary);
  color: var(--color-text-light);
  margin-bottom: calc(var(--spacing-unit) * 1.2);
  font-size: 1.25rem;
  position: relative;
  padding-bottom: calc(var(--spacing-unit) * 0.3);
}
.site-footer h4::after { /* Subtle underline for footer titles */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}
.footer-nav ul, .footer-social ul {
  list-style: none;
}
.footer-nav ul li a, .footer-social ul li a, .footer-contact-info a {
  color: var(--color-text-light-footer);
  transition: color 0.3s ease;
}
.footer-nav ul li a:hover, .footer-social ul li a:hover, .footer-contact-info a:hover {
  color: var(--color-secondary); /* Accent for hover */
}
.footer-nav ul li, .footer-social ul li {
  margin-bottom: calc(var(--spacing-unit) * 0.6);
}
.footer-copyright {
  text-align: center;
  padding-top: calc(var(--spacing-unit) * 1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  color: #bdc3c7;
}

/* Page Specific Styles */
/* success.html */
body.success-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.success-page main { /* Ensure main tag is used for content */
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-unit);
}
.success-message-box {
  background-color: var(--color-bg-light);
  padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3.5);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  text-align: center;
}
.success-message-box h1 {
  color: var(--color-accent-dark); /* Green for success */
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: var(--spacing-unit);
}
.success-message-box p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: calc(var(--spacing-unit) * 1.8);
}

/* privacy.html & terms.html */
.static-page-content-wrapper { /* Wrap content of privacy/terms in this */
  padding-top: calc(var(--spacing-unit) * 1.5); /* Approx 20px if spacing-unit is 16px. Total 80px + 24px = 104px */
  padding-bottom: calc(var(--spacing-unit) * 3);
}
.static-page-content-wrapper .container h1 {
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
}
.static-page-content-wrapper .container h1::after {
  content: ''; display: block; width: 70px; height: 4px;
  background: var(--color-primary); margin: calc(var(--spacing-unit) * 0.6) auto 0;
  border-radius: 2px;
}
.static-page-content-wrapper .container h2 {
  margin-top: calc(var(--spacing-unit) * 2.5);
  margin-bottom: var(--spacing-unit);
  color: var(--color-primary-dark);
  font-size: 1.6rem;
}
.static-page-content-wrapper .container p,
.static-page-content-wrapper .container ul,
.static-page-content-wrapper .container ol {
  margin-bottom: var(--spacing-unit);
  line-height: 1.75;
}
.static-page-content-wrapper .container ul,
.static-page-content-wrapper .container ol {
  padding-left: calc(var(--spacing-unit) * 2);
}
.static-page-content-wrapper .container li {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Animations (JS will add .is-visible) */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-animate="fade-in"] {
  /* Base opacity 0 is enough */
}
[data-animate="fade-in-up"] {
  transform: translateY(40px);
}
[data-animate="slide-in-left"] {
  transform: translateX(-60px);
}
[data-animate="slide-in-right"] {
  transform: translateX(60px);
}
.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Parallax for background images (simple version) */
.parallax-bg {
  background-attachment: fixed;
  /* Ensure background-size, position, repeat are set on the element itself or here */
  /* background-size: cover; */
  /* background-position: center; */
  /* background-repeat: no-repeat; */
}
/* Hero section has parallax effect by default if `background-attachment: fixed` is desired */
/* .hero-section { background-attachment: fixed; } */ /* Add if true parallax on hero bg is needed */


/* Responsive Adjustments */
@media (max-width: 992px) { /* Tablet */
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 768px) { /* Mobile */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .section-title { margin-bottom: var(--spacing-unit); }
  .section-intro { margin-bottom: calc(var(--spacing-unit) * 2); font-size: 1rem;}
  .content-section { padding: calc(var(--spacing-unit) * 3) 0; }
  .hero-section { padding: calc(var(--spacing-unit) * 3) 0; min-height: 60vh;}

  .contact-form-container {
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 1.5);
  }
  .contact-form, .contact-info {
    width: 100%;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav ul, .footer-social ul {
    justify-content: center;
    display: flex; /* For social links */
    flex-wrap: wrap; /* For social links */
  }
  .site-footer h4::after {
      margin-left: auto;
      margin-right: auto;
  }
}

@media (max-width: 480px) { /* Small Mobile */
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn, button[type="submit"], input[type="submit"] {
    padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2);
    font-size: 0.9rem;
  }
  .portfolio-carousel .card, .stories-carousel .card {
    min-width: 90%; /* Full width feel */
  }
  .stats-grid, .team-grid, .resources-grid {
    grid-template-columns: 1fr; /* Single column */
  }
}
*{
  opacity: 1 !important;
}