/* Global Styles */
html, body {
    background-color: #121212;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }
  
  /* Header */
  header {
    margin: 50px 0 25px;
    font-size: 2.3em;
    text-align: center;
  }
  
  /* Footer */
  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 75px;
  }
  footer a {
    color: #fff;
    font-weight: 400;
    margin: 0;
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
  }
  footer a:hover {
    color: #aaa;
  }
  footer a:not(:first-child) {
    margin-left: 10px;
  }
  
  /* Text Selection */
  ::-moz-selection {
    background: #ff3c3c;
    text-shadow: none;
  }
  ::selection {
    background: #ff3c3c;
    text-shadow: none;
  }
  
  /* -------------------- */
  /* Contact Page Styles  */
  /* -------------------- */
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
  }
  .contact-form {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    background-color: #121212;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
  }
  .form-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
  }
  .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form-label {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
  }
  .form-input {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #fff;
    color: #fff;
    background-color: transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out;
    box-sizing: border-box;
    min-width: 250px;
  }
  .form-input:focus {
    outline: none;
    border-color: #aaa;
  }
  .form-input::placeholder {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #aaa;
  }
  .form-btn {
    width: 100%;
    max-width: 200px;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    background-color: transparent;
    border: solid 2px #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    margin: 20px auto 0;
  }
  .form-btn:hover {
    background-color: #383838;
    transform: scale(1.05);
  }
  
  /* --------------------- */
  /* Portfolio Page Styles */
  /* --------------------- */
  main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    margin-top: 50px;
    width: 100%;
    box-sizing: border-box;
  }
  #portfolio-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .portfolio-link {
    text-decoration: none;
  }
  .portfolio-item {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    transition: background 200ms ease;
  }
  .portfolio-item:hover {
    background: #292929;
  }
  .portfolio-item h2 {
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
  }
  .portfolio-item p {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #ccc;
  }
  
  /* ---------------------- */
  /* Project Page Styles    */
  /* ---------------------- */
  .project-container {
    background: #1c1c1c;
    padding: 40px;
    border-radius: 10px;
    color: #fff;
    margin: 50px auto;
    margin-bottom: 0;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
  }
  .project-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
  }
  .project-container h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
  }
  .project-container p,
  .project-container ul {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    color: #ccc;
    font-family: 'Roboto', sans-serif;
  }
  .project-container ul {
    padding-left: 20px;
  }
  .project-container ul li {
    margin-bottom: 10px;
  }
  
  /* ------------------------------ */
  /* Video, Screenshots & Overlay   */
  /* ------------------------------ */
  .video-container {
    margin-top: 30px;
    text-align: center;
    border: 2px solid #444;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
  }
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
  }
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  .screenshot {
    border: 2px solid #444;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
  }
  .screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
  }
  #overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #fff;
    border-radius: 8px;
  }
  #caption {
    margin-top: 7px;
    font-size: 18px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
  }
  
  /* -------------------- */
  /* Live Demo Button     */
  /* -------------------- */
  .live-demo {
    margin-top: 30px;
  }
  .live-demo a {
    display: inline-block;
    background: #ff3c3c;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: background 0.3s ease;
  }
  .live-demo a:hover {
    background: #ff3c3c;
  }
  
  /* -------------------- */
  /* Responsive Styles    */
  /* -------------------- */
  @media (max-width: 768px) {
    main {
      padding: 15px;
      width: 100%;
      box-sizing: border-box;
    }
    .project-container {
      padding: 20px;
      width: 100%;
      box-sizing: border-box;
    }
    .contact-form {
      width: 95%;
      padding: 30px;
    }
    .screenshot {
      width: 100%;
    }
    .portfolio-item {
      width: 100%;
      box-sizing: border-box;
    }
    .screenshots {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    #overlay img {
      max-width: 95%;
      max-height: 80%;
    }
  }
  
  @media (max-width: 480px) {
    header {
      font-size: 1.8em;
      margin: 30px 0 20px;
    }
    .project-container h1 {
      font-size: 26px;
    }
    .project-container h2 {
      font-size: 20px;
    }
    .form-input {
      min-width: 200px;
    }
  }
  