* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Runde', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e3f1ff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Background Layers --- */
.gradient-bg {
  position: fixed;
  inset: 0;
  background-image: url('/assets/Background.webp');
  background-size: cover;
  background-position: center;
  z-index: -5;
}

.noise-texture {
  position: fixed;
  inset: 0;
  background-image: url('/assets/Noise.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: -3;
}

/* --- Top Header --- */
.top-header {
  position: fixed;
  top: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.portfolio-title {
  color: #31535a;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
}

.contact-btn {
  background: rgba(49, 83, 90, 0.8);
  color: #cdf9ff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 16px;
  transition: 0.3s ease;
  font-weight: 500;
}

/* --- Horizontal Scroll Container --- */
.horizontal-scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.page-panel {
  width: 100vw;
  min-height: 100vh;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  padding: 0 40px;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-panel.scrollable {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 20vh;
}

/* --- Hero Section --- */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.hero-section-content {
  margin-top: -40px;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.hero-logo {
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25));
  max-width: 750px;
  width: 85%;
  height: auto;
  margin: 0 auto;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 52px;
  font-weight: 500;
  margin-top: -40px;
}

/* --- Static Background Banners --- */
.static-banner {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  height: auto;
}

.banner-typography { top: 18%; left: -8%; width: 320px; transform: rotate(-7deg); }
.banner-barky { top: -5%; left: 50%; width: 320px; transform: translateX(-50%) rotate(8deg); }
.banner-socal { top: 38%; right: -8%; width: 260px; transform: rotate(-5deg); }

/* --- Logo Carousel --- */
.logo-carousel {
  position: absolute;
  bottom: 145px;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  white-space: nowrap;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 100px;
  width: max-content;
  animation: scrollInfinite 40s linear infinite;
}

.logo-track img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Navigation & Location --- */
.location-text {
  position: fixed;
  bottom: 45px;
  left: 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.location-text span {
  font-weight: 400;
}

.nav-pill {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 20px 30px;
  border-radius: 26px;
  z-index: 20;
}

.nav-pill ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

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

.nav-underline {
  position: absolute;
  bottom: 15px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}