* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d1d25;

  background:
    radial-gradient(circle at 15% 20%, #ff9ecf 0, transparent 28%),
    radial-gradient(circle at 85% 25%, #8ea7ff 0, transparent 30%),
    radial-gradient(circle at 55% 85%, #b9fff2 0, transparent 28%),
    linear-gradient(135deg, #f8f7ff, #e9ecff);
}

/* INTRO */

#intro {
  position: fixed;
  inset: 0;
  z-index: 999;

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

  background:
    radial-gradient(circle at center, rgba(0, 255, 136, 0.08), transparent 35%),
    #050505;

  transition:
    opacity 1s ease,
    visibility 1s ease,
    background 1.6s ease;
}

/* CRT scanlines */
#intro::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    );

  opacity: 0.25;
  pointer-events: none;
}

/* white glassmorphism phase */
body.show-portfolio #intro {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 158, 207, 0.55), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(142, 167, 255, 0.55), transparent 32%),
    radial-gradient(circle at 55% 85%, rgba(185, 255, 242, 0.45), transparent 30%),
    linear-gradient(135deg, #f8f7ff, #e9ecff);
}

#intro.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* TERMINAL TEXT */

.terminal {
  position: relative;
  z-index: 1000;

  font-family: "Courier New", monospace;
  font-size: clamp(2rem, 6vw, 5rem);

  color: #00ff88;
  filter: contrast(120%);
}

/* MOVING HELLO */

.terminal-hello {
  display: inline-block;
  position: relative;
  z-index: 1001;

  transform-origin: left top;

  font-family: "Courier New", monospace;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0;

  color: #00ff88;

  text-shadow:
    0 0 10px rgba(0, 255, 136, 0.7),
    0 0 25px rgba(0, 255, 136, 0.4);

  transition:
    transform 1.7s cubic-bezier(.76, 0, .24, 1),
    color 1.4s ease,
    text-shadow 1.4s ease,
    filter 1.4s ease,
    font-size 1.5s ease,
    letter-spacing 1.5s ease,
    font-family 1.5s ease,
    font-weight 1.5s ease;
}

.terminal-hello.glassify {
  color: #1d1d25;

  text-shadow:
  0 0 25px rgba(255,255,255,0.45);

  filter: none;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-hello {
  opacity: 0;
  color: transparent;
  transition: opacity 0.8s ease;
}

body.hello-landed .hero-hello {
  opacity: 1;
  color: inherit;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  border: none;
  background: transparent;

  color: #1d1d25;
  font-size: 0.95rem;
  font-family: inherit;

  cursor: pointer;

  transition: opacity 0.3s ease;
}

.dropdown-toggle:hover {
  opacity: 0.6;
}

/* MENU */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;

  transform:
    translateX(-50%)
    translateY(10px);

  min-width: 220px;
  padding: 0.7rem;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.72),
      rgba(255,255,255,0.28)
    );

  border: 1px solid rgba(255,255,255,0.7);

  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);

  box-shadow:
    0 24px 60px rgba(31,38,135,0.14),
    inset 0 1px 0 rgba(255,255,255,0.85);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;

  z-index: 50;
}

/* SHOW MENU */

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

/* LINKS */

.dropdown-menu a {
  position: relative;
  overflow: hidden;

  display: block;

  padding: 0.9rem 1rem;
  border-radius: 16px;

  color: #1d1d25;
  text-decoration: none;
  font-weight: 600;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.dropdown-menu a::before {
  content: "";

  position: absolute;
  top: -40%;
  left: -80%;

  width: 45%;
  height: 180%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.65),
    transparent
  );

  transform: rotate(18deg);
}

/* HOVER */

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.45);

  transform: translateX(4px);
}

.dropdown-menu a:hover::before {
  animation: glass-wipe 0.75s ease forwards;
}

/* MAIN PORTFOLIO */

#portfolio {
  min-height: 100vh;
  padding: 2rem;

  opacity: 0;
  transform: scale(1.03);

  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

body.show-portfolio #portfolio {
  opacity: 1;
  transform: scale(1);
}

/* BACKGROUND BLOBS */

.bg-blur {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;

  filter: blur(65px);
  opacity: 0.65;
  z-index: -1;
}

.blur-1 {
  top: 10%;
  left: 8%;
  background: #ff9ecf;
}

.blur-2 {
  bottom: 10%;
  right: 8%;
  background: #8ea7ff;
}

.blur-3 {
  top: 55%;
  left: 45%;
  background: #b9fff2;
}

/* NAV */

nav {
  max-width: 1150px;
  margin: 0 auto 5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.2em;

  color: #1d1d25;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  margin-left: 0;
  color: #1d1d25;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* HERO */

.hero {
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem);
}

.glass-card {
  position: relative;
  overflow: hidden;

  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.65);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.25)
    );

  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);

  box-shadow:
    0 30px 80px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.55),
      transparent 30%,
      rgba(255, 255, 255, 0.1) 60%,
      transparent
    );

  pointer-events: none;
}

.eyebrow {
  margin-bottom: 1.5rem;

  color: #666276;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;

  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 650px;

  color: #4f4c5f;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* BUTTONS */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  margin-top: 2.5rem;
}

.btn {
  padding: 1rem 1.4rem;
  border-radius: 999px;

  font-weight: 600;
  text-decoration: none;
}

.primary {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #1d1d25,
      #2b2b38
    );

  color: white;

  border: 1.5px solid rgba(255,255,255,0.08);

  box-shadow:
    0 12px 30px rgba(29,29,37,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.primary::before {
  content: "";
  position: absolute;

  top: -40%;
  left: -80%;

  width: 45%;
  height: 180%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.28),
    transparent
  );

  transform: rotate(18deg);
}

.primary:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 38px rgba(29,29,37,0.38),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.primary:hover::before {
  animation: window-shine 0.75s ease forwards;
}

.secondary {
  position: relative;
  overflow: hidden;

  color: #1d1d25;
  background: rgba(255, 255, 255, 0.78);

  border: 1.5px solid rgba(29, 29, 37, 0.75);

  box-shadow:
    0 8px 24px rgba(29, 29, 37, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.secondary::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -80%;

  width: 45%;
  height: 180%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );

  transform: rotate(18deg);
}

.secondary:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.92);
  border-color: #1d1d25;

  box-shadow:
    0 12px 30px rgba(29, 29, 37, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.secondary:hover::before {
  animation: window-shine 0.75s ease forwards;
}

@keyframes window-shine {
  from {
    left: -80%;
  }

  to {
    left: 130%;
  }
}

.featured-work {
  max-width: 1150px;
  margin: 6rem auto 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.section-heading p {
  color: #4f4c5f;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;

  border-radius: 28px;
  text-decoration: none;
  color: inherit;

  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);

  box-shadow:
    0 20px 50px rgba(31, 38, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;

  width: 45%;
  height: 200%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );

  transform: rotate(18deg);
  z-index: 3;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(29, 29, 37, 0.22);

  box-shadow:
    0 28px 70px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-card:hover::before {
  animation: glass-wipe 0.85s ease forwards;
}

@keyframes glass-wipe {
  from {
    left: -80%;
  }

  to {
    left: 130%;
  }
}

.project-image {
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.9rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.project-why {
  color: #4f4c5f;
  line-height: 1.6;
}

.project-image {
  min-height: 210px;

  display: flex;
  align-items: flex-end;

  padding: 1.4rem;

  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.85), transparent 30%),
    linear-gradient(135deg, rgba(255,158,207,0.55), rgba(142,167,255,0.45));
}

.project-image span {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1d1d25;
}

.project-content {
  padding: 1.4rem;
}

.project-type {
  margin-bottom: 0.8rem;

  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666276;
}

.project-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
}

.project-why {
  color: #4f4c5f;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  margin-bottom: 1.4rem;
}

.project-tags span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;

  font-size: 0.78rem;

  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.project-link {
  color: #1d1d25;
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.about-section {
  max-width: 1150px;
  margin: 6rem auto 0;
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;

  padding: clamp(2rem, 5vw, 4rem);
}

.about-content {
  max-width: 620px;
}

.about-content h2 {
  margin-bottom: 1.4rem;

  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.about-content p {
  margin-bottom: 1.1rem;

  color: #4f4c5f;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-image {
  width: 100%;
  align-self: stretch;

  border-radius: 28px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 20px 50px rgba(31,38,135,0.14);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;

  display: block;
  object-fit: cover;
}

.skills-section {
  max-width: 1150px;
  margin: 6rem auto 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.skills-card {
  padding: 2rem;
}

.skills-card h3 {
  margin-bottom: 1.4rem;

  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skills-list span {
  padding: 0.7rem 1rem;
  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.38);

  border:
    1px solid rgba(29, 29, 37, 0.08);

  color: #1d1d25;

  font-size: 0.9rem;
  font-weight: 600;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 6px 18px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.45);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-section {
  max-width: 1150px;
  margin: 6rem auto 0;
  padding-bottom: 4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;

  padding: clamp(2rem, 5vw, 4rem);
}

.contact-content h2 {
  max-width: 720px;
  margin-bottom: 1.2rem;

  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.contact-text {
  color: #4f4c5f;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-links {
  display: grid;
  gap: 0.9rem;
}

.contact-links a {
  position: relative;
  overflow: hidden;

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

  padding: 1rem 1.1rem;
  border-radius: 999px;

  color: #1d1d25;
  text-decoration: none;
  font-weight: 700;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(29, 29, 37, 0.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 8px 24px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-links a::after {
  content: "↗";
  font-size: 0.95rem;
  opacity: 0.6;
}

.contact-links a::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -80%;

  width: 45%;
  height: 180%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.75),
    transparent
  );

  transform: rotate(18deg);
}

.contact-links a:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(29, 29, 37, 0.22);

  box-shadow:
    0 14px 30px rgba(31, 38, 135, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.contact-links a:hover::before {
  animation: glass-wipe 0.85s ease forwards;
}

.static-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.coming-soon-page {
  min-height: 100vh;
  padding: 2rem;
}

.coming-soon-card {
  max-width: 900px;
  margin: 5rem auto 0;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.coming-soon-card h1 {
  max-width: none;
  margin-bottom: 1.4rem;

  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.coming-soon-text {
  max-width: 620px;
  margin: 0 auto;

  color: #4f4c5f;
  font-size: 1.15rem;
  line-height: 1.7;
}

.coming-soon-card .buttons {
  justify-content: center;
}

/* LOADER */

.loader {
  display: flex;
  justify-content: center;
  gap: 0.7rem;

  margin-bottom: 2rem;
}

.loader span {
  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: #1d1d25;

  box-shadow:
    0 0 18px rgba(255,255,255,0.7),
    0 0 28px rgba(142,167,255,0.35);

  animation: loading-bounce 1s infinite ease-in-out;
}

.loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

.projects-page-heading {
  max-width: 850px;
  margin: 0 auto 3rem;
}

.projects-page-heading h1 {
  margin-bottom: 1.2rem;

  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.projects-page-heading p {
  max-width: 680px;

  color: #4f4c5f;
  font-size: 1.1rem;
  line-height: 1.7;
}

.static-page-main {
  min-height: 100vh;
  padding: 2rem 2rem 6rem;
}

.case-study-hero {
  max-width: 1150px;
  margin: 0 auto;

  padding: clamp(2rem, 6vw, 5rem);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;

  margin-bottom: 1.5rem;
}

.case-study-meta span {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;

  background: rgba(255,255,255,0.45);

  border: 1px solid rgba(255,255,255,0.7);

  font-size: 0.82rem;
  font-weight: 700;
}

.case-study-hero h1 {
  margin-bottom: 1.5rem;

  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.case-study-intro {
  max-width: 760px;
  margin-bottom: 2rem;

  color: #4f4c5f;
  font-size: 1.15rem;
  line-height: 1.8;
}

.case-study-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  margin-bottom: 3rem;
}

.hero-image {
  overflow: hidden;
  border-radius: 28px;
}

.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.case-study-section {
  max-width: 1150px;
  margin: 2rem auto 0;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.case-study-stat {
  padding: 2rem;
}

.stat-label {
  margin-bottom: 1rem;

  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #666276;
}

.case-study-stat h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.case-study-gallery {
  max-width: 1150px;
  margin: 2rem auto 0;
}

.gallery-large {
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.gallery-large img {
  width: 100%;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.gallery-grid .glass-card {
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  display: block;
}

.case-study-text {
  padding: clamp(2rem, 5vw, 4rem);
}

.case-study-text h2 {
  margin-bottom: 1.4rem;

  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.case-study-text p {
  max-width: 760px;
  margin-bottom: 1rem;

  color: #4f4c5f;
  line-height: 1.8;
}

.read-more {
  padding: 2rem;
}

.read-more summary {
  cursor: pointer;

  font-size: 1.2rem;
  font-weight: 700;

  list-style: none;
}

.read-more summary::-webkit-details-marker {
  display: none;
}

.read-more-content {
  padding-top: 1.5rem;
}

.read-more-content p {
  max-width: 760px;
  margin-bottom: 1rem;

  color: #4f4c5f;
  line-height: 1.8;
}

.insight-list,
.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.insight-list div,
.feature-list article {
  padding: 1.4rem;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(29, 29, 37, 0.08);

  box-shadow:
    0 8px 24px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.insight-list h3,
.feature-list h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.feature-list {
  grid-template-columns: repeat(3, 1fr);
}

.case-study-text .case-study-buttons {
  margin-top: 2rem;
}

.deep-dive-cta {
  text-align: center;

  padding:
    clamp(2rem, 5vw, 4rem);
}

.deep-dive-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;

  position: relative;
  overflow: hidden;

  isolation: isolate;

  z-index: 1;
}

.deep-dive-cta .btn::before {
  z-index: -1;
}

.deep-dive-cta h2 {
  margin-bottom: 1.2rem;

  font-size:
    clamp(2.5rem, 6vw, 5rem);

  line-height: 0.95;
  letter-spacing: -0.05em;
}

.deep-dive-cta p {
  max-width: 720px;
  margin: 0 auto 2rem;

  color: #4f4c5f;
  line-height: 1.8;
}

.gallery-grid video,
.gallery-large video {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  border-radius: 28px;
}

/* VIDEO CARD FIX */

.gallery-grid .glass-card,
.gallery-large.glass-card {
  overflow: hidden;
}

/* OPTIONAL: cinematic hover */

.gallery-grid video,
.gallery-large video {
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.gallery-grid .glass-card:hover video,
.gallery-large.glass-card:hover video {
  transform: scale(1.02);

  filter:
    saturate(1.05)
    contrast(1.02);
}

/* MOBILE */

@media (max-width: 650px) {
    #portfolio {
    padding: 1rem;
  }

  nav {
    margin-bottom: 3rem;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }

  .nav-links a,
  .dropdown-toggle {
    font-size: 0.9rem;
  }

  /* MOBILE DROPDOWN */

  .dropdown-menu {
    left: 0;
    transform: translateY(10px);

    min-width: 190px;
  }

  .dropdown:hover .dropdown-menu {
    transform: translateY(0);
  }

  .hero {
    border-radius: 24px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: fit-content;
  }

  body {
    overflow: auto;
  }

  .project-grid,
  .skills-grid,
  .personality-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .about-image img {
    min-height: 320px;
  }

  .case-study-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}