:root {
  --blue-dark: #0a3d7a;
  --blue-main: #185a9d;
  --blue-light: #4cb8c4;
  --bg-gradient-top: #0a3d7a;
  --bg-gradient-bottom: #f2e3c6;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-strong: 0 15px 40px rgba(10, 61, 122, 0.25);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Geist', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  letter-spacing: -0.01em;
  overflow-x: hidden;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, .logo-text, .pc-name, .np-left h2, .np-countdown {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  transition: all 0.3s ease;
}

header.scrolled {
  background: var(--white) !important;
  backdrop-filter: blur(10px);
  padding: 10px 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo-text, 
header.scrolled .logo-text b {
  color: var(--blue-dark) !important;
}

header.scrolled .desktop-nav a {
  color: var(--blue-dark);
}

header.scrolled .desktop-nav a:hover {
  color: var(--blue-light);
}

header.scrolled .nav-separator {
  color: rgba(10, 61, 122, 0.2);
}

header.scrolled .btn-contact {
  background: var(--blue-dark);
  color: var(--white);
  border: 1px solid var(--blue-dark);
}

header.scrolled .btn-contact:hover {
  background: var(--blue-main);
  transform: translateY(-2px);
}

header.scrolled .mobile-menu-toggle {
  color: var(--blue-dark);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.logo-img { height: 60px; width: auto; }
.logo-text { font-size: 1.1rem; line-height: 1.1; font-weight: 500; }
.logo-text b { font-weight: 800; font-size: 1.3rem; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s;
}

.desktop-nav a:hover { color: var(--white); }
.nav-separator { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

.btn-contact {
  background: var(--white);
  color: var(--blue-dark);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: none;
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--blue-dark);
  display: flex;
  flex-direction: column;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 300px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 5%;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 50px;
  background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--blue-main) 60%, var(--bg-gradient-bottom) 100%);
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0; 
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-gradient-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, 
    var(--bg-gradient-top) 0%, 
    var(--bg-gradient-top) 5%, 
    rgba(10, 61, 122, 0.4) 60%, 
    rgba(10, 61, 122, 0.2) 100%
  );
  mask-image: linear-gradient(to top, transparent 0%, black 10%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
}

.hero-content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-ticker {
  display: flex;
  gap: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.floating-hero-card {
  width: 100%;
  max-width: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-strong);
  color: var(--white);
}

.floating-hero-card h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.pc-name {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.hero-ticker span {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.np-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.floating-hero-card p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

/* The Wrapper Box */
.custom-glass-dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
  z-index: 100;
}

.dropdown-selected {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  color: white;
  gap: 10px;
}

.dropdown-options-glass {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  list-style: none;
  padding: 10px;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dropdown-options-glass::-webkit-scrollbar {
  display: none;
}

.dropdown-options-glass {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.dropdown-options-glass.active {
  display: block;
}

.dropdown-options-glass li {
  padding: 12px 15px;
  color: #fceabb;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-size: 0.95rem;
}

.dropdown-options-glass li:hover {
  background: rgba(255, 255, 255, 0.2);
}

.arrow-icon { margin-left: auto; transition: transform 0.3s; }
.active .arrow-icon { transform: rotate(180deg); }

.btn-solid-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue-dark);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-solid-white:hover {
  background: var(--blue-dark);
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-dark-text {
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
}
.btn-dark-text:hover {
  background: var(--text-dark);
  border: 1px solid transparent;
}

.hero-prayer-focus {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.dates-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.hijri-text { color: #fceabb; }

.custom-select-wrapper {
  position: relative;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}

.custom-select-wrapper select {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

.custom-select-wrapper select option { color: var(--text-dark); }

.next-prayer-highlight {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}

.np-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.np-left h2 { font-size: 2.2rem; margin: 0; line-height: 1; }
.np-time { font-size: 1.1rem; color: #fceabb; font-weight: 600; }
.np-countdown { font-size: 1.8rem; font-family: monospace; font-weight: 700; color: #fceabb; }

.prayer-grid-section {
  background: var(--bg-gradient-bottom);
  padding: 60px 5% 80px;
  position: relative;
}

.pg-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

.pg-left-text {
  flex: 0 0 35%;
}

.pg-left-text h2 {
  font-size: 2.8rem;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.pg-left-text p {
  color: #505050;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.pg-right-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prayer-card-ui {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.prayer-card-ui:hover { transform: translateY(-10px); }
.prayer-card-ui.active { border: 2px solid var(--blue-main); box-shadow: var(--shadow-strong); }

.pc-icon {
  width: 60px; height: 60px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-main);
}
.pc-icon .material-icons-round { font-size: 30px; }

.pc-name { font-size: 1.2rem; color: var(--text-dark); }
.pc-time { font-size: 1rem; color: var(--text-muted); font-weight: 600; }

.about-section {
  background: var(--white);
  padding: 100px 5%;
}

.container-standard {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--blue-dark);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 4px;
  background: var(--blue-main);
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.rounded-image-large {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.mission-vision-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background: #f8fafc;
  padding: 40px;
  border-radius: var(--radius-md);
  border-top: 5px solid var(--blue-light);
  box-shadow: var(--shadow-soft);
}

.mv-icon {
  width: 50px; height: 50px;
  background: var(--blue-main);
  color: var(--white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.mv-card h3 { font-size: 1.5rem; color: var(--blue-dark); margin-bottom: 15px; }
.mv-card p { color: var(--text-muted); }

.contact-section {
  background: var(--blue-dark);
  padding: 100px 5%;
  color: var(--white);
}

.text-white { color: var(--white); }
.text-light-blue { color: rgba(255,255,255,0.7); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-method-item {
  display: flex; gap: 20px;
  margin-top: 30px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: var(--radius-md);
}

.cm-icon {
  width: 45px; height: 45px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.cm-text h4 { font-size: 1.2rem; margin-bottom: 5px; }
.cm-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.contact-form-side {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--text-dark);
}

.form-title { font-size: 1.8rem; margin-bottom: 25px; color: var(--blue-dark); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }

.form-group input, .form-group textarea {
  width: 100%; padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem;
  background: #f8fafc;
}
.form-group textarea { height: 120px; resize: vertical; }

.submit-btn {
  width: 100%; background: var(--blue-main); color: var(--white);
  border: none; padding: 15px; border-radius: var(--radius-pill);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover { background: var(--blue-dark); }

.success-message {
  display: none; align-items: center; gap: 10px;
  background: #dcfce7; color: #166534;
  padding: 15px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600;
}

footer {
  background: #062347;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 30px 5%;
}

@media (max-width: 1024px) {
  .hero-bg-wrapper { width: 100%; }
  .hero-gradient-overlay { background: linear-gradient(180deg, var(--bg-gradient-top) 0%, rgba(10, 61, 122, 0.7) 40%, transparent 100%); }
  .pg-container, .about-grid, .contact-wrapper { flex-direction: column; grid-template-columns: 1fr; gap: 40px; }
  .pg-right-cards { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
}

@media (max-width: 768px) {
  .desktop-nav, .desktop-btn { display: none; }
  .mobile-menu-toggle { display: block; font-size: 28px; }
  header { padding: 15px 5%; background: var(--bg-gradient-top); } /* Solid on mobile for readability */
  
  .hero-section { padding: 120px 5% 60px; background: var(--bg-gradient-top); }
  .hero-ticker { flex-wrap: wrap; justify-content: center; font-size: 0.85rem; }
  
  .floating-hero-card {
    padding: 25px 20px;
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.15);
  }
  .floating-hero-card h1 { font-size: 2.5rem; }
  
  .next-prayer-highlight { flex-direction: column; align-items: flex-start; gap: 15px; }
  .np-countdown { font-size: 1.5rem; }
  
  .pg-right-cards { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .prayer-card-ui { padding: 15px 10px; }
  .pc-icon { width: 45px; height: 45px; }
  .pc-icon .material-icons-round { font-size: 22px; }
  .pc-name { font-size: 1rem; }
  
  .about-section, .contact-section { padding: 60px 5%; }
  .mission-vision-cards { grid-template-columns: 1fr; }
  .contact-form-side { padding: 25px 15px; }

  .form-group input, .form-group textarea, .custom-select-wrapper select { font-size: 16px; }
}

@media (max-width: 480px) {
  .floating-hero-card h1 { font-size: 2.2rem; }
  .dates-wrapper { flex-direction: column; gap: 5px; }
}

