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

/* Variables and base reset */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --accent-color: #8b5cf6;
  --text-color: #f8fafc;
  --bg-color: #0f172a;
  --gradient-bg: linear-gradient(135deg, #1e3a8a, #2563eb, #7c3aed);
  --transition: 0.3s ease-in-out;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --focus-shadow: rgba(59, 130, 246, 0.3);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px 20px;
}


/* Section Title */
.section-title {
  text-align: center;
  text-transform: uppercase;
  font-size: 32px;
  letter-spacing: 2px;
  padding-bottom: 16px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover), var(--accent-color));
  background-clip: text;
  color: transparent;
  position: relative;
  animation: glowPulse 1.5s infinite alternate ease-in-out; /*Same animation*/
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-title::after {
  content: "";
  position: absolute;
  background: var(--text-color);
  width: 12px;
  height: 12px;
  bottom: -6px;
  left: 50%;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  transform: translateX(-50%);
}

/* Animation */
@keyframes glowPulse {
  from {
    filter: brightness(0.9);
    text-shadow: 0 0 8px var(--focus-shadow);
  }
  to {
    filter: brightness(2.0);
    text-shadow: 0 0 18px var(--accent-color);
  }
}

.back-link {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 18px;
  min-width: 90px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px 20px;
  color: var(--text-color);
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.back-link:hover,
.back-link:focus {
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-hover));
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px var(--focus-shadow);
  transform: translateY(-4px) scale(1.04);
  outline: none;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 50px;
}

/* Project Card Style */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.project-card p {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Button */
.btn-link {
  display: inline-block;
  background: var(--gradient-bg);
  color: white;
  padding: 10px 18px;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-color), var(--primary-hover));
}



/* ========== RESPONSIVE STYLES ========== */


@media (max-width: 1024px) {
  .projects-container {
    padding: 40px 20px;
    gap: 24px;
  }

  .project-card {
    width: 280px;
    padding: 20px;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .projects-container {
    flex-direction: column;
    align-items: center;
    padding: 30px 16px;
  }

  .project-card {
    width: 100%;
    max-width: 400px;
  }

  .btn-link {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .back-link {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .section-title {
    font-size: 24px;
    padding-bottom: 12px;
  }

  .section-title::after {
    width: 10px;
    height: 10px;
    bottom: -5px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .projects-container {
    padding: 20px 10px;
  }

  .project-card {
    padding: 16px;
    width: 100%;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 20px;
    letter-spacing: 1px;
  }
}
