* {
  box-sizing: border-box;
}


/* RESET */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.hero-title {
  word-break: break-word;
  line-height: 1.2;
}


/* ================= HEADER ================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 40px;
  background: linear-gradient(90deg, #0f172a, #020617);
  color: #e5e7eb;

  position: sticky;
  top: 0;
  z-index: 1000;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo h1 {
  margin: 0;
  font-size: 20px;
  /* slightly bigger */
  font-weight: 700;
  /* stronger */
  letter-spacing: 0.3px;
}

/* PROFILE IMAGE */
.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
}

/* NAV */
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5f5;
  font-size: 18px;
  /* 🔥 increased */
  font-weight: 500;
  position: relative;
  padding: 6px 4px;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ACTION BUTTONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  /* slightly smoother */
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.resume-btn {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  transform: translateY(-2px);
}

/* 🔥 ADD THIS */
.resume-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
}


/* ================= HERO ================= */
#hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.highlight {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: #4b5563;
  margin-bottom: 10px;
}

.hero-description {
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 25px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.primary-btn {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

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

.secondary-btn {
  background: linear-gradient(135deg, #e0f2fe, #e0e7ff);
  color: #1e293b;
  border: none;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* ================= SECTIONS ================= */
section {
  background: white;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;

  width: 100%;
  max-width: 1000px;
}


/* ================= ABOUT ================= */
.about-highlights strong {
  color: #2563eb;
}

/* ================= SKILLS ================= */
.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.skill-group {
  background: #f9fafb;
  padding: 18px;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  min-height: 130px;
  transition: 0.3s ease;
}

.skill-group:hover {
  transform: translateY(-3px);
}

.skill-group h3 {
  margin: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  background: linear-gradient(135deg, #e0f2fe, #e0e7ff);
  color: #1e293b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.skill-tags span:hover {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  transform: translateY(-2px);
}

/* ================= PROJECTS ================= */
.project-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  width: 100%;
  overflow: hidden;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  /* KEY FIX */
  gap: 6px;
}

.tag {
  white-space: nowrap;
  /* prevents breaking text */
}

.project-card ul {
  padding-left: 18px;
  word-wrap: break-word;
}



.skills-tags {
  margin: 10px 0;
}

.tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin: 4px;
}

.section-title {
  margin-top: 10px;
  font-weight: 600;
  color: #374151;
}

/* ================= CONTACT ================= */
.contact-item {
  background: #f9fafb;
  padding: 12px;
  border-radius: 6px;
}

/* ================= FOOTER ================= */
.footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);

  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 300px;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 768px) {

  .header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;


    padding: 12px 16px;
    gap: 12px;

  }

  .logo {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  section {
    margin: 12px;
    /* small side spacing */
    max-width: 100%;
    /* FULL WIDTH */
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
    /* ONE COLUMN */
  }
}



.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

.footer-links a:hover::after {
  width: 100%;
}