@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
}

/* Ensure logo images are visible */
img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #8B2FC9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6A1B9A;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-scaleIn {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-modalSlideIn {
  animation: modalSlideIn 0.3s ease-out;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-checkmark {
  animation: checkmark 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Gradient Text Utilities */
.gradient-text {
  background: linear-gradient(135deg, #8B2FC9, #E91E8C, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-btn {
  background: linear-gradient(135deg, #8B2FC9 0%, #E91E8C 50%, #F5A623 100%);
  color: white;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}

.gradient-btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

/* Color Variables */
:root {
  --brand-purple: #8B2FC9;
  --brand-purple-dark: #6A1B9A;
  --brand-pink: #E91E8C;
  --brand-orange: #F5A623;
  --text-primary: #1A1A2E;
  --text-secondary: #4A1060;
  --text-gray: #6B7280;
  --bg-light: #F8F4FF;
  --bg-pink: #FCE4EC;
  --bg-yellow: #FFF8E1;
  --bg-dark: #0D0D1A;
  --border-light: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
}

/* Common Classes */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background-color: white;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 50%;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.transition {
  transition: all 0.2s ease;
}

.transform {
  transform: translateZ(0);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-102:hover {
  transform: scale(1.02);
}

.cursor-pointer {
  cursor: pointer;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-16 {
  height: 4rem;
}

.h-12 {
  height: 3rem;
}

.h-10 {
  height: 2.5rem;
}

.h-8 {
  height: 2rem;
}

.h-6 {
  height: 1.5rem;
}

.h-5 {
  height: 1.25rem;
}

.h-4 {
  height: 1rem;
}

.w-16 {
  width: 4rem;
}

.w-12 {
  width: 3rem;
}

.w-10 {
  width: 2.5rem;
}

.w-8 {
  width: 2rem;
}

.w-6 {
  width: 1.5rem;
}

.w-5 {
  width: 1.25rem;
}

.w-4 {
  width: 1rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.text-gray-400 {
  color: #9CA3AF;
}

.text-gray-500 {
  color: #6B7280;
}

.text-gray-600 {
  color: #4B5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.text-white {
  color: white;
}

.text-green-600 {
  color: #059669;
}

.text-green-700 {
  color: #047857;
}

.text-green-800 {
  color: #065F46;
}

.text-yellow-600 {
  color: #D97706;
}

.text-yellow-700 {
  color: #B45309;
}

.text-yellow-800 {
  color: #92400E;
}

.text-red-600 {
  color: #DC2626;
}

.text-red-700 {
  color: #B91C1C;
}

.text-red-800 {
  color: #991B1B;
}

.text-blue-600 {
  color: #2563EB;
}

.bg-green-50 {
  background-color: #F0FDF4;
}

.bg-green-100 {
  background-color: #DCFCE7;
}

.bg-yellow-50 {
  background-color: #FFFBEB;
}

.bg-yellow-100 {
  background-color: #FEF3C7;
}

.bg-red-50 {
  background-color: #FEF2F2;
}

.bg-red-100 {
  background-color: #FEE2E2;
}

.bg-gray-50 {
  background-color: #F9FAFB;
}

.bg-gray-100 {
  background-color: #F3F4F6;

}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-3 {
  border-width: 3px;
}

.border-4 {
  border-width: 4px;
}

.border-gray-200 {
  border-color: #E5E7EB;
}

.border-gray-300 {
  border-color: #D1D5DB;
}

.border-green-200 {
  border-color: #BBF7D0;
}

.border-yellow-200 {
  border-color: #FDE68A;
}

.border-red-200 {
  border-color: #FECACA;
}

.border-blue-600 {
  border-color: #2563EB;
}

.border-transparent {
  border-color: transparent;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:bg-gray-400:disabled {
  background-color: #9CA3AF;
}

.disabled\:hover\:scale-100:disabled:hover {
  transform: scale(1);
}

/* Responsive Utilities */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .md\:text-5xl {
    font-size: 3rem;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:block {
    display: block;
  }
  
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: block !important;
  }
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Object Fit */
.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

/* Text Alignment */
.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Flex Direction */
.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

/* Flex Wrap */
.flex-wrap {
  flex-wrap: wrap;
}

/* Flex Grow/Shrink */
.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Self Alignment */
.self-center {
  align-self: center;
}

/* Max Width */
.max-w-md {
  max-width: 28rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

/* Min Height */
.min-h-\[90vh\] {
  min-height: 90vh;
}

/* Spacing */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Custom Classes */
.btn-primary {
  background: linear-gradient(135deg, #8B2FC9 0%, #E91E8C 50%, #F5A623 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.btn-secondary {
  border: 2px solid #8B2FC9;
  color: #8B2FC9;
  background: transparent;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(139, 47, 201, 0.08);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.error-message {
  background-color: #FEE2E2;
  border-color: #FECACA;
  color: #B91C1C;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-width: 1px;
  border-style: solid;
}

.success-message {
  background-color: #F0FDF4;
  border-color: #BBF7D0;
  color: #065F46;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-width: 1px;
  border-style: solid;
}

.warning-message {
  background-color: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-width: 1px;
  border-style: solid;
}

.spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-mark {
  color: #10B981;
}

.highlight {
  color: #8B2FC9;
  font-weight: 600;
}

/* Verification Modal */
.verification-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.verification-modal-overlay.open {
  display: flex;
}

.verification-modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  padding: 1.5rem;
  text-align: center;
}

.verification-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verification-modal-close:hover {
  background: #e5e7eb;
}

.verification-modal-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1rem;
}

.verification-modal-icon i {
  width: 2.25rem;
  height: 2.25rem;
}

.verification-modal-icon.is-valid {
  background: #dcfce7;
  color: #16a34a;
}

.verification-modal-icon.is-invalid {
  background: #fee2e2;
  color: #dc2626;
}

.verification-modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}

.verification-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.verification-modal-badge.badge-valid {
  background: #dcfce7;
  color: #166534;
}

.verification-modal-badge.badge-invalid {
  background: #fee2e2;
  color: #991b1b;
}

.verification-modal-message {
  color: #4b5563;
  margin-bottom: 1rem;
}

.verification-modal-details {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.verification-modal-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.verification-modal-detail-item:last-child {
  border-bottom: 0;
}

.verification-modal-detail-label {
  color: #64748b;
  font-size: 0.875rem;
}

.verification-modal-detail-value {
  color: #111827;
  font-weight: 600;
}

.verification-modal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.verification-modal-status-pill.status-valid {
  background: #dcfce7;
  color: #166534;
}

.verification-modal-action {
  width: 100%;
}

@media (max-width: 640px) {
  .verification-modal-card {
    padding: 1.1rem;
    border-radius: 0.85rem;
  }

  .verification-modal-title {
    font-size: 1.35rem;
  }

  .verification-modal-detail-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* How It Works horizontal flow overrides */
.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.step-arrow {
  display: none;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
  }

  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B2FC9;
  }

  .step-card {
    height: 100%;
  }
}

/* Courses section */
.courses-section {
  padding: 5rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

@media (min-width: 640px) {
  .courses-section {
    padding: 5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .courses-section {
    padding: 5rem 2rem;
  }
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.course-card {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(139, 47, 201, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(139, 47, 201, 0.18);
}

.course-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.course-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.course-tag,
.course-duration {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: linear-gradient(135deg, #8B2FC9 0%, #E91E8C 65%, #F5A623 100%);
  color: #fff;
}

.course-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.course-description {
  color: #6b7280;
  line-height: 1.55;
  flex: 1;
}

.course-btn {
  width: 100%;
  margin-top: 0.25rem;
}

/* Cross-page responsiveness */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .courses-section {
    padding: 3.5rem 0;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-buttons,
  .result-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary,
  .btn-large {
    width: 100%;
  }

  .glass-card {
    width: min(100%, 94vw);
  }
}
