* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* NAVBAR */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
}

.resume-btn {
  background: #2563eb;
  color: white !important;
  padding: 6px 12px;
  border-radius: 6px;
}

/* HERO */
.home {
  min-height: 100vh;
  padding: 120px 20px 60px;
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.home-text span {
  color: #2563eb;
}

.home-buttons {
  margin-top: 20px;
}

.btn {
  background: #2563eb;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 10px;
}

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.home-image img {
  width: 280px;
  border-radius: 50%;
}

/* PROJECTS */
/* ================= PROJECTS ================= */

.projects {
  padding: 70px 20px;
  background: #ffffff;
  text-align: center;
}

.project-grid {
  max-width: 1050px;
  margin: 35px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* PROJECT CARD */
.project-card {
  position: relative;
  min-height: 360px;
  padding: 18px;
  border-radius: 16px;
  overflow: hidden;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* IMAGE FULL CARD */
.project-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

/* STRONG OVERLAY (READABILITY FIX) */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2,6,23,0.92),
    rgba(2,6,23,0.6),
    rgba(2,6,23,0.35)
  );
  z-index: 1;
}

/* CONTENT LAYER */
.project-card > *:not(.project-image) {
  position: relative;
  z-index: 2;
}

/* TEXT CONTAINER (KEY FIX) */
.project-card h3,
.project-desc,
.project-tags,
.project-buttons {
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

/* BADGE */
.project-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* TITLE */
.project-title {
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
}

/* DESCRIPTION */
.project-desc {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.5;
}

/* TAGS */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  background: rgba(255,255,255,0.18);
  color: #f8fafc;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

/* BUTTONS */
.project-buttons {
  display: flex;
  gap: 10px;
}

.btn-sm {
  background: #2563eb;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.btn-sm-outline {
  border: 1px solid #f8fafc;
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
}

/* MOBILE */
@media (max-width: 480px) {
  .project-card {
    min-height: 330px;
  }

  .project-title {
    font-size: 17px;
  }
}

/* TECH */
.tech {
  padding: 70px 20px;
  text-align: center;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.tech-grid span {
  background: #e5e7eb;
  padding: 10px 16px;
  border-radius: 8px;
}

/* CONTACT */
.contact {
  padding: 70px 20px;
  background: white;
  text-align: center;
}

.social-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #2563eb;
}

/* FOOTER */
footer {
  padding: 20px;
  background: #020617;
  color: white;
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .home {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }
}
/* ================= DARK MODE ================= */

.dark-mode {
  background: #0f172a;
  color: #e5e7eb;
}

/* Navbar */
.dark-mode header {
  background: #020617;
  border-bottom: 1px solid #334155;
}

.dark-mode .nav-links a {
  color: #e5e7eb;
}

/* Hero */
.dark-mode .home {
  background: #0f172a;
}

.dark-mode .btn-outline {
  color: white;
  border-color: white;
}

/* Projects */
.dark-mode .projects {
  background: #020617;
}

.dark-mode .project-card {
  background: #020617;
  border: 1px solid #334155;
}

/* Tech */
.dark-mode .tech {
  background: #0f172a;
}

.dark-mode .tech-grid span {
  background: #1e293b;
  color: #e5e7eb;
}

/* Contact */
.dark-mode .contact {
  background: #020617;
}

/* Footer */
.dark-mode footer {
  background: black;
}
