/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar - Updated to match home page */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.Logo {
  text-decoration: none;
  color: white;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #666;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #666, #999);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Video Background */
.hero-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  z-index: -3;
  pointer-events: none;
  filter: brightness(0.35) contrast(1.05);
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.work-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 0;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.work-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease forwards;
}

.work-subtitle {
  font-size: 18px;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease forwards 0.3s;
}

/* Projects */
.projects-section {
  padding: 0px 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 60px 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
}

.footer-link {
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: white;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Section */
.filter-section {
  margin-bottom: 60px;
  text-align: center;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 10px 25px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08));
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.4);
}

/* Project Tech Tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Project Links/Buttons */
.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-link {
  display: inline-block;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 30px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08));
}

.project-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.project-link:hover::before {
  left: 100%;
}

.project-link.primary {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.3);
}

.project-link.primary:hover {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .work-title {
    font-size: 2.5rem;
  }

  .work-subtitle {
    font-size: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link {
    text-align: center;
  }
}