/* ================================
   Freddie Merene Portfolio Website
   Dark Premium Version
================================ */

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

* {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050816;
  --bg-soft: #080d1f;
  --surface: rgba(15, 23, 42, 0.82);
  --surface-strong: rgba(17, 24, 39, 0.96);
  --surface-soft: rgba(148, 163, 184, 0.08);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(56, 189, 248, 0.28);
  --text: #f8fafc;
  --muted: #a9b6ca;
  --muted-strong: #cbd5e1;
  --primary: #38bdf8;
  --primary-dark: #2563eb;
  --accent: #a855f7;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1120px;
  --header-height: 76px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  font-family: Inter, Manrope, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.14), transparent 30rem),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.12), transparent 34rem),
    var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-140%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.centered {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(5, 8, 22, 0.74);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 22, 0.92);
  border-color: rgba(56, 189, 248, 0.14);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.91rem;
  font-weight: 740;
  color: var(--muted-strong);
}

.site-nav a:not(.btn) {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #8b5cf6);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.42);
}

.btn-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.24);
}

.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.38);
}

.btn-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 92px;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  left: -160px;
  top: 120px;
  background: rgba(37, 99, 235, 0.25);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: 20px;
  background: rgba(56, 189, 248, 0.15);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: 64px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #bdefff;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 850;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.14);
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.25rem, 7vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.hero-subheadline {
  max-width: 690px;
  margin-top: 26px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-top: 34px;
}

.hero-proof div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.hero-proof strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.hero-proof span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card {
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.42), rgba(168, 85, 247, 0.22), transparent 65%);
}

.profile-frame {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  aspect-ratio: 1 / 1;
}

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

.profile-info {
  padding: 22px 8px 4px;
}

.profile-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-info h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.profile-info p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tools-strip {
  border-block: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(5, 8, 22, 0.54);
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 22px 0;
}

.tools-row span,
.project-topline span,
.tag {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.8rem;
  font-weight: 780;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-content h2,
.contact-card h2 {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.section-heading p,
.about-content p,
.contact-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.project-card,
.process-step,
.about-mini-card,
.contact-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.service-card {
  min-height: 260px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.project-card:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

.service-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.86rem;
}

.service-card h3,
.project-card h3,
.process-step h3,
.about-mini-card h3 {
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.service-card p,
.project-card p,
.process-step p {
  margin-top: 12px;
  color: var(--muted);
}

.projects-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.11), transparent 32rem),
    rgba(2, 6, 23, 0.32);
  border-block: 1px solid rgba(148, 163, 184, 0.1);
}

.project-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.project-heading-row > div {
  max-width: 780px;
}

.project-carousel {
  position: relative;
  padding: 10px 84px 0;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  min-height: 430px;
}

.project-card {
  min-height: 310px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 590px);
  transition:
    transform 0.42s ease,
    opacity 0.32s ease,
    filter 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
  will-change: transform, opacity;
  overflow: hidden;
}

.project-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.project-slide.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 3;
  pointer-events: auto;
}

.project-slide.is-prev {
  transform: translateX(calc(-50% - 660px)) scale(0.88);
  opacity: 0.26;
  filter: saturate(0.72);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0.18) 84%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0.18) 84%, rgba(0, 0, 0, 0) 100%);
}

.project-slide.is-prev::after {
  opacity: 1;
  background: linear-gradient(to right, rgba(5, 8, 22, 0) 0%, rgba(5, 8, 22, 0) 58%, rgba(5, 8, 22, 0.52) 84%, rgba(5, 8, 22, 0.92) 100%);
}

.project-slide.is-next {
  transform: translateX(calc(-50% + 660px)) scale(0.88);
  opacity: 0.26;
  filter: saturate(0.72);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 1) 100%);
}

.project-slide.is-next::after {
  opacity: 1;
  background: linear-gradient(to right, rgba(5, 8, 22, 0.92) 0%, rgba(5, 8, 22, 0.52) 16%, rgba(5, 8, 22, 0) 42%, rgba(5, 8, 22, 0) 100%);
}

.project-slide.is-hidden-left {
  transform: translateX(calc(-50% - 980px)) scale(0.84);
  opacity: 0;
  filter: blur(4px);
  z-index: 1;
  pointer-events: none;
}

.project-slide.is-hidden-right {
  transform: translateX(calc(-50% + 980px)) scale(0.84);
  opacity: 0;
  filter: blur(4px);
  z-index: 1;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 13, 31, 0.9);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.96);
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

.carousel-arrow span {
  font-size: 1.1rem;
  font-weight: 900;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-inline: 8px;
}

.carousel-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 850;
}

.carousel-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-project {
  border-color: rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.05) 38%, rgba(15, 23, 42, 0.86)),
    var(--surface-strong);
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-card h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}

.project-value {
  display: grid;
  gap: 6px;
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.project-value strong {
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: #7dd3fc;
  font-weight: 900;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.muted-link {
  color: var(--muted-strong);
}

.coming-soon-card {
  border-style: dashed;
}

.disabled-link {
  cursor: default;
  pointer-events: none;
  opacity: 0.74;
}

.disabled-link::after {
  content: "";
  margin-left: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  min-height: 210px;
  padding: 22px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
}

.about-section {
  background:
    radial-gradient(circle at 15% 30%, rgba(168, 85, 247, 0.1), transparent 30rem),
    rgba(2, 6, 23, 0.22);
  border-block: 1px solid rgba(148, 163, 184, 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 40px;
}

.credibility-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  list-style: none;
}

.credibility-list li {
  display: flex;
  gap: 11px;
  color: var(--muted-strong);
}

.credibility-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #052e16;
  background: var(--success);
  font-size: 0.8rem;
  font-weight: 950;
}

.about-mini-card {
  padding: 18px;
  text-align: center;
}

.about-mini-card img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-inline: auto;
  border-radius: 24px;
  background: #ffffff;
}

.about-mini-card div {
  padding: 18px 8px 4px;
}

.about-mini-card p {
  margin-top: 5px;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 110px;
}

.contact-card {
  padding: clamp(26px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.7fr;
  gap: 32px;
  align-items: center;
  border-color: rgba(56, 189, 248, 0.26);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 25rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.direct-email {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.direct-email span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.direct-email a {
  color: #7dd3fc;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
  word-break: break-word;
}

.site-footer {
  padding: 42px 0 28px;
  background: rgba(2, 6, 23, 0.84);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer h2 {
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.site-footer p,
.footer-bottom span {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
  }

  .services-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .project-carousel {
    padding-inline: 72px;
  }

  .project-slide {
    width: min(100%, 540px);
  }

  .project-slide.is-prev {
    transform: translateX(calc(-50% - 580px)) scale(0.87);
  }

  .project-slide.is-next {
    transform: translateX(calc(-50% + 580px)) scale(0.87);
  }

  .project-slide.is-hidden-left {
    transform: translateX(calc(-50% - 860px)) scale(0.82);
  }

  .project-slide.is-hidden-right {
    transform: translateX(calc(-50% + 860px)) scale(0.82);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: rgba(8, 13, 31, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .site-nav .btn {
    margin-top: 8px;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 84px;
  }

  .hero h1 {
    font-size: clamp(3rem, 11vw, 5.1rem);
  }

  .project-carousel {
    padding-inline: 0;
  }

  .carousel-viewport {
    min-height: 390px;
  }

  .project-slide {
    width: 100%;
  }

  .project-slide.is-prev {
    transform: translateX(calc(-50% - 110%)) scale(0.96);
    opacity: 0;
  }

  .project-slide.is-next {
    transform: translateX(calc(-50% + 110%)) scale(0.96);
    opacity: 0;
  }

  .project-slide.is-hidden-left {
    transform: translateX(calc(-50% - 130%)) scale(0.92);
  }

  .project-slide.is-hidden-right {
    transform: translateX(calc(-50% + 130%)) scale(0.92);
  }

  .carousel-arrow {
    top: auto;
    bottom: -6px;
    transform: none;
  }

  .carousel-arrow:hover {
    transform: scale(1.05);
  }

  .carousel-arrow-prev {
    left: 8px;
  }

  .carousel-arrow-next {
    right: 8px;
  }

  .carousel-footer {
    margin-top: 26px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 3.7rem);
  }

  .carousel-viewport {
    min-height: 420px;
  }

  .carousel-arrow {
    width: 46px;
    height: 46px;
  }

  .hero-actions,
  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-proof,
  .services-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .project-card,
  .process-step {
    min-height: auto;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
  }
}
