:root {
  /* Color scheme */
  --primary: #3a36e0;
  --primary-dark: #2826a6;
  --secondary: #ff4d8f;
  --secondary-dark: #e63375;
  --accent: #00e6cc;
  --accent-dark: #00b3a1;
  --light: #f8f9fa;
  --dark: #212529;
  --text: #333333;
  --text-light: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #343a40;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* Gradient backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary), #6a67ff);
  --gradient-secondary: linear-gradient(135deg, var(--secondary), #ff8ab5);
  --gradient-accent: linear-gradient(135deg, var(--accent), #7df9ea);
  --gradient-dark: linear-gradient(135deg, var(--dark), #3a3f44);
  
  /* Shadow */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s;
  --transition: 0.3s;
  --transition-slow: 0.5s;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
}

/* =========== GLOBAL STYLES =========== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: var(--spacing);
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: var(--spacing-xl);
}

h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--spacing-md);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.py-5 {
  padding-top: var(--spacing-xxl) !important;
  padding-bottom: var(--spacing-xxl) !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* =========== BUTTONS =========== */

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text-light);
}

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

/* =========== NAVBAR =========== */

.navbar {
  padding: var(--spacing) 0;
  transition: all var(--transition-fast);
  background: var(--gradient-dark);
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-light);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--text-light);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* =========== HERO SECTION =========== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  color: var(--text-light);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
}

/* =========== STATISTICS SECTION =========== */

.statistics {
  background: var(--light);
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.stat-icon {
  margin-bottom: var(--spacing);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  font-family: 'Space Grotesk', sans-serif;
}

.stat-text {
  font-size: 1rem;
  color: var(--gray);
}

/* =========== HISTORY SECTION =========== */

.history {
  position: relative;
  overflow: hidden;
}

.history:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.03;
  z-index: -1;
}

.history-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.history-content {
  padding: var(--spacing-lg);
}

.history-content h3 {
  color: var(--primary);
  margin-bottom: var(--spacing);
}

/* =========== CASE STUDIES SECTION =========== */

.case-studies {
  background-color: var(--light);
}

.case-studies .card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.case-studies .card-image {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.case-studies .card-content {
  padding: var(--spacing-lg);
  flex: 1;
}

.case-studies h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing);
  color: var(--primary);
}

/* =========== ACCOLADES SECTION =========== */

.accolades {
  background: linear-gradient(135deg, rgba(58, 54, 224, 0.05), rgba(0, 230, 204, 0.05));
}

.accolade-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.accolade-card img {
  max-width: 120px;
  margin-bottom: var(--spacing);
}

.accolade-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.accolade-card p {
  color: var(--gray);
  margin: 0;
}

/* =========== PORTFOLIO SECTION =========== */

.portfolio .card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.portfolio .card-content {
  padding: var(--spacing-lg);
  flex: 1;
}

.portfolio h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing);
  color: var(--primary);
}

/* =========== RESOURCES SECTION =========== */

.resources {
  background: linear-gradient(135deg, rgba(255, 77, 143, 0.05), rgba(58, 54, 224, 0.05));
}

.resource-card {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  height: 100%;
  transition: all var(--transition);
}

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

.resource-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing);
  text-align: center;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-list li {
  margin-bottom: var(--spacing);
}

.resource-list a {
  display: block;
  padding: var(--spacing);
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: var(--gray-dark);
  text-align: center;
}

.resource-list a:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateX(5px);
}

/* =========== TESTIMONIALS SECTION =========== */

.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  opacity: 0.03;
  z-index: -1;
}

.testimonial-card {
  border: none;
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.testimonial-card .card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.testimonial-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.testimonial-card .rating {
  color: var(--warning);
  font-size: 1.25rem;
  margin-bottom: var(--spacing);
}

/* =========== SUCCESS STORIES SECTION =========== */

.success-stories {
  background: linear-gradient(135deg, rgba(0, 230, 204, 0.05), rgba(255, 77, 143, 0.05));
}

.success-story {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition);
}

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

.success-story img {
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing);
}

.success-story h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.success-story p strong {
  color: var(--success);
  font-weight: 700;
}

/* =========== TEAM SECTION =========== */

.team {
  position: relative;
  overflow: hidden;
}

.team:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.03;
  z-index: -1;
}

.team-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.team-card .card-content {
  padding: var(--spacing-lg);
  flex: 1;
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.team-card .position {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: var(--spacing);
}

/* =========== COMMUNITY SECTION =========== */

.community {
  background: linear-gradient(135deg, rgba(58, 54, 224, 0.05), rgba(255, 77, 143, 0.05));
}

.community img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.community h3 {
  color: var(--primary);
  margin-bottom: var(--spacing);
}

/* =========== CONTACT SECTION =========== */

.contact {
  position: relative;
}

.contact-info {
  padding: var(--spacing-lg);
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: var(--spacing);
}

.contact-methods {
  margin-top: var(--spacing-lg);
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing);
}

.contact-method img {
  margin-right: var(--spacing);
}

.contact-method p {
  margin: 0;
}

.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 500;
}

.form-control {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(58, 54, 224, 0.25);
}

/* =========== FOOTER =========== */

.footer {
  background: var(--gradient-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.footer:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing);
}

.footer h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

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

.social-links {
  display: flex;
  gap: var(--spacing);
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-light);
}

.newsletter h5 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* =========== SUCCESS PAGE =========== */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(58, 54, 224, 0.05), rgba(0, 230, 204, 0.05));
}

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

.success-icon {
  font-size: 5rem;
  color: var(--success);
  margin-bottom: var(--spacing);
}

/* =========== PRIVACY & TERMS PAGE =========== */

.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

.page-content h1 {
  margin-bottom: var(--spacing-xl);
  color: var(--primary);
}

.page-content h2 {
  margin-top: var(--spacing-xl);
  color: var(--secondary);
}

.page-content p {
  margin-bottom: var(--spacing);
}

/* =========== ANIMATIONS =========== */

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

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

/* =========== UTILITY CLASSES =========== */

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--dark) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-circle { border-radius: 50% !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* =========== MEDIA QUERIES =========== */

@media (max-width: 991.98px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  
  .navbar-collapse {
    background: var(--dark);
    padding: var(--spacing);
    border-radius: var(--radius);
    margin-top: var(--spacing-sm);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  section { padding: var(--spacing-lg) 0; }
  
  .py-5 {
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-xl) !important;
  }
  
  .contact-form { margin-top: var(--spacing-lg); }
  
  .hero { min-height: 70vh; }
}

@media (max-width: 575.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  
  .stat-number { font-size: 2.5rem; }
}

/* =========== COOKIE CONSENT =========== */

#cookie-consent {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  text-align: center;
  padding: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

#accept-cookies {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}