* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
    height: 100vh;
    background: #000;
    position: relative;
    overflow-x: hidden;
    color: #fff;
  }
  
  .bg-img {
    background-image: url("/bg.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: -1;
    opacity: 0.7;
  }
  
  /* Page Management */
  .page {
    display: none;
    min-height: 100vh;
  }
  
  .page.active {
    display: block;
  }
  
  /* Search Page Styles */
  .container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .content-container {
    width: 50%;
    height: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: relative;
  }
  
  .welcome-text {
    color: #fff;
    font-size: 75px;
    border-right: 3px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 2px 2px 4px #0084ff;
    animation: typing 2.5s steps(40, end), blink-caret 0.75s step-end infinite;
  }
  
  .auther {
    opacity: 0;
    animation: slideUp 0.5s ease-out 2s forwards;
    color: #fff;
    margin-top: 10px;
    align-self: flex-end;
    font-size: 25px;
  }
  
  .search-box {
    width: 70%;
    padding: 20px 30px;
    font-size: 35px;
    border: 2px solid #0084ff63;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    color: #fff;
    margin-bottom: 30px;
    margin-right: 60px;
    margin-top: 30px;
    opacity: 0;
    animation: slideUp 0.5s ease-out 2.5s forwards;
  }
  
  .search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  form {
    width: 100%;
  }
  
  .search-box:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.589);
    transform: scale(1.02);
  }
  
  .search-button {
    width: 250px;
    padding: 12px 24px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    margin-right: 60px;
    animation: slideUp 0.5s ease-out 3s forwards;
    background: rgba(0, 102, 255, 0.2);
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(5px);
  }
  
  .search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .search-button:hover {
    background: rgba(0, 102, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
  }
  
  /* Results Page Styles */
  .nav-button {
    position: fixed;
    top: 30px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
  }
  
  .nav-button:hover {
    background: rgba(0, 102, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
  }
  
  .nav-button .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
  }
  
  .nav-button:hover .arrow {
    transform: translateX(-5px);
  }
  
  .results-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
  }
  
  .results-header {
    color: #fff;
    font-size: 40px;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgb(0, 132, 255);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    padding-top: 30px;
    text-align: center;
  }
  
  .results-list {
    list-style: none;
    width: 100%;
  }
  
  .article-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
  }
  
  .article-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  
  .article-title {
    color: #fff;
    font-size: 30px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgb(0, 132, 255);
  }
  
  .article-description {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #0066ff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
  }
  
  .read-more:hover {
    background: #0052cc;
    transform: scale(1.05);
  }
  
  .no-results,
  .error-message {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .error-message {
    color: #da5a5a;
  }
  
  .loading {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0066ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }
  
  .hidden {
    display: none !important;
  }
  
  /* Animations */
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  @keyframes blink-caret {
    from,
    to {
      border-color: transparent;
    }
    50% {
      border-color: #fff;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .container {
      justify-content: center;
    }
  
    .content-container {
      width: 100%;
      padding: 20px;
      align-items: center;
      text-align: center;
    }
  
    .welcome-text {
      font-size: 28px;
      border-right: none;
      white-space: normal;
      animation: none;
    }
  
    .auther {
      align-self: center;
    }
  
    .search-box {
      width: 100%;
      font-size: 18px;
      margin-right: 0px;
    }
  
    .search-button {
      width: 100%;
      font-size: 18px;
      margin-right: 0px;
    }
  
    .results-container {
      padding: 1rem;
      padding-top: 80px;
    }
  
    .results-header {
      font-size: 28px;
      padding-top: 100px;
    }
  
    .article-title {
      font-size: 20px;
    }
  
    .article-card {
      padding: 1rem;
    }
  
    .nav-button {
      padding: 10px 20px;
      font-size: 14px;
    }
  }
  
  @media (max-width: 480px) {
    .welcome-text {
      font-size: 24px;
    }
  
    .search-box {
      font-size: 16px;
    }
  
    .search-button {
      font-size: 16px;
    }
  
    .results-header {
      font-size: 24px;
    }
  
    .article-title {
      font-size: 18px;
    }
  }
  