/* 🔷 Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
  line-height: 1.6;
  padding: 20px;
}

a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #00f2ff;
}

/* 🔷 Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.glow-title-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

/* নিচের সাদা লেখাটি */
.glow-title.static {
  font-size: 3rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* উপরের animate হওয়া লেখাটি */
.glow-title.animated {
  font-size: 3rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(to right, #00f2ff, #7f00ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 0% 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size 0.5s ease-in-out;
  pointer-events: none; /* যাতে হোভার নিচেরটার উপরই হয় */
}

/* হোভার করলে animated gradient শুরু হবে */
.glow-title-wrapper:hover .animated {
  background-size: 100% 100%;
}

/* underline */
.glow-title-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #00f2ff, #7f00ff);
  transition: width 0.5s ease-in-out;
}

.glow-title-wrapper:hover::after {
  width: 100%;
}


.header p {
  font-size: 1.2rem;
  color: #ccc;
}

/* 🔷 Navigation Bar */
.main-nav {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav li {
  margin: 10px 20px;
}

.main-nav a {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 6px;
}

.main-nav a:hover {
  background: #00f2ff;
  color: #000;
}

/* 🔷 Section Titles */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 30px 0;
  color: #fff;
  border-bottom: 2px solid #00f2ff;
  display: inline-block;
}

/* 🔷 Gallery Layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

.ui-card {
  background: rgba(0, 0, 0, 0.6); /* আগের চেয়ে dark */
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px); /* ঝাপসা effect */
}

.ui-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.ui-card h3 {
  margin-bottom: 10px;
  color: #fff;
}

.ui-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #00f2ff;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
}

.ui-card a:hover {
  background: #fff;
  color: #000;
}

.ui-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #00f2ff;
}

/* 🔷 Color Glow Classes */
.cyan-glow {
  box-shadow: 0 0 15px #00f2ff;
}

.pink-glow {
  box-shadow: 0 0 15px #ff3cac;
}

.violet-glow {
  box-shadow: 0 0 15px #7f00ff;
}

.yellow-glow {
  box-shadow: 0 0 15px #ffe600;
}

/* 🔷 Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #00f2ff;
  font-size: 0.9rem;
  color: #ccc;
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-blur {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 30px #00f2ff;
  cursor: grab;
  transition: transform 0.2s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
}
.ui-card video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
  height: auto;
  max-height: 200px; /* চাইলে height fix করো */
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
/* Hover Animation for UI Cards */
.ui-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  text-align: center;
  padding-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* 🔥 Glowing Hover Effect */
.ui-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3),
              0 0 45px rgba(255, 0, 255, 0.2),
              0 0 60px rgba(255, 255, 0, 0.1);
}

/* Optional: subtle glowing border animation */
.ui-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(45deg, #00ffff, #ff00cc, #ffee00, #00ffff);
  background-size: 300% 300%;
  animation: glowBorder 5s ease infinite;
  z-index: -1;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.ui-card:hover {
  animation: pulse 1s infinite;
}
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.2); /* Transparent Glass Look */
  backdrop-filter: blur(12px);
  border-radius: 50%;
  font-size: 24px;
  color: #00f0ff;
  cursor: pointer;
  opacity: 0;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;

  /* RGB Border effect */
  border: 2px solid transparent;
  background-image: 
    linear-gradient(black, black), /* Actual button color */
    linear-gradient(45deg, red, orange, yellow, lime, cyan, blue, magenta, red); /* Border */
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: rgbBorder 4s linear infinite;

  /* ✅ Deep Cyan Shadow added */
  box-shadow: 
    0 0 10px rgba(0, 255, 255, 0.4),
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 30px rgba(0, 255, 255, 0.2);
}

#topBtn:hover {
  transform: scale(1.15);

  /* Optional: stronger glow on hover */
  box-shadow: 
    0 0 14px rgba(0, 255, 255, 0.6),
    0 0 28px rgba(0, 255, 255, 0.5),
    0 0 42px rgba(0, 255, 255, 0.3);
}
/* 🔄 Loader Style */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000c1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Spinner Animation */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #00f0ff33;
  border-top: 6px solid #00f0ff;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 15px #00f0ff;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loader hide */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

