body {
  background: linear-gradient(120deg, #d1d5db 0%, #a3a8af 100%);
  min-height: 100vh;
}

/* Project section background: slightly darker gray */
.projects {
  background: transparent;
  padding: 5.5rem 2rem 2rem 2rem; /* More top padding for space below navbar */
  text-align: left;
  border-radius: 0;
  box-shadow: none;
}

.projects-title {
  margin-bottom: 2.5rem;
  margin-left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* Center horizontally */
  gap: 1.2rem; /* Space between RECENT and PROJECTS */
}

.projects-title-main,
.projects-title-secondary {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  line-height: 1;
}

.projects-title-main {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: #080808;
  letter-spacing: -2px;
  line-height: 0.95;
  display: block;
}

.projects-title-secondary {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: #545151;
  letter-spacing: -2px;
  line-height: 0.95;
  display: block;
}

.admin-btn {
  padding: 0.8rem 1.5rem;
  background-color: #1a2526;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-btn:hover {
  background-color: #00c4b4;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-form input,
.project-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.project-form textarea {
  resize: vertical;
}

.project-form button {
  padding: 0.8rem;
  background-color: #1a2526;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.project-form button:hover {
  background-color: #00c4b4;
}

.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ice-cube glassmorphism card effect */
.project-card {
  background: rgba(255, 255, 255, 0.07); /* ultra transparent */
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.22),
    0 2px 16px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 2.5px solid rgba(255, 255, 255, 0.55); /* strong white border */
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 1.6s cubic-bezier(0.23, 1.02, 0.62, 0.98) both; /* slower animation */
}

/* Frosted glass highlight */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 11px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c4b4, #1a2526);
  color: #fff;
  font-size: 1.5rem;
}

.project-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Fix social icons to top-right corner */
.social-icons {
  position: fixed;
  top: 5px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  align-items: center;
  pointer-events: auto;
}
.social-icons a {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.social-icons a:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.5);
}

/* Animation keyframes */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stagger effect for multiple cards (slower) */
.project-card:nth-child(1) {
  animation-delay: 0.15s;
}
.project-card:nth-child(2) {
  animation-delay: 0.35s;
}
.project-card:nth-child(3) {
  animation-delay: 0.55s;
}
.project-card:nth-child(4) {
  animation-delay: 0.75s;
}
.project-card:nth-child(5) {
  animation-delay: 0.95s;
}
.project-card:nth-child(6) {
  animation-delay: 1.15s;
}

@media (max-width: 768px) {
  .projects {
    padding-top: 3.5rem;
  }
  .projects-title-main,
  .projects-title-secondary {
    font-size: 2.2rem;
  }
}
