/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #2E4057;
  --white: #ffffff;
  --dark-gray: #1C1F33;
  --medium-gray: #555555;
  --light-gray: #f0f0f0;
  --off-white: #f8f8f8;
  --gradient: linear-gradient(135deg, #222222 0%, #000000 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: #003B36;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Header - Minimalist Black */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 12px 0 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  animation: fadeInUp 1s ease-out;
}

/* Filter Section - Elegant Black & White */
.filter-section {
  background: var(--white);
  padding: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-section.sticky {
  padding: 15px 0;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 12px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--light-gray);
  color: var(--medium-gray);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--black);
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Projects Section - Clean White */
.projects-section {
  padding: 100px 0;
  background-color: var(--off-white);
  position: relative;
}



.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 10px;
}

/* Project Cards - Monochrome Elegance */
.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--hover-shadow);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--black);
}

/* For actual project images */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: grayscale(100%);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Keep placeholder styling for fallback */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  background: var(--black);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 15px;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-links {
  transform: translateY(0);
}

.project-link {
  background: var(--white);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
}

.project-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--black);
  position: relative;
  padding-bottom: 15px;
}

.project-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

.project-info p {
  color: var(--medium-gray);
  margin-bottom: 25px;
  line-height: 1.7;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tag {
  background: var(--light-gray);
  color: var(--black);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid black;
}

.project-card:hover .tag {
  background: var(--white);
  border-color: var(--light-gray);
}

/* Footer - Sleek Black */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 20px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--black);
  transform: skewY(-3deg);
  transform-origin: top right;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
}

.footer-section h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-section ul li a::before {
  content: "→";
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--white);
  padding-left: 20px;
}

.footer-section ul li a:hover::before {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.social-link:hover {
  color: var(--black);
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-title {
    font-size: 3.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.8rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-section h3::after,
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section ul li a {
    padding-left: 0;
  }

  .footer-section ul li a::before {
    display: none;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .page-header {
    padding: 80px 0 70px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .projects-section {
    padding: 60px 0;
  }

  .project-info {
    padding: 20px;
  }

  .project-info h3 {
    font-size: 1.4rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--medium-gray);
}

/* Additional Animations */
.project-card:nth-child(1) {
  animation-delay: 0.1s;
}
.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.3s;
}
.project-card:nth-child(4) {
  animation-delay: 0.4s;
}
.project-card:nth-child(5) {
  animation-delay: 0.5s;
}
.project-card:nth-child(6) {
  animation-delay: 0.6s;
}
