@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --secondary: #0ea5e9;
  --bg-slate-900: #0f172a;
  --bg-slate-800: #1e293b;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-light: #F8FAFC;
  --text-muted: #CBD5E1; /* Increased contrast from #94A3B8 */
  --gradient-primary: linear-gradient(135deg, #4F46E5, #0ea5e9);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-slate-900);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Global Section Styles */
section {
  padding: 5rem 0;
}

/* Buttons */
.btn-premium {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--secondary);
  color: white;
}

.btn-outline-premium {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-premium:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* Page Headers */
.page-hero {
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent),
              radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.1), transparent);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(to right, #a5b4fc, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Forms */
.form-control-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  color: white;
  transition: all 0.3s ease;
}

.form-control-glass:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  color: white;
  outline: none;
}

.form-label-premium {
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

/* Badges */
.badge-premium {
  background: rgba(79, 70, 229, 0.2);
  color: #818cf8;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(79, 70, 229, 0.3);
  display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  .page-hero {
    padding: 6rem 1rem 3rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
}

/* Fix for Select Box repeating background */
select.form-control-glass {
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.5rem !important;
}

/* Select dropdown options visibility */
select.form-control-glass option {
  background-color: white;
  color: black;
}

/* Fix for Hero Content separation */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* JS Dynamically Generated Cards (Toppers/Studies) */
#studiesScroll .card,
#careerScroll .card,
#companiesScroll .card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  width: 250px; /* Restrict max width */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#studiesScroll .card:hover,
#careerScroll .card:hover,
#companiesScroll .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.student-img {
  width: 100%;
  height: 200px; /* Constrain image height */
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--glass-border);
}

.logo-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
}

.card .body {
  padding: 1rem;
}

.card .title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
