/* CSS Variables for Theme */
:root {
  /* Split-Complementary Color Scheme */
  --primary-color: #FF6B35;
  --primary-dark: #E5522F;
  --primary-light: #FF8A63;
  --secondary-color: #35A7FF;
  --secondary-dark: #2B85CC;
  --accent-color: #35FF6B;
  --accent-dark: #2EE55F;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --black: #000000;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 15px;
  
  /* Shadows for Neumorphism */
  --shadow-light: 8px 8px 16px rgba(163, 177, 198, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-dark: inset 8px 8px 16px rgba(163, 177, 198, 0.2), inset -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-brutal: 4px 4px 0px var(--black);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-100);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.875rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Section Utilities */
.section-padding {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--gray-800);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-brand img {
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.navbar-toggler {
  border: none;
  box-shadow: var(--shadow-light);
  border-radius: 8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white) !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  animation: slideInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--white) !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  animation: slideInUp 1s ease-out 0.3s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Button Styles - Global */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-brutal);
  border: 2px solid var(--black);
}

.btn-primary:hover {
  transform: translateY(-3px) translateX(-3px);
  box-shadow: 7px 7px 0px var(--black);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: 4px 4px 0px rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px) translateX(-3px);
  box-shadow: 7px 7px 0px rgba(255,255,255,0.3);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Card Styles - Neumorphism + Neo-Brutalism */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--black);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 8px 8px 0px var(--black);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h4,
.card-content h5 {
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* About Section */
.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.evolution-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item span {
  color: var(--gray-600);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Image Container */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--black);
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

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

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-light);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--black);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Methodology Cards */
.methodology-card {
  height: 100%;
  transition: all 0.3s ease;
}

.methodology-card:hover {
  transform: translateY(-10px) translateX(-5px);
  box-shadow: 10px 10px 0px var(--black);
}

/* Clientele Section */
.client-card {
  text-align: center;
  height: 100%;
}

.client-card .card-image {
  height: 200px;
}

/* Sustainability Toggles */
.sustainability-features {
  margin-top: 2rem;
}

.feature-toggle {
  margin-bottom: 1rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
}

.toggle-input {
  margin-right: 1rem;
  width: 50px;
  height: 25px;
  background: var(--gray-300);
  border-radius: 25px;
  position: relative;
  appearance: none;
  transition: all 0.3s ease;
  border: 2px solid var(--black);
}

.toggle-input:checked {
  background: var(--primary-color);
}

.toggle-input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid var(--black);
}

.toggle-input:checked::before {
  transform: translateX(25px);
}

/* Resources Section */
.resource-card {
  height: 100%;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px) translateX(-3px);
  box-shadow: 8px 8px 0px var(--black);
}

.resource-card h5 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Contact Form */
.contact-form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 3px solid var(--black);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Carousel Styles */
.content-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-light);
  border: 2px solid var(--black);
}

.carousel-container {
  position: relative;
}

.carousel-slide {
  display: none;
  padding: 2rem;
}

.carousel-slide.active {
  display: block;
}

/* Footer Styles */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-brand h5 {
  color: var(--white);
  margin: 0;
}

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

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

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--gray-300);
  text-decoration: none;
  padding: 8px 12px;
  border: 2px solid var(--gray-600);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-links a:hover {
  color: var(--white);
  border-color: var(--primary-color);
  background: var(--primary-color);
  transform: translateY(-2px);
}

.newsletter-form .input-group {
  display: flex;
  gap: 0;
}

.newsletter-form .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.newsletter-form .btn {
  border-radius: 0 8px 8px 0;
  border: 2px solid var(--primary-color);
}

.footer-divider {
  border-color: var(--gray-600);
  margin: 2rem 0 1rem;
}

.footer p {
  margin: 0;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer p a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer p a:hover {
  text-decoration: underline;
}

/* Animation Keyframes */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Success Page Styles */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  padding: 2rem;
}

.success-content {
  text-align: center;
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 3px solid var(--black);
  max-width: 500px;
  width: 100%;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.success-content p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.content-page h2 {
  color: var(--gray-800);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.content-page ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

/* Cookie Popup Styles */
.cookie-popup {
  font-family: var(--font-body);
}

.cookie-popup p {
  margin-bottom: 15px;
  line-height: 1.5;
}

#acceptCookies {
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.3s ease;
}

#acceptCookies:hover {
  background: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .evolution-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  .social-links {
    flex-wrap: wrap;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn {
    display: inline-block;
    width: auto;
    margin-right: 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .success-content {
    padding: 2rem;
  }
  
  .content-page {
    padding-top: 100px;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --gray-600: #333333;
    --gray-700: #222222;
    --gray-800: #111111;
  }
  
  .btn {
    border-width: 3px;
  }
  
  .card {
    border-width: 3px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero-buttons,
  .contact-form-container {
    display: none;
  }
  
  .hero-section {
    background: none;
    color: var(--black);
  }
  
  .hero-title,
  .hero-subtitle {
    color: var(--black) !important;
  }
}