* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {

  background: #000;
}


/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #00000000;
  color: #fff;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Menu Button */
.menu-btn {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-btn span {
  height: 3px;
  width: 100%;
  background: #fff;
  display: block;
}

/* Fullscreen Nav */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: #000000a9;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  backdrop-filter: blur(10px);
  z-index: 2000;               /* FIX */
}

.fullscreen-nav.active {
  transform: translateY(0);
}

.fullscreen-nav ul {
  list-style: none;
  text-align: center;
}

.fullscreen-nav ul li {
  margin: 20px 0;
}

.fullscreen-nav ul li a {
  color: #fff;
  font-size: 3rem;
  text-decoration: none;
  transition: color 0.3s;
}

.fullscreen-nav ul li a:hover {
  color: #aaa;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 2100;           
}

/* Nav Inner Layout */
.nav-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Video Section */
.nav-video {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.nav-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Navigation Section */
.nav-links {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Nav list styling */
.nav-links ul {
  list-style: none;
  text-align: left;
}

.nav-links ul li {
  margin: 25px 0;
}

.nav-links ul li a {
  color: #fff;
  font-size: 3.5rem;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links ul li a:hover {
  transform: translateX(10px);
  opacity: 0.8;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}




/* Content */
.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 15px;
  color: rgb(247, 244, 244);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  max-width: 600px;
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(192, 18, 18, 0) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 2) 100%
  );
  z-index: -1;
}
.test-section {
 
  display: flex;
  align-items: center;
}

.appear-text {
  color: white;
  font-size: 1rem;
  padding: 40px;
  line-height: 1.4;
}

.appear-text span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
}


/* Letter wrapper */
.reveal-text {
  overflow: hidden;
}

.reveal-text span {
    display: inline-block;
  transform: translateY(40px);
  opacity: 0;
  filter: blur(8px); /* Initial blur */
}


.top-nav {
  background: linear-gradient(180deg, #fcfcff0c, #f1f1f504);
  padding: 14px 26px;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(223, 221, 221, 0.534),
    0 10px 30px rgb(0, 0, 0);
}

.top-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 14px;
}

.top-nav li {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  color: #9a9a9a;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.top-nav li:hover {
  color: #ffffff;
}

.top-nav li.active {
  color: #ffffff;
}

.top-nav li.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.8),
    transparent
  );
}
.top-nav {
  background: linear-gradient(180deg, #fcfcff0c, #f1f1f504);
  padding: clamp(10px, 2vw, 14px) clamp(16px, 4vw, 26px);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(223, 221, 221, 0.534),
    0 10px 30px rgb(0, 0, 0);
  max-width: 100%;
}

/* Allow wrapping on small screens */
.top-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: clamp(8px, 2vw, 14px);
}

/* Fluid typography */
.top-nav li {
  text-transform: uppercase;
  font-size: clamp(11px, 2.5vw, 13px);
  letter-spacing: clamp(1px, 0.4vw, 2px);
  color: #9a9a9a;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

/* Divider responsiveness */
.top-nav span {
  color: #3a3a3a;
  font-size: clamp(12px, 2.5vw, 14px);
  user-select: none;
}

.top-nav span {
  color: #3a3a3a;
  font-size: 14px;
  user-select: none;
}


.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px;
}

.section h1 {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.section p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 70px;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ================= CARD BASE ================= */
.card {
  position: relative;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid #ffffff1f;
}

/* ================= CARD SIZES ================= */
.card.plan { grid-column: 1 / 3; }
.card.design { grid-column: 3 / 4; }

.card.build { grid-column: 1 / 2; }
.card.launch { grid-column: 2 / 4;  }

/* ================= MEDIA ================= */
.card video,
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= OVERLAY ================= */
.card.plan::after,
.card.design::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}



/* ================= TEXT ================= */
.card-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  max-width: 240px;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-content span {
  font-size: 14px;
  line-height: 1.5;
  color: #d1d5db;
}

/* ================= LAUNCH ================= */
.launch {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.launch h2 {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    grid-column: auto !important;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    height: 260px;
  }
}

/* logo-slider */
.logo-slider {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 40px 0;
    position: relative; /* required for overlays */
}
/* Gradient overlays */
.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Left fade */
.logo-slider::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
}

/* Right fade */
.logo-slider::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
}
.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
}

/* Individual logo box */
.logo-box {
  width: 160px;
  height: 100px;
  margin: 0 16px;

  background: #2a2a2a6c;
  border: 1px solid #ffffff2a;
border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo image */
.logo-box img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
}

/* Infinite animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.logo-box img[src*="Evei"],
.logo-box img[src*="Habitec"],
.logo-box img[src*="Revybe"] {
  max-width: 90%;
  max-height: 75%;
}

.logo-header{
  color: white;
  text-align: center;
  margin-bottom: 20px;
}


/* Header when over light section */
.header.light {
  background: #00000091;
   backdrop-filter: blur(10px);
   border-bottom: 1px solid #ffffff2a;
   box-shadow: #00000091 0px 4px 30px;
}

/* Logo color change */
.header.light .logo {
  color: #ffffff;
}

/* Hamburger color change */
.header.light .menu-btn span {
  background: #ffffff;
}
/* Smooth transition for header state change */
.header {
  transition:
    background-color 0.45s ease,
    backdrop-filter 0.45s ease;
}

/* Logo + hamburger transition */
.logo,
.menu-btn span {
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    transform 0.35s ease;
}

.snap-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
