body {
  background-color: #ffffff;
  font-family: 'Times New Roman', serif;
  color: #0a1a3f;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
}

/* Logo styles */
.logo {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  display: block;
  margin: 0 auto;
}

.logo:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.8);
}

/* Header styles */
header {
  background-color: #0a1a3f;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: auto;
  width: 100vw;
  box-sizing: border-box;
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto;
  width: 150px;
  height: auto;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.math-expo-title {
  font-size: 2.5rem !important;
  margin: 0;
  line-height: 1.2;
}

.year {
  font-size: 2rem;
  color: #ffd700;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.lottie-container {
  width: 100px;
  height: 100px;
  margin: 1rem auto;
}

.countdown-container {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 1rem 1rem;
    height: auto;
  }

  .logo {
    width: 100px;
  }

  .math-expo-title {
    font-size: 2rem !important;
  }

  .year {
    font-size: 1.5rem;
  }

  .lottie-container {
    width: 80px;
    height: 80px;
    margin: 0.5rem auto;
  }

  .countdown-container {
    font-size: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
  }
}

/* Hide floating symbols on small screens to avoid clutter */
@media (max-width: 768px) {
  .floating-symbol {
    display: none !important;
  }
}

header > * {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.math-expo-title {
  white-space: nowrap;
  margin: 0;
  font-size: 2rem !important;
}

.year {
  color: #ffd700;
  font-weight: 700;
}

/* Floating symbols */
.floating-symbol {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15); /* Increased transparency for less distraction */
  animation: float 8s infinite ease-in-out;
  user-select: none;
  pointer-events: none;
}

.floating-symbol-white {
  position: absolute;
  font-size: 2rem;
  color: rgba(10, 26, 63, 0.15); /* Increased transparency for less distraction */
  animation: float 8s infinite ease-in-out;
  user-select: none;
  pointer-events: none;
}

/* Center content */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
}

/* Math Expo title */
.math-expo-title {
  font-size: 2rem !important;
  margin: 0.5rem 0;
}

/* Year span */
.year {
  color: #ffd700;
}

/* Lottie container */
.lottie-container {
  margin: 0;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-container {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 150px;
}

/* Countdown container */
.countdown-container {
  font-size: 1.2rem;
}

/* Keyframes for floating animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* Logo animation */
.logo {
  animation: logo-anim 2s infinite ease-in-out;
}

@keyframes logo-anim {
  0% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-15px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .main-wrapper {
    max-width: 90%;
    padding: 0 1rem 1.5rem;
  }
  .content {
    max-width: 100%;
    padding: 1.5rem 1rem;
    font-size: 1.25rem; /* Increase font size for better readability */
  }
  .register-container {
    max-width: 300px;
    margin: 1.5rem auto 3rem auto;
  }
  .register-button {
    width: 100%;
    max-width: 300px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 2rem 1rem 2rem;
    align-items: center;
    text-align: center;
  }

  .logo {
    width: 40px;
    margin-bottom: 1rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100vh;
    width: 250px;
    background-color: #0a1a3f;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    z-index: 1001;
  }

  .menu.active {
    right: 0;
  }

  .menu li a {
    font-size: 1.4rem; /* Increased font size for better readability */
    width: 100%;
  }

  .menu-icon {
    display: block;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1002;
  }

  .floating-symbol {
    font-size: 1.5rem;
  }

  .countdown-container {
    font-size: 1rem;
  }

  .register-container {
    max-width: 280px;
    margin: 1rem auto 3rem auto;
    flex-direction: column;
    gap: 1rem;
  }

  .register-button {
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
  }
}

/* Ramanujan image styles */
.ramanujan-figure {
  margin: 2rem auto;
  max-width: 300px;
  text-align: center;
  color: #ffd700;
  font-family: 'Times New Roman', serif;
  user-select: none;
  animation: fadeIn 2s ease-in-out;
}

.ramanujan-image {
  width: 100%;
  height: auto;
  border: 3px solid #ffd700;
  border-radius: 10px;
  box-shadow: 0 0 15px #ffd700aa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ramanujan-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ffd700cc;
}

.ramanujan-figure figcaption {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-style: italic;
  color: #ffde59;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
  }

  .logo {
    width: 24px;
    margin: 0;
  }

  nav {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
  }

  .floating-symbol {
    font-size: 1.2rem;
  }

  .countdown-container {
    font-size: 0.9rem;
  }
}

/* Navigation styles */
nav {
  font-family: 'Times New Roman', serif;
  position: relative;
  top: 0;
  right: 0;
  z-index: 1000;
  background-color: #0a1a3f;
  padding: 1rem;
  margin: 0;
}

.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.menu li a {
  font-family: 'Times New Roman', serif;
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  padding: 10px 15px;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

.menu li a:hover {
  background-color: #ffd700;
  color: #0a1a3f;
}

/* Hamburger menu icon */
.menu-icon {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100vh;
    width: 250px;
    background-color: #0a1a3f;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    z-index: 1001;
  }

  .menu.active {
    right: 0;
  }

  .menu li a {
    font-size: 1.2rem;
    width: 100%;
  }

  .menu-icon {
    display: block;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1002;
  }
}

/* Register button styles */
#register {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Container for register button and Ramanujan gesture */
.register-container {
  display: flex;
  flex-direction: row; /* Ensure row direction */
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 2rem auto 4rem auto;
  max-width: 400px;
  flex-wrap: nowrap; /* Prevent wrapping */
}

/* Ramanujan gesture image next to register button */
/* Use a transparent background PNG image for best effect */
.ramanujan-gesture {
  width: 80px;
  height: auto;
  cursor: pointer;
  animation: handWave 3s ease-in-out infinite;
  user-select: none;
  transition: filter 0.3s ease;
  background-color: transparent; /* Ensure transparent background */
  margin-right: 0.25rem; /* Space to the left of button */
}

.ramanujan-gesture:hover {
  filter: drop-shadow(0 0 8px #ffd700);
}

/* Subtle hand wave animation */
@keyframes handWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .register-container {
    flex-direction: column;
    max-width: 200px;
  }

  .ramanujan-gesture {
    width: 60px;
  }
}

#register.visible {
  opacity: 1;
}

#register-button, .register-button {
  display: inline-block;
  background-color: #04132a;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  color: white;
  text-align: center;
  width: 150px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#register-button:hover, .register-button:hover {
  background-color: #003366;
  box-shadow: 0 0 25px #003366;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(10, 26, 63, 0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  font-family: 'Times New Roman', serif;
  color: #0a1a3f;
  box-shadow: 0 0 30px rgba(10, 26, 63, 0.5);
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0a1a3f;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #142e6c;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Times New Roman', serif;
}

.error-message {
  color: #ff2d55;
  font-size: 0.875rem;
  margin-top: 0.2rem;
  min-height: 1.2em;
  display: block;
}

.submit-button {
  background-color: #0a1a3f;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Times New Roman', serif;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background-color: #142e6c;
  box-shadow: 0 0 25px #142e6c;
}

.form-success-message {
  color: #0a1a3f;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.main-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  box-sizing: border-box;
  width: 100%;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex-grow: 1;
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  position: relative;
  z-index: 11;
  box-sizing: border-box;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  position: relative;
  background-color: #0a1a3f;
  box-shadow: 0 4px 15px rgba(10, 26, 63, 0.5);
  color: white;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.register-button {
  display: inline-block;
  background-color: #0a1a3f;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  color: white;
  text-align: center;
  width: 150px;
  margin: 2rem auto 4rem auto;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .math-expo-title {
    font-size: 2.5rem;
  }
  .logo {
    width: 18vw;
  }
  .register-button {
    width: 140px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .math-expo-title {
    font-size: 2rem;
  }

  .logo {
    width: 20vw;
  }

  .floating-symbol {
    font-size: 1.5rem;
  }

  .countdown-container {
    font-size: 1rem;
  }

  .register-button {
    width: 130px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .math-expo-title {
    font-size: 1.5rem;
  }

  .logo {
    width: 30vw;
    max-width: 120px;
    height: auto;
  }

  .floating-symbol {
    font-size: 1.2rem;
  }

  .countdown-container {
    font-size: 0.9rem;
  }

  .register-button {
    width: 100%;
    max-width: 200px;
    font-size: 1rem;
    padding: 12px 20px;
    box-sizing: border-box;
  }

  .content {
    padding: 1rem 0.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  #about-us p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 100%;
  }

  .main-wrapper {
    padding: 0 0.5rem 1rem;
  }

  header {
    padding: 2rem 1rem 1rem;
  }

  .center-content {
    padding: 0 1rem;
  }

  .animated-header {
    font-size: 2rem;
    white-space: normal;
    border-right: none;
    animation: none;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .menu li a {
    font-size: 1.2rem;
    padding: 10px 20px;
  }
}

/* Floating symbols background container */
#floating-symbols-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  background: transparent;
}

/* New Mathexpo header section */
.mathexpo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background-color: #0a1a3f;
  color: white;
  font-family: 'Times New Roman', serif;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  margin: 0 auto;
  text-align: center;
}

.mathexpo-header > * {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.mathexpo-title {
  font-size: 2.5rem;
  font-weight: bold;
  white-space: nowrap;
  margin: 0;
}

.mathexpo-year {
  font-size: 2rem;
  color: #ffd700;
  font-weight: 700;
  white-space: nowrap;
}

.animated-icon {
  width: 30px;
  height: 30px;
  background-color: #ffd700;
  border-radius: 50%;
  animation: bounce 1.5s infinite;
  flex-shrink: 0;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.countdown-timer {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 150px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .mathexpo-header {
    height: 100vh;
    padding: 1rem;
  }
  .mathexpo-title {
    font-size: 2rem;
  }
  .mathexpo-year {
    font-size: 1.5rem;
  }
  .animated-icon {
    width: 25px;
    height: 25px;
  }
  .countdown-timer {
    font-size: 1.2rem;
    min-width: auto;
  }
}

/* Floating symbol styles */
.floating-symbol {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
  will-change: transform, opacity;
  font-family: 'Times New Roman', serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transition: opacity 1s ease-in-out;
  mix-blend-mode: screen;
  z-index: 0;
}

/* Responsive font sizes */
@media (max-width: 768px) {
  .floating-symbol {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .floating-symbol {
    font-size: 1rem !important;
  }
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex-grow: 1;
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  position: relative;
  z-index: 11;
  box-sizing: border-box;
}

.main-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  box-sizing: border-box;
}

.centered-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 1rem;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  position: relative;
  background-color: #0a1a3f;
  box-shadow: 0 4px 15px rgba(10, 26, 63, 0.5);
  color: white;
  z-index: 10;
}

.hat-logo {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 11;
}

.math-expo-container {
  position: relative;
  text-align: center;
  margin-top: 2rem;
  padding: 2rem 1rem;
}

.math-expo-title {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff8c00, #ff2d55, #8e2de2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  letter-spacing: 0.2rem;
}

.math-expo-title .year {
  font-size: 4rem;
  color: #ffde59;
  font-weight: 700;
}

.hanging-symbols {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4rem;
  justify-content: center;
  z-index: 2;
}

.hanging-symbol {
  position: relative;
  font-size: 2.5rem;
  color: #222;
  text-align: center;
  animation: swing 4s infinite ease-in-out;
}

.hanging-symbol::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: #888;
  transform: translateX(-50%);
}

.face {
  display: block;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

@keyframes swing {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-6deg);
  }
}

@keyframes shine {
  0% {
    background-position: -500px;
  }
  100% {
    background-position: 500px;
  }
}


.animated-header {
  font-family: 'Times New Roman', serif;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: white;
  text-shadow: 0 0 10px #ffffff;
  z-index: 11;
}

.math-symbols {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: #0a1a3f;
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
  transform: rotate(15deg);
  z-index: 5;
}

.floating-symbol {
  position: fixed;
  font-size: 2rem;
  color: rgba(10, 26, 63, 0.5);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
  animation-name: floatUpDown;
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
  margin: 0 5px;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.countdown-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 11;
}

.countdown {
  background-color: #0a1a3f;
  padding: 1rem 2rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-align: center;
  box-shadow: 0 0 20px #0a1a3f;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 11;
}

.countdown.animate {
  animation: pulse 3s infinite;
  color: white;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    background-color: #0a1a3f;
    box-shadow: 0 0 20px #0a1a3f;
  }
  50% {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 0 30px #ffffff;
  }
}

.register-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 4rem auto;
  padding: 1.2rem 4rem;
  font-size: 1.6rem;
  background-color: #0a1a3f;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 30px #0a1a3f, 0 0 45px #0a1a3f, 0 0 70px #0a1a3f;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  z-index: 11;
  text-align: center;
  text-shadow: 0 0 12px #0a1a3f, 0 0 25px #0a1a3f, 0 0 40px #142e6c, 0 0 55px #142e6c;
}

.register-button:hover {
  background-color: #0a1a3f; /* Dark blue */
  box-shadow: 0 0 15px #ffffff, 0 0 30px #0a1a3f, 0 0 45px #0a1a3f;
  text-shadow: 0 0 8px #ffffff, 0 0 15px #0a1a3f;
}

.animated-header {
  font-family: 'Times New Roman', serif;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: #0a1a3f;
  text-shadow: 0 0 10px #0a1a3f, 0 0 20px #0a1a3f, 0 0 30px #142e6c, 0 0 40px #142e6c;
  z-index: 11;
  transition: text-shadow 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid #0a1a3f;
  animation: typing 3.5s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #0a1a3f; }
}

nav {
  position: relative;
  background-color: #0a1a3f;
  padding: 1rem;
}

.menu-icon {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1002;
  background-color: #0a1a3f;
  padding: 5px 10px;
  border-radius: 0 0 0 5px;
}

.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.menu li {
  margin-right: 20px;
}

.menu li a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  padding: 10px 15px;
}

.menu li a:hover {
  background-color: #ffd700;
  border-radius: 5px;
}

/* Hide menu on mobile and show the icon */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .menu-icon {
    display: block;
  }

  .menu.active {
    display: flex;
  }
}


.animated-header:hover {
  text-shadow: 0 0 20px #142e6c, 0 0 40px #142e6c, 0 0 60px #142e6c, 0 0 80px #142e6c;
}

.register-button:hover {
  background-color: #142e6c;
  box-shadow: 0 0 25px #142e6c;
}

.about, .contact {
  margin-bottom: 4rem;
  text-align: center;
}

.featured-projects {
  margin-bottom: 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: #e6ecf5;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(10, 26, 63, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  position: relative;
  z-index: 11;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(20, 46, 108, 0.7);
}

.project-card h3 {
  color: #0a1a3f;
  margin-bottom: 0.5rem;
}

.timeline {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scroll-behavior: smooth;
  position: relative;
  z-index: 11;
}

.timeline-item {
  flex: 0 0 auto;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(10, 26, 63, 0.1);
  min-width: 250px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  position: relative;
  z-index: 11;
}

.timeline-item[aria-expanded="true"] {
  background-color: #e6ecf5;
  box-shadow: 0 0 25px rgba(20, 46, 108, 0.8);
}

.timeline-item h3 {
  color: #0a1a3f;
  margin-bottom: 0.5rem;
}

.contact p {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #0a1a3f;
  font-size: 0.9rem;
  color: white;
  font-family: 'Times New Roman', serif;
  position: relative;
  z-index: 11;
}

@media (max-width: 768px) {
  header {
    padding: 2rem 1rem 1rem;
  }
  .animated-header {
    font-size: 2.5rem;
  }
}

/* Remove wheel container and wheel styles */
#topics-wheel-container {
  /* Removed touch-action and user-select to disable wheel interaction */
  user-select: auto;
  touch-action: auto;
}

#topics-wheel {
  /* Removed wheel styles */
  width: auto;
  height: auto;
  border-radius: 0;
  position: static;
  user-select: auto;
  cursor: default;
  transition: none;
}

/* New styles for floating bubbles container */
#floating-bubbles-container {
  position: relative;
  width: 450px;
  height: 450px;
  margin: 1rem auto;
  overflow: visible;
  z-index: 20;
}

/* Floating bubble styles */
.floating-bubble {
  position: absolute;
  border-radius: 50%;
  color: white;
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(10, 26, 63, 0.7);
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
  border: 2px solid white;
}

/* Hover effect for bubbles */
.floating-bubble:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(20, 46, 108, 0.9);
  z-index: 30;
}

/* Floating animation keyframes */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Apply floating animation with different durations and delays */
.floating-bubble {
  animation-name: floatUpDown;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 26, 63, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal content */
.modal-content {
  background-color: white;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 30px rgba(10, 26, 63, 0.5);
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  text-align: center;
  position: relative;
}

/* Modal close button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0a1a3f;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #142e6c;
}


.menu-icon {
  color: #ffffff; /* White color for the icon */
  font-size: 30px; /* Icon size */
  cursor: pointer; /* Pointer cursor on hover */
}

/* Content section hidden by default */
.content-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Content section visible with slide-in/fade-in */
.content-section.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Download button style for menu */
.download-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #28a745;
  color: white !important;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.download-button:hover,
.download-button:focus {
  background-color: #218838;
  outline: none;
}
