/* ============================================================
   Science Centre Sri Vijaya Puram — Aether Science Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --teal:        #006B7D;
  --teal-dark:   #004E5C;
  --teal-light:  #E0F5F7;
  --cyan:        #00C4D4;
  --cyan-light:  #B2EEF3;
  --gold:        #F5A623;
  --gold-dark:   #D4891A;
  --pearl:       #F7FBFC;
  --white:       #FFFFFF;
  --text:        #1A2E35;
  --text-mid:    #3D5A64;
  --text-light:  #7A9BA5;
  --border:      #C8E6EB;
  --shadow-sm:   0 2px 8px rgba(0,107,125,0.08);
  --shadow-md:   0 8px 32px rgba(0,107,125,0.12);
  --shadow-lg:   0 16px 56px rgba(0,107,125,0.18);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--pearl);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--teal-dark);
  line-height: 1.25;
}
a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; }

/* ---------- Utility ---------- */
.text-teal     { color: var(--teal) !important; }
.text-gold     { color: var(--gold) !important; }
.text-mid      { color: var(--text-mid) !important; }
.bg-teal       { background: var(--teal) !important; }
.bg-teal-light { background: var(--teal-light) !important; }
.bg-pearl      { background: var(--pearl) !important; }
.section-pad   { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

/* ---------- Section Label ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
}

/* ---------- Buttons ---------- */
.btn-primary-sc {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,107,125,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-sc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,107,125,0.4);
  color: #fff;
}
.btn-gold-sc {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold-sc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.5);
  color: #fff;
}
.btn-outline-sc {
  background: transparent;
  color: var(--teal);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-sc:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.sc-navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.sc-navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.sc-navbar .navbar-brand img {
  height: 60px;
  width: auto;
}
.sc-navbar .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-mid) !important;
  padding: 24px 14px !important;
  position: relative;
  transition: var(--transition);
}
.sc-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: var(--transition);
}
.sc-navbar .nav-link:hover,
.sc-navbar .nav-link.active {
  color: var(--teal) !important;
}
.sc-navbar .nav-link:hover::after,
.sc-navbar .nav-link.active::after {
  transform: scaleX(1);
}
.sc-navbar .nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  margin-left: 8px;
}
.sc-navbar .nav-cta::after { display: none; }
.sc-navbar .nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- Hero Section ---------- */
.sc-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #004E5C 0%, #006B7D 40%, #008FA5 70%, #00C4D4 100%);
}
.sc-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sc-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.sc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 24px;
}
.sc-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.sc-hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 36px;
}
.sc-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Status pill on hero */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 28px;
}
.status-pill.open { background: rgba(0,196,212,0.2); color: var(--cyan-light); }
.status-pill.closed { background: rgba(255,80,80,0.2); color: #ffb3b3; }
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.status-pill.open .dot   { background: var(--cyan-light); }
.status-pill.closed .dot { background: #ff6b6b; }
@keyframes pulse-dot {
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.5;transform:scale(1.4);}
}

/* Hero image side */
.sc-hero-image-wrap {
  position: relative;
  z-index: 2;
}
.sc-hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
}
.sc-hero-stat {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
}
.sc-hero-stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--gold);
  display: block;
}
.sc-hero-stat .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating shapes on hero */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: float-shape 8s ease-in-out infinite;
}
.hero-shape-1 { width: 400px; height: 400px; background: var(--cyan); top: -100px; right: -100px; animation-delay: 0s; }
.hero-shape-2 { width: 200px; height: 200px; background: var(--gold); bottom: 50px; right: 30%; animation-delay: -3s; }
.hero-shape-3 { width: 120px; height: 120px; background: #fff; top: 30%; left: -30px; animation-delay: -5s; }
@keyframes float-shape {
  0%,100%{transform:translateY(0) rotate(0deg);}
  50%{transform:translateY(-20px) rotate(8deg);}
}

/* ---------- Cards ---------- */
.sc-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.sc-card .card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--teal-light);
}
.sc-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sc-card:hover .card-img-wrap img { transform: scale(1.04); }
.sc-card .card-body { padding: 20px; }

/* ---------- Show cards ---------- */
.show-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.show-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
}
.show-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.show-card .show-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.price-badge {
  display: inline-flex;
  align-items: center;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  gap: 4px;
}

/* ---------- Today Schedule ---------- */
.today-schedule-wrap {
  background: linear-gradient(135deg, var(--teal-light) 0%, #fff 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.schedule-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.schedule-time {
  min-width: 80px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: bold;
}
.schedule-show { font-weight: 700; color: var(--text); }
.schedule-price { margin-left: auto; }

/* ---------- Info boxes ---------- */
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  height: 100%;
}
.info-box .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* ---------- Ticket table ---------- */
.ticket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.ticket-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 8px 16px;
  border-bottom: 2px solid var(--border);
}
.ticket-table td {
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ticket-table td:first-child { border-left: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
.ticket-table td:last-child  { border-right: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
.ticket-price { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--teal-dark); }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--teal-light);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,78,92,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-card:hover .overlay { opacity: 1; }
.gallery-card .overlay span { color: #fff; font-weight: 700; font-size: 0.9rem; }

/* ---------- Events ---------- */
.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.event-date-box {
  min-width: 60px;
  text-align: center;
  background: var(--teal-light);
  border-radius: 10px;
  padding: 10px 8px;
  color: var(--teal-dark);
}
.event-date-box .day  { font-family: 'DM Serif Display', serif; font-size: 1.8rem; line-height: 1; }
.event-date-box .mon  { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 60px 0 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(0,196,212,0.12);
}
.page-hero h1 { color: #fff; font-size: 2.4rem; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---------- Footer ---------- */
.sc-footer {
  background: linear-gradient(135deg, #002830 0%, #003D48 100%);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.sc-footer h5 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 20px;
}
.sc-footer a { color: rgba(255,255,255,0.65); }
.sc-footer a:hover { color: var(--cyan); }
.sc-footer ul { list-style: none; padding: 0; }
.sc-footer ul li { margin-bottom: 10px; }
.sc-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
  text-align: center;
}
.sc-footer .social-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  font-size: 1rem;
}
.sc-footer .social-icon:hover { background: var(--teal); color: #fff; }

/* ---------- Forms ---------- */
.sc-form .form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-mid); margin-bottom: 6px; }
.sc-form .form-control,
.sc-form .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.sc-form .form-control:focus,
.sc-form .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,107,125,0.12);
}
.sc-form .form-control.is-invalid { border-color: #dc3545; }

/* ---------- Alert banner ---------- */
.sc-alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}
.sc-alert.warning { background: #FFF8E1; border-left: 4px solid var(--gold); color: #7A5400; }
.sc-alert.info    { background: var(--teal-light); border-left: 4px solid var(--teal); color: var(--teal-dark); }
.sc-alert.closed  { background: #FFF0F0; border-left: 4px solid #E53935; color: #B71C1C; }

/* ---------- Lightbox ---------- */
.sc-lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.sc-lightbox-overlay.active { opacity: 1; pointer-events: all; }
.sc-lightbox-img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
}
.sc-lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none;
}

/* ---------- Date Picker custom ---------- */
.sc-datepicker {
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.sc-datepicker:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,107,125,0.12);
}

/* ---------- Exhibit code badge ---------- */
.exhibit-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  background: var(--teal-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.04em;
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 800;
}
#backToTop.visible { opacity: 1; pointer-events: all; }
#backToTop:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sc-hero { min-height: auto; padding: 64px 0; }
  .sc-hero h1 { font-size: 2.2rem; }
  .sc-navbar .nav-link { padding: 12px 14px !important; }
  .sc-navbar .nav-link::after { display: none; }
  .section-pad { padding: 56px 0; }
}
@media (max-width: 767.98px) {
  .sc-hero h1 { font-size: 1.9rem; }
  .sc-hero p.lead { font-size: 1rem; }
  .section-pad { padding: 40px 0; }
  .event-card { flex-direction: column; gap: 12px; }
  .sc-hero-actions { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 575.98px) {
  .sc-hero h1 { font-size: 1.7rem; }
  .today-schedule-wrap { padding: 20px; }
  .ticket-table { font-size: 0.88rem; }
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Loading skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%{background-position:200% 0;}
  100%{background-position:-200% 0;}
}

/* ---------- Print ---------- */
@media print {
  .sc-navbar, .sc-footer, #backToTop, .sc-hero-particles { display: none; }
  body { background: #fff; }
}
