:root {
    --background-color: #0f0f0f;
    --header-color: #1b1b1b;
    --text-color: #eaeaea;
    --highlight-color: #ffd700;
}

[data-theme="light"] {
    --background-color: #ffffff;
    --header-color: #f4f4f4;
    --text-color: #1a1a1a;
    --highlight-color: #ffc107;
}

body {
   font-family: "Barlow Condensed", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
}

header.sticky-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-color);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    max-width: 120px;
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.desktop-nav a:hover {
    color: var(--highlight-color);
}

.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--highlight-color);
}

.theme-toggle-desktop {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.theme-toggle-mobile {
    font-size: 2rem;
    margin-top: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--header-color);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin: 1rem 0;
}

.mobile-nav a {
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
}

.mobile-nav a:hover {
    color: var(--highlight-color);
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .theme-toggle-desktop {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .mobile-nav {
        display: none;
    }

    .theme-toggle-mobile {
        display: none;
    }
}

.projects-container {
    padding: 5rem;
    text-align: center;
  }

  .projects-container h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
  
  .projects-container p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    justify-content: center;
  }
  
  .project-card {
    position: relative;
    width: 90%;
    max-width: 100%;
    background: var(--header-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
  
  .project-image {
    position: relative;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .project-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.1);
  }
  
  .project-card:hover .project-image video {
    opacity: 1;
  }
  
  .hover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--highlight-color);
    padding: 1rem 2rem;
    font-size: 2rem;
    text-align: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .project-card:hover .hover-overlay {
    opacity: 1;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-content h2 {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
  }
  
  .project-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .project-links a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
  }
  
  .project-links a:hover img {
    transform: scale(1.3);
  }
  
  /* Responsive styling */
  @media screen and (max-width: 768px) {
    .projects-container {
      padding: 1rem;
    }
  
    .project-card {
      width: 100%;
    }
  
    .project-image img {
      height: 250px;
    }
  
    .project-content h2 {
      font-size: 1.8rem;
    }
  
    .project-content p {
      font-size: 1rem;
    }
  
    .project-links a img {
      width: 40px;
      height: 40px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .project-content h2 {
      font-size: 1.6rem;
    }
  
    .project-content p {
      font-size: 0.9rem;
    }
  
    .project-links a img {
      width: 35px;
      height: 35px;
    }
  }

  .project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  .project-links a svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
  }
  
  .project-links a:hover svg {
    transform: scale(1.2);
  }

  :root {
    --github-icon-color: #fff;
  }
  
  [data-theme="light"] {
    --github-icon-color: #000; /* Black fill for light theme */
  }
  
  .project-links a {
    color: var(--github-icon-color);
  }
  
  .project-links a svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, fill 0.3s ease;
  }
  
  .project-links a:hover svg {
    transform: scale(1.2);
  }