/* Fonts & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Layout for sticky footer */
  html, body {
    height: 100%;
    width: 100%;
  }
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0B0C10, #1F2833);
    color: #45a29e;
    line-height: clamp(1.4, 2vw, 1.6);
    font-size: clamp(14px, 2.5vw, 18px);
  }
  .modal-open {
    overflow: hidden;
  }
  
  /* Header & Navigation */
  .header {
    background: #0b0c10;
    padding: clamp(0.5rem, 2.5vw, 1rem) 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  .navbar {
    max-width: clamp(600px, 90vw, 1200px);
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
  }
  .nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: clamp(0.75rem, 3vw, 2rem);
    flex-wrap: wrap;
  }
  .nav-link {
    color: #45a29e;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(13px, 2vw, 16px);
    transition: color 0.3s ease;
  }
  .nav-link:hover {
    color: #FFC107;
    text-decoration: underline;
  }
  .nav-active {
    color: #66fcf1;
    border-bottom: 2px solid #FF8C00;
  }
  
  /* Content Sections */
  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .content {
    max-width: clamp(400px, 85vw, 1000px);
    margin: clamp(0.75rem, 3vw, 2rem) auto;
    padding: 0 clamp(0.5rem, 2.5vw, 1rem);
  }
  .content h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    color: #66fcf1;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
  }
  .info-list {
    list-style: none;
    margin-top: clamp(0.5rem, 2vw, 1rem);
  }
  .info-list li {
    padding: clamp(0.3rem, 1vw, 0.5rem) 0;
    border-bottom: 1px solid #FFD700;
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
  
  /* Card Layout */
  .card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(clamp(200px, 25vw, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3vw, 3rem) clamp(0.5rem, 2vw, 1rem);
  }
  .card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: clamp(12px, 2vw, 16px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-top: 4px solid #585CA6;
    backdrop-filter: blur(8px);
  }
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }
  .card-img {
    width: 100%;
    height: clamp(180px, 30vw, 250px);
    object-fit: cover;
    display: block;
    margin: clamp(0.5rem, 2vw, 1rem) auto;
    border-radius: 8px;
  }
  .card-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
    color: #66fcf1;
  }
  .card-desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
  }
  .btn-secondary {
    display: inline-block;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border: 2px solid #FFD700;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(13px, 1.8vw, 15px);
    transition: background-color 0.3s, color 0.3s;
    color: #FFD700;
    background: transparent;
    cursor: pointer;
  }
  .btn-secondary:hover {
    background-color: #FFD700;
    color: #4E342E;
  }
  
  /* Modal */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1rem);
    z-index: 1000;
  }
  .modal-show {
    display: flex;
  }
  .modal-content {
    background: rgba(31, 40, 51, 0.95);
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    width: clamp(320px, 90vw, 900px);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
    color: #45a29e;
    backdrop-filter: blur(12px);
  }
  .modal-close {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1rem);
    right: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.5rem, 3vw, 2rem);
    cursor: pointer;
    color: #66fcf1;
    transition: color 0.3s;
  }
  .modal-close:hover {
    color: #FFC107;
  }
  #modal-title {
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    color: #66fcf1;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .modal-section {
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  }
  .modal-section h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #66fcf1;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  }
  .modal-section p {
    font-size: clamp(1rem, 2vw, 1.1rem);
  }
  
  /* Screenshot Gallery */
  .screenshot-gallery {
    position: relative;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  }
  .gallery-track {
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: clamp(250px, 60vw, 500px);
  }
  .gallery-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #66fcf1;
    border: none;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    cursor: pointer;
    transition: background 0.3s;
  }
  .gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
  }
  .gallery-nav.prev {
    left: clamp(0.5rem, 1vw, 1rem);
  }
  .gallery-nav.next {
    right: clamp(0.5rem, 1vw, 1rem);
  }
  .gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: clamp(1rem, 3vw, 2.5rem) clamp(0.5rem, 2.5vw, 1rem);
    background: #0b0c10;
    color: #66fcf1;
    font-size: clamp(14px, 2vw, 16px);
  }
  
  /* Responsive */
  @media (max-width: 1024px) {
    .card-container {
      grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 28vw, 280px), 1fr));
    }
    .gallery-track {
      height: clamp(220px, 55vw, 450px);
    }
  }
  @media (max-width: 768px) {
    body {
      font-size: clamp(14px, 2.2vw, 16px);
    }
    .nav-list {
      flex-direction: column;
      gap: clamp(0.5rem, 2vw, 1rem);
    }
    .card-container {
      grid-template-columns: 1fr;
      gap: clamp(1rem, 2.5vw, 1.5rem);
      padding: clamp(1rem, 2.5vw, 2rem) clamp(0.3rem, 1.5vw, 0.5rem);
    }
    .card {
      padding: clamp(1rem, 2vw, 1.5rem);
    }
    .modal-content {
      width: clamp(300px, 95vw, 700px);
      padding: clamp(1rem, 2vw, 1.5rem);
    }
    .gallery-track {
      height: clamp(180px, 50vw, 400px);
    }
  }
  @media (max-width: 480px) {
    .header {
      padding: clamp(0.4rem, 2vw, 0.8rem) 0;
    }
    .content {
      padding: clamp(0.3rem, 1.5vw, 0.5rem);
      margin: clamp(0.5rem, 2vw, 1rem) auto;
    }
    .card-img {
      height: clamp(150px, 25vw, 200px);
    }
    .modal-content {
      padding: clamp(0.75rem, 2vw, 1rem);
    }
    .gallery-track {
      height: clamp(150px, 45vw, 350px);
    }
    .gallery-nav {
      padding: clamp(0.5rem, 1vw, 0.75rem);
      font-size: clamp(1rem, 2vw, 1.5rem);
    }
  }
  @media (max-width: 360px) {
    body {
      font-size: clamp(12px, 2vw, 14px);
    }
    .card-title {
      font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    .btn-secondary {
      padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 1.5vw, 1rem);
    }
    .gallery-track {
      height: clamp(120px, 40vw, 300px);
    }
  }