:root {
  --bg: #ffffff;
  --text: #333;
  --accent: #000000;
  --border: #e5e5e5;

  /* 🌈 Pastel Button Colors */
  --pastel-purple: #d8b4fe;
  --pastel-blue:   #bfdbfe;
  --pastel-pink:   #fbcfe8;
  --pastel-green:  #bbf7d0;
  --pastel-yellow: #fef9c3;

  /* Matching Font Colors */
  --text-purple: #5b21b6;
  --text-blue:   #1e3a8a;
  --text-pink:   #9d174d;
  --text-green:  #065f46;
  --text-yellow: #78350f;
}

/* ✅ Smooth scroll between sections */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #444, #777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.navbar nav a:hover {
  color: var(--accent);
}

/* ================= SECTION BASE ================= */
section {
  padding: 4rem 0; /* ✅ just give spacing */
}

/* ================= HERO ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers everything */
}

.hero-heading {
  text-align: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, #f7f7f7, #f4f4f4);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem); /* 👈 scales title smoothly */
  background: black;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* 👈 responsive font size */
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  color: #555;
  text-align: center;
  line-height: 1.6;
  padding: 0 1rem; /* 👈 padding for smaller screens */
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap; /* 👈 buttons wrap on small screens */
}

.hero-image {
  flex: 1;
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-subtitle {
    max-width: 90%; /* tighter container on mobile */
  }
}


.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;

  /* 👇 Force uniform button width */
  min-width: 220px; /* adjust as needed */
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}




/* ================= FEATURES ================= */
.features {
  display: grid;
  grid-template-columns: 1fr;           /* 📱 mobile: 1 column */
  gap: 2rem;
  padding: 4rem 2rem;
  text-align: center;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature i {
  color: var(--accent);
  margin-bottom: 1rem;
  width: 36px;
  height: 36px;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.feature img {
  max-width: 100%;
  border-radius: 8px;
}

/* 📲 Tablet: 2 columns */
@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🖥 Desktop: 4 columns */
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ================= PROJECTS ================= */
.projects {
  padding: 2rem 0;
  background: #fafafa;
  text-align: center;
}

.projects h2 {
  margin: 1rem 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.projects-scroll {
  display: flex;
  overflow-x: auto;                /* 👈 scrolling works */
  overflow-y: hidden;
  align-items: center;
  gap: 1rem;
  padding-inline: calc(50vw - 125px);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50vw;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;

  -webkit-overflow-scrolling: touch; /* 👈 smooth scrolling on iOS */
  scrollbar-width: none;            /* 👈 hide scrollbar in Firefox */
}

.projects-scroll::-webkit-scrollbar {
  display: none;                    /* 👈 hide scrollbar in Chrome/Safari/Edge */
}


/* Project card */
.project-card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 250px;
  height: 280px;
  background: white;
  padding: 1.25rem;
  border-radius: 14px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* ✨ soft default shadow */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  border: 1px solid var(--border);  /* keeps border visible on hover */
}

/* 📱 Disable lift on mobile */
@media (max-width: 768px) {
  .project-card,
  .project-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

/* Project card title */
.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

/* ✨ Title hover colors (card hover triggers them) */
.project-card:hover .bt { color: #facc15; } /* Yellow */
.project-card:hover .pt { color: #3b82f6; } /* Blue */
.project-card:hover .ot { color: #ef4444; } /* Red */

/* Paragraph */
.project-card p {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
  line-height: 1.4;
}

/* Icon */
.project-card i {
  color: var(--accent);
  align-self: flex-end;
  font-size: 1.2rem;
}

/* Scroll buttons */
.projects-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.scroll-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}

.scroll-btn:hover {
  background:black;
  color: white;
  border: 1px solid transparent;
}





/* ================= FOOTER ================= */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: smaller;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--text);
}

.footer-links i {
  margin-right: 0.3rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  section {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .hero-title { 
    font-size: 2.5rem; 
  }

  .hero-subtitle { 
    font-size: 1rem; 
  }

  .navbar nav a { 
    margin-left: 1rem; 
    font-size: 0.9rem; 
  }
}
