 * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { min-height: 100%; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }

    body {
      background: #0d0d0d;
      color: #f5f5f5;
      overflow-x: hidden;
      perspective: 1000px;
      position: relative;
    }

    /* NAVIGATION BAR */
    nav {
      width: 100%;
      position: fixed;
      top: 0; left: 0;
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 15px 0;
      background-color: rgba(0,0,0,0.75);
      backdrop-filter: blur(6px);
      z-index: 100;
      font-size: 1.05rem;
    }

    nav a {
      color: #f5f5f5;
      text-decoration: none;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: color 0.3s ease, transform 0.3s ease;
    }

    nav a:hover {
      color: #00bcd4;
      transform: translateY(-2px);
    }

    .icon { font-size: 1.2rem; }

    /* HERO SECTION */
    .hero {
      position: relative;
      width: 100%;
      height: 50vh;
      background: transparent; 
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 60px;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.95));
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      animation: fadeUp 2s ease-out forwards;
    }

    .hero-content h1 {
      font-size: 3rem;
      color: #00bcd4;
      letter-spacing: 2px;
      transform: scale(0.9);
      opacity: 0;
      animation: zoomIn 1.5s ease forwards 0.5s;
    }

    .hero-content p {
      font-size: 1.3rem;
      color: #ddd;
      margin-top: 16px;
      opacity: 0;
      animation: fadeIn 2s ease forwards 1.5s;
    }

    /* PROJECTS CONTAINER */
    .projects-container {
      padding: 40px 10% 80px 10%;
      display: flex;
      flex-direction: column;
      gap: 70px;
      position: relative;
      z-index: 1;
    }

    .project-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 40px;
      opacity: 0;
      transform: translateY(80px);
      transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .project-section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .project-section:nth-child(even) {
      flex-direction: row-reverse;
    }

    .project-text {
      flex: 1 1 50%;
      background-color: rgba(25,25,25,0.8);
      padding: 35px;
      border-radius: 15px;
      box-shadow: 0 0 25px rgba(0,0,0,0.6);
      transition: transform 0.6s ease, box-shadow 0.6s ease;
    }

    .project-text:hover {
      transform: scale(1.03) translateY(-10px);
      box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    }

    .project-text h2 {
      font-size: 1.9rem;
      color: #00bcd4;
      margin-bottom: 15px;
    }

    .project-text p {
      font-size: 1rem;
      color: #e0e0e0;
      line-height: 1.6;
    }

    .project-image {
      flex: 1 1 45%;
    }

    .project-image img {
      width: 100%;
      height: 340px;
      border-radius: 15px;
      object-fit: cover;
      box-shadow: 0 0 25px rgba(0,0,0,0.5);
      filter: brightness(0.9);
      transition: transform 0.6s ease, filter 0.4s ease;
    }

    .project-image img:hover {
      transform: scale(1.03);
      filter: brightness(1);
    }

    /* VISION 2030 SECTION */
    .vision-section {
      text-align: center;
      position: relative;
      padding: 120px 10%;
      background: radial-gradient(circle at center, rgb(54, 54, 54) 0%, transparent 90%);
      overflow: hidden;
      z-index: 1;
    }

    .vision-section h2 {
      font-size: 2.5rem;
      color: #00bcd4;
      margin-bottom: 20px;
      position: relative;
      z-index: 2;
      animation: fadeUp 2s ease forwards;
    }

    .vision-section p {
      font-size: 1.2rem;
      color: #ddd;
      line-height: 1.8;
      max-width: 800px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
      opacity: 2;
      animation: fadeIn 2s ease forwards 0.5s;
    }

    .vision-animation {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 1;
      opacity: 0.3;
    }

    /* FOOTER */
    footer {
      text-align: center;
      padding: 30px;
      background: rgba(0, 0, 0, 0.85);
      font-size: 0.9rem;
      color: #aaa;
      margin-top: 50px;
      letter-spacing: 0.5px;
      position: relative;
      z-index: 2;
    }

    /* ANIMATIONS */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes zoomIn {
      from { opacity: 0; transform: scale(0.8); }
      to { opacity: 1; transform: scale(1); }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @media (max-width: 900px) {
      .projects-container { padding: 40px 6%; }
      .project-section { flex-direction: column !important; }
      .project-image img { height: 220px; }
      .hero-content h1 { font-size: 2.2rem; }
      .hero-content p { font-size: 1rem; }
      .vision-section h2 { font-size: 1.9rem; }
      .vision-section p { font-size: 1rem; }
    }

    /* STABILIZED BACKGROUND SLIDER (Completely unscrollable) */
    .bg-slider {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 0;
      pointer-events: none;
    }

    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      opacity: 0;
      will-change: opacity;
      animation: dissolve 330s linear infinite;
    }

    @keyframes dissolve {
      0%, 100% { opacity: 0; }
      2%, 8% { opacity: 1; }
      10% { opacity: 0; }
    }

    /* Sequential Delays */
    .slide-1  { animation-delay: 0s; }
    .slide-2  { animation-delay: 30s; }
    .slide-3  { animation-delay: 60s; }
    .slide-4  { animation-delay: 90s; }
    .slide-5  { animation-delay: 120s; }
    .slide-6  { animation-delay: 150s; }
    .slide-7  { animation-delay: 180s; }
    .slide-8  { animation-delay: 210s; }
    .slide-9  { animation-delay: 240s; }
    .slide-11 { animation-delay: 270s; }
    .slide-10 { animation-delay: 300s; }

    /* Background Images & Linear Gradient Overlays */
    .slide-1  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
    .slide-2  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/26.jpg"); }
    .slide-3  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
    .slide-4  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/29.jpg"); }
    .slide-5  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/26.jpg"); }
    .slide-6  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
    .slide-7  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/28.jpg"); }
    .slide-8  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/29.jpg"); }
    .slide-9  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
    .slide-10 { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/Data1.jpg"); }
    .slide-11 { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/Data2.jpg"); }
  

  

/* =========================================================
   KIOTA PROJECTS / REGISTRATION PAGE
   RESPONSIVE LAYOUT
   Phones, tablets and landscape mobile devices
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Tablets ---------- */
@media (max-width: 1024px) {
  nav {
    padding: 12px 2%;
    gap: 4px;
  }

  nav a {
    font-size: 0.88rem;
    gap: 5px;
  }

  .icon {
    font-size: 1rem;
  }

  .hero {
    height: 43vh;
    margin-top: 55px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .hero-content p {
    width: 90%;
    margin: 10px auto 0;
    font-size: 1.05rem;
  }

  .register-container {
    padding: 45px 6%;
    gap: 55px;
  }

  .role-section {
    gap: 25px;
  }

  .role-text {
    flex: 1 1 52%;
    padding: 28px;
  }

  .role-text h2 {
    font-size: 1.65rem;
  }

  .role-text p {
    font-size: 0.95rem;
  }

  .role-image {
    flex: 1 1 43%;
  }

  .role-image img {
    height: 270px;
  }

  .comments-section,
  .help-section {
    padding: 32px;
  }
}

/* ---------- Tablets / large phones ---------- */
@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 9px 5px;
    gap: 2px;
    justify-content: space-around;
  }

  nav a {
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .icon {
    font-size: 0.75rem;
  }

  .hero {
    height: 36vh;
    min-height: 245px;
    margin-top: 47px;
  }

  .hero-content {
    width: 90%;
    padding: 0 10px;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .hero-content p {
    font-size: clamp(0.84rem, 3.3vw, 1rem);
    line-height: 1.5;
  }

  .register-container {
    padding: 30px 6% 45px;
    gap: 35px;
  }

  /*
    Desktop alternates text/image.
    Mobile stacks them so every section remains readable.
  */
  .role-section,
  .role-section:nth-child(even) {
    flex-direction: column !important;
    align-items: stretch;
    gap: 16px;
  }

  .role-text {
    width: 100%;
    flex: none;
    padding: 22px 20px;
    border-radius: 12px;
  }

  .role-text h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .role-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .role-text button {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .role-image {
    width: 100%;
    flex: none;
  }

  .role-image img {
    width: 100%;
    height: 235px;
    border-radius: 12px;
  }

  .comments-section,
  .help-section {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .comments-section h2,
  .help-section h2 {
    font-size: 1.4rem;
  }

  textarea {
    width: 100%;
    max-width: 100%;
    height: 115px;
    font-size: 0.92rem;
  }

  .comment-btn,
  .help-section button {
    padding: 11px 25px;
    font-size: 0.9rem;
  }

  footer {
    padding: 22px 15px;
    font-size: 0.78rem;
  }

  /* Fixed background images can be awkward on mobile Safari/Chrome */
  .slide {
    background-attachment: scroll;
    background-position: center center;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
  nav {
    padding: 8px 2px;
  }

  nav a {
    font-size: 0.54rem;
    gap: 3px;
  }

  .icon {
    font-size: 0.65rem;
  }

  .hero {
    height: 32vh;
    min-height: 215px;
    margin-top: 42px;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .hero-content p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .register-container {
    padding: 24px 5% 38px;
    gap: 28px;
  }

  .role-section {
    gap: 13px;
  }

  .role-text {
    padding: 18px 15px;
  }

  .role-text h2 {
    font-size: 1.2rem;
  }

  .role-text p {
    font-size: 0.82rem;
    line-height: 1.58;
  }

  .role-text button {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.82rem;
  }

  .role-image img {
    height: 195px;
    border-radius: 10px;
  }

  .comments-section,
  .help-section {
    padding: 20px 15px;
  }

  .comments-section h2,
  .help-section h2 {
    font-size: 1.2rem;
  }

  .help-section p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  textarea {
    height: 105px;
    padding: 12px;
    font-size: 0.84rem;
  }

  .comment-btn,
  .help-section button {
    width: 100%;
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  footer {
    padding: 18px 10px;
    font-size: 0.68rem;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {
  nav {
    padding: 7px 1px;
  }

  nav a {
    font-size: 0.48rem;
    gap: 2px;
  }

  .icon {
    font-size: 0.58rem;
  }

  .hero {
    min-height: 200px;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }

  .hero-content p {
    font-size: 0.72rem;
  }

  .register-container {
    padding-left: 4%;
    padding-right: 4%;
  }

  .role-text {
    padding: 16px 13px;
  }

  .role-text h2 {
    font-size: 1.1rem;
  }

  .role-text p {
    font-size: 0.76rem;
  }

  .role-image img {
    height: 175px;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 600px) and (max-width: 900px) {
  html,
  body {
    overflow-y: auto;
  }

  nav {
    padding: 6px 4px;
  }

  nav a {
    font-size: 0.61rem;
  }

  .hero {
    height: 50vh;
    min-height: 205px;
    margin-top: 38px;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .hero-content p {
    font-size: 0.78rem;
  }

  .register-container {
    gap: 25px;
  }

  .role-text {
    padding: 18px;
  }

  .role-image img {
    height: 180px;
  }
}

/* ---------- Touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  nav a:hover {
    color: #f5f5f5;
    transform: none;
  }

  .role-text:hover {
    transform: none;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
  }

  .role-image img:hover {
    transform: none;
  }
}

