/* =========================================================
   LIKESTAR PORTFOLIO
   Full Responsive Portfolio Page
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

  --blue: #0057b8;
  --blue-dark: #003b7a;
  --blue-light: #eaf4ff;

  --orange: #ff7a00;
  --orange-dark: #df6500;
  --orange-light: #fff1e3;

  --white: #ffffff;
  --black: #0b1728;

  --text: #26364a;
  --muted: #718096;

  --border: #e6ebf2;
  --light: #f7f9fc;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm:
    0 8px 25px rgba(11, 23, 40, 0.06);

  --shadow-md:
    0 18px 45px rgba(11, 23, 40, 0.10);

  --shadow-lg:
    0 30px 90px rgba(0, 0, 0, 0.20);

  --container: 1180px;

  --font-body: "DM Sans", sans-serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;

  scroll-padding-top: 90px;
}


body {
  min-width: 320px;

  font-family: var(--font-body);

  color: var(--text);

  background: var(--white);

  line-height: 1.6;

  overflow-x: hidden;
}


body.modal-open {
  overflow: hidden;
}


img {
  display: block;

  max-width: 100%;
}


a {
  color: inherit;

  text-decoration: none;
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  cursor: pointer;
}


button:focus-visible,
a:focus-visible {
  outline: 3px solid
    rgba(255, 122, 0, 0.35);

  outline-offset: 3px;
}


.container {
  width: min(
    var(--container),
    calc(100% - 48px)
  );

  margin-inline: auto;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);

  color: var(--black);

  line-height: 1.15;
}


h1 {
  font-size:
    clamp(
      3.2rem,
      6vw,
      5.8rem
    );

  letter-spacing: -0.055em;
}


h2 {
  font-size:
    clamp(
      2.3rem,
      4vw,
      4rem
    );

  letter-spacing: -0.045em;
}


h3 {
  letter-spacing: -0.025em;
}


p {
  color: var(--muted);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  inset: 0 0 auto;

  z-index: 1000;

  width: 100%;

  background:
    rgba(
      255,
      255,
      255,
      0.94
    );

  backdrop-filter: blur(15px);

  -webkit-backdrop-filter: blur(15px);

  border-bottom:
    1px solid
    rgba(
      230,
      235,
      242,
      0.8
    );
}


.navbar {
  min-height: 82px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
   HEADER LOGO
========================================================= */

.logo {
  flex: 0 0 auto;

  display: inline-flex;

  align-items: center;

  width: 145px;
}


.logo img {
  display: block;

  width: 100%;

  height: auto;

  object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nav-menu {
  margin-left: auto;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 30px;
}


.nav-link {
  position: relative;

  display: inline-flex;

  align-items: center;

  color: #536176;

  font-size: 0.92rem;

  font-weight: 600;

  white-space: nowrap;

  transition:
    color 0.25s ease;
}


.nav-link::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -7px;

  width: 0;

  height: 2px;

  background: var(--orange);

  transition:
    width 0.25s ease;
}


.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}


.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


/* =========================================================
   NAV BUTTON
========================================================= */

.nav-button {
  min-height: 46px;

  padding: 0 21px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  color: var(--white);

  background: var(--orange);

  border-radius: 8px;

  font-size: 0.9rem;

  font-weight: 700;

  white-space: nowrap;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}


.nav-button:hover {
  color: var(--white);

  background: var(--orange-dark);

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px
    rgba(
      255,
      122,
      0,
      0.25
    );
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: none;

  flex: 0 0 auto;

  width: 45px;

  height: 45px;

  border: 0;

  background: var(--blue-light);

  border-radius: 9px;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 5px;
}


.menu-toggle span {
  width: 21px;

  height: 2px;

  background: var(--blue);

  border-radius: 10px;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/* Hamburger → X */

.menu-toggle.active span:nth-child(1) {
  transform:
    translateY(7px)
    rotate(45deg);
}


.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}


.menu-toggle.active span:nth-child(3) {
  transform:
    translateY(-7px)
    rotate(-45deg);
}


/* =========================================================
   PORTFOLIO HERO
========================================================= */

.portfolio-hero {
  position: relative;

  min-height: 650px;

  padding-top: 82px;

  display: flex;

  align-items: center;

  overflow: hidden;

  background:
    linear-gradient(
      115deg,
      #ffffff 0%,
      #ffffff 50%,
      #f1f7ff 100%
    );
}


.portfolio-hero-content {
  position: relative;

  z-index: 2;

  max-width: 900px;

  padding: 100px 0 110px;
}


.hero-label {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  padding: 8px 13px;

  color: var(--blue);

  background: var(--blue-light);

  border-radius: 100px;

  font-size: 0.78rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.07em;
}


.hero-label span {
  width: 7px;

  height: 7px;

  flex-shrink: 0;

  background: var(--orange);

  border-radius: 50%;
}


.portfolio-hero h1 {
  max-width: 850px;

  margin-top: 25px;
}


.portfolio-hero h1 span {
  display: block;

  color: var(--blue);
}


.portfolio-hero-content > p {
  max-width: 680px;

  margin-top: 27px;

  font-size: 1.08rem;

  line-height: 1.8;
}


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
  display: flex;

  align-items: center;

  margin-top: 55px;
}


.hero-stats > div:not(.stat-line) {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 90px;
}


.hero-stats strong {
  color: var(--orange);

  font-family: var(--font-heading);

  font-size: 1.25rem;

  font-weight: 800;
}


.hero-stats span {
  color: var(--black);

  font-size: 0.76rem;

  font-weight: 600;
}


.stat-line {
  width: 1px;

  height: 38px;

  margin: 0 28px;

  flex-shrink: 0;

  background: var(--border);
}


/* =========================================================
   HERO DECORATIONS
========================================================= */

.hero-decoration {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  user-select: none;
}


.hero-decoration-one {
  width: 500px;

  height: 500px;

  right: -220px;

  top: 120px;

  border:
    100px solid
    rgba(
      0,
      87,
      184,
      0.055
    );
}


.hero-decoration-two {
  width: 160px;

  height: 160px;

  right: 28%;

  bottom: 50px;

  border:
    22px solid
    rgba(
      255,
      122,
      0,
      0.08
    );
}


/* =========================================================
   PORTFOLIO SECTION
========================================================= */

.portfolio-section {
  padding: 110px 0;

  background: var(--white);
}


.portfolio-heading {
  display: grid;

  grid-template-columns:
    0.75fr 1fr;

  gap: 80px;

  align-items: end;

  margin-bottom: 55px;
}


.section-label {
  display: flex;

  align-items: center;

  gap: 10px;

  color: var(--blue);

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.section-label span:first-child {
  color: var(--orange);
}


.portfolio-heading h2 {
  margin-top: 20px;
}


.portfolio-heading h2 span {
  display: block;

  color: var(--blue);
}


.portfolio-heading > p {
  max-width: 620px;

  font-size: 0.98rem;

  line-height: 1.8;
}


/* =========================================================
   FILTERS
========================================================= */

.portfolio-filters {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 35px;

  padding-bottom: 20px;

  border-bottom:
    1px solid
    var(--border);
}


.filter-btn {
  min-height: 43px;

  padding: 0 17px;

  color: var(--muted);

  background: var(--white);

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  font-size: 0.78rem;

  font-weight: 700;

  white-space: nowrap;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}


.filter-btn:hover {
  color: var(--blue);

  border-color: var(--blue);

  transform: translateY(-2px);
}


.filter-btn.active {
  color: var(--white);

  background: var(--blue);

  border-color: var(--blue);
}


/* =========================================================
   PORTFOLIO GRID
========================================================= */

.portfolio-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 28px;

  align-items: start;
}


.portfolio-card {
  min-width: 0;

  overflow: hidden;

  animation:
    portfolioIn
    0.45s
    ease
    both;
}


.portfolio-card.hidden {
  display: none;
}


.portfolio-large {
  grid-column: span 2;
}


@keyframes portfolioIn {

  from {
    opacity: 0;

    transform:
      translateY(20px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


/* =========================================================
   PORTFOLIO IMAGE
========================================================= */

.portfolio-image {
  position: relative;

  overflow: hidden;

  aspect-ratio: 1.1;

  background: var(--blue-light);

  border-radius: var(--radius-md);
}


.portfolio-large
.portfolio-image {
  aspect-ratio: 1.65;
}


.portfolio-image::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      to top,
      rgba(
        11,
        23,
        40,
        0.72
      ),
      transparent 55%
    );

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.35s ease;
}


.portfolio-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:
    transform 0.6s
    cubic-bezier(
      .22,
      1,
      .36,
      1
    );
}


.portfolio-card:hover
.portfolio-image img {
  transform:
    scale(1.045);
}


.portfolio-card:hover
.portfolio-image::after {
  opacity: 1;
}


/* =========================================================
   PORTFOLIO IMAGE PLACEHOLDER
========================================================= */

.portfolio-image-placeholder {
  position: absolute;

  inset: 0;

  display: grid;

  place-items: center;

  background:
    linear-gradient(
      135deg,
      var(--blue-light),
      #f7f9fc
    );
}


.placeholder-inner {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 12px;

  color: var(--blue);

  text-align: center;

  padding: 20px;
}


.placeholder-icon {
  width: 58px;

  height: 58px;

  display: grid;

  place-items: center;

  color: var(--orange);

  background: var(--white);

  border-radius: 50%;

  box-shadow: var(--shadow-sm);

  font-size: 1.35rem;
}


.placeholder-inner span {
  color: var(--muted);

  font-size: 0.75rem;

  font-weight: 700;
}


/* =========================================================
   PORTFOLIO OVERLAY
========================================================= */

.portfolio-overlay {
  position: absolute;

  z-index: 3;

  inset:
    auto
    18px
    18px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  opacity: 0;

  transform:
    translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


.portfolio-card:hover
.portfolio-overlay {
  opacity: 1;

  transform:
    translateY(0);
}


.portfolio-overlay > span {
  padding: 7px 11px;

  color: var(--white);

  background: var(--orange);

  border-radius: 6px;

  font-size: 0.68rem;

  font-weight: 800;
}


.view-project {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 9px 13px;

  color: var(--black);

  background: var(--white);

  border: 0;

  border-radius: 7px;

  font-size: 0.7rem;

  font-weight: 800;

  box-shadow:
    0 6px 18px
    rgba(
      0,
      0,
      0,
      0.12
    );

  transition:
    transform 0.2s ease;
}


.view-project:hover {
  transform:
    translateY(-2px);
}


.view-project span {
  color: var(--blue);

  font-size: 0.9rem;
}


/* =========================================================
   PORTFOLIO INFO
========================================================= */

.portfolio-info {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 17px 3px;
}


.portfolio-info > div {
  min-width: 0;
}


.portfolio-info > div > span {
  color: var(--muted);

  font-size: 0.68rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}


.portfolio-info h3 {
  margin-top: 4px;

  color: var(--black);

  font-size: 1rem;

  line-height: 1.35;

  overflow-wrap: anywhere;
}


.project-number {
  flex-shrink: 0;

  width: 37px;

  height: 37px;

  display: grid;

  place-items: center;

  color: var(--blue);

  border:
    1px solid
    var(--border);

  border-radius: 50%;

  font-size: 0.68rem;

  font-weight: 800;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.portfolio-empty {
  display: none;

  padding: 70px 20px;

  text-align: center;
}


.portfolio-empty.show {
  display: block;
}


.empty-icon {
  width: 55px;

  height: 55px;

  display: grid;

  place-items: center;

  margin:
    0
    auto
    20px;

  color: var(--orange);

  background: var(--orange-light);

  border-radius: 50%;

  font-size: 1.3rem;
}


.portfolio-empty h3 {
  color: var(--black);

  font-size: 1.2rem;
}


.portfolio-empty p {
  margin-top: 8px;

  font-size: 0.85rem;
}


/* =========================================================
   CTA SECTION
========================================================= */

.portfolio-cta {
  padding:
    30px
    0
    110px;

  background: var(--white);
}


.portfolio-cta-box {
  position: relative;

  min-height: 430px;

  display: flex;

  align-items: center;

  padding: 70px;

  overflow: hidden;

  background: var(--orange);

  border-radius: var(--radius-lg);
}


.cta-content {
  position: relative;

  z-index: 3;

  max-width: 650px;
}


.portfolio-cta
.section-label {
  color: var(--white);
}


.portfolio-cta
.section-label span:first-child {
  color: var(--blue-dark);
}


.portfolio-cta h2 {
  margin-top: 20px;

  color: var(--white);
}


.portfolio-cta h2 span {
  display: block;

  color: var(--blue-dark);
}


.portfolio-cta p {
  max-width: 580px;

  margin-top: 20px;

  color:
    rgba(
      255,
      255,
      255,
      0.88
    );
}


/* =========================================================
   CTA BUTTONS
========================================================= */

.cta-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 32px;
}


.btn {
  min-height: 54px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 0 22px;

  border-radius: 9px;

  font-size: 0.88rem;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


.btn:hover {
  transform:
    translateY(-3px);
}


.btn-white {
  color: var(--orange);

  background: var(--white);
}


.btn-white:hover {
  color: var(--orange-dark);

  box-shadow:
    0 15px 30px
    rgba(
      0,
      0,
      0,
      0.12
    );
}


.btn-outline-white {
  color: var(--white);

  background: transparent;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.45
    );
}


.btn-outline-white:hover {
  color: var(--white);

  background:
    rgba(
      255,
      255,
      255,
      0.1
    );
}


/* =========================================================
   CTA DECORATION
========================================================= */

.cta-decoration {
  position: absolute;

  right: -80px;

  bottom: -100px;

  width: 500px;

  height: 500px;

  display: grid;

  place-items: center;

  color:
    rgba(
      255,
      255,
      255,
      0.12
    );

  border:
    80px solid
    rgba(
      255,
      255,
      255,
      0.08
    );

  border-radius: 50%;

  font-family:
    var(--font-heading);

  font-size: 3rem;

  font-weight: 800;

  transform:
    rotate(-25deg);

  pointer-events: none;

  user-select: none;
}


/* =========================================================
   PROJECT MODAL
========================================================= */

.project-modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 25px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}


.project-modal.open,
.project-modal.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}


.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(
      5,
      15,
      30,
      0.78
    );

  backdrop-filter:
    blur(7px);

  -webkit-backdrop-filter:
    blur(7px);
}


.modal-box {
  position: relative;

  z-index: 2;

  width: min(
    900px,
    100%
  );

  max-height:
    calc(100vh - 50px);

  overflow: hidden;

  display: grid;

  grid-template-columns:
    1.05fr 0.95fr;

  background: var(--white);

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 30px 90px
    rgba(
      0,
      0,
      0,
      0.25
    );

  transform:
    translateY(20px)
    scale(0.98);

  transition:
    transform 0.3s ease;
}


.project-modal.open
.modal-box,
.project-modal.active
.modal-box {
  transform:
    translateY(0)
    scale(1);
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.modal-close {
  position: absolute;

  z-index: 5;

  top: 15px;

  right: 15px;

  width: 42px;

  height: 42px;

  display: grid;

  place-items: center;

  color: var(--black);

  background: var(--white);

  border: 0;

  border-radius: 50%;

  font-size: 1.6rem;

  line-height: 1;

  box-shadow:
    0 8px 25px
    rgba(
      0,
      0,
      0,
      0.12
    );

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.modal-close:hover {
  background: var(--light);

  transform:
    rotate(90deg);
}


/* =========================================================
   MODAL IMAGE
========================================================= */

.modal-image {
  position: relative;

  min-height: 500px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      var(--blue-light),
      #f7f9fc
    );
}


.modal-image::before {
  content: "LikeStar";

  position: absolute;

  inset: 0;

  display: grid;

  place-items: center;

  color:
    rgba(
      0,
      87,
      184,
      0.12
    );

  font-family: var(--font-heading);

  font-size: 2rem;

  font-weight: 800;

  pointer-events: none;
}


.modal-image img {
  position: relative;

  z-index: 2;

  width: 100%;

  height: 100%;

  object-fit: cover;
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.modal-content {
  padding:
    55px
    45px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;

  overflow-y: auto;
}


.modal-content > span {
  color: var(--orange);

  font-size: 0.7rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


.modal-content h2 {
  margin-top: 13px;

  color: var(--black);

  font-size: 2.2rem;

  overflow-wrap: anywhere;
}


.modal-content p {
  margin-top: 18px;

  font-size: 0.9rem;

  line-height: 1.8;
}


.modal-cta {
  align-self: flex-start;

  margin-top: 30px;

  padding: 13px 17px;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  color: var(--white);

  background: var(--blue);

  border-radius: 8px;

  font-size: 0.78rem;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}


.modal-cta:hover {
  color: var(--white);

  background: var(--blue-dark);

  transform:
    translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding:
    75px
    0
    30px;

  background: var(--blue);

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );
}


/* =========================================================
   FOOTER GRID
========================================================= */

.footer-grid {
  display: grid;

  grid-template-columns:
    1.6fr
    repeat(
      3,
      1fr
    );

  gap: 60px;

  padding-bottom: 60px;
}


/* =========================================================
   FOOTER LOGO
========================================================= */

.footer .logo {
  width: 135px;

  filter:
    brightness(0)
    invert(1);
}


.footer-brand p {
  max-width: 300px;

  margin-top: 20px;

  color:
    rgba(
      255,
      255,
      255,
      0.75
    );

  font-size: 0.82rem;

  line-height: 1.7;
}


/* =========================================================
   FOOTER COLUMNS
========================================================= */

.footer-column {
  display: flex;

  flex-direction: column;

  gap: 11px;
}


.footer-column h4 {
  margin-bottom: 8px;

  color: var(--white);

  font-size: 0.82rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}


.footer-column a {
  color:
    rgba(
      255,
      255,
      255,
      0.72
    );

  font-size: 0.78rem;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.footer-column a:hover {
  color: var(--orange);

  transform:
    translateX(3px);
}


.footer-cta {
  color: var(--orange) !important;

  font-weight: 800;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding-top: 25px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.15
    );

  color:
    rgba(
      255,
      255,
      255,
      0.58
    );

  font-size: 0.7rem;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

  .nav-menu {
    gap: 22px;
  }


  .portfolio-heading {
    gap: 50px;
  }


  .footer-grid {
    gap: 40px;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

  .portfolio-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }


  .portfolio-large {
    grid-column: span 2;
  }


  .portfolio-heading {
    grid-template-columns: 1fr;

    gap: 25px;
  }


  .portfolio-heading > p {
    max-width: 700px;
  }


  .footer-grid {
    grid-template-columns:
      1.5fr
      repeat(
        2,
        1fr
      );
  }

}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 850px) {

  .navbar {
    min-height: 76px;
  }


  .menu-toggle {
    display: flex;
  }


  .nav-menu {
    position: absolute;

    top:
      calc(100% + 8px);

    left: 18px;

    right: 18px;

    margin-left: 0;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    gap: 0;

    padding: 10px;

    background: var(--white);

    border:
      1px solid
      var(--border);

    border-radius: 15px;

    box-shadow:
      var(--shadow-md);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
      translateY(-10px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }


  .nav-menu.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
      translateY(0);
  }


  .nav-link {
    width: 100%;

    padding: 13px 12px;
  }


  .nav-link::after {
    display: none;
  }


  .nav-button {
    width: 100%;

    margin-top: 8px;
  }


  .portfolio-hero {
    min-height: auto;
  }


  .portfolio-hero-content {
    padding:
      80px
      0
      100px;
  }


  .portfolio-hero h1 {
    font-size:
      clamp(
        2.8rem,
        8vw,
        4.5rem
      );
  }


  .portfolio-cta-box {
    padding:
      60px
      45px;
  }


  .modal-box {
    grid-template-columns: 1fr;

    max-height:
      calc(100vh - 40px);

    overflow-y: auto;
  }


  .modal-image {
    min-height: 350px;

    max-height: 420px;
  }


  .modal-content {
    overflow: visible;
  }

}


/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 700px) {

  .container {
    width:
      min(
        var(--container),
        calc(100% - 36px)
      );
  }


  .portfolio-heading h2 {
    font-size: 2.5rem;
  }


  .hero-stats {
    flex-wrap: wrap;

    align-items: flex-start;

    gap: 22px;
  }


  .stat-line {
    display: none;
  }


  .footer-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 40px 30px;
  }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 600px) {

  .container {
    width:
      min(
        var(--container),
        calc(100% - 28px)
      );
  }


  /* -----------------------------------------
     HEADER
  ----------------------------------------- */

  .navbar {
    min-height: 72px;
  }


  .logo {
    width: 125px;
  }


  .menu-toggle {
    width: 43px;

    height: 43px;
  }


  .nav-menu {
    left: 14px;

    right: 14px;
  }


  /* -----------------------------------------
     HERO
  ----------------------------------------- */

  .portfolio-hero {
    padding-top: 72px;
  }


  .portfolio-hero-content {
    padding:
      60px
      0
      80px;
  }


  .hero-label {
    font-size: 0.7rem;

    padding:
      7px
      11px;
  }


  .portfolio-hero h1 {
    margin-top: 20px;

    font-size:
      clamp(
        2.6rem,
        12vw,
        4rem
      );

    letter-spacing: -0.06em;
  }


  .portfolio-hero-content > p {
    margin-top: 22px;

    font-size: 0.95rem;

    line-height: 1.75;
  }


  .hero-stats {
    display: grid;

    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );

    gap: 12px;

    margin-top: 40px;
  }


  .hero-stats > div:not(.stat-line) {
    min-width: 0;
  }


  .hero-stats strong {
    font-size: 1rem;

    overflow-wrap: anywhere;
  }


  .hero-stats span {
    font-size: 0.67rem;
  }


  .hero-decoration-one {
    width: 300px;

    height: 300px;

    right: -160px;

    top: 180px;

    border-width: 65px;
  }


  .hero-decoration-two {
    width: 100px;

    height: 100px;

    right: 10%;

    bottom: 35px;

    border-width: 14px;
  }


  /* -----------------------------------------
     PORTFOLIO
  ----------------------------------------- */

  .portfolio-section {
    padding:
      80px
      0;
  }


  .portfolio-heading {
    margin-bottom: 35px;
  }


  .portfolio-heading h2 {
    font-size: 2.25rem;
  }


  .portfolio-heading > p {
    font-size: 0.9rem;
  }


  /* -----------------------------------------
     FILTERS
  ----------------------------------------- */

  .portfolio-filters {
    gap: 7px;

    margin-bottom: 28px;

    padding-bottom: 15px;

    overflow-x: auto;

    flex-wrap: nowrap;

    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
  }


  .filter-btn {
    min-height: 40px;

    flex: 0 0 auto;

    padding:
      0
      12px;

    font-size: 0.7rem;
  }


  /* -----------------------------------------
     GRID
  ----------------------------------------- */

  .portfolio-grid {
    grid-template-columns: 1fr;

    gap: 25px;
  }


  .portfolio-large {
    grid-column: auto;
  }


  .portfolio-large
  .portfolio-image,
  .portfolio-image {
    aspect-ratio: 1.1;
  }


  /* -----------------------------------------
     MOBILE OVERLAY
  ----------------------------------------- */

  .portfolio-overlay {
    opacity: 1;

    transform:
      translateY(0);

    inset:
      auto
      12px
      12px;
  }


  .portfolio-image::after {
    opacity: 1;
  }


  .portfolio-overlay > span {
    padding:
      6px
      9px;

    font-size: 0.6rem;
  }


  .view-project {
    padding:
      8px
      11px;

    font-size: 0.66rem;
  }


  .portfolio-info {
    padding:
      15px
      3px;
  }


  .portfolio-info h3 {
    font-size: 0.95rem;
  }


  /* -----------------------------------------
     CTA
  ----------------------------------------- */

  .portfolio-cta {
    padding:
      10px
      0
      80px;
  }


  .portfolio-cta-box {
    min-height: 500px;

    padding:
      55px
      25px;

    border-radius: 22px;
  }


  .portfolio-cta h2 {
    font-size: 2.25rem;
  }


  .portfolio-cta p {
    font-size: 0.9rem;

    line-height: 1.75;
  }


  .cta-actions {
    flex-direction: column;

    align-items: stretch;
  }


  .cta-actions .btn {
    width: 100%;
  }


  .cta-decoration {
    right: -200px;

    bottom: -150px;

    width: 400px;

    height: 400px;

    border-width: 60px;

    opacity: 0.7;
  }


  /* -----------------------------------------
     MODAL
  ----------------------------------------- */

  .project-modal {
    padding:
      15px;
  }


  .modal-box {
    width: 100%;

    max-height:
      calc(100vh - 30px);

    border-radius: 18px;
  }


  .modal-close {
    top: 10px;

    right: 10px;

    width: 38px;

    height: 38px;

    font-size: 1.4rem;
  }


  .modal-image {
    min-height: 260px;

    max-height: 300px;
  }


  .modal-content {
    padding:
      35px
      25px;
  }


  .modal-content h2 {
    font-size: 1.8rem;
  }


  .modal-content p {
    font-size: 0.85rem;
  }


  .modal-cta {
    width: 100%;

    justify-content: center;
  }


  /* -----------------------------------------
     FOOTER
  ----------------------------------------- */

  .footer {
    padding:
      60px
      0
      25px;
  }


  .footer-grid {
    grid-template-columns: 1fr;

    gap: 35px;

    padding-bottom: 40px;
  }


  .footer-brand p {
    max-width: 340px;
  }


  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;

    gap: 8px;

    line-height: 1.5;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {

  .container {
    width:
      calc(100% - 24px);
  }


  .logo {
    width: 112px;
  }


  .portfolio-hero-content {
    padding:
      50px
      0
      70px;
  }


  .portfolio-hero h1 {
    font-size:
      2.45rem;
  }


  .hero-stats {
    grid-template-columns: 1fr;
  }


  .hero-stats > div:not(.stat-line) {
    flex-direction: row;

    align-items: baseline;

    justify-content: space-between;

    gap: 12px;

    padding-bottom: 9px;

    border-bottom:
      1px solid
      rgba(
        11,
        23,
        40,
        0.08
      );
  }


  .portfolio-heading h2 {
    font-size: 2rem;
  }


  .portfolio-cta-box {
    padding:
      45px
      20px;
  }


  .portfolio-cta h2 {
    font-size: 2rem;
  }


  .cta-decoration {
    right: -230px;

    bottom: -180px;
  }


  .modal-content {
    padding:
      30px
      20px;
  }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media
  (hover: none)
  and (pointer: coarse) {

  .portfolio-overlay {
    opacity: 1;

    transform:
      translateY(0);
  }


  .portfolio-image::after {
    opacity: 1;
  }


  .portfolio-card:hover
  .portfolio-image img {
    transform: none;
  }


  .nav-link:hover::after {
    width: 0;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;

    scroll-behavior:
      auto !important;
  }

}