/* Base Setup */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Canvas Background */
#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Social Icons Hover */
a.text-white:hover i {
  color: #00bfff;
  transform: scale(1.1);
  transition: 0.3s ease;
}


#floatingDataContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Floating Text Animations */
.floating-data {
  position: absolute;
  font-size: 0.5rem;
  color: #00bfff;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: floatUp 4s forwards ease-out;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -150%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -250%) scale(1.4);
  }
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 100px;
  margin-top: -40px;
  background: linear-gradient(to bottom, #033546, #0a0a0a, #000);
}

/* Content Container Layer */
.content-overlay {
  position: relative;
  z-index: 2;
}

/* Hero Section */
.hero-scroll-area {
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.section {
  width: 100%;
  position: relative;
}

/* Avatar Image */
.avatar-img {
  width: 120%;
  max-width: 600px;
  height: auto;
  transition: transform 0.3s ease;
}

.avatar-img:hover {
  transform: scale(1.05);
}

/* Navbar */
.nav-link {
  color: #ccc;
  margin-left: 20px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #00bfff;
}

.navbar-brand {
  font-size: 1.5rem;
}

/* Typography Enhancements */
.text-light-emphasis {
  color: rgba(255, 255, 255, 0.7);
}

.subtitle {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Buttons */
.btn-outline-info:hover {
  background-color: #00bfff;
  color: white;
}

#data-stories {
  margin-top: -95px;
}

/* Back to Top Button */
#backToTopBtn {
  background-color: #00bfff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  transition: background-color 0.3s;
  z-index: 100;
}

#backToTopBtn:hover {
  background-color: #0099cc;
}

/* Remove Scroll Arrow */
.scroll-down-arrow {
  display: none;
}

/* ------------------------------
   Data Stories (WrapKit Inspired)
---------------------------------- */
.blog-home3 {
  font-family: "Montserrat", sans-serif;
  color: #8d97ad;
  font-weight: 300;
}

.blog-home3 h1,
.blog-home3 h2,
.blog-home3 h3,
.blog-home3 h4,
.blog-home3 h5,
.blog-home3 h6 {
  color: #ffffff;
}

.blog-home3 h5,
.blog-home3 h6 {
  line-height: 22px;
  font-size: 18px;
}

.blog-home3 a.link {
  color: #ffffff;
}

.blog-home3 a.link:hover {
  color: #00bfff;
}

.blog-home3 .font-weight-medium {
  font-weight: 500;
}

.blog-home3 .subtitle {
  color: #aaaaaa;
  line-height: 24px;
}

.blog-home3 .card.border-0 {
  background-color: black;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in;
}

.blog-home3 .card.border-0:hover {
  transform: translateY(-5px);
}

.blog-home3 .bg-success-gradiant {
  background: linear-gradient(to right, #2cdd9b 0%, #1dc8cc 100%);
}

.blog-home3 .date-pos {
  font-size: 15px;
}

#tagline {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Equal-height small blog cards only */
.blog-home3 .data-story-mini {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: black;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in;
}

.blog-home3 .data-story-mini:hover {
  transform: translateY(-5px);
}

.blog-home3 .data-story-mini .card-img-top {
  height: 180px;
  object-fit: cover;
}

.blog-home3 .data-story-mini .p-3 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------------------
   Responsive Tweaks
---------------------- */
@media (max-width: 575px) {
  #hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  #hero p.lead {
    font-size: 1.1rem;
  }
  .hero-scroll-area {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .avatar-img {
    max-width: 180px;
  }
  .section-divider {
    margin-top: -25px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  #hero h1 {
    font-size: 2.8rem;
  }
  #hero p.lead {
    font-size: 1.3rem;
  }
  .avatar-img {
    max-width: 220px;
  }
}
