/* EZducate Landing Page v3 - Enhanced Animations */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #374151;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Custom Properties */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Custom Gradient Properties */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ==================== TYPOGRAPHY & TEXT EFFECTS ==================== */

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-color), #f5576c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Gradient Glow Text */
.text-gradient-glow {
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ==================== ENHANCED BUTTONS ==================== */

.btn-primary {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-screenshot {
  background: linear-gradient(135deg, #6b7280, #374151);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-screenshot:hover {
  background: linear-gradient(135deg, #374151, #1f2937);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Pulse Animation for Buttons */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* Glow on Hover */
.glow-on-hover {
  transition: all 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

/* Hover Scale Effect */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ==================== ENHANCED CARDS ==================== */

.card {
  background: var(--background-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.2);
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card-hover:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 50px rgba(102, 126, 234, 0.1);
}

.card-header {
  padding: 24px 24px 0 24px;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 0 24px 24px 24px;
}

/* ==================== FEATURE ICONS & ANIMATIONS ==================== */

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4facfe, #00f2fe, #667eea, #764ba2);
  border-radius: 22px;
  z-index: -1;
  background-size: 400% 400%;
  animation: gradient-border 4s ease infinite;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-icon:hover::before {
  opacity: 1;
}

.feature-icon:hover {
  transform: rotate(15deg) scale(1.15);
}

@keyframes gradient-border {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hover Rotate Effect */
.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(10deg) scale(1.1);
}

/* ==================== FLOATING & PARALLAX EFFECTS ==================== */

/* Enhanced Floating Animation */
.floating-animation {
  animation: advancedFloat 8s ease-in-out infinite;
}

@keyframes advancedFloat {
  0%,
  100% {
    transform: translateY(0px) rotateY(0deg);
  }
  25% {
    transform: translateY(-20px) rotateY(5deg);
  }
  50% {
    transform: translateY(-10px) rotateY(-5deg);
  }
  75% {
    transform: translateY(-30px) rotateY(3deg);
  }
}

/* Floating Icons */
.floating-icon {
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  50% {
    transform: translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* Bounce In Animation */
.bounce-in {
  animation: bounceIn 1s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Parallax Elements */
.parallax-element {
  position: absolute;
  will-change: transform;
}

/* ==================== BACKGROUND ANIMATIONS ==================== */

/* Floating Background Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  animation: floatShape 20s linear infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 60%;
  animation-delay: 10s;
}

.shape-4 {
  width: 40px;
  height: 40px;
  top: 80%;
  right: 10%;
  animation-delay: 15s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(20px) rotate(180deg);
  }
  75% {
    transform: translateY(-10px) rotate(270deg);
  }
}

/* Slide Up Animation */
.slide-up {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* List Item Animation */
.list-item-animate {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}
.stagger-5 {
  transition-delay: 0.5s;
}
.stagger-6 {
  transition-delay: 0.6s;
}

/* Enhanced Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 4px;
  left: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.nav-link:hover::after {
  width: 80%;
}

/* Enhanced Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Floating Animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced Testimonials */
.testimonial-card {
  background: #ffffff !important;
  border-radius: var(--border-radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all var(--transition-normal);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Testimonial Card Text Override - Always Light Theme */
.testimonial-card h4,
.testimonial-card p,
.testimonial-card .font-semibold,
.testimonial-card .text-gray-800,
.testimonial-card .text-gray-600,
.testimonial-card .text-gray-500 {
  color: #374151 !important;
}

.testimonial-card .text-sm {
  color: #6b7280 !important;
}

/* Assessment Domain Cards Hover Animation */
.assessment-domain-card {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.assessment-domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.assessment-domain-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.assessment-domain-card:hover::before {
  left: 100%;
}

.assessment-domain-card:hover i {
  transform: scale(1.2) rotate(10deg);
  transition: all 0.3s ease;
}

.assessment-domain-card i {
  transition: all 0.3s ease;
}

.assessment-domain-card:hover .font-semibold {
  color: #1f2937 !important;
  font-weight: 700;
}

/* Specific hover colors for each domain */
.assessment-domain-card:hover.bg-blue-50 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
}

.assessment-domain-card:hover.bg-green-50 {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #10b981;
}

.assessment-domain-card:hover.bg-purple-50 {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  border-color: #8b5cf6;
}

.assessment-domain-card:hover.bg-orange-50 {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  border-color: #f97316;
} /* Enhanced Stats */
.stats-counter {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

/* Hero Stats - Yellow */
.stats-counter-hero {
  font-size: 3rem;
  font-weight: 800;
  color: rgb(253 224 71 / var(--tw-text-opacity, 1)) !important;
  display: block;
  line-height: 1;
}

/* Mission Stats - Gradient */
.stats-counter-mission {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

/* Enhanced Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1),
    rgba(240, 147, 251, 0.1)
  );
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff !important;
  border-radius: var(--border-radius-xl);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xl);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 32px;
  border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Modal Form Override - Always Light Theme */
.modal .form-input,
.modal input,
.modal select,
.modal textarea {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: #e5e7eb !important;
}

.modal label,
.modal .form-label {
  color: #374151 !important;
}

.modal .field-error {
  color: #ef4444 !important;
}

/* Screenshot Modal */
.screenshot-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}

.screenshot-modal[style*="display: block"] {
  display: block !important;
}

.screenshot-modal-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 90% !important;
  max-height: 90% !important;
  width: 80% !important;
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  z-index: 10000 !important;
}

.screenshot-modal img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
  min-height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.screenshot-modal .close {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  font-size: 2rem !important;
  font-weight: bold !important;
  color: #666 !important;
  cursor: pointer !important;
  background: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10001 !important;
}

.screenshot-modal .close:hover {
  background: #f3f4f6;
  color: #333;
  transform: scale(1.1);
}

.screenshot-navigation {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.5rem !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
  z-index: 10001 !important;
}

.screenshot-navigation:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.screenshot-navigation.prev {
  left: 1rem;
}

.screenshot-navigation.next {
  right: 1rem;
}

.screenshot-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  z-index: 1002;
}

/* Form Enhancements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 16px;
  transition: all var(--transition-normal);
  background: var(--background-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-input:hover {
  border-color: #9ca3af;
}

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  .stats-counter,
  .stats-counter-hero,
  .stats-counter-mission {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .card-body {
    padding: 20px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 24px 20px;
  }

  .floating-card {
    animation: none;
  }

  /* Fix mobile overflow issues - keep icons but reposition them */
  .floating-icon {
    animation: none !important; /* Disable animation on mobile to prevent overflow */
  }

  /* Reposition specific floating icons to stay within viewport */
  .floating-icon-1 {
    top: 1rem !important;
    right: 1rem !important;
  }

  .floating-icon-2 {
    bottom: 1rem !important;
    left: 1rem !important;
  }

  .floating-icon-3 {
    top: 50% !important;
    right: 0.5rem !important; /* Keep it within viewport instead of -2rem */
    transform: translateY(-50%) !important;
  }

  /* Ensure parallax elements don't cause overflow */
  .parallax-element {
    display: none !important;
  }

  /* Keep floating shapes but ensure they don't overflow */
  .floating-shapes {
    overflow: hidden !important;
  }

  .shape {
    max-width: calc(100vw - 2rem) !important;
  }

  /* Screenshot Modal Mobile Improvements */
  .screenshot-modal-content {
    max-width: 90% !important;
    max-height: 85% !important;
    width: 90% !important;
    margin: .5rem !important;
  }

  .screenshot-modal img {
    max-height: 70vh !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  .screenshot-modal .close {
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 1.5rem !important;
  }

  .screenshot-navigation {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }

  .screenshot-navigation.prev {
    left: 0.5rem !important;
  }

  .screenshot-navigation.next {
    right: 0.5rem !important;
  }

  .screenshot-counter {
    bottom: 0.5rem !important;
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }

  .card-body {
    padding: 16px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  /* Additional mobile fixes for very small screens */
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .absolute {
    position: relative !important;
  }

  /* Ensure no element extends beyond viewport */
  .container,
  .max-w-7xl,
  .mx-auto {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Screenshot Modal - Extra Small Mobile Improvements */
  .screenshot-modal-content {
    max-width: 98% !important;
    max-height: 90% !important;
    width: 98% !important;
    margin: 0.1rem !important;
    border-radius: 4px !important;
  }

  .screenshot-modal img {
    max-height: 75vh !important;
    border-radius: 4px !important;
  }

  .screenshot-modal .close {
    top: 0.25rem !important;
    right: 0.25rem !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 1.25rem !important;
  }

  .screenshot-navigation {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }

  .screenshot-navigation.prev {
    left: 0.25rem !important;
  }

  .screenshot-navigation.next {
    right: 0.25rem !important;
  }

  .screenshot-counter {
    bottom: 0.25rem !important;
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --background-white: #1f2937;
    --background-light: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
  }

  .card {
    background: var(--background-white);
    border-color: var(--border-color);
  }

  .navbar {
    background: rgba(31, 41, 55, 0.95);
    border-bottom-color: var(--border-color);
  }

  .form-input {
    background: var(--background-white);
    border-color: var(--border-color);
    color: var(--text-primary);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .modal,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  .hero-section {
    background: white !important;
    color: black !important;
  }

  .text-gradient {
    color: #667eea !important;
    -webkit-text-fill-color: unset !important;
  }
}

/* Enhanced Glow Text Effect */
.glow-text {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4);
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 25px rgba(255, 215, 0, 0.8),
      0 0 35px rgba(255, 215, 0, 0.6);
  }
}

/* Hero Title Responsive Fix */
.hero-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.1 !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-card {
    animation: none !important;
  }
}

/* Focus Visible */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000000;
    border: 2px solid #ffffff;
  }

  .btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
  }

  .card {
    border: 2px solid #000000;
  }
}




    transform: translateY(-10px) rotateY(-5deg);
  }
  75% {
    transform: translateY(-30px) rotateY(3deg);
  }
}



/* Parallax Scroll Effect */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Advanced Hover Effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(50px);
}

/* Glitch Effect for Error States */
.glitch {
  position: relative;
  color: white;
  font-size: 4em;
  letter-spacing: 0.5em;
  animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch-top 1s infinite linear alternate-reverse;
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch-bottom 1.5s infinite linear alternate-reverse;
}

@keyframes glitch-top {
  2%,
  64% {
    transform: translate(2px, -2px);
  }
  4%,
  60% {
    transform: translate(-2px, 2px);
  }
  62% {
    transform: translate(13px, -1px) skewX(21deg);
  }
}

@keyframes glitch-bottom {
  2%,
  64% {
    transform: translate(-2px, 0);
  }
  4%,
  60% {
    transform: translate(-2px, 0);
  }
  62% {
    transform: translate(-22px, 5px) skewX(21deg);
  }
}

@keyframes glitch-skew {
  2%,
  64% {
    transform: skewX(0deg);
  }
  4%,
  60% {
    transform: skewX(2deg);
  }
  62% {
    transform: skewX(0deg);
  }
}

/* Particle Effect Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.8), transparent);
  border-radius: 50%;
  animation: particleFloat 10s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .typewriter {
    animation: none;
    white-space: normal;
  }

  .floating-icon {
    animation: none;
  }

  .card-hover:hover {
    transform: translateY(-5px);
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-1px);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .typewriter,
  .floating-animation,
  .floating-icon,
  .pulse-animation {
    animation: none !important;
  }
}

/* ==================== COMING SOON BADGE ==================== */

.coming-soon-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 0 12px 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
  z-index: 10;
  animation: comingSoonPulse 2s ease-in-out infinite;
  transform-origin: center;
}

.coming-soon-badge::before {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #c2185b transparent transparent;
  filter: brightness(0.7);
}

.coming-soon-badge span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.coming-soon-badge span::after {
  content: '⏰';
  font-size: 10px;
  animation: float 1.5s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* ==================== ENHANCED MOBILE MENU STYLES ==================== */

/* Mobile Menu Container */
#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: top;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

#mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  visibility: hidden;
  max-height: 0;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  max-height: 600px;
  pointer-events: auto;
  animation: mobileMenuSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  padding: 12px;
  background: rgba(102, 126, 234, 0.05);
  border: 2px solid transparent;
}

.mobile-menu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  transition: left 0.5s ease;
  z-index: -1;
}

.mobile-menu-btn:hover::before {
  left: 100%;
}

.mobile-menu-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Enhanced Mobile Menu Icon Animation */
.mobile-menu-btn i {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.mobile-menu-btn:hover i {
  transform: rotate(180deg) scale(1.2);
  color: var(--primary-color);
}

/* Mobile Menu Content Styling */
#mobile-menu {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 50%,
    rgba(243, 244, 246, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(102, 126, 234, 0.05);
}

/* Enhanced Mobile Menu Links */
#mobile-menu a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  margin: 6px 12px;
  padding: 12px 16px !important;
  font-weight: 500;
  font-size: 16px;
  overflow: hidden;
}

#mobile-menu a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(118, 75, 162, 0.1) 100%);
  transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  z-index: -1;
}

#mobile-menu a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

#mobile-menu a:hover::before {
  left: 0;
}

#mobile-menu a:hover::after {
  width: 30px;
}

#mobile-menu a:hover {
  color: var(--primary-color);
  font-weight: 600;
  transform: translateX(12px) scale(1.02);
  background: rgba(102, 126, 234, 0.08);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  padding-left: 52px !important;
}

/* Enhanced Mobile Menu Buttons */
#mobile-menu button,
#mobile-menu .btn-primary,
#mobile-menu .btn-secondary {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  margin: 8px 12px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
}

#mobile-menu button:hover,
#mobile-menu .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

#mobile-menu .btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

/* Mobile Menu Animation */
@keyframes mobileMenuSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile Menu Item Stagger Animation */
#mobile-menu a:nth-child(1) { 
  animation: slideInLeft 0.4s ease forwards;
  animation-delay: 0.1s; 
  opacity: 0;
}
#mobile-menu a:nth-child(2) { 
  animation: slideInLeft 0.4s ease forwards;
  animation-delay: 0.2s; 
  opacity: 0;
}
#mobile-menu a:nth-child(3) { 
  animation: slideInLeft 0.4s ease forwards;
  animation-delay: 0.3s; 
  opacity: 0;
}
#mobile-menu a:nth-child(4) { 
  animation: slideInLeft 0.4s ease forwards;
  animation-delay: 0.4s; 
  opacity: 0;
}

#mobile-menu button:nth-child(1) { 
  animation: slideInLeft 0.4s ease forwards;
  animation-delay: 0.5s; 
  opacity: 0;
}
#mobile-menu button:nth-child(2) { 
  animation: slideInLeft 0.4s ease forwards;
  animation-delay: 0.6s; 
  opacity: 0;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ensure mobile menu is visible on mobile screens */
@media (max-width: 768px) {
  #mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  
  .mobile-menu-btn {
    padding: 8px;
  }
  
  #mobile-menu a {
    font-size: 18px;
    padding: 16px 20px !important;
  }
  
  #mobile-menu button,
  #mobile-menu .btn-primary,
  #mobile-menu .btn-secondary {
    font-size: 18px;
    padding: 16px 24px;
  }
}

/* ==================== ESSENTIAL UTILITY CLASSES ==================== */

/* Additional Custom Styles */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: var(--primary-gradient);
}

.hero-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Additional utility classes for mobile menu and modal close button */
.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #000;
}

/* Hero Title Responsive Fix */
.hero-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.1 !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
}

