/* Tailwind CSS Directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;600;700;800;900&display=swap');

/* Custom animations and utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0e27;
}

::-webkit-scrollbar-thumb {
  background: #00D4FF;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFB400;
}

/* Modal Styles for Tailwind */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active,
.modal-overlay[style*="display: block"] {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: linear-gradient(135deg, rgba(15, 22, 41, 0.98) 0%, rgba(10, 14, 39, 0.98) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 24px;
  padding: 2rem;
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container,
.modal-overlay[style*="display: block"] .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  color: #FFFFFF;
  font-weight: 700;
}

.modal-close,
.close-modal {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover,
.close-modal:hover {
  color: #00D4FF;
  background: rgba(6, 182, 212, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  color: #E2E8F0;
}

.modal-subtitle {
  color: #94A3B8;
  margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #FFB400 0%, #FF8C00 100%);
  color: #000;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 180, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00D4FF;
}

/* FAQ Icon Transition */
.faq-icon {
  transition: transform 0.3s ease;
}

/* Institution Grid */
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.institution-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.institution-card:hover {
  transform: translateY(-5px);
  border-color: #00D4FF;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Loading State */
.loading-state {
  text-align: center;
  color: #94A3B8;
  padding: 3rem;
}

/* Features Modal Specific Styles */
.features-modal {
  max-height: 85vh;
}

.features-modal .modal-body {
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.features-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

.features-modal .modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.features-modal .modal-body::-webkit-scrollbar-thumb {
  background: #00D4FF;
  border-radius: 10px;
}

.features-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #FFB400;
}

