:root {
  --bg-color: #f4f6fb;
  --surface-color: #ffffff;
  --text-color: #1f2937;
  --muted-color: #4b5563;
  --accent-color: #feeb9f;
  --accent-soft: #fef3c7;
  --border-color: #e5e7eb;
  --shadow-color: rgba(15, 23, 42, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

p {
  font-size: 1rem;
  color: var(--muted-color);
  margin-bottom: 1.25rem;
}

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

img {
  max-width: 100%;
  display: block;
}

.navbar,
.navbar-brand,
.nav-link {
  background-color: var(--text-color);
  color: var(--surface-color);
  padding: 10px;
}

.nav-item {
  padding-left: 20px;
}

.navbar-brand:hover,
.navbar-brand:focus,
.nav-link:focus,
.navbar-nav .nav-link.show {
  color: var(--surface-color);
}

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

.navbar-nav .nav-link.active {
  color: var(--accent-color);
}


/*Home Page*/

header {
  background: linear-gradient(var(--accent-soft), var(--surface-color));
  padding: 80px 10%;
  min-height: 90vh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.intro {
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.intro h1 {
  max-width: 50vw;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.intro p {
  max-width: 45vw;
  font-size: 1.1rem;
  color: var(--muted-color);
  margin-bottom: 40px;
}

.intro a {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 15px;
  background-color: var(--text-color);
  color: var(--surface-color);
  font-size: 1rem;
  border: none;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.intro a:hover {
  cursor: pointer;
  color: var(--surface-color);
  background-color: var(--muted-color);
  transform: translateY(-3px);
  box-shadow: rgba(15, 23, 42, 0.18) 0px 3px 8px;
}

.intro-img img{
  max-width: 30vw;
  margin: 30px;
}

section {
  padding: 60px 10%;
  background-color: var(--surface-color);
}

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 32px;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--accent-soft);
}


/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr));
  gap: 24px;
  justify-items: center;
}

.project-card {
  width: 35vw;
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.project-image img{
  width: 35vw;
  height: 280px;
  border-radius: 12px 12px 0px 0px;
  object-fit: cover;
}

.project-card:hover {
  transform: translateY(-4px);
  cursor: pointer;
}

.project-info {
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  padding: 20px;
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.7rem;
}

.project-info p {
  color: var(--muted-color);
  font-size: 1.05rem;
  padding: 20px;
}

.project-info a {
  display: block;
  color: var(--text-color);
  font-size: 1rem;
  padding: 18px 20px;
  background-color: var(--accent-soft);
  border-radius: 12px;
  width: 50%;
  text-align: center;
}

.badge-list {
  padding: 15px 10px;
}

.badge-list .badge {
  display: inline-block;
  color: var(--text-color);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 400;
  background-color: var(--accent-soft);
  margin: 7px 7px 0 0;
}

/* About me Page*/
.about-me {
  display: flex;
  background: linear-gradient(var(--accent-soft), var(--surface-color));
  align-items: center;
}

.about-image img {
  max-width: 22vw;
  border-radius: 12px;
}

.about-container {
  max-width: 70vw;
  padding: 30px 10%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-container h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
}

.about-container h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: var(--muted-color);
  font-weight: 600;
}

.about-container p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.85;
  max-width: 65ch;
}


/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-direction: column;
}

.skill {
  background: var(--accent-soft);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.skill-subset h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 30px;
}

/*Contact Me*/
.contact-cards {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: start;
}

.contact-card {
  background-color: var(--accent-soft);
  padding: 20px;
  display: flex;
  margin-right: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: rgba(15, 23, 42, 0.18) 0px 3px 8px;
}

.contact-card:hover {
  cursor: pointer;
  transform: translateY(-3px);
  
}

.contact-card img {
  width: 50px;
}

.contact-card p {
  text-align: center;
  margin: auto;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Self-checkout Machine Page*/
.self-checkout-header {
  height: auto;
}

header h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 900;
  color: var(--text-color);
}

header h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--muted-color);
}

.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.info-card {
  background-color: var(--surface-color);
  box-shadow: rgba(15, 23, 42, 0.12) 0px 3px 8px;
  padding: 20px;
  width: 100%;
  margin: 10px;
  border-radius: 12px;
}

.info-card h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.info-card p {
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted-color);
}

.info-card p span {
  display: block;
}

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

.project-section p {
  font-size: 1.05rem;
  max-width: 68ch;
}

.project-section h3 {
  font-size: 2rem;
  font-weight: 600;
  padding: 30px;
}

section p {
  font-size: 1rem;
}

.sub-section {
  display: flex;
  flex-direction: row;
  margin: 80px 0;
  width: 60vw;
  align-items: center;
  justify-content: space-between;
}

.sub-section h3 {
  font-size: 1.7rem;
  font-weight: 700;
  width: 30%;
}

.sub-section p,
.sub-section ul {
  font-size: 1rem;
  width: 70%;
}

.vertical-layout {
  flex-direction: column !important;
  width: 100% !important;
  text-align: center;
}

.vertical-layout h3 {
  width: 100% !important;
  margin-bottom: 1rem;
}

.vertical-layout p,
.vertical-layout ul {
  width: 100% !important;
}

.pitch-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.pitch-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.pitch-card h3 {
  margin-bottom: 0.85rem;
  color: var(--text-color);
  font-size: 1.2rem;
}

.pitch-card p {
  color: var(--muted-color);
  line-height: 1.75;
  font-size: 0.98rem;
  margin: 0;
}

.question {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  text-align: center;
  padding: 40px;
  background-color: var(--accent-soft);
  border-radius: 25px;
  color: var(--muted-color);
  margin: 20px;
}

.quotes,
.needs,
.mvps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  text-align: center;
  gap: 50px;
}

q,
.needs p,
.mvps p {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--accent-soft);
  border-radius: 25px;
  padding: 25px;
  color: var(--muted-color);
}


.primary-research-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80vw;
  align-items: start;
}

.research-method {
  display: flex;
  flex-direction: column;
  width: 25%;
  padding: 30px;
  text-align: center;
  justify-content: start;
}

.research-method img{
  width: 100%;
  margin-bottom: 20px;
}

.research-method h5{
  font-size: 2.5rem;
  font-weight: 700;
}

.research-method div{
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.research-method div p{
  font-size: 1.2rem;
}

#affinity-map-links {
  font-size: 1.2rem;
}

.affinity-maps {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
}

.data-infographics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
}

#persona img, #empathy-map img {
  width: 80vw;
  margin: 50px;
}

.carousel-control-prev, .carousel-control-next {
  background:#333;
}



/* Footer */
footer {
  padding: 40px 10%;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  color: var(--muted-color);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  header {
    align-items: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .intro {
    display: flex;
    align-items: center;
  }

  .intro h1 {
    font-size: 3rem;
  }

  .intro p {
    font-size: 1.7rem;
  }

  .intro a {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .projects {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .project-card {
    width: 80vw;
  }

  .project-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .project-card p{
    padding:10px;
    width: 80vw;
    font-size: 0.8rem ;
  }

  .project-card h3 {
    padding:10px;
    width: 80vw;
    font-size: 1.2rem ;
  }

  .about-image {
    display: none;
  }

  .affinity-maps {
    grid-template-columns: 1fr;
  }

  .data-infographics {
    grid-template-columns: 1fr;
  }

  .header-container h1{
    font-size: 2.7rem;
  }

  .header-container h3{
    font-size: 1.2rem;
  }

  .info-container, .quotes, .needs {
    grid-template-columns: 1fr;
    font-size: 1.2rem;
  }

  .info-card {
    width:70vw;
    text-align: center;
  }

  .sub-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .sub-section h3, .question{
    width: 80vw;
    font-size: 1.2rem;
  }

  .sub-section p, .sub-section ul{
    width:80vw;
    font-size: 1rem;
  }

  .research-method {
    width: 70vw;
    align-items: center;
  }

  .research-method img {
    width: 40%;
  }

  .research-method h5 {
    font-size: 1.2rem;
    text-align: center;
  }

  .affinity-maps, .data-infographics{
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .affinity-maps img, .data-infographics img{
    max-width: 100%;
  }

  .project-section img {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .intro h1 {
    font-size: 2rem;
  }

  .intro p {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .intro a {
    font-size: 0.8rem;
  }
}