/* Reset spacing issues */
body, html {
  margin: 0;
  padding: 0;
}

/* Hero section */
header.hero {
  width: 100%;
  min-height: calc(100vh - 40px); /* full screen minus navbar */
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  text-align: center;
  border-bottom: 2px solid #a1c181;
  padding: 0 1.5rem; /* breathing room on mobile */
}

/* Text wrapper */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* consistent spacing */
}

/* Name */
.hero-name {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: #003049;
  margin: 0;
}

/* Role */
.hero-title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  color: #EC8997;
  margin: 0;
}

/* Description */
.hero-subtitle {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #a1c181;
  line-height: 1.5; /* better readability */
  opacity: 0.9;
  max-width: 600px; /* prevents super long lines */
}

/* CTA buttons */
.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* wraps on small screens */
  justify-content: center;
}

.hero-text {
  animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile refinements */
@media (max-width: 767px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
  }

  .hero-text {
    margin-bottom: 40px;
  }

}


/* Primary CTA */
.btn-primary-cta {
  padding: 12px 28px;
  background-color: #EC8997;
  color: #eff0f4;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary-cta:hover {
  background-color: #eff0f4;
  color: #EC8997;
  border: 2px solid #EC8997;
  transform: translateY(-2px);
}

/* Secondary CTA */
.btn-secondary-cta {
  padding: 12px 28px;
  background-color: transparent;
  color: #003049;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary-cta::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background-color: #EC8997;
  transition: width 0.25s ease;
}

/* Hover state */
.btn-secondary-cta:hover {
  color: #EC8997;
  transform: translateY(-2px);
}


.btn-secondary-cta:hover::after {
  width: 60%;
}

/* Mobile alignment */
@media (max-width: 767px) {
  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* -----------Quote typewriter ---------- */
.quote-typewriter {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #eff0f4;
  border-top: 1px solid rgba(0, 48, 73, 0.12);
  border-bottom: 1px solid rgba(0, 48, 73, 0.12);
}

.quote-line {
  margin: 0;
  max-width: 900px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #003049;
  line-height: 1.15;
}

/* highlight for the pink portion */
.quote-highlight {
  color: #EC8997;
  font-weight: 600;
}

/* blinking caret */
.caret {
  display: inline-block;
  margin-left: 6px;
  animation: blink 0.8s step-end infinite;
  color: #EC8997;
}

@keyframes blink {
  50% { opacity: 0; }
}
/* Projects Section */
.projects-section {
  padding: 100px 0;
  background-color: #eff0f4;
}

/* Project Card */
.project-card {
  display: block;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Image wrapper */
.project-image {
  position: relative;
  overflow: hidden;
}

/* Image */
.project-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover image effect */
.project-card:hover .project-image img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* Text area */
.project-info {
  padding: 20px 24px 24px;
}

/* Tag */
.project-tag {
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EC8997;
  display: inline-block;
  margin-bottom: 6px;
}

/* Title */
.project-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #003049;
  margin: 0;
}

/* Credibility strip */
.cred-strip {
  padding: 60px 0;
  background-color: #eff0f4;
  overflow: hidden;
}

.cred-label {
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #003049;
  opacity: 0.7;
  margin-bottom: 24px;
}

/* Marquee container */
.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Track */
.logo-track {
  display: flex;
  width: max-content;
  animation: scrollLogos 30s linear infinite;
}

/* Logo styling */
.logo-track img {
  height: 42px;
  margin-right: 48px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Hover on individual logos */
.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* Slow down when hovering over the strip */
.logo-marquee:hover .logo-track {
  animation-duration: 90s; /* slows the loop */
}

/* Keyframes */
@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .logo-track img {
    height: 34px;
    margin-right: 32px;
  }
}