/* General Styles */
html {
  scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  }

  .container {
    margin: 0 auto;
    padding: 4rem 1rem;
    padding-top: 6rem;
  }

  .home-section {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 4rem;
    padding: 2rem 0;
    gap: 3rem;
  }

  .home-title {
    text-wrap: wrap;
    margin-bottom: -1.5rem;
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
  }

  .home-alt-title {
    font-size: 4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
  }

  .titlenav-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin: 0 10px;
  }
  
  .titlenav-link:hover {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
  }

  .desc {
    display: flex;
    flex-direction: row;
  }

  .home-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
  }

  .main-image {
    border-radius: 15px;
    width: auto;
    height: auto;
  }

  .works-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin: 0 10px;
  }
  
  .works-link:hover {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
  }

  .more-button {
    background: rgba(43, 43, 43, 0.8);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .more-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .more-btn-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    font-weight: 600;
    position: relative;
  }

  .works-link {
    display: inline-block;
    text-decoration: none;
    color: #4a9eff;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(74, 158, 255, 0.1);
    transition: all 0.3s ease;
  }

  .works-link:hover {
    background: rgba(74, 158, 255, 0.2);
    transform: translateY(-2px);
  }

  .tools-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 4rem 0;
  }

  .tools-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
  }

  .card {
    background: rgba(43, 43, 43, 0.8);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .card-content {
    flex: 1;
  }

  .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    position: relative;
  }

  .card-description {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
  }

  .card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    min-width: 2.5rem;
    text-align: center;
    padding-top: 0.25rem;
  }

  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Add this */
  }

  .footer p {
    margin: 0.5rem 0;
  }

  .footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
  }

  .footer a:hover {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
  }

  .social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .social-links a:hover {
    transform: translateY(-2px);
  }

  .hidden-section {
    display: none !important;
  }
  
  /* Updated Thanks Section Styles */
.thanks-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.thanks-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.thanks-container h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
  text-align: center;
}

.thanks-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.thanks-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 400px;
  padding: 1rem;
}

.thanks-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.thanks-text h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
  text-align: left;
}

.thanks-text p {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar {
  display: flex;
  align-items: right;
  margin-left: auto;
  gap: 0.5rem;
}

#searchInput {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #fff;
  outline: none;
  width: 200px;
}

#searchInput::placeholder {
  color: #b0b0b0;
}

.search-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #fff;
  cursor: pointer;
}

.search-button:hover {
  background: rgba(74, 158, 255, 0.1);
  color: #4a9eff;
}

.search-form {
   margin: 0;
  padding: 0;
  margin-left: auto;
}

.no-results {
  text-align: center;
  color: #666;
  padding: 2rem;
  display: none;
}

/* Add to card styles */
.card:focus {
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}

/* Add progress indicator */
.progress-bar {
  height: 3px;
  background: #4a9eff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

  @media (max-width: 768px) {
    .container {
      padding: 2rem 1rem;
      width: 100%;
      padding-top: 6rem;
    }

    .home-section {
      padding: 1rem;
      margin-bottom: 2rem;
    }

    .home-title {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .home-subtitle {
      font-size: 1rem;
      margin-bottom: 0.8rem;
      padding: 0 1rem;
    }

    h1 {
      font-size: 2rem;
    }

    .tools-section {
      padding: 2rem 0;
    }

    .tools-container {
      width: 100%;
      padding: 0 1rem;
    }

    .card-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .card {
      padding: 1.2rem;
      gap: 1rem;
    }

    .card-icon {
      font-size: 2rem;
      min-width: 2rem;
    }

    .footer {
      padding: 0.8rem;
      font-size: 0.7rem;
      flex-direction: column;
    }

    .social-links {
      gap: 1rem;
    }

    .social-links a {
      font-size: 0.7rem;
    }

    .thanks-row {
      gap: 1.5rem;
      flex-direction: column;
      align-items: center;
    }
    
    .thanks-item {
      width: 100%;
      max-width: 300px;
      justify-content: flex-start;
    }
    
    .thanks-logo {
      width: 40px;
      height: 40px;
    }
    
    .thanks-text h3 {
      font-size: 1.1rem;
    }
    
    .thanks-text p {
      font-size: 0.85rem;
    }

    .ManhwaOCR-container {
      padding: 1rem;
      gap: 2rem;
    }

    .dimgcontainer {
      height: 250px;
    } 
    
    .dimgcontainerv {
      width: 170px;
      height: 350px;
    }

    .dimgcontainer img{
      width: 100%;
      height: auto;
    } 
    
    .dimgcontainerv img {
      height: 320px;
    }

    .ui-info-container h2, .ui-info-container2 h2 {
      font-size: 2rem;
    }

    .ui-info-container p, .ui-info-container2 p {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .UI-Design-container {
      grid-template-columns: 1fr; /* Stack vertically on mobile */
    }

    .more-button{
      padding: 1rem;
      max-width: 250px;
    }

    .more-btn-title {
      font-size: 1rem;
    }

    .ManhwaOCR-containerh {
      flex-direction: column;
      padding: 1rem;
      gap: 0.5rem;
    }

    .ManhwaOCR-containerv {
      padding: 1rem;
      gap: 0.5rem;
    }

    .dimgcontainer{
      width: 80%;
    } 
    
    .dimgcontainerv {
      height: 250px;
      width: 150px;
    }

    .dimgcontainer img{
      width: 100%;
    } 
    
    .dimgcontainerv img {
      width: auto;
      height: 80%;
    }

    .ui-info-container h2 {
      font-size: 1rem;
      margin-top: -2.5rem;
      margin-bottom: -2rem;
    }
    
    .ui-info-container2 h2 {
      font-size: 1rem;
      margin-bottom: -1.5rem;
    }

    .ui-info-container p, .ui-info-container2 p {
      font-size: 0.8rem;
    }

    .home-title {
      font-size: 2rem;
    }

    .home-subtitle {
      font-size: 0.9rem;
    }

    .card-grid {
      grid-template-columns: 1fr;
      gap: 0.8rem;
    }

    .card {
      padding: 1rem;
      gap: 0.8rem;
    }

    .card-icon {
      font-size: 1.8rem;
      min-width: 1.8rem;
    }

    .card-title {
      font-size: 1rem;
    }

    .card-description {
      font-size: 0.8rem;
    }

    .footer {
      padding: 0.3rem;
      font-size: 0.6rem;
    }

    .social-links {
      gap: 0.8rem;
    }
  }

  /* Simple fade in animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .container {
    animation: fadeIn 0.8s ease-out;
  }

  .card {
    animation: fadeIn 0.8s ease-out backwards;
  }

  .card:nth-child(1) { animation-delay: 0.2s; }
  .card:nth-child(2) { animation-delay: 0.4s; }
  .card:nth-child(3) { animation-delay: 0.6s; }