/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    padding-top: 60px; /* space for fixed nav */
  }
  
  /* Typography */
  h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 0.5em;
  }
  
  p {
    margin-bottom: 1em;
  }
  
  /* Section layout */
  .section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid #2a2a2a;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1f7aff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
  }
  
  .btn:hover {
    background-color: #0057d9;
  }
  
  /* Form styling */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
  }
  
  .contact-form label {
    font-weight: bold;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
  
  /* Nav styles (to be applied in nav.php) */
  nav {
    background-color: #181818;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav .logo {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
  }
  
  nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }
  
  nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
  }
  
  nav ul li a:hover {
    color: #1f7aff;
  }
  
  /* Responsive layout */
    @media (max-width: 768px) {
        #nav-links {
          display: none;
          flex-direction: column;
          background-color: #181818;
          position: absolute;
          top: 60px;
          right: 0;
          width: 200px;
          z-index: 999;
        }
      
        #nav-links.active {
          display: flex;
        }
        #menu-toggle {
          display: block;
          cursor: pointer;
          font-size: 1.5em;
          color: #fff;
        }
      }
      /* Reset nav styles for desktop */
        @media (min-width: 769px) {
            #nav-links {
            display: flex !important;
            position: static;
            flex-direction: row;
            background-color: transparent;
            width: auto;
            }
        
            .menu-toggle {
            display: block;
            }
        }
    .menu-toggle {
      display: block;
      color: #ffffff;
      font-size: 1.5em;
      cursor: pointer;
    }
  
  .menu-toggle {
    display: none;
  }

  .project-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    margin: 1rem;
    transition: transform 0.2s ease;
  }
  
  .project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 400px;
  }
  
  
  .project-card:hover {
    transform: scale(1.02);
  }
  
  .project-link {
    color: inherit;
    text-decoration: none;
    display: block;
  }
  .project-info {
    padding: 1rem;
  }
  
  .project-title {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
  }
  
  .project-description {
    color: #ccc;
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }

  .project-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
  }
  
  .project-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    border-bottom: 2px solid #555;
    padding-bottom: 0.25rem;
  }
  
  .project-page img.project-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  }
  
  .project-page p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ccc;
  }
  
  .project-page a {
    color: #66aaff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .project-page a:hover,
  .project-page a:focus {
    color: #5599ee;
    text-decoration: underline;
  }
  
  .project-page .project-content {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #ddd;
  }
  
  @media (max-width: 600px) {
    .project-page {
      padding: 0 0.5rem;
    }
  
    .project-page h1 {
      font-size: 2rem;
    }
  }

  .screenshot-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
  }
  
  .main-screenshot {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
  }
  
  .thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    max-width: 90%;
    scrollbar-color: #444 transparent;
    scrollbar-width: thin;
  }
  
  .thumbnail {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
  }
  
  .thumbnail:hover {
    transform: scale(1.05);
    opacity: 1;
  }
  
  .thumbnail:active {
    transform: scale(0.98);
  }

  h1 a {
    color: inherit;       /* Use the same color as the h1 */
    text-decoration: underline; /* underline by default to show its a link */
  }
  
  h1 a:hover {
    text-decoration: none; /* Optional: disable underline on hover if you want feedback */
  }

  .gallery-grid {
    display: flex;
    gap: 10px;
  }
  
  .gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .gallery-item img {
    width: 100%;
    display: block;
    cursor: pointer;
  }
  
  .caption {
    font-size: 0.9rem;
    text-align: center;
    color: #555;
    margin-top: 4px;
  }
  
  #lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
  }
  
  #lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }