:root {
--primary-color: #0d6efd;
--primary-dark: #0b5ed7;
--secondary-color: #f8f9fa;
--accent-color: #20c997;
--dark-color: #081736;
--danger-color: #dc3545;
--warning-color: #ffc107;
--light-color: #f4f7fb;
--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
--border-radius: 16px;
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "Poppins", sans-serif;
background-color: var(--light-color);
color: #333;
line-height: 1.6;
overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 700;
line-height: 1.3;
}

.text-primary {
color: var(--primary-color) !important;
}
.bg-primary {
background-color: var(--primary-color) !important;
}

/* ===== NAVBAR ===== */
.navbar {
backdrop-filter: blur(12px);
background-color: rgba(8, 23, 54, 0.95) !important;
padding: 1rem 0;
transition: var(--transition);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
padding: 0.7rem 0;
}

.navbar-brand {
font-weight: 700;
font-size: 1.5rem;
display: flex;
align-items: center;
}

.navbar-brand i {
margin-right: 10px;
font-size: 1.8rem;
color: var(--accent-color);
}

.nav-link {
font-weight: 500;
margin: 0 0.5rem;
position: relative;
padding: 0.5rem 0 !important;
}

.nav-link::after {
content: "";
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--accent-color);
transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
width: 100%;
}

.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
padding: 0.75rem 1.75rem;
border-radius: 50px;
font-weight: 600;
transition: var(--transition);
}

.btn-primary:hover {
background-color: var(--primary-dark);
border-color: var(--primary-dark);
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
border-radius: 50px;
padding: 0.75rem 1.75rem;
font-weight: 600;
transition: var(--transition);
}

.btn-outline-light:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
min-height: 100vh;
background: linear-gradient(
    135deg,
    rgba(8, 23, 54, 0.9),
    rgba(13, 110, 253, 0.8)
    ),
    url("img/bandang.jpg") center/cover no-repeat;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
color: white;
padding-top: 80px;
}

.hero-section::before {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
background: linear-gradient(to top, var(--light-color), transparent);
z-index: 1;
}

.hero-content {
position: relative;
z-index: 2;
}

.hero-title {
font-size: 3.5rem;
font-weight: 800;
line-height: 1.2;
margin-bottom: 1.5rem;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
font-size: 1.25rem;
font-weight: 400;
margin-bottom: 2rem;
max-width: 700px;
opacity: 0.9;
}

.hero-badges {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 2rem;
}

.hero-badge {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border-radius: 50px;
padding: 0.6rem 1.2rem;
font-size: 0.9rem;
display: inline-flex;
align-items: center;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
margin-right: 8px;
font-size: 1rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
padding: 5rem 0;
position: relative;
z-index: 2;
}

.stat-card {
background: white;
border-radius: var(--border-radius);
padding: 2.5rem 2rem;
text-align: center;
box-shadow: var(--shadow);
transition: var(--transition);
height: 100%;
border: none;
position: relative;
overflow: hidden;
}

.stat-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--accent-color)
);
}

.stat-icon {
width: 70px;
height: 70px;
border-radius: 50%;
background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
color: white;
font-size: 1.8rem;
}

.stat-number {
font-size: 2.8rem;
font-weight: 800;
color: var(--dark-color);
line-height: 1;
margin-bottom: 0.5rem;
}

.stat-label {
font-size: 1rem;
color: #6c757d;
font-weight: 500;
}

 /* Video & Berita Section */
  .video-news-section {
    padding: 6rem 0;
    background-color: var(--light-color);
  }

  /* Video Container */
  .video-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
  }

  .video-info h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  /* News Card Styles */
  .news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
  }

  .news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
  }

  .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .news-card:hover .news-image img {
    transform: scale(1.05);
  }

  .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
  }

  .news-title {
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .news-title a {
    color: var(--dark-color);
    transition: var(--transition);
  }

  .news-title a:hover {
    color: var(--primary-color);
  }

  .news-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }

  .read-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
  }

  .read-more:hover {
    color: var(--primary-dark);
  }

  .read-more i {
    transition: transform 0.3s ease;
  }

  .read-more:hover i {
    transform: translateX(5px);
  }

  /* Responsive Adjustments */
  @media (max-width: 991.98px) {
    .video-container {
      padding: 1.5rem;
    }
    
    .news-image {
      height: 200px;
    }
  }

  @media (max-width: 767.98px) {
    .video-news-section {
      padding: 4rem 0;
    }
    
    .video-info h5 {
      font-size: 1.1rem;
    }
    
    .news-image {
      height: 180px;
    }
  }

  @media (max-width: 575.98px) {
    .video-container {
      padding: 1rem;
    }
    
    .news-image {
      height: 160px;
    }
    
    .news-content {
      padding: 1.2rem;
    }
    
    .news-title {
      font-size: 1rem;
    }
    
    .news-excerpt {
      -webkit-line-clamp: 2;
    }
  }

/* ===== SECTION COMMON STYLES ===== */
.section-title {
text-align: center;
margin-bottom: 4rem;
}

.section-title h2 {
font-size: 2.5rem;
color: var(--dark-color);
margin-bottom: 1rem;
position: relative;
display: inline-block;
}

.section-title h2::after {
content: "";
position: absolute;
width: 80px;
height: 4px;
background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--accent-color)
);
bottom: -10px;
left: 50%;
transform: translateX(-50%);
border-radius: 2px;
}

.section-title p {
color: #6c757d;
max-width: 700px;
margin: 1.5rem auto 0;
font-size: 1.1rem;
}

section {
padding: 6rem 0;
}

/* ===== ABOUT SECTION ===== */
.about-content {
padding-right: 3rem;
}

.about-content h3 {
font-size: 2.2rem;
margin-bottom: 1.5rem;
color: var(--dark-color);
}

.feature-list {
list-style: none;
padding: 0;
margin: 2rem 0;
}

.feature-list li {
margin-bottom: 1rem;
display: flex;
align-items: flex-start;
}

.feature-list i {
color: var(--accent-color);
font-size: 1.2rem;
margin-right: 12px;
margin-top: 4px;
flex-shrink: 0;
}

.about-image {
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transform: perspective(1000px) rotateY(-5deg);
transition: var(--transition);
}

.about-image:hover {
transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
width: 100%;
height: auto;
display: block;
}

/* ===== FEATURES SECTION ===== */
.features-section {
background-color: var(--secondary-color);
}

.feature-card {
background: white;
border-radius: var(--border-radius);
padding: 2.5rem 2rem;
height: 100%;
box-shadow: var(--shadow);
transition: var(--transition);
border: none;
position: relative;
overflow: hidden;
}

.feature-card:hover {
transform: translateY(-15px);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--accent-color)
);
}

.feature-icon {
width: 70px;
height: 70px;
border-radius: var(--border-radius);
background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(32, 201, 151, 0.1)
);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.8rem;
color: var(--primary-color);
font-size: 1.8rem;
}

.feature-card h4 {
font-size: 1.4rem;
margin-bottom: 1rem;
color: var(--dark-color);
}

.feature-card p {
color: #6c757d;
margin-bottom: 1.5rem;
}

/* ===== TIMELINE SECTION ===== */
.timeline-step {
text-align: center;
padding: 2rem 1.5rem;
position: relative;
}

.timeline-step::before {
content: "";
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #e9ecef, #e9ecef);
z-index: 1;
}

.timeline-step:first-child::before {
left: 50%;
}

.timeline-step:last-child::before {
right: 50%;
}

.step-icon {
width: 80px;
height: 80px;
border-radius: 50%;
background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
color: white;
font-size: 2rem;
position: relative;
z-index: 2;
box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.timeline-step h5 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
color: var(--dark-color);
}

.timeline-step p {
color: #6c757d;
font-size: 0.95rem;
}

/* ===== MAP SECTION ===== */
.map-section {
background-color: var(--secondary-color);
}

.map-container {
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
height: 500px;
position: relative;
}

#disasterMap {
height: 100%;
width: 100%;
z-index: 1;
}

.map-overlay {
position: absolute;
top: 20px;
right: 20px;
width: 300px;
max-width: 90%;
z-index: 2;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: var(--border-radius);
padding: 1.5rem;
box-shadow: var(--shadow);
}

.map-overlay h6 {
color: var(--dark-color);
margin-bottom: 1rem;
font-weight: 600;
}

.map-legend {
margin-top: 1rem;
}

.legend-item {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}

.legend-color {
width: 15px;
height: 15px;
border-radius: 50%;
margin-right: 10px;
}

.legend-flood {
background-color: var(--primary-color);
}
.legend-volunteer {
background-color: var(--accent-color);
}
.legend-aid {
background-color: var(--warning-color);
}

/* ===== REPORT SECTION ===== */
.report-section {
background: linear-gradient(135deg, var(--dark-color), #0c1a3a);
color: white;
}

.report-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(12px);
border-radius: var(--border-radius);
padding: 3rem;
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.report-card h3 {
font-size: 2.2rem;
margin-bottom: 1.5rem;
}

.report-card p {
opacity: 0.9;
margin-bottom: 2rem;
}

.report-options {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 2rem;
}

.report-option {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.1);
padding: 1rem 1.5rem;
border-radius: 12px;
transition: var(--transition);
cursor: pointer;
flex: 1;
min-width: 200px;
}

.report-option:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-5px);
}

.report-option i {
font-size: 1.8rem;
margin-right: 15px;
color: var(--accent-color);
}

/* ===== FOOTER ===== */
footer {
background-color: var(--dark-color);
color: #adb5bd;
padding: 4rem 0 2rem;
}

.footer-brand {
font-size: 1.8rem;
font-weight: 700;
color: white;
margin-bottom: 1.5rem;
display: inline-block;
}

.footer-links h6 {
color: white;
font-size: 1.1rem;
margin-bottom: 1.5rem;
font-weight: 600;
}

.footer-links ul {
list-style: none;
padding: 0;
}

.footer-links li {
margin-bottom: 0.8rem;
}

.footer-links a {
color: #adb5bd;
text-decoration: none;
transition: var(--transition);
}

.footer-links a:hover {
color: white;
padding-left: 5px;
}

.social-links {
display: flex;
gap: 15px;
margin-top: 1.5rem;
}

.social-link {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: white;
text-decoration: none;
transition: var(--transition);
}

.social-link:hover {
background: var(--primary-color);
transform: translateY(-5px);
}

.copyright {
text-align: center;
padding-top: 2rem;
margin-top: 3rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
color: #6c757d;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
.hero-title {
    font-size: 3rem;
}

.about-content {
    padding-right: 2rem;
}
}

@media (max-width: 991.98px) {
.hero-title {
    font-size: 2.5rem;
}

.about-content {
    padding-right: 0;
    margin-bottom: 3rem;
}

.about-image {
    transform: none;
}

.about-image:hover {
    transform: none;
}

.map-overlay {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-top: 20px;
}
}

@media (max-width: 767.98px) {
.hero-title {
    font-size: 2.2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
}

.section-title h2 {
    font-size: 2rem;
}

.stat-number {
    font-size: 2.2rem;
}

.report-card {
    padding: 2rem;
}

.report-card h3 {
    font-size: 1.8rem;
}

.timeline-step::before {
    display: none;
}
}

@media (max-width: 575.98px) {
.hero-title {
    font-size: 1.8rem;
}

.hero-badges {
    justify-content: center;
}

.btn-primary,
.btn-outline-light {
    width: 100%;
    margin-bottom: 10px;
}

.stat-card,
.feature-card {
    padding: 2rem 1.5rem;
}

.footer-links {
    margin-bottom: 2rem;
}
}

/* Animation for stats counter */
.counter {
display: inline-block;
}