@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css');

:root {
  --primary-color: #E63946;
  --primary-dark: #C1303B;
  --primary-light: #FF5A66;
  --secondary-color: #F4A261;
  --secondary-dark: #E89451;
  --secondary-light: #FFB77A;
  --accent-color: #2A9D8F;
  --accent-dark: #238276;
  --accent-light: #34B5A5;
  --dark-bg: #1D3557;
  --darker-bg: #152840;
  --light-bg: #F1FAEE;
  --off-white: #FEFEFE;
  --text-dark: #1A1A2E;
  --text-light: #F1FAEE;
  --text-muted: #6C757D;
  --border-color: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(230, 57, 70, 0.1);
  --shadow-md: 0 4px 20px rgba(230, 57, 70, 0.15);
  --shadow-lg: 0 10px 40px rgba(230, 57, 70, 0.2);
  --shadow-xl: 0 20px 60px rgba(230, 57, 70, 0.25);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --gradient-dark: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 57, 70, 0.1);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition-base);
}

.logo:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-base);
  font-size: 0.95rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-base);
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    right: 0;
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--primary-color);
    transform: translateX(100%);
    transition: var(--transition-base);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

.btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--gradient-dark);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1000px;
  width: calc(100% - 4rem);
  background: rgba(29, 53, 87, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  border: 1px solid rgba(230, 57, 70, 0.2);
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-text h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.cookie-banner-text p {
  color: rgba(241, 250, 238, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: var(--transition-base);
}

.cookie-banner-text a:hover {
  color: var(--secondary-light);
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 1rem;
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

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

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-base);
  background: var(--off-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  flex: 1;
  cursor: pointer;
}

.form-error {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--primary-color);
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  background: rgba(42, 157, 143, 0.1);
  border: 2px solid var(--accent-color);
  color: var(--accent-dark);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.accordion {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.accordion:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: 1.75rem 2rem;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
  border-bottom: 2px solid transparent;
}

.accordion-header:hover {
  background: var(--light-bg);
}

.accordion-header.active {
  background: var(--light-bg);
  border-bottom-color: var(--primary-color);
}

.accordion-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition-base);
}

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

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content-inner {
  padding: 2rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-color);
}

.accordion-content.active {
  max-height: 1000px;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid var(--light-bg);
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
  border: 2px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

.section-divider {
  height: 2px;
  background: var(--gradient-primary);
  max-width: 200px;
  margin: 2rem auto;
  border-radius: 10px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
}

.badge-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -25%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.15) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.section-padding {
  padding: 6rem 2rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 1.5rem;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.shadow-hover {
  transition: var(--transition-base);
}

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

.feature-icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.feature-icon-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: var(--transition-slow);
}

.feature-icon-box:hover::before {
  left: 100%;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid var(--border-color);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1;
  margin: 1.5rem 0;
}

.pricing-price span {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
}

.pricing-features li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 6rem;
  color: rgba(230, 57, 70, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

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

.testimonial-text {
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.testimonial-info h5 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.testimonial-info p {
  margin: 0.25rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-section {
  background: var(--gradient-dark);
  border-radius: 30px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.4;
}

.cta-section h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(241, 250, 238, 0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition-base);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.footer {
  background: var(--darker-bg);
  color: rgba(241, 250, 238, 0.8);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(241, 250, 238, 0.8);
  text-decoration: none;
  line-height: 2;
  transition: var(--transition-base);
}

.footer-section a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-section ul {
  list-style: none;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(241, 250, 238, 0.1);
  text-align: center;
  color: rgba(241, 250, 238, 0.6);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 24px;
  padding: 3rem;
  max-width: 600px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--light-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(90deg);
}

.modal h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-up {
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.stats-section {
  background: var(--gradient-primary);
  padding: 4rem 2rem;
  border-radius: 30px;
  color: white;
  margin: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.tag {
  padding: 0.5rem 1.25rem;
  background: var(--light-bg);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition-base);
  cursor: pointer;
}

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

.progress-bar {
  background: var(--light-bg);
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: calc(50% + 3rem);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
  margin-left: calc(50% + 3rem);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }
}