/* =============================================
   PROJECTS PAGE
   ============================================= */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
  padding: 110px 30px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

/* Image container */
.card>img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.card:hover>img {
  transform: scale(1.06);
  filter: brightness(0.6);
}

/* Hover overlay */
.card::after {
  content: '\f35d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-size: 2.5rem;
  color: #10B981;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-content {
  padding: 18px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
  flex: 1;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.card-content button {
  background: linear-gradient(135deg, #10B981, #059669);
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-content button a {
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  white-space: nowrap;
}

.card-content button:hover {
  background: linear-gradient(135deg, #F97316, #ea580c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.card-content button:hover a {
  color: #fff;
}

/* =============================================
   MAINTENANCE MODAL
   ============================================= */
#maintenance-notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal {
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 18px;
  padding: 36px 30px;
  max-width: 480px;
  width: 90%;
  color: #CBD5E1;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.08);
  position: relative;
}

#close-notification {
  margin-top: 20px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 26px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

#close-notification:hover {
  background: linear-gradient(135deg, #F97316, #ea580c);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Light mode overrides */
.light-mode .card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-mode .card:hover {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.light-mode .card-title {
  color: #0F766E;
}

.light-mode .card-content {
  border-top-color: rgba(0, 0, 0, 0.06);
}