/* Font face: place your Century Gothic files in assets/fonts */
@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/fonts/centurygothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset and base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html,
body,
div,
span,
img {
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #fff;
  font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6vh 6vw;
  padding-top: clamp(80px, 12vh, 100px);
  text-align: center;
  cursor: pointer;
}

.stage > * {
  /* Stack all stage children in the same grid cell so the visible one stays truly centered */
  grid-area: 1 / 1;
}

/* Sequential stage layout: text and projects stacked vertically */
.stage-sequential {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Keep the sequential text centered vertically */
  padding-top: clamp(80px, 12vh, 100px);
}

.stage-sequential > * {
  grid-area: unset;
  position: relative;
}

.stage-sequential #text {
  margin-bottom: 0;
  /* Use flex gap for spacing instead of large margins from other components */
  gap: clamp(14px, 2.5vh, 24px);
}

.stage-sequential #text [data-seq="1"],
.stage-sequential #text [data-seq="2"] {
  margin: 0;
}

/* The second line reuses .projects-signature; neutralize its big bottom margin in sequential text */
.stage-sequential #text .projects-signature {
  margin-bottom: 0;
}

.stage-sequential #projects {
  /* Push projects to the bottom of the viewport in sequential layout */
  margin-top: auto;
  padding: 0;
}

/* Projects-only stage: pin projects to the bottom without affecting other stages */
.stage-projects-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.stage-projects-bottom #projects {
  margin-top: auto;
  /* Stage already has padding; avoid double padding from .projects */
  padding: 0;
}

.logo {
  /* Make the initial stage logo 50% smaller */
  width: min(40vw, 460px);
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* Hero logo: small size at top center */
.logo-hero {
  width: min(20vw, 200px);
  height: auto;
}

.stage-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(80px, 12vh, 100px);
}

.stage-hero .logo-hero {
  margin-bottom: clamp(20px, 3vh, 40px);
}

.stage-hero .text.emphasis {
  margin-top: 0;
  font-size: clamp(14px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  color: #fff;
  /* text-transform: uppercase; */
  line-height: 1.4;
}

/* Hero-projects stage: logo at top, text below, projects below text */
.stage-hero-projects {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(80px, 12vh, 100px);
  gap: clamp(20px, 3vh, 40px);
}

.stage-hero-projects .logo-hero {
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  width: min(30vw, 300px);
  padding: 0;
  box-sizing: border-box;
}

.stage-hero-projects .text.emphasis {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  color: #fff;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

.stage-hero-projects #projects {
  margin-top: clamp(40px, 6vh, 80px);
  padding: 0;
}

.text {
  /* max-width: 1000px; */
  line-height: 1.6;
  font-size: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  color: #fff;
}



.text.manifesto .text-block-medium,
.text.manifesto .text-block-large,
.text.manifesto .text-block-small {
  margin: 0;
  width: 100%;
}

.text.manifesto .manifesto-intro {
  font-size: clamp(12px, 2.05vw, 26px);
  line-height: 1.68;
  letter-spacing: 0.04em;
  margin-bottom: clamp(36px, 6vh, 68px);
}

.text.manifesto .manifesto-vision {
  font-size: clamp(12px, 2.05vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.14em;
  margin-bottom: clamp(40px, 6vh, 76px);
}

.text.manifesto .manifesto-statement-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 16px);
  margin-bottom: clamp(30px, 6vh, 80px);
  margin-top: clamp(30px, 6vh, 80px);
  width: 100%;
}

.text.manifesto .manifesto-statement {
  font-size: clamp(16px, 1.9vw, 22px);
  letter-spacing: 0.12em;
  margin-bottom: 0;
}

.text.manifesto .manifesto-statement--last {
  padding-bottom: clamp(12px, 2vh, 20px);
}

.text.manifesto .manifesto-outro {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.65;
  letter-spacing: 0.05em;
  margin-bottom: clamp(28px, 4.5vh, 50px);
}

.text.manifesto .manifesto-outro--last {
  margin-bottom: 0;
}

.text.emphasis {
  font-size: clamp(24px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  color: #fff;
}

/* Text block sizes based on image */
.text-block-small {
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 0.9;
  margin: 0 auto;
  margin-bottom: clamp(12px, 2vh, 24px);
  text-align: center;
  width: 100%;
  color: #fff;
}

.text-block-medium {
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.6;
  margin: 0 auto;
  margin-bottom: clamp(80px, 15vh, 150px);
  text-align: center;
  width: 100%;
  color: #fff;
}

.text-block-medium:last-child {
  margin-bottom: 0;
}

.text-block-large {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 auto;
  margin-top: clamp(80px, 15vh, 150px);
  margin-bottom: clamp(80px, 15vh, 150px);
  text-align: center;
  width: 100%;
  color: #fff;
}

.text.manifesto .text-block-medium,
.text.manifesto .text-block-large,
.text.manifesto .text-block-small {
  margin-bottom: 0;
}

.text.manifesto .text-block-large {
  margin-top: 0;
}

/* Projects section */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6vh 6vw;
  color: #fff;
}

.projects-signature {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: clamp(60px, 12vh, 120px);
  color: #fff;
}

.projects-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(80px, 12vw, 180px);
  width: 100%;
  flex-wrap: wrap;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8vh;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex: 0 1 auto;
}

.project-item:hover {
  opacity: 0.8;
}

.project-media-wrapper {
  position: relative;
  width: clamp(200px, 25vw, 400px);
  height: clamp(200px, 25vw, 400px);
  margin-bottom: clamp(20px, 3vh, 40px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media-wrapper video.project-media {
  background: #000;
}

.project-label {
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: clamp(12px, 2vh, 20px);
  color: #fff;
  text-transform: uppercase;
}

.project-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: clamp(18px, 3.5vw, 35px) solid #fff;
  border-top: clamp(12px, 2.5vw, 24px) solid transparent;
  border-bottom: clamp(12px, 2.5vw, 24px) solid transparent;
  transition: transform 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-item:hover .project-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Projects page grid */
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  display: block;
  background: #000;
}

.project-card:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: clamp(16px, 3vh, 24px);
  pointer-events: none;
}

.project-card-title {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
}

/* Small screens - 2 columns */
@media (max-width: 768px) {
  .projects-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 3vw, 20px);
  }
  
  .project-card {
    aspect-ratio: 1 / 1;
  }
}

/* Very small screens - 1 column */
@media (max-width: 480px) {
  .projects-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Project detail page */
#projectContent {
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(20px, 4vh, 40px);
}

#projectContent > .page-title {
  margin-bottom: clamp(40px, 6vh, 80px);
  text-align: center;
  width: 100%;
}

#projectContent p {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(14px, 2vw, 18px);
  margin: clamp(20px, 4vh, 40px) 0;
}

/* Project detail page slider */
.project-slider-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  margin-top: clamp(20px, 4vh, 40px);
}

.project-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.6s;
  pointer-events: none;
  will-change: opacity, transform;
  visibility: hidden;
}

.project-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s;
  z-index: 1;
}

.project-slide img,
.project-slide video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.project-slide video {
  background: #000;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  width: clamp(50px, 8vw, 70px);
  height: clamp(50px, 8vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 50%;
  user-select: none;
  line-height: 1;
  font-weight: 300;
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: clamp(10px, 2vw, 20px);
}

.slider-next {
  right: clamp(10px, 2vw, 20px);
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 5vh, 50px);
  padding: clamp(10px, 2vh, 20px) clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.slider-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

/* Project detail page responsive */
@media (max-width: 768px) {
  .project-slider-container {
    padding: 0 clamp(10px, 3vw, 20px);
  }
  
  .project-slider {
    min-height: 300px;
  }
  
  .project-slide img,
  .project-slide video {
    max-height: 60vh;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  
  .slider-prev {
    left: 5px;
  }
  
  .slider-next {
    right: 5px;
  }
  
  .slider-dots {
    gap: 10px;
    margin-top: clamp(20px, 4vh, 30px);
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .project-slider {
    min-height: 250px;
  }
  
  .project-slide img,
  .project-slide video {
    max-height: 50vh;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

.hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

.black-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1000;
  pointer-events: none;
}

.black-overlay.fade-in-overlay {
  animation: fadeInOverlay 300ms ease-in-out forwards;
}

.black-overlay.fade-out-overlay {
  animation: fadeOutOverlay 300ms ease-in-out forwards;
}

/* Transition animations */
.fade-in {
  animation: fadeIn 1500ms ease-in-out forwards;
}

.fade-out {
  animation: fadeOut 500ms ease-in-out forwards;
}

.flicker {
  animation: flicker 900ms linear forwards;
}

.flicker-out {
  animation: flickerOut 2500ms linear forwards;
}

/* Used by JS "CapCut" flicker-out to animate per-character spans */
.capcut-char {
  display: inline-block;
  will-change: opacity;
}

 .laser-cut {
  position: relative;
  animation: laserCut 4500ms cubic-bezier(.2, .8, .2, 1) forwards;
  overflow: hidden;
} 

/* White laser beam that appears before the reveal */
.laser-cut::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) 
          drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: laserBeamSweep 5000ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: -50ms;
}














@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOutOverlay {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Flicker effect */
@keyframes flicker {
  0% {
    opacity: 0;
  }

  10% {
    opacity: .6;
  }

  20% {
    opacity: 0;
  }

  30% {
    opacity: .85;
  }

  40% {
    opacity: .2;
  }

  50% {
    opacity: 1;
  }

  60% {
    opacity: .4;
  }

  70% {
    opacity: 1;
  }

  85% {
    opacity: .7;
  }

  100% {
    opacity: 1;
  }
}

/* Flicker-out effect (ends hidden) */
@keyframes flickerOut {
  0% { opacity: 1; }
  10% { opacity: .6; }
  20% { opacity: 1; }
  30% { opacity: .25; }
  40% { opacity: 1; }
  50% { opacity: .35; }
  60% { opacity: 1; }
  70% { opacity: .2; }
  85% { opacity: .8; }
  100% { opacity: 0; }
}

/* Laser cut reveal: opens from center vertical cut (horizontal direction) */
@keyframes laserCut {
  0% {
    clip-path: inset(0 100% 0 0); /* مخفي تمامًا من اليمين */
    opacity: 1;
  }

  
  100% {
    clip-path: inset(0 0 0 0); /* يظهر بالكامل */

    opacity: 1;
  }
}

/* White laser beam sweep animation */
@keyframes laserBeamSweep {
  0% {
    left: -30px;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  99% {
    left: calc(100% + 30px);
    opacity: 1;
  }
  100% {
    left: calc(100% + 30px);
    opacity: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .fade-in,
  .fade-out,
  .flicker,
  .laser-cut,
  .fade-in-overlay,
  .fade-out-overlay,
  .page-title,
  .page-section,
  .project-card,
  .contact-form,
  .contact-info,
  .contact-intro,
  .projects-intro {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.navbar[hidden] {
  display: none;
}

.navbar.navbar-hidden {
  opacity: 0;
  pointer-events: none;
}

.navbar.fade-in {
  opacity: 1;
  pointer-events: all;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(12px, 2vh, 20px) clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* English LTR layout: menu on left, logo on right */
.navbar[data-layout="en"] .nav-container {
  flex-direction: row;
}

.navbar[data-layout="en"] .nav-menu {
  order: 1;
}

.navbar[data-layout="en"] .nav-toggle {
  order: 2;
}

.navbar[data-layout="en"] .nav-logo {
  order: 3;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo img {
  height: clamp(30px, 4vh, 45px);
  width: auto;
  user-select: none;
  pointer-events: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Page layout utilities */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 40px) clamp(60px, 8vh, 100px);
}

/* Page animations */
.page-title {
  opacity: 0;
  transform: translateY(20px);
  animation: pageFadeInUp 0.8s ease-out 0.2s forwards;
}

.page-section {
  margin-bottom: clamp(60px, 10vh, 120px);
  opacity: 0;
  transform: translateY(30px);
  animation: pageFadeInUp 0.8s ease-out forwards;
}

.page-section:nth-child(1) {
  animation-delay: 0.4s;
}

.page-section:nth-child(2) {
  animation-delay: 0.5s;
}

.page-section:nth-child(3) {
  animation-delay: 0.6s;
}

.page-section:nth-child(4) {
  animation-delay: 0.7s;
}

.page-section:nth-child(5) {
  animation-delay: 0.8s;
}

.page-section:nth-child(6) {
  animation-delay: 0.9s;
}

@keyframes pageFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 80px);
  color: #fff;
  line-height: 1.4;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: clamp(24px, 4vh, 40px);
  color: #fff;
  text-transform: uppercase;
}

.section-content {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(30px, 5vh, 50px) clamp(20px, 4vw, 40px);
  text-align: center;
  margin-top: clamp(60px, 10vh, 120px);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* Small screens */
@media (max-width: 600px) {
  .text {
    line-height: 1.55;
  }

  .hint {
    bottom: 14px;
    font-size: 11px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 28px);
    align-items: start;
    justify-items: center;
  }

  .project-item {
    width: 100%;
    padding-top: clamp(18px, 4vh, 40px);
  }

  .project-media-wrapper {
    width: clamp(150px, 40vw, 300px);
    height: clamp(150px, 40vw, 300px);
    margin-bottom: clamp(15px, 2.5vh, 30px);
  }

  .projects-signature {
    margin-bottom: clamp(40px, 8vh, 80px);
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    order: unset !important; /* Reset order on mobile */
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* On mobile, reset order for all elements in English layout */
  .navbar[data-layout="en"] .nav-container {
    flex-direction: row;
    justify-content: space-between;
    position: relative;
  }

  .navbar[data-layout="en"] .nav-menu {
    order: unset;
  }

  .navbar[data-layout="en"] .nav-toggle {
    order: unset;
    position: relative;
    z-index: 2;
  }

  .navbar[data-layout="en"] .nav-logo {
    order: unset;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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