/* CSS Variables for Theme */
:root {
  /* Primary Colors */
  --primary-color: #7fc8f8; /* Pastel blue */
  --primary-dark: #5a9bd5; /* Darker blue for hover states */
  --secondary-color: #ffa69e; /* Pastel salmon */
  --secondary-dark: #ff7e7e; /* Darker salmon */
  --accent-color: #b8f2e6; /* Mint accent */
  --accent-dark: #95d8c8; /* Darker mint */
  
  /* Neutral Colors */
  --bg-light: #fafafa;
  --bg-card: #ffffff;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  
  /* UI Colors */
  --success: #aed9a7;
  --warning: #ffd166;
  --error: #ef626c;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* 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-pill: 999px;
  
  /* Shape morphing */
  --blob-size: 300px;
}

/* General Styles */
html, body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Biomorphic shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  filter: blur(40px);
  transition: transform var(--transition-slow);
  animation: morph 10s ease-in-out infinite;
}

.shape-1 {
  background: var(--primary-color);
  width: var(--blob-size);
  height: var(--blob-size);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  background: var(--secondary-color);
  width: calc(var(--blob-size) * 1.5);
  height: calc(var(--blob-size) * 1.5);
  bottom: -150px;
  left: -150px;
  animation-delay: 3s;
}

.shape-3 {
  background: var(--accent-color);
  width: calc(var(--blob-size) * 0.8);
  height: calc(var(--blob-size) * 0.8);
  top: 50%;
  right: 10%;
  animation-delay: 6s;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Button Styles */
.button, .custom-button, button, input[type="submit"] {
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button:hover, .custom-button:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-primary, .custom-button {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover, .custom-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-outlined.is-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Navbar Styles */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.navbar-item {
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
}

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

/* Hero Section */
.hero {
  position: relative;
  color: white;
}

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

.hero-body {
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
}

.hero h1, .hero h2, .hero p {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .button {
  margin-top: var(--spacing-md);
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Card Styles */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
}

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

.card-image {
  overflow: hidden;
  text-align: center;
}

.image-container {
  overflow: hidden;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.feature-card .title, .benefit-card .title, .resource-card .title {
  color: var(--primary-dark);
}

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

/* About Section */
.about-section {
  background-color: var(--bg-light);
  position: relative;
}

/* Features Section */
.features-section {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-light), white);
}

.feature-slider {
  position: relative;
  margin: var(--spacing-md) 0;
}

.feature-slide {
  display: none;
}

.feature-slide:first-child {
  display: block;
}

.slider-controls, .carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.prev-btn, .next-btn, .carousel-prev, .carousel-next {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.prev-btn:hover, .next-btn:hover, .carousel-prev:hover, .carousel-next:hover {
  background: var(--primary-dark);
}

.slider-dots, .carousel-dots {
  display: flex;
  margin: 0 var(--spacing-md);
}

.dot, .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-light);
  margin: 0 5px;
  cursor: pointer;
}

.dot.active, .carousel-dot.active {
  background: var(--primary-color);
}

/* Benefits Section */
.benefits-section {
  background: linear-gradient(to bottom, white, var(--bg-light));
}

.benefit-card {
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--bg-light);
}

.testimonial-carousel {
  position: relative;
  margin: var(--spacing-md) 0;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide:first-child {
  display: block;
}

.testimonial-card {
  text-align: center;
  padding: var(--spacing-md);
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: var(--spacing-sm);
}

/* Resources Section */
.resources-section {
  background-color: white;
}

.resource-card {
  text-align: center;
}

/* Blog Section */
.blog-section {
  background-color: var(--bg-light);
}

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

.blog-card .button {
  margin-top: auto;
  align-self: flex-start;
}

/* Media Section */
.media-section {
  background-color: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
  height: 250px;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--bg-light);
}

.accordion {
  margin-top: var(--spacing-md);
}

.accordion-item {
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  cursor: pointer;
  background-color: var(--bg-card);
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.accordion-header .title {
  margin: 0;
}

.accordion-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  display: none;
}

.accordion-content.active {
  display: block;
}

.accordion-header .icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
  background-color: white;
}

.contact-card {
  box-shadow: var(--shadow-md);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

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

.info-item h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--primary-dark);
}

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

.map-container {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container img {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.location-details {
  padding: var(--spacing-md);
  background-color: var(--bg-card);
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer .title, .footer p {
  color: white;
}

.footer-links {
  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: white;
}

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

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

.social-links a:hover {
  color: white;
}

.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: white;
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter .button {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

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

.copyright {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-md);
}

.success-content {
  max-width: 700px;
}

.success-icon {
  font-size: 5rem;
  color: var(--success);
  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-md);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .hero .title.is-1 {
    font-size: 2rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.25rem;
  }
  
  .card-image .image-container {
    height: 200px;
  }
  
  .gallery-item {
    height: 200px;
  }
}