:root {
  /* Triadic color scheme */
  --primary-color: #3b82f6; /* Blue */
  --secondary-color: #9333ea; /* Purple */
  --tertiary-color: #f59e0b; /* Yellow/Orange */
  
  /* Darker variations for hover states */
  --primary-dark: #2563eb;
  --secondary-dark: #7e22ce;
  --tertiary-dark: #d97706;
  
  /* Lighter variations for highlights */
  --primary-light: #93c5fd;
  --secondary-light: #c4b5fd;
  --tertiary-light: #fcd34d;
  
  /* Neutral colors */
  --neutral-dark: #1f2937;
  --neutral-medium: #6b7280;
  --neutral-light: #f3f4f6;
  
  /* Font families */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Shadows for neumorphism */
  --shadow-small: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.8);
  --shadow-medium: 10px 10px 20px rgba(0, 0, 0, 0.1), -10px -10px 20px rgba(255, 255, 255, 0.8);
  --shadow-large: 15px 15px 30px rgba(0, 0, 0, 0.1), -15px -15px 30px rgba(255, 255, 255, 0.8);
  
  /* Inset shadows for pressed states */
  --shadow-inset: inset 6px 6px 12px rgba(0, 0, 0, 0.1), inset -6px -6px 12px rgba(255, 255, 255, 0.8);
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Responsive Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  
  h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }
}

/* Header Styles */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav a {
  position: relative;
  transition: color 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

#mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

/* Button styles - Global */
.btn,
button:not([class]),
input[type="submit"],
.bg-blue-600 {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-small);
  position: relative;
  overflow: hidden;
}

.btn:hover,
button:not([class]):hover,
input[type="submit"]:hover,
.bg-blue-600:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn:active,
button:not([class]):active,
input[type="submit"]:active,
.bg-blue-600:active {
  transform: translateY(0);
  box-shadow: var(--shadow-inset);
}

.btn::before,
button:not([class])::before,
input[type="submit"]::before,
.bg-blue-600::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 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.5s ease;
}

.btn:hover::before,
button:not([class]):hover::before,
input[type="submit"]:hover::before,
.bg-blue-600:hover::before {
  left: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: -1;
}

.hero-section h1,
.hero-section p {
  color: #FFFFFF !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Card styles */
.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-small);
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

/* 3D Effects for Cards */
.feature-card, .card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.feature-card.visible, .card.visible {
  animation: cardEntrance 0.8s ease forwards;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) translateZ(-100px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0);
  }
}

/* Process Timeline */
.process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for timeline circles */
@keyframes pulseCircle {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.timeline-circle {
  animation: pulseCircle 2s infinite;
}

/* Features Section */
.icon-container {
  transition: all 0.3s ease;
}

.feature-card:hover .icon-container {
  transform: translateY(-5px);
}

/* Animated icons */
.animated-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .animated-icon {
  transform: scale(1.2);
}

/* Services Section */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Case Studies Section */
.case-study-card {
  overflow: hidden;
}

.case-study-card img {
  transition: transform 0.5s ease;
}

.case-study-card:hover img {
  transform: scale(1.1);
}

.result-badge {
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  display: inline-block;
  font-weight: 600;
  margin-top: 1rem;
}

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

.resource-card:hover {
  transform: translateY(-10px);
}

.resource-card .icon {
  transition: transform 0.3s ease;
}

.resource-card:hover .icon {
  transform: rotate(10deg);
}

/* Team Section */
.team-card {
  overflow: hidden;
}

.team-card img {
  transition: all 0.5s ease;
}

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

.social-links a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Partners Section */
.partner-logo {
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Awards Section */
.award-item {
  transition: all 0.3s ease;
}

.award-item:hover {
  transform: translateY(-5px);
}

.award-icon {
  transition: transform 0.3s ease;
}

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

/* Events Calendar Section */
.event-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-10px);
}

.event-date {
  position: relative;
  overflow: hidden;
}

.event-date::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.event-card:hover .event-date::before {
  opacity: 1;
}

/* Contact Section */
.contact-form input,
.contact-form textarea,
.contact-form select {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.contact-form .focused label {
  transform: translateY(-1.5rem);
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--neutral-dark);
  color: white;
}

footer a {
  transition: color 0.3s ease;
}

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

/* Social links in footer */
footer .social-links a {
  color: var(--neutral-light);
  margin-right: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Privacy and Terms pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page h1 {
  margin-bottom: 2rem;
}

.content-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Cookie consent popup */
#cookie-popup {
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

#cookie-popup.visible {
  transform: translateY(0);
}

/* Read more links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more svg {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

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

.read-more:hover svg {
  transform: translateX(5px);
}

/* Image containers */
.image-container {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Neumorphic elements */
.neumorph {
  border-radius: 12px;
  background: var(--neutral-light);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.neumorph:hover {
  box-shadow: var(--shadow-large);
}

.neumorph-inset {
  border-radius: 12px;
  background: var(--neutral-light);
  box-shadow: var(--shadow-inset);
}

/* Statistics widgets */
.stat-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.stat-widget:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
}

.stat-label {
  color: var(--neutral-medium);
  font-size: 1rem;
}

/* Modal windows */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--shadow-large);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--neutral-medium);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--neutral-dark);
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-circle {
    left: 30px !important;
    margin-left: 0 !important;
  }
  
  .timeline-content {
    margin-left: 60px;
  }
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

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

.float {
  animation: float 4s ease-in-out infinite;
}

@keyframes gradientBg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animation {
  background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
  background-size: 400% 400%;
  animation: gradientBg 15s ease infinite;
}

/* Additional utility classes */
.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.blur-bg {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}