/* ========= Root Variables ========= */
:root {
  /* Color scheme */
  --primary-color: #ff416c;
  --primary-dark: #e62e55;
  --secondary-color: #00c9ff;
  --secondary-dark: #0091e6;
  --accent-color: #ffde03;
  --accent-dark: #e6c800;
  --dark-color: #1a1a2e;
  --light-color: #f7f7ff;
  --success-color: #00d68f;
  --warning-color: #ffd166;
  --danger-color: #ff6b6b;
  --info-color: #00bbf9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-dark: linear-gradient(135deg, var(--dark-color), #2d2d44);
  --gradient-light: linear-gradient(135deg, #ffffff, var(--light-color));
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  
  /* Animation */
  --transition-fast: 0.2s ease-out;
  --transition-medium: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Neo-Brutalism */
  --neo-shadow: 5px 5px 0px rgba(0, 0, 0, 0.8);
  --neo-border: 3px solid #000000;
}

/* ========= Global Styles ========= */
html, body {
  font-family: var(--body-font);
  color: var(--dark-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

.title, .subtitle {
  font-family: var(--heading-font);
}

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

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

/* Buttons */
.button {
  transition: all var(--transition-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.button.is-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pulse-button {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(255, 65, 108, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 65, 108, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
  }
}

/* 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: transform var(--transition-medium);
}

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

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* ========= Layout Styles ========= */
.container {
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

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

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

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

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

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

.card-content .title {
  margin-bottom: var(--spacing-md);
}

/* ========= Component Styles ========= */
/* Header/Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-fast);
  background-color: transparent;
}

.header.scrolled {
  background-color: white;
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

.navbar-item {
  transition: color var(--transition-fast);
  font-weight: 600;
}

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-body {
  padding-top: 6rem;
}

.hero .title, .hero .subtitle {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xl);
}

.scroll-down-arrow {
  display: block;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  bottom: var(--spacing-lg);
  left: 0;
  right: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* About Section */
#about .content {
  margin-bottom: var(--spacing-xl);
}

/* Vision Section */
#vision {
  position: relative;
  overflow: hidden;
}

#vision::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark);
  opacity: 0.9;
  z-index: 0;
}

#vision .container {
  position: relative;
  z-index: 1;
}

/* Services Section */
#services .card {
  transition: all var(--transition-medium);
  border-radius: var(--radius-md);
}

#services .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

#services .card-image {
  height: 200px;
  overflow: hidden;
}

#services .card-image img {
  transition: transform var(--transition-medium);
}

#services .card:hover .card-image img {
  transform: scale(1.1);
}

/* Features Section */
#features {
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

#features .card {
  text-align: center;
  height: 100%;
  border-radius: var(--radius-lg);
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

#features .card:hover {
  border-color: var(--primary-color);
}

#features .card-image {
  height: 200px;
}

/* Case Studies / Testimonials */
#case-studies .card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 100%;
}

#case-studies .card-image {
  height: 220px;
}

#case-studies .stars {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

/* Behind the Scenes */
#behind-scenes {
  position: relative;
  overflow: hidden;
}

#behind-scenes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark);
  opacity: 0.9;
  z-index: 0;
}

#behind-scenes .container {
  position: relative;
  z-index: 1;
}

#behind-scenes .gallery {
  margin-top: var(--spacing-xl);
}

#behind-scenes .image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  height: 200px;
}

#behind-scenes .image-container:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

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

#behind-scenes .image-container:hover img {
  transform: scale(1.1);
}

/* Resources Section */
#ressources .card {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: all var(--transition-medium);
}

#ressources .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Contact Section */
#contact {
  position: relative;
}

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

#contact form .button {
  margin-top: var(--spacing-md);
}

#contact .card-image {
  height: 300px;
  overflow: hidden;
}

#contact .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.footer-links a {
  color: #cccccc;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: #cccccc;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-fast);
}

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

/* Modal Gallery */
.modal-content {
  max-width: 80vw;
  max-height: 80vh;
}

#modal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.success-content {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  min-height: 100vh;
}

.privacy-page .content, .terms-page .content {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ========= AOS Customization ========= */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ========= Media Queries ========= */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  .hero .subtitle {
    font-size: 1.2rem;
  }
  .section {
    padding: var(--spacing-lg) 0;
  }
  .card {
    margin-bottom: var(--spacing-md);
  }
  .navbar-menu {
    background-color: white;
    box-shadow: var(--shadow-md);
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
}