:root {
  --red: #c62828;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(-45deg, #f7f7f7, #fff5f5, #f0f4f8, #fef5f5);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #0b1220;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  margin-right: 8px;
}
.logo img {
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  background: transparent;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}
main {
  padding: 28px;
}

/* Active link */
.nav-links a.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08);
}

/* Focus visible */
.nav-links a:focus,
.nav-toggle:focus {
  outline: 3px solid rgba(255, 255, 255, 0.18);
  outline-offset: 2px;
}

/* Mobile */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
  border-radius: 8px;
  transition: background-color 180ms ease, transform 180ms ease;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
/* simple 3-stick hamburger */
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 160ms ease;
}

/* hover and focus background for the button */
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle:active {
  transform: scale(0.98);
}

/* when open, transform bars into an X */
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--red);
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
    transform-origin: top;
    transition: transform 220ms ease, opacity 220ms ease;
    opacity: 0;
    transform: scaleY(0);
  }
  .nav-links.show {
    display: flex;
    opacity: 1;
    transform: scaleY(1);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .navbar {
    padding: 12px 12px;
  }
  .logo img {
    height: 40px;
  }
  /* slightly larger tappable area for mobile */
  .nav-links a {
    padding: 10px 14px;
  }
}

/* small fade animation */
.nav-links.show {
  animation: fadeIn 180ms ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Slider styles */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  margin-bottom: 0;
}
.hero-slider .slides {
  position: relative;
  height: 400px;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero-slider .slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slider .prev,
.hero-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  z-index: 8;
  transition: background 160ms ease, transform 120ms ease;
}
.hero-slider .prev:hover,
.hero-slider .next:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%);
}
.hero-slider .prev:focus,
.hero-slider .next:focus {
  outline: 3px solid rgba(255, 255, 255, 0.18);
  outline-offset: 4px;
}
.hero-slider .prev {
  left: 12px;
}
.hero-slider .next {
  right: 12px;
}
.hero-slider .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.hero-slider .dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 180ms ease, background 160ms ease,
    border-color 160ms ease;
}
.hero-slider .dots button.active {
  background: #fff;
  transform: scale(1.12);
  border-color: rgba(0, 0, 0, 0.22);
}

@media (min-width: 900px) {
  .hero-slider .slide img {
    height: 420px;
  }
}

/* JECRC Section */
.jecrc-section {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(251, 253, 255, 0.85) 100%
  );
  padding: 48px 16px;
  border-top: 1px solid #f0f4f8;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02) inset;
  position: relative;
  overflow: hidden;
}
.jecrc-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      650px 220px at 15% 0%,
      rgba(198, 40, 40, 0.06),
      transparent 60%
    ),
    radial-gradient(
      520px 200px at 85% 8%,
      rgba(33, 150, 243, 0.05),
      transparent 60%
    );
  pointer-events: none;
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.jecrc-section .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.jecrc-section h2 {
  margin: 0 0 6px;
  font-size: 34px;
  color: #b71c1c;
  font-weight: 800;
  letter-spacing: -0.4px;
  position: relative;
  text-shadow: 0 1px 2px rgba(183, 28, 28, 0.12);
}
.jecrc-section h2::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  background: var(--red);
  border-radius: 4px;
  margin: 10px auto 0;
  transition: width 520ms ease;
}
.jecrc-section h2.in-view::after {
  width: 72px;
}
.jecrc-section p {
  margin: 0;
  color: #3b475a;
  line-height: 1.6;
  max-width: 780px;
  font-size: 16px;
}
.jecrc-section .container > p {
  background: rgba(198, 40, 40, 0.06);
  border: 1px solid rgba(198, 40, 40, 0.14);
  padding: 12px 14px;
  border-radius: 12px;
  display: inline-block;
}
.jecrc-section .container > p strong {
  color: var(--red);
}

/* CTA styles */
.jecrc-cta {
  margin-top: 14px;
}
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.28);
  background: linear-gradient(180deg, #d43a3a, #c62828);
}
.btn:focus-visible {
  outline: 3px solid rgba(198, 40, 40, 0.35);
  outline-offset: 3px;
}
.btn.secondary {
  background: #fff;
  color: var(--red);
  border: 1px solid rgba(198, 40, 40, 0.12);
}
.btn.secondary:hover {
  background: #fff;
  border-color: rgba(198, 40, 40, 0.28);
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.12);
}

/* Cards grid (placeholder) */
.jecrc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.jecrc-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.04);
}
.jecrc-card img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.jecrc-card.text-only {
  padding: 16px;
}
.jecrc-card.text-only > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jecrc-card h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}
.jecrc-card p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 13px;
}

.jecrc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.08);
}

.empty-state {
  background: linear-gradient(135deg, #f8fafc 0%, #fff5f5 100%);
  border: 2px dashed rgba(198, 40, 40, 0.2);
  color: #5a6b82;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn.sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.btn.sm.secondary {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  color: var(--red);
  border: 2px solid rgba(198, 40, 40, 0.3);
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.15);
}

.btn.sm.secondary:hover {
  background: linear-gradient(135deg, var(--red) 0%, #d32f2f 100%);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.35);
}

@media (min-width: 720px) {
  /* keep heading centered; only change cards layout */
  .jecrc-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .jecrc-section h2 {
    font-size: 26px;
  }
  .jecrc-section p {
    font-size: 15px;
  }
}

/* ===================== */
/* Simple scroll animations */
/* ===================== */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
[data-animate="fade-up"] {
  transform: translateY(16px);
}
[data-animate="fade-left"] {
  transform: translateX(-18px);
}
[data-animate="fade-right"] {
  transform: translateX(18px);
}
[data-animate].in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .jecrc-section h2::after {
    width: 72px;
  }
}

@media (min-width: 1100px) {
  .jecrc-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================ */
/* Conferences Listing Sections */
/* ============================ */
.conferences-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(254, 245, 245, 0.8) 50%,
    rgba(240, 249, 255, 0.8) 100%
  );
  background-size: 200% 200%;
  animation: gradientMove 20s ease infinite;
  padding: 28px 16px 56px;
  border-top: 1px solid #eef2f6;
  position: relative;
  overflow: hidden;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.conferences-section .container {
  max-width: 1100px;
  margin: 0 auto;
}
.conf-group {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
}
.conf-group:first-child {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
.conf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin: 4px 0 12px;
}
.conf-header h3 {
  margin: 0;
  font-size: 24px;
  color: #1a202c;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px rgba(26, 32, 44, 0.08);
}
.conf-header h3.heading-live {
  color: #c62828;
  text-shadow: 0 1px 2px rgba(198, 40, 40, 0.12);
}
.conf-header h3.heading-upcoming {
  color: #1976d2;
  text-shadow: 0 1px 2px rgba(25, 118, 210, 0.12);
}
.conf-header h3.heading-archived {
  color: #616161;
  text-shadow: 0 1px 2px rgba(97, 97, 97, 0.12);
}
.conf-header .badge {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 2px solid rgba(198, 40, 40, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(198, 40, 40, 0.1),
    0 0 0 1px rgba(198, 40, 40, 0.05);
  transition: all 0.3s ease;
}

.table-wrap:hover {
  box-shadow: 0 15px 40px rgba(198, 40, 40, 0.15),
    0 0 0 1px rgba(198, 40, 40, 0.1);
  border-color: rgba(198, 40, 40, 0.3);
}
.conf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.conf-table thead th {
  text-align: left;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 18px 16px;
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 50%, #b71c1c 100%);
  background-size: 200% 200%;
  animation: headerGradient 8s ease infinite;
  border-bottom: 3px solid #b71c1c;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.conf-table thead th:last-child {
  border-right: none;
}

@keyframes headerGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.conf-table thead th:nth-child(1) {
  width: 50%;
} /* Title */
.conf-table thead th:nth-child(2) {
  width: 16.67%;
} /* Start */
.conf-table thead th:nth-child(3) {
  width: 16.67%;
} /* End */
.conf-table thead th:nth-child(4) {
  width: 16.67%;
} /* Action */
.conf-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #314155;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}
.conf-table tbody tr:nth-child(even) {
  background: #fcfdff;
}
.conf-table tbody tr:hover {
  background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.conf-table tbody tr {
  transition: all 0.2s ease;
}
.conf-table td.title {
  font-weight: 600;
  color: #0b1220;
}

/* Row accents by status */
.row-status.live td {
  box-shadow: inset 3px 0 0 rgba(198, 40, 40, 0.6);
}
.row-status.upcoming td {
  box-shadow: inset 3px 0 0 rgba(33, 150, 243, 0.6);
}
.row-status.archived td {
  box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.7);
}
.conf-header .badge {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid transparent;
}
.badge.live {
  background: rgba(198, 40, 40, 0.1);
  color: #8c1111;
  border-color: rgba(198, 40, 40, 0.22);
}
.badge.upcoming {
  background: rgba(33, 150, 243, 0.08);
  color: #0c59a0;
  border-color: rgba(33, 150, 243, 0.2);
}
.badge.archived {
  background: rgba(2, 6, 23, 0.06);
  color: #0f172a;
  border-color: rgba(2, 6, 23, 0.12);
}

.meta {
  color: #55657e;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  position: relative;
  top: -1px;
}
.status-dot.live {
  background: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18) inset;
}
.status-dot.upcoming {
  background: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18) inset;
}
.status-dot.archived {
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) inset;
}

@media (max-width: 600px) {
  .conf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.04);
}
.conf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.conf-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: #0b1220;
  letter-spacing: 0.2px;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    rgba(198, 40, 40, 0.08),
    rgba(198, 40, 40, 0.06)
  );
  border-bottom: 1px solid #e6ebf1;
}
.conf-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #314155;
  border-bottom: 1px solid #f0f3f7;
  vertical-align: middle;
}
.conf-table tbody tr:hover {
  background: #fafcfe;
}
.conf-table td.title {
  font-weight: 600;
  color: #0b1220;
}

/* Row accents by status */
.row-status.live td {
  box-shadow: inset 3px 0 0 rgba(198, 40, 40, 0.6);
}
.row-status.upcoming td {
  box-shadow: inset 3px 0 0 rgba(33, 150, 243, 0.6);
}
.row-status.archived td {
  box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.7);
}

/* ============================ */
/* Animated Floating Shapes */
/* ============================ */
.jecrc-section::after,
.conferences-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.jecrc-section::after {
  background: radial-gradient(circle, rgba(198, 40, 40, 0.3), transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: float1 12s ease-in-out infinite;
}

.conferences-section::before {
  background: radial-gradient(circle, rgba(33, 150, 243, 0.3), transparent 70%);
  top: 80px;
  left: -80px;
  animation: float2 14s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-30px, -40px) scale(1.1);
  }
  50% {
    transform: translate(20px, -60px) scale(0.9);
  }
  75% {
    transform: translate(-20px, -30px) scale(1.05);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, 30px) scale(1.15);
  }
  66% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

/* Ensure content stays above animated backgrounds */
.jecrc-section .container,
.conferences-section .container {
  position: relative;
  z-index: 1;
}

/* Shimmer effect for table headers */
.conf-table thead th {
  position: relative;
  overflow: hidden;
}

.conf-table thead th::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================ */
/* Floating Bubbles Animation */
/* ============================ */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  opacity: 0.4;
  border: 1px solid rgba(198, 40, 40, 0.15);
  background-size: 200% 200%;
}

.bubble:nth-child(1) {
  width: 60px;
  height: 60px;
  left: 10%;
  animation: rise 12s infinite ease-in, gradientShift1 8s infinite alternate;
  animation-delay: 0s, 0s;
  background: linear-gradient(
    45deg,
    rgba(255, 82, 82, 0.25),
    rgba(244, 67, 54, 0.15),
    rgba(198, 40, 40, 0.2),
    rgba(229, 57, 53, 0.15)
  );
  background-size: 300% 300%;
  box-shadow: 0 0 20px rgba(198, 40, 40, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(2) {
  width: 80px;
  height: 80px;
  left: 20%;
  animation: rise 15s infinite ease-in, gradientShift2 9s infinite alternate;
  animation-delay: 2s, 1s;
  background: linear-gradient(
    135deg,
    rgba(100, 181, 246, 0.25),
    rgba(66, 165, 245, 0.15),
    rgba(33, 150, 243, 0.2),
    rgba(79, 195, 247, 0.15)
  );
  background-size: 300% 300%;
  border: 1px solid rgba(33, 150, 243, 0.15);
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(3) {
  width: 50px;
  height: 50px;
  left: 35%;
  animation: rise 10s infinite ease-in, gradientShift1 7s infinite alternate;
  animation-delay: 4s, 2s;
  background: linear-gradient(
    90deg,
    rgba(255, 105, 135, 0.25),
    rgba(255, 82, 82, 0.15),
    rgba(244, 67, 54, 0.2),
    rgba(239, 83, 80, 0.15)
  );
  background-size: 300% 300%;
  box-shadow: 0 0 18px rgba(244, 67, 54, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(4) {
  width: 70px;
  height: 70px;
  left: 50%;
  animation: rise 13s infinite ease-in, gradientShift2 10s infinite alternate;
  animation-delay: 0s, 0.5s;
  background: linear-gradient(
    -45deg,
    rgba(66, 165, 245, 0.25),
    rgba(41, 182, 246, 0.15),
    rgba(25, 118, 210, 0.2),
    rgba(100, 181, 246, 0.15)
  );
  background-size: 300% 300%;
  border: 1px solid rgba(25, 118, 210, 0.15);
  box-shadow: 0 0 20px rgba(25, 118, 210, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(5) {
  width: 65px;
  height: 65px;
  left: 65%;
  animation: rise 14s infinite ease-in, gradientShift1 8.5s infinite alternate;
  animation-delay: 3s, 1.5s;
  background: linear-gradient(
    180deg,
    rgba(255, 82, 82, 0.25),
    rgba(229, 57, 53, 0.15),
    rgba(211, 47, 47, 0.2),
    rgba(244, 67, 54, 0.15)
  );
  background-size: 300% 300%;
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(6) {
  width: 75px;
  height: 75px;
  left: 75%;
  animation: rise 11s infinite ease-in, gradientShift2 7.5s infinite alternate;
  animation-delay: 5s, 2.5s;
  background: linear-gradient(
    225deg,
    rgba(144, 202, 249, 0.25),
    rgba(100, 181, 246, 0.15),
    rgba(66, 165, 245, 0.2),
    rgba(129, 212, 250, 0.15)
  );
  background-size: 300% 300%;
  border: 1px solid rgba(66, 165, 245, 0.15);
  box-shadow: 0 0 20px rgba(66, 165, 245, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(7) {
  width: 55px;
  height: 55px;
  left: 85%;
  animation: rise 16s infinite ease-in, gradientShift1 9.5s infinite alternate;
  animation-delay: 1s, 0.5s;
  background: linear-gradient(
    60deg,
    rgba(255, 112, 112, 0.25),
    rgba(255, 82, 82, 0.15),
    rgba(229, 57, 53, 0.2),
    rgba(211, 47, 47, 0.15)
  );
  background-size: 300% 300%;
  box-shadow: 0 0 18px rgba(229, 57, 53, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(8) {
  width: 58px;
  height: 58px;
  left: 15%;
  animation: rise 12s infinite ease-in, gradientShift2 8s infinite alternate;
  animation-delay: 6s, 3s;
  background: linear-gradient(
    315deg,
    rgba(79, 195, 247, 0.25),
    rgba(66, 165, 245, 0.15),
    rgba(3, 169, 244, 0.2),
    rgba(41, 182, 246, 0.15)
  );
  background-size: 300% 300%;
  border: 1px solid rgba(3, 169, 244, 0.15);
  box-shadow: 0 0 20px rgba(3, 169, 244, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(9) {
  width: 68px;
  height: 68px;
  left: 45%;
  animation: rise 14s infinite ease-in, gradientShift1 7s infinite alternate;
  animation-delay: 2s, 1s;
  background: linear-gradient(
    120deg,
    rgba(255, 138, 128, 0.25),
    rgba(255, 112, 112, 0.15),
    rgba(239, 83, 80, 0.2),
    rgba(244, 67, 54, 0.15)
  );
  background-size: 300% 300%;
  box-shadow: 0 0 20px rgba(239, 83, 80, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(10) {
  width: 72px;
  height: 72px;
  left: 90%;
  animation: rise 13s infinite ease-in, gradientShift2 9s infinite alternate;
  animation-delay: 4s, 2s;
  background: linear-gradient(
    270deg,
    rgba(129, 212, 250, 0.25),
    rgba(79, 195, 247, 0.15),
    rgba(41, 182, 246, 0.2),
    rgba(100, 181, 246, 0.15)
  );
  background-size: 300% 300%;
  border: 1px solid rgba(41, 182, 246, 0.15);
  box-shadow: 0 0 20px rgba(41, 182, 246, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
}

@keyframes rise {
  0% {
    bottom: -100px;
    transform: translateX(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  50% {
    transform: translateX(50px) scale(1.1);
    opacity: 0.35;
  }
  70% {
    transform: translateX(-30px) scale(0.95);
  }
  90% {
    opacity: 0.25;
  }
  100% {
    bottom: 110vh;
    transform: translateX(20px) scale(0.7);
    opacity: 0;
  }
}

/* Gradient shift animations for bubbles */
@keyframes gradientShift1 {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientShift2 {
  0% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% 0%;
  }
}

/* Ensure navbar stays above bubbles */
.navbar {
  position: sticky;
  z-index: 1000;
}

main {
  position: relative;
  z-index: 1;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    opacity: 0.3;
  }
}

/* ============================ */
/* Load More Functionality */
/* ============================ */
.conf-table tbody tr.hidden {
  display: none;
}

.conf-table tbody tr.fade-in {
  animation: rowFadeIn 0.5s ease forwards;
}

@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.load-more-container {
  text-align: center;
  margin-top: 20px;
  padding: 10px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #616161 0%, #424242 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.load-more-count {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

.show-less-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #616161 0%, #424242 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-left: 12px;
}

.show-less-btn:hover {
  background: linear-gradient(135deg, #424242 0%, #212121 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.show-less-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .load-more-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .show-less-btn {
    margin-left: 0;
  }
}

/* ============================ */
/* Footer */
/* ============================ */
.footer {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  color: #fff;
  padding: 30px 20px;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.95;
}

.footer-text br {
  margin: 4px 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 25px 15px;
    margin-top: 40px;
  }

  .footer-text {
    font-size: 13px;
  }
}

/* ============================ */
/* Go to Top Button */
/* ============================ */
.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-to-top svg {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.go-to-top:hover {
  color: #b71c1c;
  transform: translateY(-5px);
}

.go-to-top:hover svg {
  transform: scale(1.1);
}

.go-to-top:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .go-to-top svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================ */
/* Custom Cursor */
/* ============================ */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.05s ease;
  box-shadow: 0 0 8px rgba(198, 40, 40, 0.4);
}

.custom-cursor.click {
  transform: translate(-50%, -50%) scale(0.7);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}
