/*
THEME: Lucidica Portfolio
AUTHOR: Stas Shokarev
VERSION: 2.0.0
DATE: 2025-07-22
DESCRIPTION: Optimized and mobile-friendly CSS for the Lucidica Portfolio theme.
URI: https://github.com/microna
*/

/* ===== RESET & BASE STYLES ===== */
* {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

aside,
nav,
footer,
header,
section {
  display: block;
}

body {
  line-height: 1.2;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  color: #ffffff;
  background-color: #14192E;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding-top: 80px;
}

body.locked {
  overflow: hidden;
}

body.dark {
  background: #242424;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited {
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.button-primary {
  display: inline-block !important;
  background-color: #ffffff;
  color: #0058e6;
  padding: 16px 48px 16px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: 0.1s ease-in;
  white-space: nowrap;
}

.button-primary:after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url(https://portfolio.lucidica.co.uk/wp-content/themes/lucidica-portfolio/img/arrow_forward.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
}

.button-secondary {
  display: inline-block;
  background-color: #0058e6;
  color: #ffffff;
  padding: 16px 48px 16px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: 0.1s ease-in;
  white-space: nowrap;
}

.button-secondary:after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url(https://portfolio.lucidica.co.uk/wp-content/themes/lucidica-portfolio/img/arrow-forward-white.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 17px;
  height: 17px;
}

.button-secondary:hover,
.button-primary:hover {
  opacity: 0.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes float-random {

  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(55px, -40px);
  }

  40% {
    transform: translate(55px, 45px);
  }

  60% {
    transform: translate(-50px, 45px);
  }

  80% {
    transform: translate(58px, -37px);
  }
}

.fade-in {
  animation: fade 0.8s ease-in-out forwards;
  opacity: 0;
}

.fade-in-delay-1 {
  animation: fade 0.8s ease-in-out 0.2s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fade 0.8s ease-in-out 0.4s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fade 0.8s ease-in-out 0.6s forwards;
  opacity: 0;
}

/* ===== DECORATIVE ELEMENTS ===== */
.ellipse-wrapper {
  overflow: visible;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.ellipse {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.ellipse__position--top-left {
  top: -12%;
  left: -40%;
  width: 80%;
  height: 80%;
  animation: float-random 15s ease-in-out infinite;
}

.ellipse__position--top-right {
  top: -8%;
  right: -30%;
  width: 65%;
  height: 65%;
  animation: float-random 18s ease-in-out infinite reverse;
}

.ellipse__position--top-center {
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 50%;
  animation: float-random 20s ease-in-out infinite;
}

.ellipse img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.ellipse__position--top-right img {
  opacity: 0.7;
}

.ellipse__position--top-center img {
  opacity: 0.5;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  z-index: 10;
}

.header.fixed {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-basis: 100%;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.logo a {
  color: white;
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.menu__item {
  display: flex;
  position: relative;
}

.menu__item-link {
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  transition: 0.5s color;
  z-index: 11;
}

.menu__item-link img {
  margin-right: 16px;
}

.menu__item-link:hover {
  opacity: 0.8;
}

/* ===== MODAL ===== */
.modal__wrapper {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  display: none;
}

.modal__wrapper .modal {
  background: white;
  padding: 25px;
  border-radius: 40px;
  width: min(60rem, 90vw);
  max-height: 90vh;
  overflow-y: auto;
}

.modal__wrapper .modal__title {
  text-align: center;
  color: #0058e6;
  font-family: "Inter", sans-serif;
  font-size: 40px;
  padding-bottom: 35px;
}

.modal__wrapper .modal__body {
  display: block;
  width: 100%;
}

.modal__wrapper .modal__close {
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
}

.modal__wrapper .modal__input {
  font-size: 16px;
  padding: 16px 32px 16px 24px;
  border-radius: 30px;
  border: 1px solid #e4e4e4;
  margin-bottom: 16px;
  width: 100%;
}

textarea.modal__input {
  height: 120px;
  resize: vertical;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Two-column layout for name and contact fields */
.wpcf7-form p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

.wpcf7-form p .wpcf7-form-control-wrap {
  width: 50%;
}

/* Full width for textarea and submit */
.wpcf7-form p:has(textarea),
.wpcf7-form p:has(input[type="submit"]) {
  display: block;
}

.wpcf7-form p:has(textarea) .wpcf7-form-control-wrap,
.wpcf7-form p:has(input[type="submit"]) .wpcf7-form-control-wrap {
  width: 100%;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
}

.button-secondary.modal__btn {
  padding: 16px 40px;
  align-self: center;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 40px 0 155px 0;
  z-index: 1;
  overflow: visible;
}

.hero__content {
  gap: 16px;
  max-width: 100%;
}

.hero__title {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  padding-bottom: 56px;
}

.hero__text {
  max-width: 70%;
  font-size: clamp(16px, 2.5vw, 24px);
  line-height: 1.6;
  padding-bottom: 50px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding-top: 40px;
}

.projects__content {
  padding-bottom: 100px;
  display: flex;
  align-items: flex-end;
  gap: 25px;
}

.projects__content-title,
.portfolio__content-title {
  max-width: 648px;
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

.projects__content-text,
.portfolio__content-text {
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  margin-bottom: 20px;
  position: relative;
  max-width: 479px;
}

.projects__content-text:after,
.portfolio__content-text:after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 100%;
  height: 25px;
  background-image: url(https://portfolio.lucidica.co.uk/wp-content/themes/lucidica-portfolio/img/blue-underline.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2px;
}

.projects__slider {
  padding: 55px 0 !important;
}

.projects__slider .swiper {
  overflow: visible;
  margin-left: -20px;
  width: calc(100% + 40px);
}

.projects__slider-item {
  min-width: 360px;
  max-width: 380px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
  min-height: 320px;
}

.projects__slider-img {
  padding-bottom: 20px;
  width: 100%;
  max-width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.projects__slider-title {
  padding: 10px 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0058e6;
}

.projects__slider-text {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: black;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding-top: 40px;
}

.portfolio__content {
  display: flex;
  align-items: flex-end;
  gap: 25px;
}

/* ===== IMPACT SECTION ===== */
.impact {
  padding: 155px 0 100px 0;
}

.impact__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 123px;
}

.impact__blocks {
  max-width: 550px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
}

.impact__blocks-item {
  background-color: #ffffff;
  color: #14192e;
  padding: 24px 39px 27px 24px;
  border-radius: 12px;
  width: 264px;
  flex: 1;
  min-width: 250px;
}

.impact__blocks-item--featured {
  background-color: #0058e6;
  color: #ffffff;
}

.impact__blocks-item__title {
  font-size: clamp(50px, 10vw, 80px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  padding-bottom: 25px;
  line-height: 1;
}

.impact__content {
  width: 50%;
}

.impact__content-title {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  padding-bottom: 56px;
  position: relative;
}

.impact__content-title:after {
  content: "";
  position: absolute;
  background-image: url(https://portfolio.lucidica.co.uk/wp-content/themes/lucidica-portfolio/img/blue-underline.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2px;
  width: 100%;
  height: 25px;
  bottom: 25px;
  left: -33px;
}

.impact__content-text {
  font-size: clamp(18px, 4vw, 28px);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
}

.testimonials__content {
  padding-bottom: 80px;
}

.testimonials__slider-item {
  min-width: 360px;
  color: #14192e;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 44px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
  min-height: 300px;
}

.testimonials__slider-item .button-secondary {
  align-self: flex-start;
  margin-top: auto;
}

.testimonials__slider-content--image img {
  border-radius: 16px;
  width: 84px;
  height: 84px;
  object-fit: cover;
}

.testimonials__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.testimonials__slider-stars {
  padding-bottom: 11px;
}

.testimonials__slider-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #14192e;
  font-family: "Open Sans", sans-serif;
  padding-bottom: 8px;
}

.testimonials__slider-title {
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-style: italic;
}

.testimonials__slider-text {
  font-size: 16px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  padding-top: 20px;
  padding-bottom: 44px;
}

/* ===== PROJECTS LIST ===== */
.projects-list {
  padding: 100px 0;
}

.projects__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project__item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.project__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project__item-image-wrapper {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.project__item-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project__item:hover .project__item-image-wrapper img {
  transform: scale(1.05);
}

.project__item-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  color: #14192e;
  font-family: "Inter", sans-serif;
  /* padding-bottom: 8px; */
  line-height: 1.3;
}

.project__item-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #0058e6;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
}

.project-holder {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: auto;
}

.button-holder {
  padding-top: 60px;
  text-align: center;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 60px 0 20px 0;
  flex-wrap: wrap;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 12px 16px;
  background-color: #ffffff;
  color: #14192e;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination .page-numbers:hover {
  background-color: #0058e6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 88, 230, 0.3);
}

.pagination .page-numbers.current {
  background-color: #0058e6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 88, 230, 0.3);
}

.pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  color: #14192e;
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* ===== SINGLE PROJECT ===== */
.project-item__content {
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 96px;
}

.project-item__image img {
  border-radius: 16px;
  width: 100%;
}

.project-item__title {
  font-family: "Inter", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  color: #ffffff;
  padding-bottom: 30px;
  position: relative;
}

.project-item__title:after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: -140px;
  background-image: url(https://portfolio.lucidica.co.uk/wp-content/themes/lucidica-portfolio/img/blue-underline.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 25px;
}

.project-item__description {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
}

.project-item--reverse {
  flex-direction: row-reverse;
}

/* ===== CONCLUSIONS ===== */
.conclusions {
  background-image: url("./img/logo_horizontal.svg");
  background-repeat: no-repeat;
  background-position: 114% center;
  background-size: 40%;
  padding: 100px 0;
}

.conclusions__content {
  max-width: 648px;
}

.conclusions__description {
  padding-bottom: 24px;
}

.conslusion__content-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 50px;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
}

footer .ellipse-wrapper-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
}

footer .ellipse-wrapper-footer div {
  position: relative;
  animation: float-random 15s ease-in-out infinite;
  flex-shrink: 0;
}

footer .ellipse-wrapper-footer div:first-child {
  transform: translateX(-30%);
  opacity: 0.6;
}

footer .ellipse-wrapper-footer div:last-child {
  transform: translateX(30%);
  opacity: 0.6;
}

footer .ellipse-wrapper-footer div img {
  max-width: 500px;
  width: 500px;
  height: auto;
  vertical-align: bottom;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 100px 0 40px 0;
  position: relative;
  z-index: 2;
}

.col-1 {
  width: 36%;
}

.col-1 .logo a {
  display: flex;
  align-items: center;
}

.col-1 div {
  color: white;
  margin-bottom: 16px;
}

.col-1 div:last-child {
  margin-bottom: 0;
}

.col-2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.col-2 .menu__item-link {
  display: flex;
  align-items: center;
  color: white;
  transition: 0.5s color;
}

.col-2 .menu__item-link img {
  margin-right: 16px;
}

.col-2 .menu__item-link:hover {
  opacity: 0.8;
}

/* ===== ARCHIVE STYLES ===== */
.projects-archive .page-header {
  margin-bottom: 40px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-thumbnail {
  height: 200px;
  overflow: hidden;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover .project-thumbnail img {
  transform: scale(1.05);
}

.no-thumbnail {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #666;
}

.project-header {
  padding: 20px;
}

.project-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-excerpt {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #666;
}

.project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category {
  font-size: 0.8rem;
  background-color: #f0f0f0;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
}

.single-project {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-project .entry-header {
  text-align: center;
  margin-bottom: 30px;
}

.single-project .project-categories {
  justify-content: center;
  margin-top: 15px;
}

.project-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.project-featured-image img {
  width: 100%;
  display: block;
}

.project-meta {
  margin-top: 40px;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.project-client,
.project-date {
  margin-bottom: 10px;
}

.project-url {
  margin-top: 20px;
}

.project-url a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.project-url a:hover {
  background-color: #555;
}

.post-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.nav-previous,
.nav-next {
  max-width: 45%;
}

/* ===== WIREFRAMES & PROTOTYPING SECTION ===== */
.design-process-wireframes {
  position: relative;
  padding: 100px 0;
  background-color: #14192E;
  overflow: hidden;
}

.design-process-wireframes__ellipse {
  position: absolute;
  right: -200px;
  top: 334px;
  width: 982px;
  height: 341px;
  transform: rotate(180deg) scaleY(-1);
  pointer-events: none;
  z-index: 0;
}

.design-process-wireframes__ellipse img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.design-process-wireframes__wrapper {
  position: relative;
  z-index: 1;
}

.design-process-wireframes__title {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 80px;
}

.design-process-wireframes__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.design-process-wireframes__text {
  flex: 1;
  max-width: 493px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-process-wireframes__subtitle {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.design-process-wireframes__subtitle:not(:empty) {
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.design-process-wireframes__subtitle:not(:empty)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 209px;
  max-width: 100%;
  height: 12px;
  background-image: url(https://portfolio.lucidica.co.uk/wp-content/themes/lucidica-portfolio/img/blue-underline.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}




.design-process-wireframes__description {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
}

.design-process-wireframes__image {
  flex-shrink: 0;
  width: 552px;
  height: 552px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.design-process-wireframes__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Reversed layout variant */
.design-process-wireframes--reversed .design-process-wireframes__content {
  flex-direction: row-reverse;
}

.design-process-wireframes--reversed .design-process-wireframes__ellipse {
  left: -200px;
  right: auto;
  transform: none;
}

.design-process-wireframes--reversed .design-process-wireframes__wrapper {
  position: relative;
}

/* Remove title from reversed section if needed */
.design-process-wireframes--reversed .design-process-wireframes__title {
  display: none;
}

/* ===== CONCLUSION SECTION ===== */
.conclusion {
  position: relative;
  padding: 100px 0;
  background-color: #14192E;
  overflow: hidden;
}

.conclusion__ellipse {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.conclusion__ellipse--1 {
  right: -200px;
  top: 269px;
  width: 864px;
  height: 550px;
  transform: rotate(180deg) scaleY(-1);
}

.conclusion__ellipse--1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.conclusion__ellipse--2 {
  left: 1135px;
  top: 535px;
  width: 341px;
  height: 341px;
  transform: rotate(180deg) scaleY(-1);
}

.conclusion__ellipse--2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.conclusion__logo {
  position: absolute;
  right: -30px;
  top: 335px;
  width: 700px;
  height: 650px;
  z-index: 1;
  /* opacity: 0.15; */
  pointer-events: none;
}

.conclusion__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.conclusion__wrapper {
  position: relative;
  z-index: 2;
}

.conclusion__title {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 80px;
}

.conclusion__content {
  max-width: 648px;
}

.conclusion__intro {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 24px;
}

.conclusion__items {
  display: flex;
  flex-direction: column;
  gap: 47px;
  margin-bottom: 24px;
}

.conclusion__item {
  display: flex;
  gap: 24px;
  align-items: center;
}

.conclusion__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conclusion__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.conclusion__text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
}

.conclusion__outro {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
}

/* ===== CTA WANT ONE SECTION ===== */
.cta-want-one {
  background-color: #14192E;
  padding: 100px 0;
}

.cta-want-one__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.cta-want-one__title {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  line-height: 1;
  max-width: 715px;
}

.cta-want-one__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px 10px 16px;
  background-color: #ffffff;
  color: #0058e6;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  min-height: 52px;
  width: 100%;
}

.cta-want-one__button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.cta-want-one__button img {
  filter: invert(30%) sepia(93%) saturate(2877%) hue-rotate(203deg) brightness(99%) contrast(101%);
}

/* ===== CHALLENGES SECTION ===== */
.challenges {
  position: relative;
  padding: 100px 0;
  background-color: #14192E;
  overflow: hidden;
}

.challenges__ellipse {
  position: absolute;
  left: -84px;
  top: 205px;
  width: 1591px;
  height: 460px;
  pointer-events: none;
  z-index: 0;
}

.challenges__ellipse img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.challenges__wrapper {
  position: relative;
  z-index: 1;
}

.challenges__content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.challenges__title {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  line-height: 1;
}

.challenges__intro {
  max-width: 702px;
}

.challenges__intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
}

.challenges__grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.challenges__items {
  flex: 1;
  max-width: 702px;
  display: flex;
  flex-direction: column;
  gap: 47px;
}

.challenges__item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  align-items: center;
  color: #ffffff;
}

.challenges__number {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  line-height: 1;
  min-width: clamp(80px, 10vw, 134px);
  flex-shrink: 0;
}

.challenges__text {
  flex: 1;
}

.challenges__text p {
  font-size: 16px;
  line-height: 1.6;
  font-family: "Open Sans", sans-serif;
}

.challenges__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 241px;
  flex-shrink: 0;
  align-items: flex-start;
}

.challenges__sidebar .button-primary {
  width: auto !important;
  display: inline-flex !important;
}

.challenges__info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenges__info-label {
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
}

.challenges__info-value {
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.challenges__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px 10px 16px;
  background-color: #ffffff;
  color: #0058e6;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.challenges__button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.challenges__button img {
  filter: invert(30%) sepia(93%) saturate(2877%) hue-rotate(203deg) brightness(99%) contrast(101%);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens (1200px+) - Container adjustments */
@media (max-width: 1449.98px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1199.98px) {
  .container {
    max-width: 970px;
  }

  .impact__wrapper {
    gap: 60px;
  }
}

/* Tablets and smaller desktops (992px and below) */
@media (max-width: 991.98px) {
  .container {
    max-width: 750px;
  }

  /* Navigation */
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .menu {
    flex-direction: column;
    gap: 15px;
  }

  /* Modal */
  .modal__wrapper .modal {
    width: 90vw;
    height: auto;
    max-height: 90vh;
  }

  .modal__wrapper .modal__title {
    font-size: 28px;
  }

  /* Make form fields stack on tablets */
  .wpcf7-form p {
    display: block !important;
  }

  .wpcf7-form p .wpcf7-form-control-wrap {
    width: 100% !important;
    margin-bottom: 16px;
  }

  /* Hero */
  .hero {
    padding: 20px 0 60px 0;
    text-align: center;
  }

  body {
    padding-top: 60px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    padding-bottom: 32px;
  }

  .hero__text {
    max-width: 100%;
    padding-bottom: 40px;
  }

  /* Content sections */
  .projects__content,
  .portfolio__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding-bottom: 60px;
  }

  .projects__content-title,
  .portfolio__content-title {
    max-width: 100%;
  }

  .projects__content-text,
  .portfolio__content-text {
    max-width: 100%;
  }

  .projects__content-text:after,
  .portfolio__content-text:after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }

  /* Impact */
  .impact {
    padding: 80px 0 60px 0;
  }

  .impact__wrapper {
    flex-direction: column-reverse;
    align-items: center;
    gap: 60px;
  }

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

  .impact__content-title {
    padding-bottom: 40px;
  }

  .impact__content-title:after {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
  }

  .impact__blocks {
    justify-content: center;
    width: 100%;
    gap: 16px;
  }

  .impact__blocks-item {
    min-width: 280px;
  }

  /* Projects */
  .projects {
    padding-top: 60px;
  }

  .projects__slider {
    padding: 40px 0;
  }

  .projects__slider .swiper {
    margin-left: -15px;
    width: calc(100% + 30px);
  }

  .projects__slider-item {
    min-width: 320px;
    max-width: 360px;
  }

  /* Projects List (Archive) */
  .projects-list {
    padding: 80px 0 60px 0;
  }

  .projects__wrapper {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .project__item {
    padding: 20px;
  }

  .project__item-image-wrapper {
    height: 220px;
  }

  .project-holder {
    padding-top: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .project-holder .button-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Project items */
  .project-item__content {
    flex-direction: column-reverse;
    gap: 40px;
    padding-top: 40px;
  }

  .project-item__title:after {
    left: -50%;
    bottom: -10px;
  }

  /* Hide decorative elements */
  .ellipse {
    display: none;
  }

  footer .ellipse-wrapper-footer {
    display: none;
  }

  /* CTA */
  .cta {
    padding: 50px 0;
  }

  /* Conclusions */
  .conclusions {
    background-image: none;
    padding: 50px 0;
  }

  /* Wireframes section */
  .design-process-wireframes {
    padding: 60px 0;
  }

  .design-process-wireframes__content,
  .design-process-wireframes--reversed .design-process-wireframes__content {
    flex-direction: column;
    gap: 60px;
  }

  .design-process-wireframes__text {
    max-width: 100%;
  }

  .design-process-wireframes__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1;
  }

  .design-process-wireframes__subtitle:not(:empty)::after {
    width: 150px;
  }

  .design-process-wireframes--reversed .design-process-wireframes__ellipse {
    opacity: 0.3;
    left: -400px;
  }

  .conclusion {
    padding: 60px 0;
  }

  .conclusion__logo {
    width: 500px;
    height: 500px;
    right: -100px;
    top: 400px;
  }

  .conclusion__ellipse--2 {
    left: auto;
    right: -200px;
  }

  .challenges {
    padding: 60px 0;
  }

  .challenges__grid {
    flex-direction: column;
    gap: 60px;
  }

  .challenges__sidebar {
    width: 100%;
    max-width: 400px;
  }

  .challenges__content {
    gap: 60px;
  }

  .challenges__items {
    max-width: 100%;
  }
}

/* Tablets (768px and below) */
@media (max-width: 767.98px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  /* Project items */
  .projects__wrapper {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .project__item {
    padding: 18px;
  }

  .project__item-image-wrapper {
    height: 200px;
  }

  .project__item-subtitle {
    font-size: 13px;
  }

  .project__item-title {
    font-size: 20px;
  }

  /* Impact blocks */
  .impact__blocks-item {
    width: 100%;
    min-width: 100%;
  }

  /* Project content */
  .project-item__image {
    text-align: center;
  }

  .project-item__image img {
    width: 90%;
  }

  .project-item__title:after {
    left: -20%;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .col-1 {
    width: 100%;
  }

  .col-1 .logo a {
    display: block;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 479.98px) {
  .container {
    padding: 0 10px;
  }

  /* Grid layouts */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Hero adjustments */
  .hero {
    padding: 20px 0 40px 0;
  }

  body {
    padding-top: 40px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    padding-bottom: 24px;
  }

  .hero__text {
    max-width: 100%;
    padding-bottom: 32px;
    font-size: 16px;
  }

  /* Content text adjustments */
  .projects__content,
  .portfolio__content {
    padding-bottom: 40px;
    gap: 20px;
  }

  .projects__content-text:after,
  .portfolio__content-text:after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 80%;
  }

  /* Project title adjustments */
  .project-item__title:after {
    left: -10%;
    width: 120%;
  }

  /* Sections padding */
  .projects,
  .impact,
  .testimonials {
    padding: 50px 0 30px 0;
  }

  .projects {
    padding-top: 40px;
  }

  .projects-list {
    padding: 50px 0 30px 0;
  }

  /* Projects wrapper mobile */
  .projects__wrapper {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .project__item {
    padding: 18px;
  }

  .project__item-image-wrapper {
    height: 200px;
  }

  .project-holder {
    padding-top: 12px;
  }

  .impact__wrapper {
    gap: 40px;
  }

  .impact__content-title {
    padding-bottom: 32px;
  }

  .impact__blocks {
    gap: 12px;
  }

  .impact__blocks-item {
    padding: 20px;
  }

  /* Projects slider */
  .projects__slider {
    padding: 30px 0;
  }

  .projects__slider .swiper {
    margin-left: -10px;
    width: calc(100% + 20px);
  }

  .projects__slider-item {
    min-width: 300px;
    max-width: 340px;
    padding: 20px;
    min-height: 300px;
  }

  .projects__slider-img {
    height: 180px;
  }

  /* Modal adjustments */
  .modal__wrapper .modal {
    width: 95vw;
    padding: 20px;
    border-radius: 20px;
  }

  .modal__wrapper .modal__title {
    font-size: 24px;
    padding-bottom: 20px;
  }

  /* Ellipse adjustments for mobile */
  .ellipse__position--top-right {
    display: none;
  }

  .ellipse__position--top-center {
    width: 40%;
    height: 40%;
    opacity: 0.3;
  }

  /* Slider adjustments */
  .projects__slider {
    padding: 25px 0;
  }

  .projects__slider .swiper {
    margin-left: -10px;
    width: calc(100% + 20px);
  }

  .projects__slider-item {
    min-width: 280px;
    max-width: 320px;
    padding: 18px;
  }

  .projects__slider-img {
    height: 160px;
  }

  .testimonials__slider-item {
    min-width: 280px;
    max-width: 320px;
  }

  /* Wireframes section mobile */
  .design-process-wireframes {
    padding: 40px 0;
  }

  .design-process-wireframes__title {
    margin-bottom: 40px;
  }

  .design-process-wireframes__content,
  .design-process-wireframes--reversed .design-process-wireframes__content {
    flex-direction: column;
    gap: 40px;
  }

  .design-process-wireframes__image {
    max-width: 100%;
    height: auto;
  }

  .design-process-wireframes__ellipse {
    opacity: 0.3;
    right: -400px;
  }

  .design-process-wireframes--reversed .design-process-wireframes__ellipse {
    opacity: 0.3;
    left: -400px;
    right: auto;
  }

  .design-process-wireframes__subtitle:not(:empty) {
    padding-bottom: 15px;
  }

  .design-process-wireframes__subtitle:not(:empty)::after {
    width: 120px;
    height: 10px;
  }

  /* Conclusion section mobile */
  .conclusion {
    padding: 40px 0;
  }

  .conclusion__title {
    margin-bottom: 40px;
  }

  .conclusion__logo {
    width: 300px;
    height: 300px;
    right: -50px;
    top: 300px;
    /* opacity: 0.08; */
  }

  .conclusion__icon {
    width: 48px;
    height: 48px;
  }

  .conclusion__items {
    gap: 32px;
  }

  .conclusion__ellipse--1,
  .conclusion__ellipse--2 {
    opacity: 0.3;
  }

  .conclusion__ellipse--1 {
    right: -400px;
  }

  .conclusion__ellipse--2 {
    display: none;
  }

  /* CTA Want One mobile */
  .cta-want-one {
    padding: 60px 0;
  }

  .cta-want-one__wrapper {
    gap: 30px;
  }

  /* Challenges section mobile */
  .challenges {
    padding: 40px 0;
  }

  .challenges__content {
    gap: 40px;
  }

  .challenges__item {
    flex-direction: column;
    gap: 16px;
  }

  .challenges__number {
    font-size: 48px;
    min-width: 80px;
  }

  .challenges__items {
    gap: 32px;
  }

  .challenges__ellipse {
    opacity: 0.3;
    left: -200px;
  }
}

/* Extra small screens (360px and below) */
@media (max-width: 359.98px) {

  body {
    padding-top: 30px;
  }

  .hero {
    padding: 20px 0 30px 0;
  }

  .hero__title {
    padding-bottom: 20px;
  }

  .hero__text {
    padding-bottom: 28px;
    font-size: 15px;
  }

  .projects__slider-item {
    min-width: 260px;
    max-width: 300px;
  }

  .testimonials__slider-item {
    min-width: 260px;
    max-width: 300px;
  }

  .impact__blocks-item {
    min-width: 100%;
  }

  /* Projects list extra small */
  .projects-list {
    padding: 40px 0 30px 0;
  }

  .projects__wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project__item {
    padding: 16px;
  }

  .project__item-image-wrapper {
    height: 180px;
  }

  .project__item-title {
    font-size: 18px;
  }

  .project-holder {
    padding-top: 12px;
  }

  .button-primary,
  .button-secondary {
    font-size: 14px;
    padding: 14px 40px 14px 14px;
  }
}