 * { 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;
      opacity: 0;
      animation: fadeIn 2s ease forwards 0.5s;
    }

    .hero-content p {
      font-size: 1.2rem;
      color: #ddd;
      margin-top: 15px;
      opacity: 0;
      animation: fadeIn 2.5s ease forwards 1s;
    }

    /* CONTACT CONTENT SECTION */
    .contact-section {
      padding: 60px 10% 40px 10%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      gap: 60px;
      position: relative;
      z-index: 2;
    }

    .contact-info, .contact-form {
      flex: 1 1 45%;
      background: rgba(25,25,25,0.85);
      padding: 40px;
      border-radius: 15px;
      box-shadow: 0 0 25px rgba(0,0,0,0.6);
      transition: transform 0.5s ease, box-shadow 0.5s ease;
    }

    .contact-info:hover, .contact-form:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 35px rgba(0,0,0,0.8);
    }

    .contact-info h2, .contact-form h2 {
      color: #00bcd4;
      margin-bottom: 20px;
      font-size: 1.8rem;
    }

    .contact-info p {
      font-size: 1rem;
      color: #ccc;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .contact-info i {
      color: #00bcd4;
      margin-right: 10px;
      width: 20px;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    input, textarea {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 8px;
      background: #2a2a2a;
      color: #fff;
      font-size: 1rem;
      outline: none;
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    input:focus, textarea:focus {
      background: #333;
      box-shadow: 0 0 10px rgba(0,188,212,0.4);
    }

    button {
      background-color: #00bcd4;
      color: white;
      border: none;
      padding: 14px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    button:hover {
      background-color: #0097a7;
    }

    /* CHATBOT SECTION */
    .faq-chatbot {
      padding: 80px 10%;
      background: rgba(20,20,20,0.8);
      border-top: 1px solid rgba(255,255,255,0.1);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      position: relative;
      z-index: 2;
    }

    .faq-chatbot h2 {
      color: #00bcd4;
      font-size: 2rem;
      margin-bottom: 10px;
    }

    .chat-box {
      width: 100%;
      max-width: 700px;
      height: 420px;
      background: rgba(25,25,25,0.9);
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 0 25px rgba(0,0,0,0.6);
      display: flex;
      flex-direction: column;
    }

    .chat-messages {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }

    .message {
      display: flex;
      align-items: flex-start;
      margin-bottom: 14px;
      gap: 10px;
    }

    .message.user {
      justify-content: flex-end;
    }

    .message.user .bubble {
      background: #00bcd4;
      color: #fff;
      border-radius: 15px 15px 0 15px;
      padding: 10px 14px;
      max-width: 70%;
    }

    .message.bot .bubble {
      background: #1f1f1f;
      color: #ddd;
      border-radius: 15px 15px 15px 0;
      padding: 10px 14px;
      max-width: 70%;
    }

    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-size: cover;
      background-position: center;
      flex-shrink: 0;
    }

    .user .avatar {
      background-image: url('images/user.png');
      background-color: #555;
    }

    .bot .avatar {
      background-image: url('images/kiota_logo.png');
      background-color: #222;
    }

    .chat-input {
      display: flex;
      padding: 15px;
      background: #2a2a2a;
    }

    .chat-input input {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 8px;
      background: #1f1f1f;
      color: #fff;
      margin-right: 10px;
      outline: none;
    }

    .chat-input button {
      padding: 12px 20px;
      border: none;
      border-radius: 8px;
      background: #00bcd4;
      color: #fff;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .chat-input button:hover {
      background: #0097a7;
    }

    /* TYPING ANIMATION */
    .typing {
      display: flex;
      align-items: center;
      height: 20px;
      padding: 0 5px;
    }
    
    .dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      margin: 0 2px;
      background-color: #aaa;
      border-radius: 50%;
      animation: blink 1.4s infinite both;
    }
    .dot:nth-child(2) { animation-delay: 0.2s; }
    .dot:nth-child(3) { animation-delay: 0.4s; }

    @keyframes blink {
      0%, 80%, 100% { opacity: 0; }
      40% { opacity: 1; }
    }

    /* GOOGLE MAP WRAPPER */
    .map {
      margin: 80px 10%;
      height: 450px;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 0 25px rgba(0,0,0,0.6);
      position: relative;
      z-index: 2;
    }

    /* 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 fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @media (max-width: 900px) {
      .contact-section { flex-direction: column; }
      .contact-info, .contact-form { width: 100%; }
      .chat-box { height: 380px; }
      .hero-content h1 { font-size: 2.2rem; }
      .map { margin: 40px 6%; height: 300px; }
    }

    /* 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;
  }
}

