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

:root {
  --bg: #0f0f10;
  --text: #f3eee7;
  --card-text: #f4eee7;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.top-nav {
  position: fixed !important;
  z-index: 1000 !important;
}

/* Fix floating cubes visibility */
.floating-stars {
  z-index: 1 !important;
}

.cube {
  z-index: 1 !important;
}

/* Reposition cubes to empty areas to avoid overlapping content */
.cube-1 {
  top: 15%;
  left: 8%;
  bottom: auto;
}

.cube-2 {
  top: 80%;
  left: 15%;
  bottom: auto;
}

.cube-3 {
  top: 12%;
  right: 8%;
  left: auto;
}

.cube-4 {
  top: 85%;
  right: 12%;
  left: auto;
}

.cube-5 {
  top: 50%;
  left: 4%;
  right: auto;
}

.cube-6 {
  top: 70%;
  right: 6%;
  left: auto;
}

.cube-7 {
  top: 8%;
  left: 50%;
  right: auto;
}

.cube-8 {
  top: 90%;
  left: 45%;
  right: auto;
}

.about-wrapper {
  position: relative;
  z-index: 5;
}

.about-hero-title {
  position: absolute;
  top: 10vh;
  left: 30%;
  /* Center relative to the card */
  transform: translateX(-50%);
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(3.5rem, 5vw, 6rem);
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  z-index: 10;
  margin: 0;
  width: max-content;
}

.about-hero-title .accent {
  color: #FFD700;
  font-style: normal;
}

.about-details {
  position: absolute;
  top: 35vh;
  left: calc(30% + min(25vw, 410px) + 12vw);
  /* Significantly increased gap */
  width: min(35vw, 500px);
  color: #fff;
  z-index: 5;
}

.about-details h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-details p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD700;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

.about-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider {
  position: absolute;
  top: 15vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  perspective: 300px;
  perspective-origin: 30% 50%;
}

.card {
  position: absolute;
  top: 42%;
  left: 30%;
  width: min(50vw, 820px);
  height: 390px;
  border-radius: 14px;
  overflow: hidden;
  transform: translate3d(-50%, -50%, 0);
  background: #000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.52));
}

.card img {
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.copy {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  color: var(--card-text);
  text-align: center;
}

.copy h1 {
  position: relative;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.copy p {
  position: relative;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  
  opacity: 0.86;
}

.copy h1 span,
.copy p span {
  position: relative;
  display: inline-block;
}

@media (max-width: 900px) {
  body, .page, .about-wrapper {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .about-hero-title {
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    margin: 12vh auto 5vh auto;
    font-size: clamp(2.5rem, 8vw, 4rem);
    width: max-content;
  }

  .slider {
    position: relative;
    top: 0;
    height: 220px;
    perspective-origin: 50% 50%;
    margin: 0 auto;
    overflow: visible;
  }

  .card {
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: min(70vw, 280px);
    height: 160px;
    top: 50%;
  }

  .about-details {
    position: relative;
    top: 0;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 6rem auto 5vh auto;
    width: 90vw;
    text-align: center;
    z-index: 9999;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .about-details h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .about-details p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .about-stats {
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .copy h1 {
    font-size: 26px;
  }

  .copy p {
    font-size: 9px;
  }
}