

/* ==========================
   Global Styles
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================
   Header
========================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 32, 39, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  animation: slideDown 1s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  font-size: 1.8rem;
  color: #00eaff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
  text-decoration: none;
}
.logo:hover {
  color: #66fcf1;}

.navbar a {
  color: #cfe8ff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00eaff;
  transition: 0.4s ease;
}

.navbar a:hover {
  color: #00eaff;
}

.navbar a:hover::after {
  width: 100%;
}

/* ==========================
   Project Section
========================== */
.projects-section {
  padding: 140px 10% 60px;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-title {
  font-size: 2.4rem;
  /* font-weight: bold; */
  letter-spacing: 2px;
  margin-bottom: 60px;
  color: #00eaff;
  text-transform: capitalize;
  text-decoration: none;
  /* text-decoration: 2px solid underline #00eaff; */
  position: relative;
  font-weight: 700;
  display: inline-block;

}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00eaff, #0077b6);
  transform: translateX(-50%);
  border-radius: 10px;
  animation: glowLine 2s infinite alternate;
}

@keyframes glowLine {
  from {
    box-shadow: 0 0 10px #00eaff;
  }
  to {
    box-shadow: 0 0 25px #00eaff;
  }
}

/* ==========================
   Projects Grid
========================== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
  align-items: start;
}

/* ==========================
   Project Card
========================== */
.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 30px 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.1);
  text-align: left;
  transform: translateY(30px);
  opacity: 0;
  animation: cardFadeIn 1.5s ease forwards;
  transition: all 0.5s ease;
}

.project-card:nth-child(1) {
  animation-delay: 0.3s;
}
.project-card:nth-child(2) {
  animation-delay: 0.5s;
}
.project-card:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
  border-color: rgba(0, 238, 255, 0.6);
}

/* ==========================
   Project Text
========================== */
.project-card h3 {
  font-size: 1.5rem;
  color: #00eaff;
  margin-bottom: 15px;
  position: relative;
}

.project-card h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #00eaff;
  border-radius: 10px;
}

.project-card p {
  color: #d1e5f0;
  font-size: 1rem;
  line-height: 1.6;
  margin: 20px 0;
  transition: color 0.3s ease;
}

.project-card:hover p {
  color: #e8faff;
}

/* ==========================
   Links
========================== */
.project-links {
  margin-top: 10px;
}

.demo-link {
  display: inline-block;
  color: #00eaff;
  text-decoration: none;
  border: 2px solid #00eaff;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.demo-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00eaff, #0077b6);
  transition: all 0.5s ease;
  z-index: -1;
}

.demo-link:hover::before {
  left: 0;
  
}

.demo-link:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
}

/* ==========================
   Footer
========================== */
footer {
  margin-top: 80px;
  text-align: center;
  color: #a8c6d6;
  font-size: 0.9rem;
  animation: fadeIn 2s ease;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .project-card {
    padding: 25px 20px;
  }
}
