/* ===================================================
   UHV CELL - HKBK College of Engineering
   Main Stylesheet
   =================================================== */

:root {
  --primary:     #0a2158;
  --primary-lt:  #1a3b8a;
  --accent:      #e67e22;
  --accent-lt:   #f39c12;
  --green:       #27ae60;
  --light-bg:    #f4f6fb;
  --white:       #ffffff;
  --text:        #2c3e50;
  --text-muted:  #6c757d;
  --border:      #dee2e6;
  --shadow:      0 4px 20px rgba(10,33,88,0.10);
  --shadow-hover:0 8px 32px rgba(10,33,88,0.18);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-lt); border-radius: 3px; }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,33,88,0.97);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.nav-brand .logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent), var(--accent-lt));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(230,126,34,0.4);
}
.nav-brand .brand-text { line-height: 1.2; }
.nav-brand .brand-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.nav-brand .brand-sub   { font-size: 10px; opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-links a.active { background: var(--accent); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════ */
.page-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 60%, #1e4db7 100%);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:'';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.page-hero::after {
  content:'';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(230,126,34,0.12);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--accent-lt); }
.breadcrumb a:hover { color: var(--white); }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.section {
  padding: 80px 24px;
}
.section-alt { background: var(--light-bg); }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,33,88,0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(10,33,88,0.12);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-title span { color: var(--accent); }
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-lt));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230,126,34,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   STAT CARDS
════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.stat-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--white);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}
.card-img .year-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.card-body { padding: 24px; }
.card-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.card-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: var(--light-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════
   TIMELINE
════════════════════════════════════════ */
.timeline {
  position: relative;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  padding-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--accent);
  z-index: 2;
  box-shadow: 0 2px 12px rgba(230,126,34,0.25);
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  color: var(--white);
  transform: translateX(-50%) scale(1.15);
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 400px;
  width: 100%;
  transition: var(--transition);
  border-left: 4px solid var(--accent);
  position: relative;
}
.timeline-item:nth-child(even) .timeline-content {
  border-left: none;
  border-right: 4px solid var(--primary);
}
.timeline-content:hover { box-shadow: var(--shadow-hover); transform: scale(1.02); }
.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.timeline-item:nth-child(even) .timeline-date { color: var(--primary); }
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.timeline-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   RECOGNITION BANNER
════════════════════════════════════════ */
.recognition-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3b8a 50%, #0d47a1 100%);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.recognition-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 60%),
                    radial-gradient(circle at 80% 50%, rgba(230,126,34,0.06) 0%, transparent 60%);
}
.recognition-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.recognition-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.recognition-badge .badge-icon { font-size: 20px; }
.recognition-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.recognition-title .highlight { color: var(--accent-lt); }
.recognition-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin: 0 auto 32px;
}
.recognition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ════════════════════════════════════════
   TEAM CARDS
════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-card.coordinator { border-top-color: var(--primary); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: var(--white);
  margin: 0 auto 16px;
  border: 3px solid var(--accent);
}
.team-card.coordinator .team-avatar { border-color: var(--primary); background: linear-gradient(135deg, var(--accent), var(--accent-lt)); }
.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-role {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.team-dept {
  font-size: 11px;
  background: var(--light-bg);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════
   FILTER BAR
════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(10,33,88,0.25);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 64px 24px 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}
.footer-logo-text .ft-title { font-size: 14px; font-weight: 700; color: var(--white); }
.footer-logo-text .ft-sub { font-size: 11px; opacity: 0.7; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: var(--white); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent-lt); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}
.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: var(--accent-lt); }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
[data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos].aos-animate { opacity: 1 !important; transform: none !important; }

.count-up { display: inline-block; }

/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(230,126,34,0.4);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); background: var(--primary); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 968px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--primary); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 70px; }
  .timeline-dot { left: 24px; }
  .timeline-content { max-width: 100%; }
  .timeline-item:nth-child(even) .timeline-content { border-left: 4px solid var(--accent); border-right: none; }
  .timeline-item:nth-child(even) .timeline-date { color: var(--accent); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 56px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
