/* Reset and setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    color: #fff;
  }
  
  #background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -2;
  }
  
  #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
  }
  
  .overlay {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
  }
  
  h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    animation: fadeIn 2s ease forwards;
  }
  
  #countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap; /* prevent wrapping */
    flex-flow: row nowrap;
    flex-shrink: 1;
  }
  
  .time-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    flex: 1 1 80px; /* grow and shrink as needed, minimum width 80px */
    max-width: 120px; /* optional max width */
    animation: popIn 1s ease forwards;
  }
  
  .time-box span {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
  }
  
  .time-box small {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 5px;
  }
  
  /* Adjust font size for very small screens */
  @media (max-width: 480px) {
    .time-box span {
      font-size: 2rem;
    }
    
    .time-box small {
      font-size: 0.8rem;
    }
  }
  
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    h1 {
      font-size: 2rem;
    }
  
  }
  
  @media (max-width: 480px) {
    .timebox {
      display: none !important;
    }
  }
  

  
  a {
    color: #ffd27d;
  }

  .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
  }
  
  .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh; /* 16:9 aspect ratio width relative to viewport height */
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none; /* prevent clicks */
  }
  
  /* Optional overlay for readability */
  .video-background::after {
    content: '';
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4); /* adjust darkness */
    z-index:1;
  }
  