:root {
  /* Main color palette */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  --secondary-light: #58d68d;
  
  --accent-color: #f39c12;
  --accent-dark: #d35400;
  --accent-light: #f5b041;
  
  /* Neutral colors */
  --dark: #333333;
  --medium-dark: #555555;
  --medium: #777777;
  --medium-light: #999999;
  --light: #f8f9fa;
  
  /* Text colors */
  --text-dark: #222222;
  --text-medium: #555555;
  --text-light: #ffffff;
  
  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-blur: 10px;
  
  /* Biomorphic design variables */
  --border-radius-sm: 10px;
  --border-radius-md: 20px;
  --border-radius-lg: 30px;
  --border-radius-xl: 50px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--medium);
  text-align: center;
}

/* Glassmorphism Container */
.glassmorphism-container {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  padding: 2rem;
  transition: all var(--transition-medium);
}

.glassmorphism-container:hover {
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Biomorphic Cards */
.biomorphic-card {
  background: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
}

.biomorphic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
  text-align: center;
  height: 250px;
}

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

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

.card-content {
  padding: 1.5rem;
  width: 100%;
  text-align: center;
}

/* Header & Navigation */
.glassmorphism-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-brand h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.navbar-brand img {
  width: 50px;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover:before {
  width: 70%;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transition: all 0.8s ease;
}

.btn:hover::after {
  left: 100%;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.elastic-btn {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-pressed {
  transform: scale(0.95);
}

/* Services Section */
.services-section {
  background-color: var(--light);
}

.services-section .card-image {
  height: 220px;
}

/* Portfolio Section */
.portfolio-section {
  background-color: #f9f9f9;
}

.portfolio-item {
  margin-bottom: 2rem;
  height: 100%;
}

.portfolio-item .card-image {
  height: 220px;
}

/* Insights Section */
.insights-section .card-image {
  height: 300px;
}

/* FAQ Section */
.faq-section {
  background-color: #f9f9f9;
}

.accordion-item {
  margin-bottom: 1rem;
  border: none;
  background: transparent;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  background-color: white;
  border-radius: var(--border-radius-sm) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-button::after {
  background-size: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-body {
  padding: 1.5rem;
  background-color: white;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

/* News Section */
.news-section .news-card {
  height: 100%;
}

.news-section .card-image {
  height: 220px;
}

.news-date {
  color: var(--medium);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.news-card .btn {
  margin-top: auto;
}

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

.contact-info h3,
.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: left;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.contact-item p {
  margin-bottom: 0;
  color: var(--text-medium);
}

.contact-form .form-control {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  border: 1px solid #e1e1e1;
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Map Section */
.map-container {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
}

/* Footer Section */
.footer-section {
  background-color: var(--dark);
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-section p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: white;
  margin-right: 1rem;
  transition: all var(--transition-fast);
  font-weight: 600;
}

.social-links a:hover {
  color: var(--primary-light);
  transform: translateY(-3px);
  display: inline-block;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ccc;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 15px;
  display: inline-block;
}

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

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.newsletter-form .form-control::placeholder {
  color: #aaa;
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.newsletter-form .btn {
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 33, 33, 0.95);
  color: white;
  z-index: 9999;
  display: none;
}

.cookie-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 1rem;
}

.cookie-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Success Page */
.success-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--light);
}

.success-content {
  max-width: 600px;
  padding: 2rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.success-page h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.success-page p {
  margin-bottom: 2rem;
  color: var(--text-medium);
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.privacy-content,
.terms-content {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.privacy-content h2,
.terms-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p,
.terms-content p {
  margin-bottom: 1.5rem;
}

/* Read more links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-right: 20px;
  transition: all var(--transition-fast);
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  padding-right: 25px;
}

.read-more:hover:after {
  right: -5px;
}

/* Resource Cards */
.resources-section .biomorphic-card {
  text-align: center;
  height: 100%;
}

.resources-section .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.resources-section .btn {
  margin-top: auto;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
}