/* ============================================================
   UniExames - Modern Glassmorphism Diamond Style CSS
   ============================================================ */

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

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --primary:       #1a6bdc;
  --primary-dark:  #0f4db8;
  --primary-light: #4a90e2;
  --accent:        #00d4ff;
  --accent2:       #7b5ea7;
  --diamond:       #b8d8ff;
  --white:         #ffffff;
  --silver:        #c8d8e8;
  --silver-dark:   #8fa8c0;
  --bg-dark:       #06101e;
  --bg-mid:        #0b1e35;
  --bg-card:       rgba(255,255,255,0.07);
  --bg-card-hover: rgba(255,255,255,0.12);
  --border-glass:  rgba(255,255,255,0.15);
  --border-glass2: rgba(100,170,255,0.25);
  --text-primary:  #ffffff;
  --text-secondary:#b8d0e8;
  --text-muted:    #6a8ba8;
  --shadow-blue:   0 8px 32px rgba(26,107,220,0.35);
  --shadow-glow:   0 0 40px rgba(0,212,255,0.2);
  --shadow-card:   0 4px 30px rgba(0,0,0,0.3);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-pill:   100px;
  --transition:    all 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: all 0.5s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---------- Background Animated Gradient ---------- */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(26,107,220,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(0,212,255,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(11,30,53,0.8) 0%, var(--bg-dark) 100%);
  z-index: -2;
  animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0%   { opacity: 0.9; }
  100% { opacity: 1; }
}

/* Floating diamond particles */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle 1px at 20% 30%, rgba(0,212,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 80% 10%, rgba(184,216,255,0.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 60% 70%, rgba(26,107,220,0.4) 0%, transparent 100%),
    radial-gradient(circle 2px at 10% 80%, rgba(0,212,255,0.25) 0%, transparent 100%),
    radial-gradient(circle 1px at 90% 50%, rgba(184,216,255,0.3) 0%, transparent 100%);
}

/* ---------- Glass Utility ---------- */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--border-glass2);
  border-radius: var(--radius-lg);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.2; }
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--diamond) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.section-header { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn:hover::before { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(26,107,220,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,107,220,0.6); }

.btn-outline {
  border: 1px solid var(--border-glass2);
  color: var(--text-primary);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

.btn-ghost { color: var(--accent); padding: 0.5rem 1rem; }
.btn-ghost:hover { background: rgba(0,212,255,0.1); border-radius: var(--radius-sm); }

.btn-danger {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white; box-shadow: 0 4px 15px rgba(229,62,62,0.4);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229,62,62,0.5); }

.btn-success {
  background: linear-gradient(135deg, #38a169, #276749);
  color: white; box-shadow: 0 4px 15px rgba(56,161,105,0.4);
}
.btn-success:hover { transform: translateY(-2px); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  background: rgba(6,16,30,0.75);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(100,170,255,0.12);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.navbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.4) 30%, rgba(26,107,220,0.5) 60%, transparent 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.navbar.scrolled::after { opacity: 1; }
.navbar.scrolled {
  padding: 0;
  background: rgba(6,16,30,0.92);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), 0 1px 0 rgba(100,170,255,0.15);
}
.nav-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  height: 68px; gap: 0;
}
/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem; font-weight: 800;
  padding: 0 1.5rem 0 0;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,0.08);
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 0 16px rgba(0,212,255,0.45), 0 4px 12px rgba(26,107,220,0.4);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.nav-logo .logo-icon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
}
.nav-logo .logo-text { letter-spacing: -0.3px; }
.nav-logo .logo-text span { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex; align-items: stretch; gap: 0;
  margin: 0 1rem;
  flex: 1;
}
.nav-links a {
  display: flex; align-items: center;
  padding: 0 1rem;
  font-weight: 500; font-size: 0.88rem;
  color: rgba(184,208,232,0.75);
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* Hover/active underline glow indicator */
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px 2px 0 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 12px rgba(0,212,255,0.6);
}
.nav-links a:hover {
  color: #ffffff;
}
.nav-links a:hover::after {
  left: 12%; right: 12%;
}
.nav-links a.active {
  color: #ffffff;
}
.nav-links a.active::after {
  left: 10%; right: 10%;
}
/* Remove old background on active -- use underline only */
.nav-links a:hover, .nav-links a.active { background: none; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; padding-left: 1rem; }
.nav-search-btn {
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.nav-search-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 14px rgba(0,212,255,0.25);
}
/* Admin "CTA" button in navbar */
.nav-actions .btn-primary {
  font-size: 0.82rem; padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 3px 14px rgba(26,107,220,0.45);
  letter-spacing: 0.01em;
}
.nav-actions .btn-primary:hover {
  box-shadow: 0 5px 22px rgba(0,212,255,0.55);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px; cursor: pointer; justify-content: center;
}
.hamburger span {
  display: block; height: 2px; background: var(--text-secondary);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(6,16,30,0.98); backdrop-filter: blur(24px);
  z-index: 999; padding: 1.5rem;
  flex-direction: column; gap: 0.4rem;
  animation: slideDown 0.3s ease;
  border-top: 1px solid rgba(100,170,255,0.12);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.9rem 1.25rem; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex; align-items: center; gap: 0.75rem;
}
.mobile-nav a:hover { background: rgba(26,107,220,0.12); color: white; border-color: rgba(0,212,255,0.25); }
.mobile-nav a.active { background: rgba(26,107,220,0.18); color: white; border-color: rgba(0,212,255,0.35); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,16,30,0.9); backdrop-filter: blur(20px);
  align-items: flex-start; justify-content: center;
  padding: 8rem 1.5rem 2rem;
}
.search-overlay.open { display: flex; }
.search-box-wrap { width: 100%; max-width: 680px; }
.search-box {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--border-glass2); border-radius: var(--radius-pill);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: white; font-size: 1.1rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box i { color: var(--text-muted); font-size: 1.1rem; }
.search-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 0.25rem;
  transition: var(--transition);
}
.search-close:hover { color: white; }
.search-results { display: grid; gap: 0.75rem; }
.search-result-item {
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-card); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 1rem;
}
.search-result-item:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.search-result-icon { width: 36px; height: 36px; border-radius: 8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1rem; }

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url('../images/hero_background.png') center/cover no-repeat;
  filter: brightness(0.3) saturate(1.5);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,16,30,0.7) 0%, rgba(6,16,30,0.4) 50%, rgba(6,16,30,0.8) 100%);
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; padding: 4rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem; line-height: 1.1;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-desc {
  color: var(--text-secondary); font-size: 1.1rem;
  margin-bottom: 2.5rem; max-width: 520px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-stat { text-align: left; }
.hero-stat .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.hero-stat .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Hero Visual Panel */
.hero-visual { animation: fadeInRight 0.8s ease 0.3s both; }
.hero-card {
  padding: 1.75rem;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.departments-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.dept-card {
  padding: 1.1rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass);
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.dept-card:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateY(-3px); }
.dept-card .dept-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.dept-card .dept-name { font-size: 0.85rem; font-weight: 600; }
.dept-card .dept-files { font-size: 0.75rem; color: var(--text-muted); }

/* Dept icon colors */
.dept-medical .dept-icon { background: rgba(255,100,100,0.2); color: #ff8080; }
.dept-tech    .dept-icon { background: rgba(26,107,220,0.2);  color: var(--primary-light); }
.dept-cs      .dept-icon { background: rgba(0,212,255,0.2);   color: var(--accent); }
.dept-eco     .dept-icon { background: rgba(56,161,105,0.2);  color: #68d391; }

@keyframes fadeInUp { from { opacity:0; transform: translateY(25px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }

/* ---------- SPECIALTY SELECTOR ---------- */
.selector-section { background: transparent; padding: 4rem 0; }
.specialty-selector {
  padding: 2.5rem;
  border: 1px solid var(--border-glass2);
  background: rgba(11,30,53,0.6);
  backdrop-filter: blur(20px);
}
.selector-steps {
  display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.step-indicator {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  transition: var(--transition);
}
.step-indicator.active { background: rgba(26,107,220,0.2); border-color: var(--primary); color: var(--primary-light); }
.step-indicator.done   { background: rgba(56,161,105,0.2); border-color: #38a169; color: #68d391; }
.step-number { width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); color: var(--bg-dark); font-size: 0.7rem; display:flex;align-items:center;justify-content:center; }
.step-indicator.active .step-number { background: var(--primary-light); }
.step-indicator.done   .step-number { background: #38a169; }

.selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.select-option {
  padding: 1.1rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.04);
  cursor: pointer; transition: var(--transition);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.select-option:hover { border-color: var(--primary-light); background: rgba(26,107,220,0.12); transform: translateY(-2px); }
.select-option.selected { border-color: var(--accent); background: rgba(0,212,255,0.12); }
.select-option .opt-icon { font-size: 1.7rem; }
.select-option .opt-label { font-size: 0.85rem; font-weight: 600; }
.select-option .opt-count { font-size: 0.72rem; color: var(--text-muted); }

.selector-back { display:flex; align-items:center; gap:0.5rem; color:var(--text-muted); font-size:0.85rem; cursor:pointer; margin-bottom:1rem; transition:var(--transition); }
.selector-back:hover { color: var(--accent); }
.selector-label { font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:1px; color:var(--text-muted); margin-bottom:0.75rem; }

/* ---------- FILE TYPE TABS ---------- */
.file-type-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.file-tab {
  padding: 0.5rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass); font-size:0.85rem; font-weight:600;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.file-tab:hover              { border-color: var(--primary-light); color: var(--primary-light); }
.file-tab.active             { background: var(--primary); border-color: var(--primary); color: white; }
.file-tab[data-type="exam"]  { --tab-col: #e53e3e; }
.file-tab[data-type="td"]    { --tab-col: #d69e2e; }
.file-tab[data-type="cours"] { --tab-col: var(--primary); }
.file-tab[data-type="resume"]{ --tab-col: #38a169; }
.file-tab[data-type="other"] { --tab-col: #718096; }

/* ---------- FILE CARDS ---------- */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.file-card {
  padding: 1.25rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.85rem;
  position: relative; overflow: hidden;
}
.file-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.file-card:hover { border-color: var(--border-glass2); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow-blue); }
.file-card:hover::before { transform: scaleX(1); }

.file-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.file-type-badge {
  padding: 0.25rem 0.65rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-exam   { background: rgba(229,62,62,0.2);  color: #fc8181; border: 1px solid rgba(229,62,62,0.3); }
.badge-td     { background: rgba(214,158,46,0.2); color: #f6e05e; border: 1px solid rgba(214,158,46,0.3); }
.badge-cours  { background: rgba(26,107,220,0.2); color: #90cdf4; border: 1px solid rgba(26,107,220,0.3); }
.badge-resume { background: rgba(56,161,105,0.2); color: #9ae6b4; border: 1px solid rgba(56,161,105,0.3); }
.badge-other  { background: rgba(113,128,150,0.2); color: #a0aec0; border: 1px solid rgba(113,128,150,0.3); }

.file-pdf-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(229,62,62,0.15); color: #fc8181;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.file-card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.file-card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.file-meta-item { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--text-muted); }
.file-card-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.file-action-btn {
  flex: 1; padding: 0.55rem; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary); background: rgba(255,255,255,0.05);
}
.file-action-btn:hover { background: rgba(255,255,255,0.1); color: white; border-color: var(--border-glass2); }
.file-action-btn.download-btn:hover { background: rgba(26,107,220,0.2); border-color: var(--primary); color: var(--primary-light); }

/* ---------- DEPARTMENTS SECTION ---------- */
.depts-section { padding: 5rem 0; }
.depts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.dept-full-card {
  border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
  cursor: pointer; transition: var(--transition);
  border: 1px solid var(--border-glass);
}
.dept-full-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); border-color: var(--border-glass2); }
.dept-card-image { height: 220px; overflow: hidden; position: relative; }
.dept-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.dept-full-card:hover .dept-card-image img { transform: scale(1.07); }
.dept-card-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(6,16,30,0.9) 100%);
}
.dept-card-body { padding: 1.5rem; background: var(--bg-mid); }
.dept-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.dept-card-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.dept-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dept-tag {
  padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

/* ---------- EXPERIENCES SECTION ---------- */
.experiences-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; }
.experience-card {
  padding: 1.75rem; border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  background: var(--bg-card); backdrop-filter: blur(10px);
  transition: var(--transition);
}
.experience-card:hover { border-color: var(--border-glass2); transform: translateY(-4px); }
.exp-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.exp-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
  color: white;
}
.exp-name { font-weight: 700; font-size: 0.95rem; }
.exp-specialty { font-size: 0.78rem; color: var(--text-muted); }
.exp-stars { color: #f6e05e; font-size: 0.8rem; margin-bottom: 0.75rem; }
.exp-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
.exp-quote { font-size: 2rem; color: var(--accent); opacity: 0.4; line-height: 1; margin-bottom: 0.5rem; font-family: Georgia, serif; }

/* Add experience form */
.exp-form-wrap { max-width: 620px; margin: 3rem auto 0; padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display:block; font-size:0.85rem; font-weight:600; color:var(--text-secondary); margin-bottom:0.5rem; }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); color: white;
  font-size: 0.9rem; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.09); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-mid); color: white; }

/* ---------- CALCULATOR SECTION ---------- */
.calc-wrap { max-width: 750px; margin: 0 auto; }
.calc-card { padding: 2.5rem; }
.calc-subjects { display: grid; gap: 1rem; margin-bottom: 2rem; }
.calc-subject {
  display: grid; grid-template-columns: 1fr 100px 100px 40px;
  gap: 0.75rem; align-items: center;
}
.calc-subject input, .calc-subject select {
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); color: white; font-size:0.9rem;
  transition: var(--transition);
}
.calc-subject input:focus, .calc-subject select:focus { outline:none; border-color:var(--accent); }
.calc-subject input::placeholder { color: var(--text-muted); }
.calc-remove { width:36px;height:36px;border-radius:50%;background:rgba(229,62,62,0.1);border:1px solid rgba(229,62,62,0.3);color:#fc8181;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);flex-shrink:0; }
.calc-remove:hover { background:rgba(229,62,62,0.25); }
.calc-add-btn { display:flex;align-items:center;gap:0.5rem;color:var(--accent);font-size:0.85rem;font-weight:600;cursor:pointer;padding:0.5rem;border-radius:var(--radius-sm);transition:var(--transition);width:fit-content; }
.calc-add-btn:hover { background:rgba(0,212,255,0.1); }
.calc-result {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26,107,220,0.15), rgba(0,212,255,0.1));
  border: 1px solid var(--border-glass2);
  text-align: center; margin-top: 1.5rem;
}
.calc-result .result-label { font-size:0.85rem; color:var(--text-muted); margin-bottom:0.5rem; }
.calc-result .result-value { font-size: 3.5rem; font-weight: 900; color: var(--accent); }
.calc-result .result-mention { font-size:1rem; color:var(--text-secondary); margin-top:0.25rem; }
.calc-headers { display:grid; grid-template-columns: 1fr 100px 100px 40px; gap:0.75rem; margin-bottom:0.5rem; padding-bottom:0.5rem; border-bottom:1px solid var(--border-glass); }
.calc-header-item { font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-muted); }

/* ---------- RECENT / BEST FILES ---------- */
.files-section { padding: 5rem 0; }
.section-tabs { display:flex; gap:0.5rem; margin-bottom:2rem; }
.section-tab { padding:0.5rem 1.1rem; border-radius:var(--radius-pill); font-size:0.85rem; font-weight:600; border:1px solid var(--border-glass); color:var(--text-muted); cursor:pointer; transition:var(--transition); }
.section-tab.active { background:linear-gradient(135deg,var(--primary),var(--accent)); border-color:transparent; color:white; }

/* ---------- STATS BAR ---------- */
.stats-bar { padding: 3rem 0; border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); }
.stats-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .stat-num { font-size: 2.4rem; font-weight: 900; color: var(--accent); }
.stat-item .stat-desc { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(6,16,30,0.8);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display:flex; align-items:center; gap:0.6rem; margin-bottom:1rem; }
.footer-logo .logo-icon { width:36px;height:36px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius:9px; display:flex;align-items:center;justify-content:center; font-size:1rem; }
.footer-logo .logo-text { font-family:'Poppins',sans-serif; font-size:1.3rem; font-weight:800; }
.footer-logo .logo-text span { color:var(--accent); }
.footer-desc { font-size:0.85rem; color:var(--text-muted); line-height:1.7; max-width:280px; }
.footer-col-title { font-size:0.85rem; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-secondary); margin-bottom:1rem; }
.footer-links { display:flex; flex-direction:column; gap:0.6rem; }
.footer-links a { font-size:0.85rem; color:var(--text-muted); transition:var(--transition); }
.footer-links a:hover { color:var(--accent); }
.footer-bottom { border-top:1px solid var(--border-glass); padding-top:2rem; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { font-size:0.8rem; color:var(--text-muted); }
.footer-socials { display:flex; gap:0.75rem; }
.social-btn { width:36px;height:36px;border-radius:50%;border:1px solid var(--border-glass);display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:0.9rem;transition:var(--transition); }
.social-btn:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

/* ---------- PDF VIEWER MODAL ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(6,16,30,0.95); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%; max-width: 900px; max-height: 95vh;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass2);
  background: var(--bg-mid);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-glass); display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-shrink:0; }
.modal-title { font-size:0.95rem; font-weight:600; }
.modal-close { width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,0.07);border:1px solid var(--border-glass);color:var(--text-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition); }
.modal-close:hover { background:rgba(255,255,255,0.14); color:white; }
.modal-body { flex:1; overflow:hidden; }
.modal-body iframe { width:100%; height:100%; min-height:75vh; border:none; }

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container { position:fixed; bottom:2rem; right:2rem; z-index:9999; display:flex; flex-direction:column; gap:0.75rem; }
.toast {
  padding:0.9rem 1.25rem; border-radius:var(--radius-md);
  background:rgba(11,30,53,0.95); backdrop-filter:blur(16px);
  border:1px solid var(--border-glass2); 
  display:flex; align-items:center; gap:0.75rem;
  font-size:0.88rem; font-weight:500; min-width:260px;
  animation: toastIn 0.35s ease; box-shadow:var(--shadow-card);
}
.toast.hiding { animation: toastOut 0.35s ease forwards; }
.toast-success { border-left: 3px solid #38a169; }
.toast-error   { border-left: 3px solid #e53e3e; }
.toast-info    { border-left: 3px solid var(--primary); }
.toast-icon { font-size:1rem; }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(20px); } }

/* ---------- LOADER ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.5rem;
  transition: opacity 0.5s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-family:'Poppins',sans-serif; font-size:2rem; font-weight:900; }
.loader-logo span { color: var(--accent); }
.loader-bar { width: 200px; height: 3px; background:rgba(255,255,255,0.1); border-radius:2px; overflow:hidden; }
.loader-bar-fill { height:100%; width:0; background:linear-gradient(90deg,var(--primary),var(--accent)); border-radius:2px; animation: loadBar 1.5s ease forwards; }
@keyframes loadBar { to { width: 100%; } }

/* ---------- SKELETON LOADER ---------- */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- EMPTY STATE ---------- */
.empty-state { text-align:center; padding: 4rem 2rem; }
.empty-icon { font-size:3rem; margin-bottom:1rem; opacity:0.4; }
.empty-title { font-size:1.1rem; font-weight:600; margin-bottom:0.5rem; }
.empty-desc { font-size:0.88rem; color:var(--text-muted); }

/* ============================
   ADMIN PANEL STYLES
   ============================ */
.admin-layout { display:grid; grid-template-columns: 260px 1fr; min-height:100vh; }
.admin-sidebar {
  background: rgba(6,16,30,0.98); border-right:1px solid var(--border-glass);
  padding: 1.5rem 0; position:fixed; top:0; left:0; bottom:0; width:260px;
  overflow-y:auto; z-index:100;
  display:flex; flex-direction:column;
}
.admin-sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom:1px solid var(--border-glass); margin-bottom:1rem; display:flex;align-items:center;gap:0.6rem; font-family:'Poppins',sans-serif; font-size:1.3rem; font-weight:800; }
.admin-sidebar-logo .logo-icon { width:34px;height:34px; background:linear-gradient(135deg,var(--primary),var(--accent)); border-radius:8px; display:flex;align-items:center;justify-content:center; font-size:0.95rem; }
.admin-sidebar-logo .logo-text span { color:var(--accent); }
.admin-nav { flex:1; padding: 0 0.75rem; }
.admin-nav a {
  display:flex; align-items:center; gap:0.75rem;
  padding: 0.7rem 0.85rem; border-radius:var(--radius-md);
  color: var(--text-muted); font-size:0.88rem; font-weight:500;
  transition:var(--transition); margin-bottom:0.15rem;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(26,107,220,0.15); color:white; }
.admin-nav a.active { background: rgba(26,107,220,0.25); color:var(--primary-light); }
.admin-nav a i { width:18px; text-align:center; }
.admin-nav .nav-section-title { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--text-muted); padding:1rem 0.85rem 0.4rem; }
.admin-main { margin-left: 260px; padding: 2rem; min-height:100vh; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:2rem; }
.admin-page-title { font-size:1.5rem; font-weight:700; }
.admin-page-subtitle { font-size:0.85rem; color:var(--text-muted); }
.admin-stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; margin-bottom:2rem; }
.admin-stat-card {
  padding:1.25rem; border-radius:var(--radius-lg);
  border:1px solid var(--border-glass); background:var(--bg-card);
  display:flex; flex-direction:column; gap:0.5rem;
}
.admin-stat-card .stat-icon { width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.1rem; }
.admin-stat-card .stat-value { font-size:1.9rem; font-weight:800; }
.admin-stat-card .stat-label { font-size:0.78rem; color:var(--text-muted); }
.admin-card { padding:1.5rem; border-radius:var(--radius-xl); border:1px solid var(--border-glass); background:var(--bg-card); margin-bottom:1.5rem; }
.admin-card-title { font-size:0.95rem; font-weight:700; margin-bottom:1.25rem; display:flex;align-items:center;justify-content:space-between; }

/* Admin Table */
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { text-align:left; padding:0.65rem 1rem; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-muted); border-bottom:1px solid var(--border-glass); }
.admin-table td { padding:0.85rem 1rem; font-size:0.88rem; border-bottom:1px solid rgba(255,255,255,0.04); }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:rgba(255,255,255,0.03); }
.table-actions { display:flex; gap:0.4rem; }
.table-btn { width:30px;height:30px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:0.8rem;cursor:pointer;transition:var(--transition); }
.table-btn-edit { background:rgba(26,107,220,0.15);color:var(--primary-light);border:1px solid rgba(26,107,220,0.3); }
.table-btn-edit:hover { background:rgba(26,107,220,0.3); }
.table-btn-delete { background:rgba(229,62,62,0.15);color:#fc8181;border:1px solid rgba(229,62,62,0.3); }
.table-btn-delete:hover { background:rgba(229,62,62,0.3); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-glass2); border-radius:var(--radius-lg);
  padding: 3rem 2rem; text-align:center; cursor:pointer; transition:var(--transition);
  background: rgba(255,255,255,0.02);
}
.upload-zone:hover, .upload-zone.dragover { border-color:var(--accent); background:rgba(0,212,255,0.05); }
.upload-zone .upload-icon { font-size:2.5rem; margin-bottom:0.75rem; color:var(--text-muted); }
.upload-zone p { color:var(--text-secondary); font-size:0.9rem; }
.upload-zone span { color:var(--accent); font-weight:600; }
.upload-progress { margin-top:1rem; display:none; }
.progress-bar { height:4px;background:rgba(255,255,255,0.1);border-radius:2px;overflow:hidden; }
.progress-fill { height:100%;background:linear-gradient(90deg,var(--primary),var(--accent));border-radius:2px;transition:width 0.3s ease; }
.progress-text { font-size:0.78rem; color:var(--text-muted); margin-top:0.5rem; }

/* ---------- LOGIN PAGE ---------- */
.login-page { min-height:100vh; display:flex; align-items:center;justify-content:center; padding:1.5rem; }
.login-card { width:100%; max-width:440px; padding:2.5rem; }
.login-logo { text-align:center; margin-bottom:2rem; font-family:'Poppins',sans-serif; font-size:1.8rem; font-weight:900; }
.login-logo span { color:var(--accent); }
.login-subtitle { text-align:center; color:var(--text-muted); font-size:0.9rem; margin-bottom:2rem; }
.login-btn { width:100%; padding:0.9rem; font-size:0.95rem; font-weight:700; border-radius:var(--radius-pill);
  background:linear-gradient(135deg,var(--primary),var(--accent)); color:white; cursor:pointer; border:none;
  transition:var(--transition); }
.login-btn:hover { transform:translateY(-2px); box-shadow: 0 8px 25px rgba(26,107,220,0.5); }
.forgot-link { text-align:right; margin-bottom:1.5rem; }
.forgot-link a { font-size:0.82rem; color:var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; width: 100%; height: auto; }
  .admin-main { margin-left: 0; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 100px 0 3rem; }
  .hero-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .departments-preview { grid-template-columns: 1fr 1fr; }
  .depts-grid { grid-template-columns: 1fr; }
  .calc-subject { grid-template-columns: 1fr 80px 80px 36px; font-size:0.85rem; }
  .nav-actions .btn { display:none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- ANIMATIONS ---------- */
.anim-fade-in { animation: fadeInUp 0.6s ease both; }
[data-delay="1"] { animation-delay: 0.1s; }
[data-delay="2"] { animation-delay: 0.2s; }
[data-delay="3"] { animation-delay: 0.3s; }
[data-delay="4"] { animation-delay: 0.4s; }
[data-delay="5"] { animation-delay: 0.5s; }

/* Intersection Observer animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Diamond decorative elements */
.diamond-deco {
  position: absolute; z-index: -1; opacity: 0.06;
  width: 200px; height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: rotate(45deg); border-radius: 20px;
  animation: rotateSlow 20s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(405deg); } }

/* Tag/badge highlight */
.highlight-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent); font-size: 0.75rem; font-weight: 600;
}

/* Year filter */
.year-filter { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.year-btn { padding:0.4rem 0.85rem; border-radius:var(--radius-pill); font-size:0.82rem; font-weight:600; border:1px solid var(--border-glass); color:var(--text-muted); cursor:pointer; transition:var(--transition); }
.year-btn:hover { border-color:var(--primary-light); color:var(--primary-light); }
.year-btn.active { background:var(--primary); border-color:var(--primary); color:white; }

/* Pagination */
.pagination { display:flex; justify-content:center; gap:0.5rem; margin-top:2.5rem; }
.page-btn { width:38px;height:38px;border-radius:50%;border:1px solid var(--border-glass);display:flex;align-items:center;justify-content:center;font-size:0.85rem;font-weight:600;color:var(--text-muted);cursor:pointer;transition:var(--transition); }
.page-btn:hover { border-color:var(--primary-light); color:var(--primary-light); background:rgba(26,107,220,0.1); }
.page-btn.active { background:var(--primary); border-color:var(--primary); color:white; }
