
path {
    fill: none;
    stroke: white; /* White stroke for dark background */
    stroke-width: 3.5;
    stroke-dasharray: 1000; /* Ensure long strokes */
    stroke-dashoffset: 1000; /* Start hidden */
}
#content {
    display: none; /* Hidden until animation is done */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    padding: 100px 100px;
    min-height: 100vh;
}

body {
    padding-top: 5rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #140E0C;
    scroll-behavior: smooth;
    
    background-size: cover; /* Ensures it covers the whole screen */
    background-position: center; /* Centers the background */
    background-repeat: no-repeat; /* Prevents repeating */
    background-attachment: fixed; /* Keeps the background in place */
}

header {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 999;
}
#CYA-logo{
    max-width: 70%;
    height: auto;
}
#CYA-logo:hover{
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}
#CYA-logo-phone{
    display: none;
}
#CYA-logo-W{
    width: 60px;  /* Adjust to your preferred size */
    height: auto; /* Maintains aspect ratio */
    position: absolute; 
    left: 1px;  /* Keeps it fully to the left */
    top: 50%; 
    transform: translateY(-50%); /* Centers vertically */
}
#CYA-logo-X{
    width: 60px;  /* Adjust to your preferred size */
    height: auto; /* Maintains aspect ratio */
    position: absolute; 
    left: -10px;  /* Keeps it fully to the left */
    top: 70%; 
    transform: translateY(-40%); /* Centers vertically */
}

#h3-color{
    color: #7240D7;
}

header h1 {
    font-weight: 600;
    font-size: 24px;
}

h2 {
    color: #7240D7;
    font-size: 2rem;
}

h2, h3, p{
    transition: color 0.2s ease-in-out, transform 0.3s ease-in-out;
}

h2:hover, h3:hover, p:hover{
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}
 h3:hover, p:hover {
    transition: color 0.3 ease-in-out;
 
}

#contact p:hover {
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    color: #FF751F;
    transform: scale(1.1); 
}

section {
    padding: 200px 100px;
    min-height: 100vh;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    z-index: 1000;
    background-color: #140E0c;
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
    margin: 15px;
}

.sidebar a {
    width: 100%;
}

.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-paragraph {
    opacity: 0;
    transition: opacity 2s ease-in-out; 
}

.fade-in-paragraph.visible {
    opacity: 1;
}

.logo-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    margin-top: 30px ;
    margin-left: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.5s ease;
    position: relative;
    text-shadow: 0.05em 0 0 rgb(255, 251, 0),
    -0.025em -0.05em 0 grey,
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.flag-body {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    text-align: center;
    padding-bottom: 20rem;
    flex-wrap: wrap;
    animation: fade-in 3s;
}

.flag-body h1 {
    font-size: 4rem;
}

.hacked-glitch {
    transition: color 0.3s ease, transform 0.5s ease;
    position: relative;
    text-shadow: 0.05em 0 0 rgb(255, 251, 0),
    -0.025em -0.05em 0 grey,
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.logo span {
    top: 0;
    left: 0;
}

.logo span:first-child {
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.logo span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

.logo:hover {
    transform: scale(1.1);
}

.social-icons a {
    color: white;
    display: inline-flex;
    justify-content: center;
    padding: 0.5rem;
    margin: 0.3rem;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid white;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: 0.3s ease;
    text-decoration: none; 
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: white;
    box-shadow: 0 0 25px white;
}

.menu-button{
    display: none;
}
#welcome{
    margin-bottom: 1.5rem;
}
#welcome-img{
    width: 50%;
    position: relative;
    top: 1em;
}
#flags-hacked{
    color: #7240D7;
}

#flags-hacked2 {
 color: #FF751F;
}


.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.home-content h1 {
    font-size: 3rem;
    transition: transform 0.5s ease;
}

.home-content h1:hover {
    transform: scale(1.1);
}

.home-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.text-content {
    width: 50%;
    padding-right: 30px; 
    text-align: center;
}

.home-img img {
    position: relative;
    width: 62vh;
}

.border {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #140E0C;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #FF751F;
    font-weight: 600;
    border: 2px solid #53A7FF;
    transition: 0.3s ease;
    cursor: pointer;
}

.border:hover{
    color: #140E0C !important;
    transform: scale(1.03);
    border: #53A7FF !important;
    background-color: #53A7FF;
    box-shadow: 0 0 25px #53A7FF;
}

.border a:hover{
    color: #000;
}

.register-border {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #53A7FF;
    border-radius: 4rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #53A7FF;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 25px #53A7FF;
    color: #140E0C;
    transform: scale(1.03);
}

.register-border a{
    color: #140E0C;
}

.register-border-org {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #FF751F;
    border-radius: 4rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #FF751F;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 25px #FF751F;
    color: #1c1c1c;
    transform: scale(1.03);
}

.register-border-org a{
    color: #140E0C;
}

.register-border-purp {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #7240D7;
    border-radius: 4rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #7240D7;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 25px #7240D7;
    color: #1c1c1c;
    transform: scale(1.03);
}

.register-border-purp a{
    color: #140E0C;
}

#about a {
    text-decoration: none;
    color: white;
    transition: color 0.2s ease-in-out;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
}

.typing-text span::before {
    content: "Hunt";
    color: #53A7FF;
    animation: words 20s infinite;
}

.typing-text span::after {
    content: "";
    background-color: #140E0C;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid #140E0C;
    right: -8;
    animation: cursor 0.6s infinite;
}

/* Timeline container */
.timeline {
    width: 1000px;
    margin: 100px auto;
    position: relative;
}

/* Timeline vertical line (New element instead of ::after) */
.timeline-line {
    position: absolute;
    right: 50%;
    top: 18rem;
    height: 0; /* Start hidden */
    width: 5px;
    background: linear-gradient(#FF751F, #7240D7, #53A7FF);
    border-radius: 3rem;
    z-index: -10;
    transition: height 5s linear;
}

.carousel {
    margin: 100px auto;
    width: 100%;
    display: flex;
    overflow-x: auto;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 15s infinite linear;
    padding-right: 1em;
}

.kard {
    flex: 0 0 13em;
    height: 7em;
    background: none;
    padding: 1em;
    font-size: 1rem;
    border-radius: .2rem;
    text-align: center;
    align-content: center;
}

.kard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
    display: block;
}

.partners-content{
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;

}

.slider {
    position: relative;
    width: 100%;
    height: 370px;
    overflow: hidden;
}

.item{
    position: absolute;
    width: 200px;
    height: 320px;
    text-align: justify;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: 0.5s;
    left: calc(50% - 110px);
    top: 0;
}

#next, #prev {
    position: absolute;
    top: 40%;
    background-color: transparent;
    border: none;
    font-size: xxx-large;
    font-family: monospace;
    font-weight: bold;
    left: 30px;
}

#next {
    left: unset;
    right: 50px;
}

#next span, #prev span {
  background: linear-gradient(#FF751F, #7240D7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kard-kolor{
    font-size: 1.5rem;
    color: #140E0C;
}

.kard-parag {
    color: #140E0c; 
    font-size: 0.8rem;
    text-align: left;
}

.partner-logo {
    width: 150px;
    margin-top: -1;
}

@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}

@keyframes LineAnimated {
    0%{
        height: 0;
    }
    100% {
        height: 78%;
    }
}

a {
    text-decoration: none;
    color:#FF751F;
    font-weight: bold;
}

.timeline-container{
    align-items: center;
    width: 50%;
    position: relative;
    padding: 10px 20px;
    animation: Animate-Container 1s linear forwards;
    opacity: 0;
    animation-delay: var(--dly);
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

@keyframes Animate-Container{
    0%{
        opacity: 0;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }

}

.timeline-container:nth-child(even){
    right: -50%;
}

.timeline-container:nth-child(odd)::before{
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    background: linear-gradient(#FF751F, #7240D7, #53A7FF);
    top: 0;
    right: -7px;
    border-radius: 50%;
    z-index: 10;
}

.timeline-container:nth-child(even)::before{
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    background: linear-gradient(#FF751F, #7240D7, #53A7FF);
    top: 0;
    left: -11.5px;
    border-radius: 50%;
    z-index: 10;
}

.timeline-header{
    color: white;
}

.timeline-text-content{
    padding: 20px 30px;

    border-radius: 3rem;
    display: grid;
    gap: 5px;
}

.timeline-text-content h2{
    font-size: 18px;
}

.timeline-text-content p{
    font-size: 12px;
    margin-top: 10px;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

@keyframes glitch {
    0% {
      text-shadow: 0.05rem 0 0 black,
        -0.05rem -0.025rem grey,
        -0.025rem 0.05rem blue;
    }
    14% {
      text-shadow: 0.05rem 0 0 black,
        -0.05rem -0.025rem grey,
        -0.025rem 0.05rem blue;
    }
    15% {
      text-shadow: -0.05rem -0.025rem black,
        0.025rem 0.025rem grey, -0.05rem -0.05rem blue;
    }
    49% {
      text-shadow: -0.05rem -0.025rem black,
        0.025rem 0.025rem grey, -0.05rem -0.05rem blue;
    }
    50% {
      text-shadow: 0.025rem 0.05rem black,
        0.05rem 0 grey, 0 -0.05rem blue;
    }
    99% {
      text-shadow: 0.025rem 0.05rem black,
        0.05rem 0 grey, 0 -0.05rem blue;
    }
    100% {
      text-shadow: -0.025em 0 black,
        -0.025rem -0.025rem grey, -0.025rem -0.05rem blue;
    }
}

.typing-text span {
  display: inline-block;      /* makes wrapping consistent */
  position: relative;
  white-space: nowrap;        /* keep text on one line if possible */
}

.typing-text span::after {
  content: "";
  display: inline-block;      /* caret stays inline with text */
  width: 4px;                 /* caret thickness */
  height: 1.5em;                /* same height as text line */
  margin-left: 1px;
  background: #53A7FF;        /* caret color */
  animation: blink 0.8s steps(1) infinite;
  vertical-align: bottom;     /* aligns nicely with descenders */
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}



@keyframes words {
    0%, 20%{
        content: "Discuss Cybersecurity";
    }
    21%, 40% {
        content: "Learn";
    }
    41%, 60% {
        content: "Compete";
    }
    61%, 80% {
        content: "Spread Awareness";
    }
    81%, 100% {
        content: "Network";
    }
}

@media (max-width: 900px){
    .hideInMobile{
        display: none;
    }

    .menu-button{
        display: block !important;
    }
 
    body {
        padding: 0;
        margin: 0;
    }

    header {
        padding: 20px; 
        height: 60px; 
    }

    header h1 {
        font-size: 18px; 
    }

    section {
        padding: 150px 20px; 
    }

    .home-content {
        flex-direction: column; 
        align-items: center;
        text-align: center; 
    }

    .home-content h1 {
        font-size: 1.8rem; 
    }

    .home-content h3 {
        font-size: 1rem;
    }

    .text-content {
        width: 100%; 
        padding: 0; 
    }

    .home-img img {
        width: 80vw;
        margin-top: 1rem;
    }

    .footer {
        font-size: 0.6rem;
    }

    .border {
        padding: 0.8rem 2rem; 
        font-size: 1.2rem; 
    }

    .logo {
        font-size: 2rem; 
    }

    .flag-body .logo{
        font-size: 1.3rem;
    }
}

@media (max-width: 576px){
    body {
        .animated-svg {
            position: absolute; /* Initially allows animation */
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
        }
        
        .static-svg {
            position: fixed !important; /* Locks it in place after animation */
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
        }
        
        /* Ensure SVG maintains aspect ratio */
        .animated-svg svg,
        .static-svg svg {
            width: 100vw;
            height: 100vh;
            object-fit: cover; /* Ensures it fills properly */
            max-width: 100%;
            max-height: 100%;
        }
        
    }

    #CYA-logo {
        display: none;
    }

    #CYA-logo-phone{
        display: block !important;
        margin-left: 18.5%;
        margin-bottom: 10%;
        width: 65%;
    }

    #CYA-logo-phone:hover{
        transform: scale(1.1);
        transition: 0.3s ease-in-out;
    }

    #welcome{
        color: #53A7FF;
    }

    #welcome-img{
        width: 80%;
    }
    
    .menu-button{
        display: block;
    }
    .sidebar{
        width: 100%;
    }

    .sidebar li {
        width: 100%;
        margin: 0;
        padding: 20px;
    }

    #CYA-logo-W{
        width: 45px;
    }

    .border {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #140E0C;
    border-radius: 4rem;
    font-size: 1rem;
    color: #FF751F;
    font-weight: 600;
    border: 2px solid #53A7FF;
    transition: 0.3s ease;
    cursor: pointer;
}

.border:hover{
    color: #140E0C !important;
    transform: scale(1.03);
    border: #53A7FF !important;
    background-color: #53A7FF;
    box-shadow: 0 0 25px #53A7FF;
}

.border a:hover{
    color: #000;
}

.register-border {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #53A7FF;
    border-radius: 4rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #53A7FF;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 25px #53A7FF;
    color: #140E0C;
    transform: scale(1.03);
}

h2{
    font-size: 1.6rem;
}

.final-ctf{
    color: #53A7FF;

}
.timeline {
    width: 100%;  /* Make it fully responsive */
    margin: 2rem auto; /* Adjust margins */
    padding: 0 1rem; /* Padding for spacing */
    position: relative;
}

/* Center the vertical line */
.timeline-line {
    position: absolute;
    top: 4rem; /* Adjust top position */
    width: 5px; /* Make it thinner for mobile */
    height: 0; /* Start hidden */
    background: linear-gradient(#FF751F, #7240D7, #53A7FF);
    border-radius: 3rem;
    z-index: -1;
    transition: height 5s linear;
}

.timeline-container {
    width: 100%; /* Full width for mobile */
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Remove alternating left-right positions */
.timeline-container:nth-child(even){
    max-width: 50%;
    left: 11.7rem;
}
.timeline-container:nth-child(odd) {
    max-width: 60%;
    right: 1.6rem; /* Reset positioning */
}

/* Center the dots */
.timeline-container::before {
    
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    background: linear-gradient(#FF751F, #7240D7, #53A7FF);
    top: 0;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 10;
}

/* Adjust text content */
.timeline-text-content {

    font-size: 14px;
    border-radius: 1.5rem;

}

.timeline-text-content h2 {
    font-size: 16px; /* Smaller heading */
}

.timeline-text-content p {
    font-size: 12px; /* Reduce text size */
}

nav ul {
    justify-content: flex-end; /* Aligns items properly */
}

.menu-button {
    margin-left: auto; /* Pushes it to the left */
    padding-right: 20px; /* Adds spacing */
    padding-top: 30px;
}

}
/* === LOGO SECTION === */
.header-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logos .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logos .logo:hover {
    transform: scale(1.1);
}

/* Adjust the layout of header for desktop */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 70px;
    background-color: transparent;
    z-index: 999;
}

#small-logo {
    height: 65px;
    margin-bottom: -10px;
}

/* === MOBILE VIEW === */
@media (max-width: 768px) {
header {
  flex-direction: row;           /* keep them side-by-side */
  justify-content: space-between;
  align-items: center;
  padding: 50px 35px;             /* less vertical padding */
  height: 55px;                  /* fixed compact height */
  top: 0;                        /* stay at the top */
  position: fixed;               /* ensure it doesn’t shift down */
  left: 0;
  width: 100%;
  background-color: transparent; /* keep existing background style */
  z-index: 999;                  /* stay above content */
}


  .header-logos {
    flex-wrap: wrap;               /* allow logos to wrap if needed */
    gap: 3px;
    justify-content: flex-start;   /* keep them on the left */
  }

  .header-logos .logo {
    height: 35px;                  /* smaller logos for mobile */
  }

  nav {
    margin-left: auto;             /* push menu button to the right */
  }

  .nav-toggle {
    position: relative;
    z-index: 1000;
  }

  #small-logo {
    height: 50px;
    margin-bottom: -6px;
  }
}


@media (min-width: 375px) and (max-width: 375px) and (min-height: 667px) and (max-height: 667px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 10rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.2rem; /* Reset positioning */
    }
}
@media (min-width: 414px) and (max-width: 414px) and (min-height: 896px) and (max-height: 896px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 11.2rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.5rem; /* Reset positioning */
    }
}
/* iPhone 12/13/14-ish without being brittle */
@media (max-width: 400px) and (min-width: 375px) and (min-aspect-ratio: 390/900) {
  .timeline-container:nth-child(even){ left: 10.5rem; max-width: 50%; }
  .timeline-container:nth-child(odd) { right: 1.3rem;  max-width: 60%; }
}

@media (min-width: 412px) and (max-width: 412px) and (min-height: 915px) and (max-height: 915px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 11.2rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.5rem; /* Reset positioning */
    }
}
@media (min-width: 360px) and (max-width: 360px) and (min-height: 740px) and (max-height: 740px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 9.5rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.2rem; /* Reset positioning */
    }
}
@media (min-width: 344px) and (max-width: 344px) and (min-height: 882px) and (max-height: 882px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 9.1rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.2rem; /* Reset positioning */
    }
}
@media (min-width: 412px) and (max-width: 412px) and (min-height: 914px) and (max-height: 914px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 11.2rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.5rem; /* Reset positioning */
    }
}
@media (min-width: 375px) and (max-width: 375px) and (min-height: 812px) and (max-height: 812px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 10rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.2rem; /* Reset positioning */
    }
}
@media (min-width: 414px) and (max-width: 414px) and (min-height: 736px) and (max-height: 736px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 11.3rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.5rem; /* Reset positioning */
    }
}
@media (min-width: 430px) and (max-width: 430px) and (min-height: 932px) and (max-height: 932px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 11.8rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.6rem; /* Reset positioning */
    }
}
@media (min-width: 360px) and (max-width: 360px) and (min-height: 780px) and (max-height: 780px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 9.5rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.2rem; /* Reset positioning */
    }
}
@media (min-width: 393px) and (max-width: 393px) and (min-height: 852px) and (max-height: 852px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 10.6rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.3rem; /* Reset positioning */
    }
}
@media (min-width: 375px) and (max-width: 375px) and (min-height: 932px) and (max-height: 932px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 10rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.2rem; /* Reset positioning */
    }
}
@media (min-width: 428px) and (max-width: 428px) and (min-height: 926px) and (max-height: 926px) {
    .timeline-container:nth-child(even){
        max-width: 50%;
        left: 11.7rem;
    }
    .timeline-container:nth-child(odd) {
        max-width: 60%;
        right: 1.6rem; /* Reset positioning */
    }
}

