body{
background:linear-gradient(135deg,#020617,#1e293b);
color:white;
font-family:Poppins;
}


.logo{
font-size:26px;
font-weight:700;
cursor:pointer;
}

.logo span{color:#38bdf8}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins', sans-serif;
}

body{
  background:linear-gradient(135deg,#0f172a,#020617);
  color:#fff;
  min-height:100vh;
}

/* NAVBAR */
.navbar{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 50px;
  background:rgba(15,23,42,0.75);
  backdrop-filter:blur(14px);
}


.logo{
  font-size:26px;
  font-weight:700;
  cursor:pointer;
}

.logo span{
  color:#38bdf8;
}

nav{
  display:flex;
  align-items: center;
  gap:28px;
}

nav a{
  color:#cbd5f5;
  text-decoration:none;
  font-weight:500;
  position:relative;
  padding-bottom:6px;
  transition:0.3s;
}

nav a:hover{
  color:#fff;
}


/* GLASS CARD (USED EVERYWHERE) */
.glass-card{
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:22px;
  transition:0.35s;
}

.glass-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(0,0,0,0.45);
}

/* GRID */
.grid{
  max-width:1200px;
  margin:auto;
  padding:40px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

/* HERO */
.hero{
  padding:70px 40px;
  text-align:center;
}

.hero h1{
  font-size:44px;
  margin-bottom:12px;
}

.hero p{
  color:#cbd5f5;
}

.main{
display:grid;
grid-template-columns:300px 1fr;
gap:30px;
padding:40px;
}

.filters,.glass{
background:rgba(255,255,255,0.1);
padding:20px;
border-radius:16px;
}

.glass{
margin-bottom:20px;
}

.finder-hero{
text-align:center;
padding:60px;
}

.wizard{
max-width:900px;
margin:auto;
padding:40px;
}

.step{
margin-bottom:40px;
}

.option-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-top:20px;
}

.option{
padding:20px;
border-radius:14px;
background:rgba(255,255,255,0.1);
text-align:center;
cursor:pointer;
transition:.3s;
}

.option.active,.option:hover{
background:#38bdf8;
color:#000;
}

.range-value{
margin-top:10px;
color:#cbd5f5;
}

.primary-btn{
display:block;
margin:40px auto;
padding:14px 30px;
border:none;
border-radius:14px;
background:#38bdf8;
font-size:16px;
font-weight:600;
cursor:pointer;
}

.results{
padding:60px;
}

.glass-card{
background:rgba(255,255,255,0.1);
padding:25px;
border-radius:18px;
margin-bottom:20px;
}

.logout-btn{
  margin-left: 20px;
  padding: 8px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg,#ef4444,#dc2626);
  color: white;
  transition: 0.3s ease;
}

.logout-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(239,68,68,0.4);
}
/* ========= AUTH PAGE ========= */
.auth-body{
  background: linear-gradient(135deg,#020617,#0f172a);
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  color:white;
  font-family:'Segoe UI',sans-serif;
}

.auth-container{
  width:380px;
  padding:40px;
  border-radius:22px;
  background:rgba(15,23,42,0.9);
  box-shadow:0 30px 60px rgba(0,0,0,0.45);
  text-align:center;
}

.auth-container h1{
  font-size:34px;
  margin-bottom:10px;
}

.auth-container span{
  color:#38bdf8;
}

.subtitle{
  color:#94a3b8;
  margin-bottom:30px;
}

.auth-container input{
  width:100%;
  padding:14px;
  margin-bottom:18px;
  border-radius:14px;
  border:none;
  background:rgba(255,255,255,0.1);
  color:white;
}

.auth-container button{
  width:100%;
  padding:14px;
  border-radius:16px;
  border:none;
  font-weight:600;
  margin-bottom:12px;
  cursor:pointer;
  background:linear-gradient(135deg,#38bdf8,#6366f1);
  color:white;
}

.auth-container button.secondary{
  background:linear-gradient(135deg,#22c55e,#16a34a);
}

#msg{
  margin-top:12px;
  font-size:14px;
  color:#f87171;
}

/* ========= LOGOUT BUTTON ========= */
.logout-btn{
  margin-left:20px;
  padding:8px 16px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  font-weight:600;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:white;
}

.logout-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(239,68,68,0.4);
}
/* ===== NAV LINK UNDERLINE FIX ===== */

.navbar nav a{
  position: relative;
  color: #cbd5f5;
  text-decoration: none;
  transition: color 0.3s ease;
  display:flex;           /* 🔥 important */
  align-items:center;     /* vertical centering */
  height:40px;            /* consistent height */
  padding: 0 4px;         /* remove bottom padding */
  color:#cbd5f5;
  text-decoration:none;
  font-weight:500;
  position:relative;
}

.navbar nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,#38bdf8,#6366f1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar nav a:hover{
  color: #38bdf8;
}

.navbar nav a:hover::after{
  width: 100%;
}

/* Active page underline */
.navbar nav a.active::after{
  width: 100%;
}

.navbar nav a.logout{
  background:#ef4444;
  color:white;
  padding:0 18px;
  border-radius:20px;
  height:40px;
  display:flex;
  align-items:center;
}

.navbar nav a.logout:hover{
  background:#dc2626;
}

/* Skeleton Loader */
.skeleton{
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.15) 37%,
    rgba(255,255,255,0.05) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 16px;
  height: 160px;
}

@keyframes shimmer{
  0%{background-position:100% 0}
  100%{background-position:-100% 0}
}


.card{
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

button{
  transition: transform 0.2s ease;
}

button:hover{
  transform: scale(1.05);
}

/* ===== NAVBAR BASIC STYLE ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #1e3a8a;
}

/* ===== BRAND SECTION ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

/* ===== NAV LINKS ===== */
.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ffd166;
}
/* ================= SEARCH SECTION ================= */

.search-section{
  display:flex;
  justify-content:center;
  margin: 40px 0;
}

.search-box{
  display:flex;
  gap:10px;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.search-box input{
  width: 400px;
  padding: 14px 20px;
  border:none;
  border-radius: 40px;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
  font-size: 15px;
}

.search-box input::placeholder{
  color: rgba(255,255,255,0.6);
}

.search-box button{
  padding: 14px 25px;
  border:none;
  border-radius: 40px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: white;
  font-weight: 600;
  cursor:pointer;
  transition: 0.3s ease;
}

.search-box button:hover{
  transform: scale(1.05);
}

/* Grid Layout */
.college-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 30px;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.glass-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.rank {
  font-weight: bold;
  color: #ffd700;
}

.details {
  font-size: 14px;
  margin: 5px 0;
}

/* Buttons */
.card-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.card-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: white;
  transition: 0.3s;
}

.card-actions button:hover {
  opacity: 0.85;
}
.college-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: white;
}

.brand-name {
  font-size: 32px;
  font-weight: 900;   /* Extra bold */
  letter-spacing: 1.5px;

  background: linear-gradient(
    90deg,
    #ffffff,
    #e0e7ff,
    #818cf8
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  text-shadow: 
    0 3px 10px rgba(99, 102, 241, 0.35);

  transition: all 0.3s ease;
}

.brand-name:hover {
  transform: scale(1.05);
}
button:hover {
  box-shadow:
    0 8px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}
input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
.glass-card {
  position: relative;
  transition: all 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.65),   /* depth */
    0 0 35px rgba(129, 140, 248, 0.45); /* stronger glow */

  border: 1px solid rgba(129, 140, 248, 0.5);
}


.college-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.college-link:hover {
  text-decoration: underline;
}

.course-note {
  color: #93c5fd;
  margin-bottom: 16px;
}