/* ===== VARIABLES & GLOBAL STYLES ===== */
:root {
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Complementary Color Scheme */
  --primary: #4361ee;
  --primary-dark: #3147c2;
  --secondary: #ff7d3e;
  --secondary-dark: #e65c1e;
  --accent-light: #4cc9f0;
  --accent-dark: #219ebc;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --text-light: #fcfcfc;
  --text-dark: #2d3748;
  --text-muted: #718096;
  --bg-light: #f8fafc;
  --bg-dark: #1a202c;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(31, 38, 135, 0.2);
  --glass-blur: 10px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--warning) 100%);
  --gradient-dark: linear-gradient(135deg, rgba(26, 32, 44, 0.8) 0%, rgba(45, 55, 72, 0.8) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Typography */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1rem;
}

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

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

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

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent-light) !important; }
.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-muted { color: var(--text-muted) !important; }

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

/* ===== GLASSMORPHISM EFFECT ===== */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: 10px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 var(--glass-shadow);
}

.glassmorphism-navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: background var(--transition-normal);
}

/* ===== BUTTONS & FORM ELEMENTS ===== */
.btn, 
button, 
input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.btn:hover, 
button:hover, 
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-primary, 
button.btn-primary, 
input[type='submit'] {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
  color: var(--text-light);
}

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

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, #e67e22 100%);
  color: var(--text-light);
}

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

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--text-light);
}

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

.btn-outline-light:hover {
  background: var(--text-light);
  color: var(--primary);
}

.animated-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.animated-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) skewX(-30deg);
  transition: transform 0.6s ease;
  z-index: -1;
}

.animated-btn:hover:before {
  transform: translateX(0%) skewX(-15deg);
}

.form-control, .form-select {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-normal);
}

.form-control:focus, 
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
  border-color: var(--primary);
}

.animated-input {
  transition: all var(--transition-normal);
}

.animated-input:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition-fast);
}

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

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

.nav-link:hover:after {
  width: 80%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1,
.hero-content p,
.hero-content .btn {
  animation: fadeInUp 1s forwards;
  opacity: 0;
}

.hero-content h1 {
  animation-delay: 0.2s;
}

.hero-content p {
  animation-delay: 0.4s;
}

.hero-content .btn {
  animation-delay: 0.6s;
}

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

/* ===== FEATURES SECTION ===== */
.features-section {
  position: relative;
  background-color: var(--bg-light);
}

.feature-card {
  height: 100%;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

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

.card-image {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 1rem;
}

.image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.card-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.card-content h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

/* ===== METHODOLOGY SECTION ===== */
.methodology-section {
  position: relative;
  background-color: #f9f9f9;
}

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

.methodology-image img {
  transition: transform var(--transition-slow);
}

.methodology-image:hover img {
  transform: scale(1.03);
}

.methodology-content {
  height: 100%;
}

.step-item {
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-light);
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.progress-bar-custom {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-bar-custom .progress-bar {
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  position: relative;
  background-color: var(--bg-light);
}

.resource-card {
  height: 100%;
  transition: transform var(--transition-normal);
}

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

.resource-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.resource-card h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  position: relative;
  background-color: #f4f7fc;
}

.testimonial-card {
  overflow: hidden;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text:before {
  content: '"';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
}

.testimonial-author h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  position: relative;
  background-color: var(--bg-light);
}

.contact-info,
.contact-form {
  height: 100%;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-map {
  overflow: hidden;
  border-radius: 8px;
}

.contact-map img {
  transition: transform var(--transition-normal);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.contact-info:hover .contact-map img {
  transform: scale(1.05);
}

/* ===== FOOTER SECTION ===== */
.footer-section {
  position: relative;
  background-color: #f9f9f9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-brand h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.social-links a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
  font-weight: 500;
}

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

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-dark);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  font-size: 0.9rem;
}

/* ===== PARALLAX EFFECT ===== */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ===== MODAL STYLES ===== */
.modal-content {
  border: none;
}

.modal-header {
  border-bottom: none;
}

.modal-title {
  color: var(--primary);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
}

.success-content {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
}

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

/* ===== ABOUT, PRIVACY, TERMS PAGES ===== */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.page-header h1:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
  }
  
  .hero-section {
    padding-top: 6rem;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .step-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding-top: 5rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@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);
  }
}

/* Card floating animation */
.float-animation {
  animation: float 6s ease-in-out infinite;
}