:root {
  --cream: #fff4e8;
  --page: #ffffff;
  --ink: #1c1b1d;
  --red: #E04934;
  --yellow: #F5C20D;
  --blue: #246398;

  --heading-font: "Comfortaa", sans-serif;
  --body-font: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
}


/* =========================
   Buttons and Tags
   ========================= */

.welcome-buttons {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-custom {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-custom:hover {
  transform: translateY(-3px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-red {
  background: var(--red);
  color: var(--page);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-blue {
  background: var(--blue);
  color: var(--page);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-outline {
  background: var(--page);
  color: var(--blue);
  border: 3px solid var(--blue);
}

.btn-outline-red {
  background: var(--cream);
  color: var(--red);
  border: 3px solid var(--red);
}

.project-buttons {
  display: flex;
  gap: 16px; /* same spacing as hero buttons */
  flex-wrap: wrap;
}

/* =========================
   Navbar
   ========================= */

.site-header .nav-wrapper {
  background: var(--ink);
  padding: 0 10px;
  border-bottom: 4px solid var(--red);
  height: 80px;
}

/* brand */
.site-header .nav-wrapper .brand-logo {
  color: var(--page);
  font-family: var(--heading-font);
  font-weight: 700;
}

.site-header .nav-wrapper .brand-logo,
.site-header .nav-wrapper ul li a,
.site-header .sidenav-trigger i {
  line-height: 80px;
}

/* links */
.site-header .nav-wrapper ul li a {
  color: var(--page);
  font-weight: 700;
}

/* hover */
.site-header .nav-wrapper ul li a:hover {
  background: transparent;
  color: var(--yellow);
}

/* =========================
   Sidenav (sassy mobile menu)
   ========================= */

.sidenav {
  border-right: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* links inside sidenav */
.sidenav li a {
  color: var(--ink);
  font-weight: 700;
}

/* hover state */
.sidenav li a:hover {
  background: transparent;
  color: var(--red);
}

/* mobile trigger */
.site-header nav .sidenav-trigger i.material-icons {
  color: var(--page);
  font-size: 2rem;
  line-height: 64px;
  height: 64px;
}

/* =========================
   Welcome Section
   ========================= */

.welcome-section {
  position: relative;
  min-height: 90vh;
  padding: 60px 0 20px;
  overflow: hidden;
  background:
          radial-gradient(circle at 6% 24%, var(--blue) 0 90px, transparent 92px),
          radial-gradient(circle at 92% 18%, var(--red) 0 70px, transparent 72px),
          radial-gradient(circle at 88% 82%, var(--blue) 0 95px, transparent 97px),
          var(--cream);
}

.welcome-section::before {
  content: "";
  position: absolute;
  right: 10%;
  top: 18%;
  width: 340px;
  height: 400px;
  background-image: radial-gradient(var(--ink) 7px, transparent 8px);
  background-size: 34px 34px;
  opacity: 0.9;
  z-index: 1;
}

.welcome-section::after {
  content: "";
  position: absolute;
  left: 3%;
  bottom: 12%;
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 140px solid var(--red);
  opacity: 0.95;
}

.welcome-content {
  position: relative;
  z-index: 2;
}
.welcome-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.welcome-title-wrap h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.summary-card {
  max-width: 940px;
  padding: 28px;
  background: var(--page);
  border: 6px solid var(--ink);
  border-radius: 8px;
  box-shadow:
          10px 10px 0 var(--red),
          20px 20px 0 var(--yellow),
          30px 30px 0 var(--blue);
}

/* paragraphs inside summary */
.summary-card p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* remove extra space after last paragraph */
.summary-card p:last-child {
  margin-bottom: 0;
}

.highlight-line {
  background: linear-gradient(
          transparent 60%,
          var(--yellow) 60%
  );
  padding: 0 4px;
  font-weight: 600;
}

/* =========================
   Welcome Art / Ducky
   ========================= */

.welcome-art {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ducky-img {
  width: clamp(110px, 16vw, 190px);
  height: auto;
  flex-shrink: 0;
  transform: translateX(-35px);
  filter: drop-shadow(8px 10px 0 rgba(28, 27, 29, 0.18));
}

.bauhaus-shape {
  position: absolute;
  z-index: 1;
}

.circle-red {
  width: 120px;
  height: 120px;
  right: 0;
  top: 20px;
  border-radius: 50%;
  background: var(--red);
}

.circle-blue {
  width: 90px;
  height: 90px;
  left: 20px;
  bottom: 60px;
  border-radius: 50%;
  background: var(--blue);
}

.triangle-red {
  right: -20px;
  bottom: 20px;
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 180px solid var(--red);
}

/* dotted Bauhaus detail */
.welcome-art::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 180px;
  width: 120px;
  height: 90px;
  background-image: radial-gradient(var(--ink) 4px, transparent 5px);
  background-size: 24px 24px;
  z-index: 2;
}

/* =========================
   My Work Section
   ========================= */

.work-section {
  background: var(--cream);
  padding: 25px 0 20px;
}

.section-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 24px;
}

.work-section .section-title {
  width: fit-content;
  margin-left: auto;
  margin-right: 13vw;
  background: linear-gradient(
          transparent 68%,
          var(--yellow) 68%
  );
  padding: 0 8px;
}

/* individual project section */
.project-section {
  position: relative;
  min-height: 560px;
  padding: 56px 24px;
  overflow: hidden;
}

:root {
  --line: 22px;
  --gap: 18px;
}

.ribbon {
  position: absolute;
  top: 50%;
  left: 13vw;
  transform: translateY(-50%);
  width: 105vw;
  height: 440px;
  pointer-events: none;
  z-index: 1;
}

.ribbon-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;

  border-top: var(--line) solid var(--red);
  border-bottom: var(--line) solid var(--red);
  border-left: var(--line) solid var(--red);
  border-right: 0;
  border-radius: 240px 0 0 240px;
}

.ribbon-line.ribbon-yellow {
  top: calc(var(--line) + var(--gap));
  left: calc(var(--line) + var(--gap));
  width: calc(100% - var(--line) - var(--gap));
  height: calc(100% - ((var(--line) + var(--gap)) * 2));
  border-color: var(--yellow);
  border-radius: 198px 0 0 198px;
}

.ribbon-line.ribbon-blue {
  top: calc((var(--line) + var(--gap)) * 2);
  left: calc((var(--line) + var(--gap)) * 2);
  width: calc(100% - ((var(--line) + var(--gap)) * 2));
  height: calc(100% - ((var(--line) + var(--gap)) * 4));
  border-color: var(--blue);
  border-radius: 156px 0 0 156px;
}

/* flipped section */
.project-section.is-flipped .ribbon {
  left: auto;
  right: 13vw;
}

.project-section.is-flipped .ribbon-line {
  border-left: 0;
  border-right: var(--line) solid var(--red);
  border-radius: 0 240px 240px 0;
}

.project-section.is-flipped .ribbon-line.ribbon-yellow {
  left: 0;
  right: calc(var(--line) + var(--gap));
  border-right-color: var(--yellow);
  border-radius: 0 198px 198px 0;
}

.project-section.is-flipped .ribbon-line.ribbon-blue {
  left: 0;
  right: calc((var(--line) + var(--gap)) * 2);
  border-right-color: var(--blue);
  border-radius: 0 156px 156px 0;
}

/* project card */
.project-card {
  position: relative;
  z-index: 2;
  border: 5px solid var(--ink);
  max-width: 850px;
  margin-left: auto;
  margin-right: 7vw;

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;

  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.project-info h3 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.project-info p {
  margin: 0 0 18px;
  line-height: 1.55;
}

.screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.tag {
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--page);
}

/* flipped section */

.project-section.is-flipped .project-card {
  margin-left: 12vw;
  margin-right: auto;
  grid-template-columns: 1fr 320px;
}

.project-section.is-flipped .ribbon {
  left: auto;
  right: 13vw;
}

.project-section.is-flipped .screenshot {
  order: 2;
}

.project-section.is-flipped .project-info {
  order: 1;
}

/* =========================
   Testimonials Section
   ========================= */

.testimonials-section {
  position: relative;
  padding: 90px 0;
  background:
          radial-gradient(rgba(255, 244, 232, 0.18) 4px, transparent 5px),
          var(--ink);
  background-size: 32px 32px;
  border-radius: 60px;
}

.testimonials-title {
  width: fit-content;
  margin: 0 0 60px 20vw;

  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--cream);

  background: linear-gradient(
          transparent 60%,
          var(--blue) 60%
  );

  padding: 0 8px;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.testimonial-card {
  position: relative;
  width: min(100%, 860px);
  padding: 48px 34px 30px;
  margin-top: 10px;
  background: var(--cream);
  border: 5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 12px 12px 0 var(--red);
}

.testimonial-card:nth-child(even) {
  align-self: flex-end;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -58px;
  left: 24px;
  font-family: var(--heading-font);
  font-size: 9rem;
  line-height: 1;
  font-weight: 700;
}

.testimonial-red {
  box-shadow: 12px 12px 0 var(--red);
}

.testimonial-red::before {
  color: var(--red);
}

.testimonial-yellow {
  box-shadow: 12px 12px 0 var(--yellow);
}

.testimonial-yellow::before {
  color: var(--yellow);
}

.testimonial-blue {
  box-shadow: 12px 12px 0 var(--blue);
}

.testimonial-blue::before {
  color: var(--blue);
}

.testimonial-card p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.testimonial-card p:last-of-type {
  margin-bottom: 28px;
}

.testimonial-card footer {
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}

.testimonial-card footer strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.1rem;
}

.testimonial-card footer span {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--blue);
}

/* =========================
   Contact Section
   ========================= */

.contact-section {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 80px 0 120px;
  background: var(--cream);
}

.contact-container {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding-top: 0;
}

.contact-card {
  width: min(100%, 720px);
  padding: 42px;
  background: var(--page);
  border: 6px solid var(--ink);
  border-radius: 8px;
  box-shadow:
          10px 10px 0 var(--red),
          20px 20px 0 var(--yellow),
          30px 30px 0 var(--blue);
}

.contact-art {
  position: absolute;
  right: 0;
  top: 80px;
  width: min(78vw, 1100px);
  height: 520px;
  z-index: 1;
}

.contact-card h2 {
  margin: 0 0 22px;
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.contact-card p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.contact-art {
  position: absolute;
  left: 0;
  top: 40px;
  width: min(78vw, 1100px);
  height: 520px;
  z-index: 1;
}

.bauhaus-grid {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 430px;
  display: grid;
  grid-template-columns: 70px 220px 1fr;
  grid-template-rows: 130px 120px 180px;
  border-top: 6px solid var(--ink);
}

.contact-ducky {
  position: absolute;
  left: 5vw;
  top: -1px;
  width: clamp(100px, 14vw, 170px);
  filter: drop-shadow(8px 10px 0 rgba(28, 27, 29, 0.18));
  z-index: 2;
}

.grid-block {
  border-right: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
  border-radius: 8px;
}

.block-yellow {
  grid-column: 1;
  grid-row: 1 / 4;
  background:
          var(--yellow);

}

.block-blue {
  grid-column: 2;
  grid-row: 1;
  background: var(--blue);
}

.block-cream {
  grid-column: 2;
  grid-row: 2;
  background: var(--cream);
}

.block-red {
  grid-column: 2 / 4;
  grid-row: 3;
  background:
          radial-gradient(var(--ink) 4px, transparent 5px),
          var(--red);
  background-size: 28px 28px;
}

.block-cream-large {
  grid-column: 3;
  grid-row: 1 / 3;
  background:
          var(--yellow);
  background-size: 28px 28px;
}

.contact-triangle {
  position: absolute;
  right: 4%;
  top: 42%;
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 140px solid var(--yellow);
  opacity: 1;
  z-index: 2;
}


/* =========================
   Footer
   ========================= */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 18px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-top: 4px solid var(--blue);
  height: 80px;
}

.site-footer p {
  margin: 0;
}


.back-to-top {
  position: fixed;
  right: 48px;
  bottom: 48px;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--page);
  border: 5px solid var(--blue);
  box-shadow: none;
}

.back-to-top i {
  color: var(--blue);
  font-size: 2.4rem;
  line-height: 1;
}

.back-to-top:hover {
  background: var(--yellow);
}



/* =========================
   Responsive
   ========================= */

@media (max-width: 992px) {
  .site-header .nav-wrapper .brand-logo {
    font-size: 1rem;
  }

  .summary-card,
  .contact-card {
    box-shadow:
            7px 7px 0 var(--red),
            14px 14px 0 var(--yellow),
            21px 21px 0 var(--blue);
  }
}

@media (max-width: 850px) {
  .project-section {
    min-height: auto;
    padding: 60px 16px;
  }

  .ribbon {
    left: 6vw;
    width: 120vw;
    height: 520px;
  }

  .project-section.is-flipped .ribbon {
    right: 6vw;
  }

  .project-card,
  .project-section.is-flipped .project-card {
    grid-template-columns: 1fr;
    margin: 0 auto;
  }

  .project-section.is-flipped .screenshot,
  .project-section.is-flipped .project-info {
    order: initial;
  }

  .contact-section {
    padding: 70px 0 80px;
  }

  .contact-container {
    display: block;
    padding-top: 220px;
  }

  .contact-card {
    margin: 0 auto;
  }

  .contact-art {
    width: 100%;
    height: 360px;
    top: 40px;
  }

  .bauhaus-grid {
    height: 300px;
    grid-template-columns: 48px 150px 1fr;
    grid-template-rows: 90px 80px 130px;
  }

  .contact-ducky {
    left: 32px;
    top: -30px;
    width: 110px;
  }

  .contact-triangle {
    right: 7%;
    top: 120px;
    border-left-width: 65px;
    border-right-width: 65px;
    border-bottom-width: 105px;
  }
}

@media (max-width: 700px) {
  .testimonials-section {
    padding: 70px 0;
  }

  .testimonials-list {
    gap: 44px;
  }

  .testimonial-card,
  .testimonial-card:nth-child(even) {
    width: 100%;
    align-self: auto;
  }

  .testimonial-card {
    padding: 42px 24px 26px;
  }

  .testimonial-card::before {
    top: -44px;
    left: 18px;
    font-size: 7rem;
  }
}

@media (max-width: 600px) {
  .welcome-section {
    padding: 60px 0 70px;
    min-height: auto;
    background: var(--cream);
  }

  .summary-card,
  .contact-card {
    border-width: 4px;
    box-shadow:
            6px 6px 0 var(--red),
            12px 12px 0 var(--yellow),
            18px 18px 0 var(--blue);
  }

  .welcome-buttons {
    margin-top: 42px;
  }

  .btn-custom {
    width: 100%;
    text-align: center;
  }

  .welcome-title-wrap {
    align-items: flex-start;
    gap: 16px;
  }

  .ducky-img {
    width: 90px;
  }

  .welcome-section::before {
    right: -20px;
    top: 34%;
    width: 140px;
    height: 110px;
    background-size: 26px 26px;
  }

  .welcome-section::after {
    opacity: 0.35;
  }

  .contact-section {
    padding: 60px 0 70px;
  }

  .contact-container {
    padding-top: 190px;
  }

  .contact-card {
    padding: 30px 24px;
  }

  .contact-card h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .contact-art {
    height: 300px;
  }

  .bauhaus-grid {
    height: 250px;
    grid-template-columns: 38px 110px 1fr;
    grid-template-rows: 75px 65px 110px;
  }

  .contact-ducky {
    left: 22px;
    top: -24px;
    width: 90px;
  }

  .contact-triangle {
    right: -28px;
    top: 115px;
    border-left-width: 50px;
    border-right-width: 50px;
    border-bottom-width: 80px;
  }
}