  /* --------------------------------------Main Page Style--------------------------------------------------------- */
  /* Navigation Bar for better Navigation of pages */
  .navbar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 80px;
      background: linear-gradient(135deg, #515152, #bbbebe);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 40px;
      box-sizing: border-box;
      z-index: 1000;
      /* ensures navbar stays on top of everything */
  }

  .navbar-right {
      justify-self: end;
      display: flex;
      gap: 20px;
  }

  .navbar-spacer {
      height: 80px;
      /* same height as navbar to prevent content overlap */
  }

  .arrow-btn:hover {
      background: silver;
      transform: translateX(-5px);
  }

  span {
      color: black;
      font-weight: bold;
  }

  body {
      background: grey;
      background-size: cover;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: flex-start;
      min-height: 100vh;
      margin: 0;
      padding-top: 30px;
      opacity: 0;
      transition: opacity 0.3s ease-in;
  }

  body.loaded {
      opacity: 1;
  }


  h1,
  h2 {
      color: white;
      text-align: center;
      margin-bottom: 50px;
      text-shadow: 2px 2px 2px white;
  }

  .arrow-btn-left {
      position: fixed;
      top: 20px;
      left: 25px;
      color: white;
      font-size: 20px;
      font-weight: bold;
      text-decoration: none;
      transition: color 0.3 ease, transform 0.2 ease;
      text-shadow: 1px 1px 1px white;

  }

  .arrow-btn-left:hover {
      background: rgba(255, 255, 255, 0.711);
      transform: translateX(-5px);
  }

  .flipped {
      display: inline-block;
      transform: scaleX(-1);
  }

  .arrow-btn-left span {
      color: white;
      font-weight: bold;
  }

  .section-divider,
  .top-hr {
      width: 100%;
      height: 3px;
      border: none;
      border-radius: 5px;
      background: linear-gradient(90deg, rgb(40, 41, 40), #929292, #2f302f);
      margin: 60px auto 40px auto;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }
  footer{
    text-align: center;
    color: white;
    text-shadow: 1px 1px 1px white;
    margin-top: 50px;
  }


  /* --------------------------------------MyGlidingSym Description and Project Info Section Style--------------------------------------------------------- */
  .MGSInfo-card {
      flex: 1;
      max-width: 50%;
      border: 2px solid white;
      background: rgb(54, 54, 54);
      box-shadow: 0 0 10px white;
      width: 100%;
      padding: 30px;
      border-radius: 20px;
      transition: transform 0.3s ease, box-shadow 0.3 ease;
      margin-bottom: 70px;
  }

  .MGSVid-section {
      display: flex;
      justify-content: space-between;
      gap: 40px;
      width: 100%;
      max-width: 1600px;
  }

  .MGSvideo-video {
      width: 100%;
      max-width: 1200px;
      border-radius: 10px;
      border: 2px solid white;
      box-shadow: 0 0 10px silver;
  }

  /* Video on Top */
  .MGSvideo-box {
      width: 100%;
      display: flex;
      justify-content: center;
      margin-bottom: 40px;
      /* Some Spacing*/
      /* Video on Top */
      /* ------------------ */
  }

  .MGSGame-description {
      flex: 1;
      color: white;
      font-size: 25px;
      line-height: 1.5;
      text-shadow: 1px 1px 2px silver;
  }

  .MGSGame-description h2 {
      color: white;
      font-weight: bold;
      text-align: left;
      margin-bottom: 10px;
      text-shadow: 1px 1px 2px silver;
      font-size: 30px;
  }
  .MGSproject-info-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    color: white;
    font-size: 22px;
    line-height: 1.6;
  }
  .MGSproject-info-list li{
    margin-bottom: 5px;
  }
  .MGSproject-info-list strong{
    color: white;
    font-weight: 900;
    text-shadow: 1px 1px 2px silver;
  }
  

  /* --------------------------------------MyGlidingSym Logo Section Style--------------------------------------------------------- */
  .MGSLogo-card {
      display: flex;
      flex-direction: flex;
      text-align: left;
      align-items: left;
      border: 2px solid white;
      background: rgb(54, 54, 54);
      border-radius: 20px;
      padding: 25px;
      width: 950px;
      height: auto;
      max-width: 1000px;
      margin-right: 100px;
      box-shadow: 0 0 10px white;
      transition: transform 0.3s ease, box-shadow 0.3 ease;
  }

  .MGSLogo-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      gap: 40px;
      width: 100%;
      margin-top: 30px;
      max-width: 1800px;
      margin-left: 0px;
      padding: 0 auto;
  }

  .MGSLogo-image {
      width: 600px;
      height: auto;
      border-radius: 10px;
      border: 2px solid white;
      box-shadow: 0 0 10px silver;
  }

  .MGSLogo-description {
      flex: 1;
      margin-bottom: 100px;
      color: white;
      font-size: 24px;
      line-height: 1.5;
      text-shadow: 1px 1px 2px silver;
  }

  .MGSLogo-description h2 {
      color: white;
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
      text-shadow: 1px 1px 2px silver;
      font-size: 30px;
  }

  /* --------------------------------------MyGlidingSym Level 1 Section Style--------------------------------------------------------- */
  .MGSLvl1Design-card {
      display: flex;
      flex-direction: flex;
      text-align: left;
      align-items: left;
      border: 2px solid white;
      background: rgb(54, 54, 54);
      border-radius: 20px;
      padding: 25px;
      width: 950px;
      height: auto;
      max-width: 1000px;
      box-shadow: 0 0 10px white;
      transition: transform 0.3s ease, box-shadow 0.3 ease;
  }

  .GSLevel1-section {
      display: flex;
      align-items: center;
      gap: 30px;
      margin-top: 40px;
      width: 100%;
      max-width: 1800px;
      margin-left: 0px;
      padding: 0 auto;
  }

  .Level1-image {
      width: 950px;
      height: auto;
      border-radius: 10px;
      border: 2px solid white;
      box-shadow: 0 0 10px silver;
  }

  .GSLevel1-description {
      flex: 1;
      margin-bottom: 160px;
      color: white;
      font-size: 24px;
      line-height: 1.5;
      text-shadow: 1px 1px 2px silver;
  }

  .GSlevel1-description h2 {
      color: white;
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
      text-shadow: 1px 1px 2px silver;
      font-size: 30px;
  }

  /* --------------------------------MyGlidingSym Level 2 Section Style--------------------------------------------------------- */
  .MGSLvl2Design-card {
      display: flex;
      flex-direction: flex;
      text-align: left;
      align-items: left;
      border: 2px solid white;
      background: rgb(54, 54, 54);
      border-radius: 20px;
      padding: 25px;
      width: 950px;
      height: auto;
      max-width: 1000px;
      box-shadow: 0 0 10px white;
      transition: transform 0.3s ease, box-shadow 0.3 ease;
  }

  .GSLevel2-section {
      display: flex;
      align-items: center;
      gap: 30px;
      margin-top: 40px;
      width: 100%;
      max-width: 1800px;
      margin-left: 0px;
      padding: 0 auto;
  }

  .Level2-image {
      width: 950px;
      height: auto;
      border-radius: 10px;
      border: 2px solid white;
      box-shadow: 0 0 10px silver;
  }

  .GSLevel2-description {
      flex: 1;
      margin-bottom: 160px;
      color: white;
      font-size: 24px;
      line-height: 1.5;
      text-shadow: 1px 1px 2px silver;
  }

  .GSLevel2-description h2 {
      color: white;
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
      text-shadow: 1px 1px 2px silver;
      font-size: 30px;
  }

  /* ---------------------------------------Checkpoint Section----------------------------------- */
  .MGSCheckpoint-card {
      display: flex;
      flex-direction: flex;
      text-align: left;
      align-items: left;
      border: 2px solid white;
      background: rgb(54, 54, 54);
      border-radius: 20px;
      padding: 25px;
      width: 950px;
      height: auto;
      max-width: 1000px;
      box-shadow: 0 0 10px white;
      transition: transform 0.3s ease, box-shadow 0.3 ease;
  }

  .Checkpoint-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      gap: 40px;
      width: 100%;
      max-width: 1800px;
      margin-left: -20px;
      margin-top: 50px;
      padding: 0 auto;
  }

  .MGSCheckpoint-image {
      width: 950px;
      height: auto;
      border-radius: 10px;
      border: 2px solid white;
      box-shadow: 0 0 10px silver;
  }

  .MGSCheckpoint-description {
      flex: 1;
      margin-bottom: 240px;
      color: white;
      font-size: 24px;
      line-height: 1.5;
      text-shadow: 1px 1px 2px silver;
  }

  .MGSCheckpoint-description h2 {
      color: white;
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
      text-shadow: 1px 1px 2px silver;
      font-size: 30px;
  }
  
/* ---------------------------------- MOBILE + SMALL WINDOW (600px) ------------------------------- */
@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        padding: 25px 15px;
        gap: 10px;
        text-align: center;
    }

    .navbar-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Back arrow adjusts */
    .arrow-btn-left {
        top: 10px;
        left: 10px;
        font-size: 18px;
    }

    /* CONTENT STACKS CLEANLY */
    .MGSVid-section,
    .MGSLogo-section,
    .GSLevel1-section,
    .GSLevel2-section,
    .Checkpoint-section {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0 10px;
    }

    /* CARDS */
    .MGSInfo-card,
    .MGSLogo-card,
    .MGSLvl1Design-card,
    .MGSLvl2Design-card,
    .MGSCheckpoint-card {
        width: 90%;
        padding: 18px;
        margin-bottom: 25px;
    }

    /* IMAGES */
    .MGSvideo-video,
    .MGSLogo-image,
    .Level1-image,
    .Level2-image,
    .MGSCheckpoint-image {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-width: 2px;
         margin-bottom: 25px;
    }

    /* TEXT RESIZING */
    .MGSGame-description,
    .MGSLogo-description,
    .GSLevel1-description,
    .GSLevel2-description,
    .MGSCheckpoint-description {
        font-size: 16px;
        line-height: 1.4;
        padding: 0 10px;
        text-align: center;
        margin: 0 auto;
    }

    .MGSGame-description h2,
    .MGSLogo-description h2,
    .GSLevel1-description h2,
    .GSLevel2-description h2,
    .MGSCheckpoint-description h2 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 15px;
    }

    /* DIVIDER spacing */
    .section-divider,
    .top-hr {
        margin: 35px auto;
    }
}

  /* --------------------------- DESKTOP RESPONSIVE  (1200px) ------------------------- */
@media (max-width: 1200px) {

    /* NAVBAR fixes */
    .navbar {
        height: auto;
        padding: 20px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .navbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .navbar-spacer {
      height: 180px;
      /* same height as navbar to prevent content overlap */
  }

    .arrow-btn-left {
        top: 15px;
        left: 15px;
        z-index: 2000;
    }

    /* ALL 2-column sections become 1-column */
    .MGSVid-section,
    .MGSLogo-section,
    .GSLevel1-section,
    .GSLevel2-section,
    .Checkpoint-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
    }

    /* Cards shrink properly */
    .MGSInfo-card,
    .MGSLogo-card,
    .MGSLvl1Design-card,
    .MGSLvl2Design-card,
    .MGSCheckpoint-card {
        width: 95%;
        max-width: 950px;
        margin: 0 auto 40px -10px;
    }

    /* Images resize */
    .MGSvideo-video,
    .MGSLogo-image,
    .Level1-image,
    .Level2-image,
    .MGSCheckpoint-image {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
    }

    /* Text resizes smoothly */
    .MGSGame-description,
    .MGSLogo-description,
    .GSLevel1-description,
    .GSLevel2-description,
    .MGSCheckpoint-description {
        font-size: 20px;
        line-height: 1.4;
        padding: 0 20px;
    }

    .MGSGame-description h2,
    .MGSLogo-description h2,
    .GSLevel1-description h2,
    .GSLevel2-description h2,
    .MGSCheckpoint-description h2 {
        font-size: 26px;
    }
}
