body {
      background-color: #000;
      margin: 0;
      padding: 0;
      font-family: Helvetica, sans-serif;
      transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    }
    body.exiting {
      transform: translateY(-100vh);
      opacity: 0;
    }
    /* Splash container covers the viewport without affecting page layout */
    #splash {
      position: fixed;
      inset: 0;
      background-color: #000;
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    }

    #splash.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    .splash-content {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }

    #splash .logo {
      display: flex;
      flex-direction: column; 
      justify-content: center; 
      align-items: center;    
      position: relative;
      z-index: 10;
      animation: fadeInUp 0.8s ease-out forwards;
    }

    #splash .logo-image {
      width: 120px;
      height: auto;
      display: block;
      margin-bottom: 20px;
    }

    .logo-text {
        text-align: center;
    }

    #splash .tedx {
      color: #EB0028;
      font-size: 3rem;
      font-weight: 800;
      letter-spacing: -2px;
      margin: 0;
      line-height: 1;
    }

    #splash .youth {
      color: white;
      font-size: 1.5rem;
      font-weight: 300;
      letter-spacing: 1px;
      margin: 5px 0 0 0;
      opacity: 0.8;
    }

    /* Loading Bar */
    .loading-bar {
        width: 200px;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 40px;
        border-radius: 2px;
        overflow: hidden;
        position: relative;
    }

    .progress {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 50%;
        background: #EB0028;
        animation: indeterminate 1.5s infinite ease-in-out;
    }

    @keyframes indeterminate {
        0% { left: -50%; width: 50%; }
        50% { left: 25%; width: 50%; }
        100% { left: 100%; width: 50%; }
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Tracer - simplified */
    #splash .border-tracer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      opacity: 0.5;
    }
    
    #splash .tracer-path {
      fill: none;
      stroke: url(#glowGradient);
      stroke-width: 1;
      stroke-dasharray: 100 400; /* Adjusted for larger pattern */
      stroke-dashoffset: 500;
      animation: moveTracer 8s linear infinite;
    }
    
    @keyframes moveTracer {
      to { stroke-dashoffset: 0; }
    }
