 /**
 * Template Name: Masigitta Digital Display
 * Adapted from: BizPage - v3.1.0
 * Template URL: https://bootstrapmade.com/bizpage-bootstrap-business-template/
 * Author: BootstrapMade.com, modified by xAI
 * License: https://bootstrapmade.com/license/
 */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #1C2526;
  --accent-color: #007AFF;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-light: #FFFFFF;
  --shadow-soft: rgba(0, 0, 0, 0.15);
  --fajr-color: #6B7280;
  --sunrise-color: #F59E0B;
  --dhuhr-color: #10B981;
  --asr-color: #3B82F6;
  --maghrib-color: #EF4444;
  --isha-color: #8B5CF6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  background: linear-gradient(180deg, #0A1120 0%, var(--primary-color) 100%);
  color: var(--text-light);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

a {
  color: var(--accent-color);
  transition: 0.3s;
}

a:hover, a:active, a:focus {
  color: #3B82F6;
  outline: none;
  text-decoration: none;
}

p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  margin: 0 0 10px 0;
}

label {
  font-weight: 600;
}

small, .small {
  font-size: 75%;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.table td, .table th {
  border: none;
  font-size: 14px;
}

table.table.table-condensed {
  border: 1px solid var(--glass-border);
}

.text-white {
  font-weight: 700;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: all 0.5s;
  z-index: 997;
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

body.low-performance #header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#header.header-transparent {
  background: transparent;
}

#header .logo {
  font-size: 36px;
  color: var(--accent-color);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  padding: 0 10px;
}

#header .nama {
  font-size: 48px;
  color: var(--text-light);
  margin: 0;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#header .alamat, #header .tanggal {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1.5px;
  font-weight: 500;
  padding-top: 5px;
}

#header .logo a {
  color: var(--text-light);
}

#header .logo img {
  max-height: 50px;
}

@media (max-width: 992px) {
  #header .logo {
    font-size: 28px;
  }
  #header .nama {
    font-size: 36px;
  }
  #header .alamat, #header .tanggal {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu p {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--accent-color);
  padding: 8px 16px;
  margin: 0;
  transition: 0.3s;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul {
  display: flex;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 10px 0 10px 24px;
}

.nav-menu a {
  display: block;
  position: relative;
  color: var(--text-light);
  transition: 0.3s;
  font-size: 14px;
  font-weight: 600;
}

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  color: var(--accent-color);
}

.nav-menu .drop-down ul {
  display: block;
  position: absolute;
  left: 12px;
  top: calc(100% + 20px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 8px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px var(--shadow-soft);
  transition: 0.3s;
}

body.low-performance .nav-menu .drop-down ul {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(25, 35, 52, 0.98);
}

.nav-menu .drop-down:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.nav-menu .drop-down li {
  min-width: 160px;
  position: relative;
}

.nav-menu .drop-down ul a {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-light);
}

.nav-menu .drop-down ul a:hover, .nav-menu .drop-down ul .active > a, .nav-menu .drop-down ul li:hover > a {
  color: var(--accent-color);
}

.nav-menu .drop-down > a:after {
  content: "\f078";
  font-family: "FontAwesome";
  padding-left: 5px;
}

.nav-menu .drop-down .drop-down ul {
  top: 0;
  left: calc(100% - 20px);
}

.nav-menu .drop-down .drop-down:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
}

.nav-menu .drop-down .drop-down > a {
  padding-right: 30px;
}

.nav-menu .drop-down .drop-down > a:after {
  content: "\f054";
  font-family: "FontAwesome";
  position: absolute;
  right: 12px;
}

@media (max-width: 1366px) {
  .nav-menu .drop-down .drop-down ul {
    left: -90%;
  }
  .nav-menu .drop-down .drop-down:hover > ul {
    left: -100%;
  }
}

/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/
#intro {
  width: 100%;
  height: 84vh;
  overflow: hidden;
  position: relative;
}

#intro .carousel, #intro .carousel-inner, #intro .carousel-item, #intro .carousel-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#intro .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*filter: brightness(0.65);*/
  transition: opacity 0.7s ease;
}

#intro .carousel-item::before {
  content: '';
  /*background: linear-gradient(to bottom, rgba(10, 17, 32, 0.3), rgba(10, 17, 32, 0.6));*/
}

#intro .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 60px;
  right: 60px;
}

#intro .container-fluid {
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 90%;
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.low-performance #intro .container-fluid {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(0, 0, 0, 0.85);
}

#intro .carousel-item.active .container-fluid {
  opacity: 1;
  transform: translateY(0);
}

#intro .slide-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-transform: capitalize;
}

#intro .slide-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), transparent);
  opacity: 0.8;
}

#intro .slide-title.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

#intro .slide-content {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

#intro .carousel-item.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

#intro .slide-content.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

#intro .carousel-control-prev, #intro .carousel-control-next {
  width: 8%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#intro .carousel-control-prev:hover, #intro .carousel-control-next:hover {
  opacity: 1;
}

#intro .carousel-control-next-icon, #intro .carousel-control-prev-icon {
  font-size: 40px;
  color: var(--text-light);
}

#intro .carousel-indicators li {
  background: rgba(255, 255, 255, 0.5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  transition: 0.3s;
}

#intro .carousel-indicators li.active {
  background: var(--accent-color);
}

@media (max-height: 500px) {
  #intro {
    height: 120vh;
  }
}

@media (max-width: 1200px) {
  #intro .slide-title {
    font-size: 4rem;
  }
  #intro .slide-title.arabic-text {
    font-size: 3.5rem;
  }
  #intro .slide-content {
    font-size: 1.3rem;
  }
  #intro .slide-content.arabic-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  #intro .slide-title {
    font-size: 3.5rem;
  }
  #intro .slide-title.arabic-text {
    font-size: 3rem;
  }
  #intro .slide-content {
    font-size: 1.2rem;
  }
  #intro .slide-content.arabic-text {
    font-size: 1.6rem;
  }
  #intro .container-fluid {
    padding: 32px 40px;
    max-width: 92%;
  }
}

@media (max-width: 768px) {
  #intro .slide-title {
    font-size: 2.8rem;
  }
  #intro .slide-title.arabic-text {
    font-size: 2.5rem;
  }
  #intro .slide-content {
    font-size: 1.1rem;
  }
  #intro .slide-content.arabic-text {
    font-size: 1.5rem;
  }
  #intro .container-fluid {
    padding: 24px 32px;
  }
  #intro .carousel-container {
    left: 40px;
    right: 40px;
  }
}

@media (max-width: 576px) {
  #intro .slide-title {
    font-size: 2.2rem;
  }
  #intro .slide-title.arabic-text {
    font-size: 2rem;
  }
  #intro .slide-content {
    font-size: 1rem;
  }
  #intro .slide-content.arabic-text {
    font-size: 1.4rem;
  }
  #intro .container-fluid {
    max-width: 95%;
    padding: 20px 24px;
  }
  #intro .carousel-container {
    left: 20px;
    right: 20px;
    top: 60px;
    bottom: 60px;
  }
}

/*--------------------------------------------------------------
# Clock
--------------------------------------------------------------*/
#clock {
  padding: 0;
  position: relative;
  background: var(--primary-color);
}

#clock .left, #clock .right {
  background: transparent;
  color: var(--accent-color);
  position: absolute;
  bottom: 50px;
  z-index: 2;
  height: 100px;
  padding: 0 12px;
}

#clock .left {
  left: 0;
  width: 400px;
}

#clock .right {
  right: 0;
  text-align: right;
}

#clock h2 {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#clock h3 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/*--------------------------------------------------------------
# Running-Text
--------------------------------------------------------------*/
#text {
  padding: 0;
  position: relative;
  background: var(--primary-color);
}

#text .running-text {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-light);
  position: absolute;
  bottom: 0;
  z-index: 2;
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

body.low-performance #text .running-text {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #111827; /* Near black solid fallback */
}

#text .running-text h3 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 16px;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/*--------------------------------------------------------------
# Prayer Section
--------------------------------------------------------------*/
#prayer .bg1 {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 160px;
  border: 1px solid var(--glass-border);
}

body.low-performance #prayer .bg1 {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(30, 40, 55, 0.95);
}

#prayer h2 {
  color: var(--text-light);
  font-weight: 700;
  font-size: 48px;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

#prayer h3 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 40px;
  margin-bottom: -8px;
  text-align: center;
}

#prayer .selected {
  color: var(--primary-color);
  background: var(--accent-color);
  padding: 0 40px;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Footer Section
--------------------------------------------------------------*/
#footer {
  background: var(--primary-color);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  height: auto;
}

#footer .social-links {
  color: rgba(255, 255, 255, 0.85);
  padding: 0 10px;
  letter-spacing: 1px;
}