:root {
  --city-primary: #991b1b;
  --city-dark: #7a1414;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f4f6f9;
  font-family: "Segoe UI", sans-serif;
}

/* Offset for sticky navbar */
section {
  scroll-margin-top: 90px;
}

/* Government Bar */
.gov-bar {
  background: var(--city-dark);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}

/* Header */
.main-header {
  background: #fff;
  border-bottom: 4px solid var(--city-primary);
  padding: 15px 0;
}

.main-header h1 {
  font-size: 24px;
  font-weight: bold;
  color: var(--city-primary);
  margin-bottom: 0;
}

.main-header h2 {
  font-size: 15px;
  margin: 0;
}

/* Navbar */
.navbar-custom {
  background: var(--city-primary);
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: #fff !important;
  font-weight: 500;
}

.navbar-custom .nav-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(153, 27, 27, 0.92), rgba(153, 27, 27, 0.92)),
    url("../../images/eBPLS/eBPLS-main-bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

/* Initial state */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

/* When visible */
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn-city {
  background: #fff;
  color: var(--city-primary);
  font-weight: 600;
  padding: 10px 30px;
}

.btn-city:hover {
  background: #f1f1f1;
}

/* Portal Card */
.portal-card {
  background: #fff;
  padding: 60px;
  margin-top: -60px;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-weight: bold;
  color: var(--city-primary);
}

/* Services */
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 40px;
  color: var(--city-primary);
  margin-bottom: 15px;
}

/* Advisory */
.advisory-container {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  border-radius: 10px;
  padding: 35px;
  border-left: 8px solid #ffc107;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Contact */
.contact-section {
  position: relative;
  background: #fff;
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Watermark Seal */
.contact-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  background: url("../../images/AC_LOGO.png") no-repeat center;
  background-size: contain;
  opacity: 0.05;
  /* subtle watermark */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above watermark */
.contact-section > * {
  position: relative;
  z-index: 1;
}

.contact-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  border-top: 4px solid var(--city-primary);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-item i {
  width: 30px;
  color: var(--city-primary);
  font-size: 18px;
}

.contact-item a {
  text-decoration: none;
  color: var(--city-primary);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

footer {
  background: var(--city-dark);
  color: #fff;
  padding: 30px 0;
  margin-top: 60px;
}

.fade-in-section:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in-section:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in-section:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in-section:nth-child(4) {
  transition-delay: 0.4s;
}
.fade-in-section:nth-child(5) {
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
