/* Dakwah TV UINSA - High-Performance Dynamic SPA Design System CSS */

:root {
  --primary-teal: #148375;
  --primary-teal-light: #1da896;
  --accent-cyan: #2dd4bf;
  --accent-gold: #f59e0b;
  --accent-amber: #fbbf24;
  --bg-dark: #0b1317;
  --bg-card: rgba(17, 28, 35, 0.78);
  --bg-card-hover: rgba(23, 38, 48, 0.92);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-teal: rgba(29, 168, 150, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(29, 168, 150, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-heading);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fixed Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 19, 23, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 19, 23, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  margin-right: 36px;
  flex-shrink: 0;
}

.nav-brand img {
  height: 42px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-brand:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  letter-spacing: 0.1px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active {
  color: var(--primary-teal-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-teal-light), var(--accent-cyan));
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* SPA Page Views Transition Engine */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 131, 117, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 168, 150, 0.55);
  background: linear-gradient(135deg, var(--primary-teal-light) 0%, #10b981 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color-teal);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(29, 168, 150, 0.18);
  border-color: var(--primary-teal-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Sections Base */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 46px auto;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-teal-light);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero Section (Centered Revamp) */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(15, 118, 110, 0.18) 0%, rgba(11, 19, 23, 1) 75%);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.justify-center {
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(29, 168, 150, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(85px);
  pointer-events: none;
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
    border-color: rgba(45, 212, 191, 0.75);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.18);
    border-color: rgba(45, 212, 191, 0.28);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.5);
  border-radius: var(--radius-full);
  color: #5eead4;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: pulseSlow 3.2s infinite ease-in-out;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 5.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.8));
}

.hero-slogan {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #f59e0b;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fde047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 12px rgba(245, 158, 11, 0.45));
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #e2e8f0;
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

/* Company Profile Video Box */
.company-profile-video-box {
  max-width: 920px;
  margin: 0 auto 20px auto;
}

.company-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color-teal);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), var(--shadow-glow);
  cursor: pointer;
  transition: var(--transition);
}

.company-video-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-teal-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.85), 0 0 35px rgba(29,168,150,0.5);
}

.company-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.company-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.6s ease;
}

.company-video-card:hover .company-video-thumb img {
  transform: scale(1.05);
  opacity: 0.95;
}

.play-badge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(20, 131, 117, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(29, 168, 150, 0.8);
  border: 2px solid rgba(255,255,255,0.2);
}

.company-video-card:hover .play-badge-center {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--primary-teal-light);
}

.company-video-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 30px;
  background: linear-gradient(0deg, rgba(11, 19, 23, 0.95) 0%, rgba(11, 19, 23, 0.6) 60%, transparent 100%);
  text-align: left;
}

.company-video-overlay-text h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-top: 6px;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-color-teal);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.program-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-teal);
  box-shadow: var(--shadow-glow);
}

.program-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.program-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .program-thumb img {
  transform: scale(1.06);
}

.program-body {
  padding: 20px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-planned { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-ongoing { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-done { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Footer */
.footer {
  background: #060b0e;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary-teal-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
}

/* Video Modal Player */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 920px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color-teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.95);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: #ef4444;
}

.modal-header-title {
  padding: 16px 20px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.modal-video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: #000;
}

.modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Toast Notifications */
.toast-box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 3000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-main-title {
    font-size: 3.2rem;
  }
  .hero-slogan {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
