html {
  scroll-behavior: smooth;
}
/*.logo-img {*/
/*  height: 60px;*/
/*  width: auto;*/
/*}*/
body {
  background-color: #ffffff;
  color: #333;
  font-family: 'Arial', sans-serif;
  transition: background-color 0.3s ease;
}

.navbar {
  background-color: #ffffff;
  color: #0d47a1;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.7rem;
  color: #0d47a1;
}

.navbar a {
  color: #0d47a1 !important;
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
}

.navbar a:hover {
  background-color: #f1f1f1;
  color: #0d47a1;
}

.hero-section {
  background: linear-gradient(to right, #ff4081, #6200ea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50vh;
  padding: 20px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-section h1, .hero-section p {
  animation: fadeInUp 1s ease;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.5rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  margin: 10px;
  padding: 10px;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(98, 0, 234, 0.25);
}

.card-body h5 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-body p {
  margin-top: 10px;
}

.popup-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(8px); /* background blur */
background-color: rgba(0, 0, 0, 0.4); /* semi-transparent overlay */
align-items: center;
justify-content: center;
z-index: 9999;
padding: 20px;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}
.popup-modal.show {
opacity: 1;
pointer-events: auto;
}


.popup-modal .modal-content {
background: white;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
padding: 40px 30px 30px;
width: 90%;
max-width: 800px;
max-height: 90%;
overflow-y: auto;
border-radius: 20px;
font-family: 'Arial', sans-serif;
position: relative;
animation: fadeInContent 0.5s ease;
scroll-behavior: smooth;
}


.popup-modal .modal-content h2 {
  color: #ff4081;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 600;
}

.popup-modal .modal-content p {
  color: #333;
  white-space: pre-line;
  font-size: 1.15rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.popup-modal .modal-content a {
  color: #ff4081;
  text-decoration: none;
  font-weight: bold;
}

.popup-modal .modal-content a:hover {
  text-decoration: underline;
}

.close-btn {
position: sticky;
top: 0;
right: 0;
font-size: 1.4rem;
background: #ffffff;
border: none;
cursor: pointer;
float: right;
z-index: 10;
padding: 10px 14px;
margin: -35px -35px 10px auto;
border-radius: 50%;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
transition: all 0.3s ease;
color: #ff4081;
}

.close-btn:hover {
background-color: #f1f1f1;
color: #6200ea;
transform: scale(1.1) rotate(90deg);
}



footer {
  background-color: #f1f1f1;
  padding: 20px 0;
  text-align: center;
}

.footer-link {
  color: #00bcd4;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.section-title {
  color: #ff4081;
  font-weight: bold;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.2rem;
  }

  .navbar {
    padding: 10px 15px;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .card-body h5 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .card-body h5 {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-body p {
    font-size: 0.9rem;
  }
}
@keyframes zoomIn {
from {
opacity: 0;
transform: scale(0.85);
}
to {
opacity: 1;
transform: scale(1);
}
}

@keyframes zoomOut {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(0.85);
}
}

.modal-content {
animation: zoomIn 0.3s ease;
transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top-btn {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 10000;
background-color: #ff4081;
color: white;
border: none;
padding: 12px 18px;
font-size: 1rem;
border-radius: 25px;
cursor: pointer;
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
animation: pulseGlow 2s infinite;
}

#scroll-top-btn.show {
opacity: 1;
pointer-events: auto;
}

#scroll-top-btn:hover {
background-color: #e91e63;
}


@keyframes pulseGlow {
0% {
box-shadow: 0 0 0px rgba(255, 64, 129, 0.4);
}
50% {
box-shadow: 0 0 15px rgba(255, 64, 129, 0.6);
}
100% {
box-shadow: 0 0 0px rgba(255, 64, 129, 0.4);
}
}

#popup-description {
line-height: 1.8;
font-size: 1.05rem;
color: #333;
white-space: normal;
}

#popup-description h3,
#popup-description h4 {
color: #6200ea;
margin-top: 1.5rem;
font-weight: 600;
}

#popup-description h3 {
font-size: 1.6rem;
}

#popup-description h4 {
font-size: 1.3rem;
}

#popup-description p {
margin-bottom: 1rem;
}

#popup-description ul,
#popup-description ol {
margin: 1rem 0;
padding-left: 1.5rem;
}

#popup-description li {
margin-bottom: 0.5rem;
list-style: disc;
}

#popup-description a {
color: #ff4081;
font-weight: 500;
text-decoration: underline;
}

#popup-description a:hover {
color: #6200ea;
}

/* ===== GENERAL DARK MODE STYLES ===== */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  background-color: #f0f0f0;
  color: #000;
  transition: background-color 0.3s, color 0.3s;
}
body.dark-mode .navbar {
  background-color: #1f1f1f;
  color: #ffffff;
}

/* ===== CARDS ===== */
.card {
  background-color: #ffffff;
  color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s, color 0.3s;
}
body.dark-mode .card {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* ===== MODAL ===== */
.modal-content {
  background-color: #fff;
  color: #000;
}
body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #fff;
}

/* ===== HEADER, SECTION, FOOTER IN MODAL ===== */
body.dark-mode header,
body.dark-mode section,
body.dark-mode footer {
  background-color: transparent;
  color: #fff;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scroll-top-btn {
  background-color: #ccc;
  color: #000;
}
body.dark-mode #scroll-top-btn {
  background-color: #444;
  color: #fff;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 8px 14px;
  background-color: #eee;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
body.dark-mode .theme-toggle-btn {
  background-color: #333;
  color: #fff;
}

/* Apply white text to everything in dark mode */
body.dark-mode,
body.dark-mode p,
body.dark-mode h1,
/* body.dark-mode h2, */
/* body.dark-mode h3, */
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode li,
body.dark-mode span,
body.dark-mode a,
body.dark-mode label,
body.dark-mode .modal-content {
  color: white !important;
}
