/* ---------------- Base ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #222;
}

h1, h2, h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

.highlight {
  color: #4f46e5; /* Indigo accent */
  font-weight: 600;
}

/* ---------------- Navbar ---------------- */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo span {
  color: #4f46e5;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4f46e5;
}

/* ---------------- Hero (reduced vertical space) ---------------- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3.2rem 2rem;            /* reduced padding */
  min-height: 44vh;               /* reduced min-height */
  background: linear-gradient(135deg, #eef2ff, #f5f7ff);
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.btn.see-work {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn.see-work:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

/* ---------------- About ---------------- */
.about {
  padding: 5rem 2rem;
  background: #fff;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.about-lead {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-text {
  color: #444;
  margin-bottom: 2rem;
}

/* stronger visible shadow for cards */
.about-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13); /* increased shadow so card is visible */
}

/* ensure about-stats spacing */
.about-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4f46e5;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
}

.about-note {
  font-size: 0.9rem;
  color: #555;
}

/* ---------------- Skills ---------------- */
.skills-section {
  padding: 5rem 2rem;
  background: #f9fafb;
}

.skills-section .section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* keep the original card size; increase shadow and spacing inside tags */
.skill-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2,6,23,0.06); /* stronger shadow for visibility */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* hover lift for cards (applies after reveal active) */
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(2,6,23,0.08);
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: #000000;
}

/* do not change tag/button styling — leave .tag as blue pill */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem; /* increased spacing between tags per your request */
}

.tag {
  display: inline-block;
  background: #5861ff; /* keep the blue pill style */
  color: #fff;
  font-size: 0.9rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

/* ---------------- Projects ---------------- */
.projects {
  padding: 5rem 2rem;
  background: #f9fafb;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  /* stronger shadow for visibility */
  box-shadow: 0 18px 40px rgba(2,6,23,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(2,6,23,0.08);
}

.card-top {
  margin-bottom: 0.8rem;
}

.tag.small {
  display: inline-block;
  background: #5861ff;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.card-btn {
  display: inline-block;
  margin-top: 0.8rem;
  color: #4f46e5;
  font-weight: 600;
}

/* ---------------- Contact ---------------- */
.contact {
  padding: 5rem 2rem;
  background: #fff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* three columns: left / middle / right */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-left, .contact-middle, .contact-right {
  min-width: 0;
}

/* left social pills */
.contact-small {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f3f4f6;
  border-radius: 30px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.24s, transform 0.18s;
}
.pill:hover { transform: translateY(-3px); background:#e9eefb; }

/* middle quick contact */
.contact-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #000000;
}
.contact-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #444;
}
.icon-small {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eef6ff;
  color: #4f46e5;
  font-size: 0.85rem;
  padding: 4px;
}

/* link-style button for phone/email copy in quick contact */
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #4f46e5;
  cursor: pointer;
  font-weight: 600;
}

/* contact form column */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 0.95rem;
  background:#fff;
}

.contact-form textarea {
  resize: none;
}

.form-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.form-btn:hover { background:#4338ca; }

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 2rem;
  text-align: center;
  background: #f9fafb;
  font-size: 0.9rem;
  color: #666;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(8px);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Reveal animation (fade+slide) ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal.active:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(2,6,23,0.08);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h2 { font-size: 1.6rem; }
  .skills-grid { grid-template-columns: 1fr; }
}
