/* UNRV Portal — Main Stylesheet */

/* ─── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #1B5EA8;
  --blue-dark: #0C3568;
  --blue-mid: #1A4F8F;
  --blue-light: #2E7BC4;
  --blue-pale: #E8F2FB;
  --orange: #F4A520;
  --orange-dark: #D4880A;
  --orange-light: #F7B84A;
  --orange-pale: #FEF3DC;
  --gray: #717173;
  --gray-light: #F0F2F5;
  --gray-border: #E2E8F0;
  --navy: #0A1F3D;
  --white: #FFFFFF;
  --text-dark: #0F172A;
  --text-mid: #475569;
  --text-light: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-border);
  padding: 0 40px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-brand img { height: 40px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-text .name { font-size: 16px; font-weight: 700; color: var(--blue); }
.nav-brand-text .tag { font-size: 10px; color: var(--gray); letter-spacing: 0.5px; }

.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-pale); }
.nav-links a.active { color: var(--blue); background: var(--blue-pale); }

.nav-right {
  display: flex; align-items: center; gap: 12px;
}
.badge-private {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-pale); border: 1px solid var(--orange);
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  color: var(--orange-dark); text-transform: uppercase;
}
.badge-private::before {
  content: ''; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.btn-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: none; border: 1px solid var(--gray-border);
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--blue); color: var(--blue); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text-dark);
  border-radius: 2px; transition: all 0.3s;
}

/* ─── Mobile Nav ─────────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  padding-top: 70px;
}
.mobile-menu.open { display: flex; flex-direction: column; }
.mobile-menu-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.mobile-menu-panel {
  position: relative; z-index: 1; background: var(--white);
  padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.mobile-menu-panel a {
  padding: 12px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-dark);
  display: flex; align-items: center; gap: 12px;
  transition: background 0.2s;
}
.mobile-menu-panel a:hover { background: var(--gray-light); }

/* ─── Hero Section ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 50%, var(--blue-mid) 100%);
  padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
}
.hero-orb.o1 { width: 600px; height: 600px; background: var(--blue-light); top: -200px; right: -100px; }
.hero-orb.o2 { width: 400px; height: 400px; background: var(--orange); bottom: -100px; left: 10%; }
.hero-orb.o3 { width: 300px; height: 300px; background: var(--blue); top: 30%; left: 50%; }

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 80px 40px; text-align: center;
}

.hero-logo {
  height: 90px; width: auto; margin: 0 auto 32px;
  filter: brightness(1.1) drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: fadeInDown 0.8s ease;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(244,165,32,0.15); border: 1px solid rgba(244,165,32,0.4);
  border-radius: 30px; padding: 6px 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--orange-light); text-transform: uppercase;
  margin-bottom: 20px; animation: fadeIn 0.8s ease 0.2s both;
}

.hero-title {
  font-size: clamp(32px, 5vw, 58px); font-weight: 800;
  color: var(--white); line-height: 1.15; letter-spacing: -1px;
  margin-bottom: 16px; animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px); font-weight: 400;
  color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 40px;
  animation: fadeIn 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px; animation: fadeIn 0.8s ease 0.5s both;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--orange); color: var(--white);
  border: none; font-size: 15px; font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(244,165,32,0.4);
}
.btn-hero-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,165,32,0.5); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.2); font-size: 15px; font-weight: 600;
  transition: all 0.2s; backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* ─── Stats Ticker ───────────────────────────────────────────────── */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; overflow: hidden; max-width: 700px; margin: 0 auto;
  animation: fadeIn 0.8s ease 0.6s both;
}
.stat-item {
  background: rgba(255,255,255,0.05);
  padding: 20px 24px; text-align: center;
  transition: background 0.2s;
}
.stat-item:hover { background: rgba(255,255,255,0.1); }
.stat-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  color: rgba(255,255,255,0.45); text-transform: uppercase; margin-bottom: 6px;
}
.stat-value {
  font-size: 22px; font-weight: 800; color: var(--white);
}
.stat-value.orange { color: var(--orange); }
.stat-value.green { color: #4ADE80; }
.stat-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; animation: bounce 2s ease infinite;
}
.hero-scroll i { font-size: 18px; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ─── Section Commons ────────────────────────────────────────────── */
section { padding: 100px 40px; }
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--orange); text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  color: var(--text-dark); letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-desc {
  font-size: 16px; color: var(--text-mid); max-width: 520px;
  margin-bottom: 48px; line-height: 1.7;
}

/* ─── Gallery ────────────────────────────────────────────────────── */
#gallery { background: var(--gray-light); }

.gallery-grid {
  columns: 3; column-gap: 16px;
  display: block;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; display: block; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,61,0.7) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: var(--white); font-size: 13px; font-weight: 500; }
.gallery-zoom { position: absolute; top: 12px; right: 12px; }
.gallery-zoom i { color: white; font-size: 18px; }

/* Placeholder gallery cards */
.gallery-placeholder {
  background: linear-gradient(135deg, var(--blue-pale), rgba(27,94,168,0.1));
  border: 2px dashed rgba(27,94,168,0.2);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  min-height: 160px; color: var(--blue); font-size: 13px;
  break-inside: avoid; margin-bottom: 16px;
}
.gallery-placeholder i { font-size: 28px; opacity: 0.4; }
.gallery-placeholder p { opacity: 0.5; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
.lightbox img {
  max-width: 90vw; max-height: 88vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease;
}
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 14px; text-align: center;
  background: rgba(0,0,0,0.5); padding: 8px 20px; border-radius: 20px;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; cursor: pointer; transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ─── Quick Access ───────────────────────────────────────────────── */
#quick-access { background: var(--white); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  background: var(--white); cursor: pointer;
  transition: all 0.3s; position: relative; overflow: hidden;
  text-decoration: none;
}
.quick-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quick-card:hover::before { opacity: 1; }
.quick-card:hover .qc-icon, .quick-card:hover .qc-title, .quick-card:hover .qc-desc { color: var(--white); }
.quick-card:hover .qc-icon-wrap { background: rgba(255,255,255,0.15); }

.qc-icon-wrap {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background 0.3s;
}
.qc-icon { font-size: 22px; color: var(--blue); position: relative; z-index: 1; transition: color 0.3s; }
.qc-arrow {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  color: var(--text-light); font-size: 14px; transition: color 0.3s;
}
.quick-card:hover .qc-arrow { color: rgba(255,255,255,0.6); }
.qc-title {
  position: relative; z-index: 1;
  font-size: 16px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 6px; transition: color 0.3s;
}
.qc-desc {
  position: relative; z-index: 1;
  font-size: 13px; color: var(--text-mid); line-height: 1.5; transition: color 0.3s;
}

/* Orange variant */
.quick-card.orange-card::before { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); }
.quick-card.orange-card .qc-icon-wrap { background: var(--orange-pale); }
.quick-card.orange-card .qc-icon { color: var(--orange-dark); }

/* ─── Contact Modal ──────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; max-width: 480px; width: 90%;
  box-shadow: var(--shadow-lg); animation: zoomIn 0.25s ease;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-light); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--gray);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--gray-border); }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 16px; flex-shrink: 0;
}
.contact-info .label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info .value { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 48px 40px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 20px;
}
.footer-logo img { height: 48px; filter: brightness(1.2); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); }
.footer-divider { width: 60px; height: 1px; background: rgba(255,255,255,0.1); }
.footer-notice {
  font-size: 12px; color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 20px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.footer-notice::before { content: '🔒'; font-size: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}
@media (max-width: 768px) {
  section { padding: 70px 20px; }
  .navbar { padding: 0 20px; }
  .nav-links, .nav-right .badge-private, .nav-right .btn-logout { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 60px 20px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-item { padding: 16px; }
  .quick-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
}
