:root {
  /* Base colors */
  --primary-color: #6366f1; /* indigo-600 */
  --primary-dark: #4f46e5; /* indigo-700 */
  --primary-light: #818cf8; /* indigo-400 */
  
  --secondary-color: #a855f7; /* purple-500 */
  --secondary-dark: #9333ea; /* purple-600 */
  --secondary-light: #c084fc; /* purple-400 */
  
  --background-light: #f5f3ff; /* purple-50 */
  --background-medium: #ede9fe; /* purple-100 */
  --background-dark: #312e81; /* indigo-900 */
  
  --text-dark: #1e293b; /* slate-800 */
  --text-medium: #475569; /* slate-600 */
  --text-light: #f8fafc; /* slate-50 */
  
  /* Gradients */
  --gradient-primary: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  --gradient-primary-hover: linear-gradient(to right, var(--secondary-dark), var(--primary-dark));
  --gradient-hero: linear-gradient(to right, rgba(91, 33, 182, 0.7), rgba(67, 56, 202, 0.7));
  --gradient-footer: linear-gradient(to right, #312e81, #581c87);
  --gradient-card: linear-gradient(to bottom right, rgba(237, 233, 254, 0.8), rgba(245, 243, 255, 0.8));
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.3s all ease;
  --transition-medium: 0.5s all ease;
  --transition-slow: 0.8s all ease;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

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

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: linear-gradient(to bottom right, var(--background-light), var(--background-medium));
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient {
  background: var(--gradient-primary);
}

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

/* Buttons */
.btn-primary, 
.btn-secondary,
button[type="submit"] {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Header */
header {
  transition: var(--transition-fast);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  transition: transform 0.3s ease;
}

#menu-toggle.active {
  transform: rotate(90deg);
}

#mobile-menu {
  transition: var(--transition-medium);
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.active {
  max-height: 300px;
}

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

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-title {
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero-description {
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-buttons {
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* Mission Section */
.mission-image {
  transition: var(--transition-medium);
  box-shadow: var(--shadow-lg);
}

.mission-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: var(--transition-fast);
}

.toggle-label:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.toggle-input:checked + .toggle-label {
  background: var(--gradient-primary);
}

.toggle-input:checked + .toggle-label:before {
  transform: translateX(24px);
}

#mission-details {
  transition: var(--transition-medium);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#mission-details.active {
  max-height: 500px;
  opacity: 1;
}

/* Process Section */
.process-card {
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

.animated-icon-container {
  display: flex;
  justify-content: center;
  animation: pulse 2s infinite ease-in-out;
}

.custom-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.custom-slider {
  overflow: hidden;
}

.custom-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.custom-slide {
  flex: 0 0 100%;
  border-radius: var(--radius-lg);
}

.custom-slider-btn {
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-slider-btn:hover {
  transform: scale(1.1);
}

/* History Section */
.timeline-item {
  position: relative;
  z-index: 1;
}

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

.timeline-item img {
  transition: var(--transition-medium);
}

/* Partners Section */
.partner-card {
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.partner-card img {
  margin: 0 auto;
  transition: var(--transition-medium);
}

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

/* Clientele Section */
.client-card {
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

/* Pricing Section */
.pricing-card {
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card ul li {
  margin-bottom: 0.5rem;
}

/* Careers Section */
.career-card {
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Resources Section */
.resource-card {
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

.resource-card a {
  position: relative;
  display: inline-block;
  transition: var(--transition-fast);
}

.resource-card a:hover {
  transform: translateX(5px);
}

/* Contact Section */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
  cursor: pointer;
}

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

.success-content {
  max-width: 600px;
  animation: fadeIn 1s ease-out;
}

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  position: relative;
  background: var(--gradient-footer);
}

footer a {
  transition: var(--transition-fast);
}

footer a:hover {
  color: white !important;
}

footer form input {
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

footer form button {
  border: none;
  outline: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

footer form button:hover {
  background: var(--gradient-primary-hover);
}

/* Social Media Links */
.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .timeline-item:before {
    left: 0;
    transform: translateX(0);
  }
}

/* ScrollReveal Animations */
.reveal-top {
  visibility: hidden;
}

.reveal-bottom {
  visibility: hidden;
}

.reveal-left {
  visibility: hidden;
}

.reveal-right {
  visibility: hidden;
}

.reveal-fade {
  visibility: hidden;
}

/* Additional Animation Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Parallax Effects */
.parallax {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
}

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
}

.read-more:after {
  content: "→";
  margin-left: 0.5rem;
  transition: var(--transition-fast);
}

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

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