/* ============ GLOBAL ============ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

/* ============ HEADER ============ */
.header {
  text-align: center;
  padding: 40px 20px;
  background: #020617;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.contact-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #38bdf8;
  color: #020617;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.contact-btn:hover {
  background: #0ea5e9;
}

/* ============ SUBHEADER ============ */
.subheader {
  text-align: center;
  padding: 20px;
  background: #020617;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
}

/* ============ SECTIONS ============ */
.section {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.section h2 {
  margin-bottom: 20px;
}

/* ============ CARDS ============ */
.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ============ LISTS ============ */
.card ul {
  padding-left: 20px;
}

.card li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ============ PROJECTS ============ */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* PROJECT IMAGE (FINAL FIXED VERSION) */
.project-img {
  width: 60%;
  height: 400px;              /* visible & consistent */
  object-fit: cover;          /* fills space */
  object-position: center;       /* shows UI header */
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

/* ============ PROJECT BUTTONS ============ */
.project-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Live Demo */
.btn-live {
  background: #38bdf8;
  color: #020617;
}

.btn-live:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

/* GitHub */
.btn-github {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.btn-github:hover {
  transform: translateY(-2px);
}

/* ============ SKILLS ============ */
.skills-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.skills-list li {
  background: #1e293b;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

/* ============ LINKS ============ */
a {
  color: #38bdf8;
}

a:hover {
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .project-img {
    height: 200px;
  }
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1e293b;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.navbar a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
}

/* Hover underline animation */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* Contact highlight */
.nav-contact {
  color: #38bdf8;
  font-weight: bold;
}
