@charset "UTF-8";
@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNextLTW02Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

main {
  margin-top: 30px;
}

.title-section {
  max-width: 640px;
  margin: 80px auto 26px;
  text-align: center;
  position: relative;
}
.title-section h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: #343D68;
  margin-bottom: 4px;
}
.title-section p {
  font-size: 2.05rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}
.title-section::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 28px auto 0;
  border-radius: 2px;
  background-color: #E84849;
}

.brand {
  text-align: left;
}

.brand a {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: #595959;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 2px 0 0;
  color: #E84849;
}

.menu-toggle {
  margin-left: auto;
  width: 30px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #595959;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 15px 10px;
}

.topnav #myLinks {
  width: 100%;
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  transform: translateX(-120%);
  transition: transform 0.3s ease, max-height 0.3s ease;
}

.topnav #myLinks.active {
  margin-top: 10px;
  transform: translateX(0);
  max-height: 300px;
  font-size: 1.3rem;
}
.topnav #myLinks.active a {
  color: #000000;
  text-decoration: none;
}
.topnav #myLinks.active a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .menu-toggle {
    display: none;
  }
  .topnav #myLinks {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 24px;
    max-height: none;
    overflow: visible;
    transform: none;
    order: 0;
  }
  .topnav a {
    display: inline-flex;
    align-items: center;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 1.7rem;
  }
  .brand h1 {
    font-size: 1.8rem;
    font-weight: 200;
    margin: 0;
    font-style: normal;
  }
  .topnav a.projectsMenu {
    color: #E84849;
    gap: 5px;
  }
}
@media (min-width: 1200px) {
  .topnav a {
    font-size: 2rem;
  }
  .brand h1 {
    font-size: 2.2rem;
  }
}
/* HERO SECTION*/
.hero {
  position: relative;
  color: #3f3D56;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-visual {
  position: relative;
  width: fit-content;
  padding: 0;
}

.hero-photo {
  display: block;
  width: 90%;
  border-radius: 12px;
}

.cube {
  position: absolute;
  top: 2%;
  right: 5%;
  width: 12%;
}

.zigzag {
  position: absolute;
  top: 20%;
  left: -5%;
  width: 13%;
  height: auto;
}

.plus {
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  color: #ff4d4d;
  width: 10%;
  height: auto;
}

.circles {
  position: absolute;
  bottom: -6%;
  right: 10%;
  width: 35%;
  height: auto;
}

.ellipse {
  position: absolute;
  bottom: 10%;
  left: -8%;
  width: 10%;
  height: auto;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-left: 10px;
}
.hero-content h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 100;
  margin-top: 20px;
  margin-bottom: -10px;
}
.hero-content p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-content button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 100;
  color: white;
  background-color: #E84849;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.5rem;
  font-weight: 100;
  max-width: 80%;
}
.hero-content button:hover {
  background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* MEDIA 768 PX */
@media (min-width: 768px) {
  .hero {
    position: relative;
    color: #3f3D56;
  }
  .hero-visual {
    position: relative;
    width: fit-content;
  }
  #hero {
    border-color: blue;
  }
  .hero-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 80%;
  }
  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 100;
    margin-top: 20px;
    margin-bottom: -10px;
  }
  .hero-content p {
    font-size: 1.7rem;
    line-height: 1.6;
    margin-bottom: 40px;
  }
  .hero-content button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 100;
    color: white;
    background-color: #E84849;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.5rem;
    font-weight: 100;
    max-width: 80%;
  }
  .hero-content button:hover {
    background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
  .hero-photo {
    width: 80%;
  }
  .cube {
    position: absolute;
    top: 2%;
    right: 15%;
    width: 6%;
  }
  .zigzag {
    position: absolute;
    top: 20%;
    left: -5%;
    width: 8%;
    height: auto;
  }
  .plus {
    position: absolute;
    top: -4%;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4d4d;
    width: 7%;
    height: auto;
  }
  .circles {
    position: absolute;
    bottom: -6%;
    right: 10%;
    width: 25%;
    height: auto;
  }
  .ellipse {
    position: absolute;
    bottom: 10%;
    left: -8%;
    width: 6%;
    height: auto;
  }
}
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 100;
    margin-top: 20px;
    margin-bottom: -10px;
  }
  .hero-content p {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 40px;
  }
  .hero-content button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 100;
    color: white;
    background-color: #E84849;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 2rem;
    max-width: 70%;
    font-weight: 100;
  }
  .hero-content button:hover {
    background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
  .hero-photo {
    width: 80%;
  }
  .cube {
    position: absolute;
    top: 2%;
    right: 15%;
    width: 6%;
  }
  .zigzag {
    position: absolute;
    top: 20%;
    left: -5%;
    width: 8%;
    height: auto;
  }
  .plus {
    position: absolute;
    top: -4%;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4d4d;
    width: 7%;
    height: auto;
  }
  .circles {
    position: absolute;
    bottom: -6%;
    right: 10%;
    width: 25%;
    height: auto;
  }
  .ellipse {
    position: absolute;
    bottom: 10%;
    left: -8%;
    width: 6%;
    height: auto;
  }
}
/* SKILLS SECTION */
.skills-menu {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.skills-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 100;
  color: white;
  background-color: #E84849;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.4rem;
  font-weight: 100;
  padding: 15px 26px;
}
.skills-tab:hover {
  background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.layout-skills {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
}

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

.tech-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 10px;
}

.skill {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.skill p {
  margin: 0;
}

.hex {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: url("../assets/skills/techSkills/polygon.svg") no-repeat center;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex img {
  width: 64px;
  height: 64px;
}

.skills-panel {
  display: none;
}

.skills-panel.active {
  display: block;
}

.skills-man {
  display: flex;
  justify-content: center;
  align-items: center;
}

#skills {
  padding-bottom: 0;
}

/* MEDIA 768 PX */
@media (min-width: 768px) {
  .title-section {
    max-width: 640px;
    margin: 80px auto 26px;
    text-align: center;
    position: relative;
  }
  .title-section h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: #343D68;
    margin-bottom: 4px;
  }
  .title-section p {
    font-size: 2.05rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
  }
  .title-section::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 28px auto 0;
    border-radius: 2px;
    background-color: #E84849;
  }
  .skills-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 100;
    color: white;
    background-color: #E84849;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.4rem;
    font-weight: 100;
    padding: 15px 26px;
  }
  .skills-tab:hover {
    background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
  .layout-skills {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
  }
  .hex {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    background: url("../assets/skills/techSkills/polygon.svg") no-repeat center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .skills-panels {
    min-height: 360px;
  }
  .tech-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
  }
  .architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .architecture-col {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .architecture-col li {
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 1rem;
  }
  .architecture-col .col-title {
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 30px;
  }
  .skills-man {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .skills-man img {
    max-width: 100%;
    height: auto;
  }
  .skill img {
    height: 60%;
    width: auto;
  }
  .skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .skills-panel {
    display: none;
  }
  .skills-panel.active {
    display: block;
  }
}
/* MEDIA 1200 PX */
@media (min-width: 1200px) {
  .tech-skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 10px;
  }
  .skills-man img {
    max-width: 800px;
    height: auto;
  }
}
.projects .container {
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.projects {
  padding-top: 80px;
}

.projects-header {
  color: #343d68;
  text-align: center;
}
.projects-header h2 {
  font-size: 1.9rem;
  font-weight: 100;
}
.projects-header p {
  font-size: 1.25rem;
  opacity: 0.8;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.external {
  width: auto;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.internal {
  border: 2px solid #262c4c;
  width: 100%;
  max-width: 340px;
  min-height: auto;
  margin: 20px;
  place-items: center;
  background-color: #262c4c;
  overflow: hidden;
}

.internal:hover {
  border-image: linear-gradient(45deg, #262c4c, #7c87c3) 1;
}

.img-block {
  height: auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
.img-block img {
  width: 100%;
  height: auto;
  position: relative;
}

.internal a {
  padding: 12px;
  background-color: #343d68;
  border-radius: 5px;
  border: 1px solid white;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
  font-style: none;
  text-transform: capitalize;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 100;
}

.headlines {
  position: static;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px 0;
}
.headlines h3 {
  margin: 25px 0px 5px;
  font-weight: 100;
  font-size: 1.5rem;
}
.headlines p {
  margin: 15px 0px 30px;
  font-weight: 100;
  font-size: 1.1rem;
}

.btn-project:hover {
  border-image: linear-gradient(45deg, #8af464, #e6ffdd) 1;
}

/* MEDIA 768 PX */
@media (min-width: 768px) {
  .projects .container {
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    padding: 5px 30px 60px;
  }
  .projects {
    padding-top: 80px;
  }
  .projects-header {
    text-align: center;
  }
  .projects-header h2 {
    font-size: 4.9rem;
    margin: 0 0 8px;
    font-weight: 100;
  }
  .projects-header p {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.8;
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
/* MEDIA 1200 PX */
@media (min-width: 1200px) {
  .projects-header h2 {
    font-size: 2.7rem;
  }
  .projects-header p {
    font-size: 2rem;
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
/* FORM CTA */
.Contact-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.Contact-me img {
  width: 80%;
  height: auto;
}

#formCta fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#formCta legend {
  position: absolute;
  left: -9999px;
  /* visually hidden, but accessible */
}

#formCta h2 {
  margin-bottom: 24px;
}

#formCta form {
  max-width: 80%;
  background: #fff;
  padding: 32px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(255, 11, 11, 0.08);
  text-align: left;
}

#formCta label {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

#formCta input,
#formCta select,
#formCta textarea {
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

#formCta input:focus,
#formCta textarea:focus,
#formCta select:focus {
  border-color: #343D68;
}

#formCta button {
  width: 100%;
  padding: 14px;
  background: #343D68;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.5rem;
  cursor: pointer;
  background-image: url("../assets/contactForm/paperPlane.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 25px 25px;
}

#formCta button:hover {
  background: #2b335a;
  background-image: url("../assets/contactForm/paperPlane.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 25px 25px;
}

/* MEDIA 768 PX */
@media (min-width: 768px) {
  /* FORM CTA */
  .Contact-me {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 30px;
  }
  .Contact-me img {
    width: 500px;
    height: auto;
  }
  #formCta fieldset {
    border: none;
    padding: 0;
    margin: 0;
  }
  #formCta legend {
    position: absolute;
    left: -9999px;
  }
  #formCta h2 {
    margin-bottom: 24px;
  }
  #formCta form {
    max-width: 420px;
    background: #fff;
    padding: 32px 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(255, 11, 11, 0.08);
    text-align: left;
  }
  #formCta label {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  #formCta input,
  #formCta select,
  #formCta textarea {
    margin-top: 6px;
    padding: 12px 14px;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
  }
  #formCta input:focus,
  #formCta textarea:focus,
  #formCta select:focus {
    border-color: #343D68;
  }
  #formCta button {
    width: 100%;
    padding: 14px;
    background: #343D68;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    background-image: url("../assets/contactForm/paperPlane.svg");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 25px 25px;
  }
  #formCta button:hover {
    background: #2b335a;
    background-image: url("../assets/contactForm/paperPlane.svg");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 25px 25px;
  }
  .blog-preview {
    max-width: 640px;
    margin: 80px auto;
    text-align: center;
  }
  .blog-post-preview time {
    font-size: 0.9rem;
    opacity: 0.6;
  }
}
/* FOOTER */
.footer {
  position: relative;
  background-color: #343D68;
  color: #fff;
}
.footer p {
  font-size: 1.4rem;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 80px;
}

.footer-content {
  max-width: 360px;
  margin: 0 auto;
  padding: 40px 16px;
  text-align: center;
}

.footer-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-links img,
.github-link img {
  width: clamp(22px, 10vw, 70px);
  height: auto;
}

.footer-projects {
  margin: 24px 0 0;
  font-size: 14px;
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #7fd3ff;
  text-decoration: none;
}

.social-links img {
  filter: brightness(0) invert(1);
}

/* MEDIA 768 PX */
@media (min-width: 768px) {
  .footer .container {
    background-color: #343D68;
    color: #fff;
  }
  .footer-wave {
    display: block;
    width: 100%;
    height: 80px;
  }
  .footer-content {
    max-width: 360px;
    margin: 0 auto;
    padding: 40px 16px;
    text-align: left;
  }
  .footer-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .social-links {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
  }
  .social-links img {
    width: clamp(22px, 10vw, 70px);
    height: auto;
  }
  .github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #7fd3ff;
    text-decoration: none;
  }
  .github-link img {
    width: 20px;
    height: 20px;
  }
  .social-links img {
    filter: brightness(0) invert(1);
  }
}
/* =========================
   CASE PAGE
========================= */
.case {
  color: #3f3d56;
  background: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   HERO
========================= */
.case-hero {
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fafb 40%, #19317a 100%);
  padding: 20px;
}

.case-hero-buttons .back-to-portfolio-btn {
  margin-left: 10px;
  background-color: #687280;
}
.case-hero-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 100;
  color: white;
  background-color: #E84849;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.4rem;
  font-weight: 100;
  padding: 15px 26px;
}
.case-hero-buttons button:hover {
  background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* =========================
   PREVIEW
========================= */
.case-preview {
  padding: 20px 0 20px;
}
.case-preview img {
  width: 100%;
  max-width: 980px;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* PREVIEW IMAGE */
.preview-img {
  cursor: zoom-in;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  width: 50vw;
  height: auto;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* =========================
   SECTIONS
========================= */
.case-section {
  padding: 10px;
}
.case-section h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 400;
  color: #343d68;
  letter-spacing: -0.01em;
}
.case-section p {
  font-size: 1.55rem;
  line-height: 1.75;
  max-width: 760px;
  color: #4b5563;
}

/* =========================
   LISTS
========================= */
.case-list {
  padding-left: 0;
  list-style: none;
}
.case-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.45rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #4b5563;
}
.case-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #E84849;
  font-weight: 400;
}

/* =========================
   TAGS / TECH STACK
========================= */
.case-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.case-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.25rem;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 400;
}

/* =========================
   RELATED CASES
========================= */
.case-related {
  padding: 90px 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}
.case-related h2 {
  text-align: center;
  margin-bottom: 56px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.related-card {
  padding: 28px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card h3 {
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: #343d68;
}
.related-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #6b7280;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

/* =========================
   CTA
========================= */
.case-cta {
  padding: 110px 0;
  background: radial-gradient(circle at top, #1f2933, #020617);
  color: white;
  text-align: center;
}
.case-cta h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 16px;
}
.case-cta p {
  font-size: 1.55rem;
  max-width: 660px;
  margin: 0 auto 40px;
  color: #d1d5db;
}
.case-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 100;
  color: white;
  background-color: #E84849;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.5rem;
  font-weight: 100;
  max-width: 80%;
}
.case-cta .btn:hover {
  background-color: rgb(236.5553398058, 108.2446601942, 109.0466019417);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 1200px) {
  .case-hero {
    padding: 120px 60px 90px;
  }
  .case-hero h1 {
    font-size: 3.5rem;
  }
  .case-hero h2 {
    font-size: 2rem;
  }
}