/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --charcoal: #2b2b2b;
  --off-white: #F9F7F3;
  --warm-bone: #F5EFE6;
  --soft-taupe: #D6CFC4;
  --landing-bg: #e8e3da;
  --what-i-do-bg: #831406;
  --what-i-do-text: #e8e3da;
  --why-work-bg: #e8e3da;
  --why-work-text: #2b2b2b;
  --services-bg: #323523;
  --services-text: #e8e3da;
  --about-bg: #e8e3da;
  --about-text: #2b2b2b;
  --enter-button-color: #831406;
}

body {
  font-family: 'Lora', serif;
  background: var(--landing-bg);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Landing Page */
.landing-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: url('images/landingbg.png');
  background-size: auto;
  background-position: top left;
  background-repeat: repeat;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.landing-page.slide-out {
  transform: translateX(-100%);
}

.sand-texture {
  display: none;
}

.brand-title {
  text-align: center;
  z-index: 2;
  position: relative;
}

.brand-enso {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
  max-height: 400px;
}

.brand-title h1 {
  display: none;
}

.tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.8;
  color: var(--charcoal);
}

.enter-button {
  font-size: 1.2rem;
  font-family: 'Lora', serif;
  color: var(--enter-button-color);
  background: transparent;
  border: 2px solid var(--enter-button-color);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.enter-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--enter-button-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.enter-button:hover:before {
  left: 0;
}

.enter-button:hover {
  color: var(--what-i-do-text);
}

/* Main Content */
.main-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: transparent;
  transition: right 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow-y: auto;
  z-index: 10;
}

.main-content.slide-in {
  right: 0;
}

/* Full-width sections with proper backgrounds */
.section {
  min-height: 100vh;
  width: 100%;
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Section-specific styling with full-width backgrounds */
#what-i-do {
  background: var(--what-i-do-bg);
  color: var(--what-i-do-text);
}

#why-work {
  background: var(--why-work-bg);
  color: var(--why-work-text);
  position: relative;
}

#why-work .section-container {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 0 2rem;
  max-width: 900px;
}

#why-work .side-image {
  position: absolute;
  top: 0;
  right: 20px;
  width: 100px;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#why-work .side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: 100%;
}

#services {
  background: var(--services-bg);
  color: var(--services-text);
}

#about {
  background: var(--about-bg);
  color: var(--about-text);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--charcoal);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
}

/* Update scroll indicators for different sections */
#what-i-do .scroll-indicator,
#services .scroll-indicator {
  color: var(--what-i-do-text);
}

#what-i-do .scroll-arrow,
#services .scroll-arrow {
  background: var(--what-i-do-text);
}

#what-i-do .scroll-arrow::after,
#services .scroll-arrow::after {
  border-top-color: var(--what-i-do-text);
}

#why-work .scroll-indicator,
#about .scroll-indicator {
  color: var(--charcoal);
}

#why-work .scroll-arrow,
#about .scroll-arrow {
  background: var(--charcoal);
}

#why-work .scroll-arrow::after,
#about .scroll-arrow::after {
  border-top-color: var(--charcoal);
}

.scroll-text {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.scroll-arrow {
  width: 1px;
  height: 20px;
  background: var(--charcoal);
  position: relative;
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -3px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--charcoal);
}

@keyframes scrollPulse {
  0%, 100% { 
      opacity: 0.6;
      transform: translateY(0);
  }
  50% { 
      opacity: 1;
      transform: translateY(3px);
  }
}

.section-intro {
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

.section-content {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.7s;
}

.section-content p {
  margin-bottom: 2rem;
}

.stats-list {
  margin: 3rem 0;
  padding-left: 0;
  list-style: none;
}

.stats-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.1rem;
}

.stats-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--why-work-text);
  font-weight: bold;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-item {
  padding: 2rem;
  background: rgba(232, 227, 218, 0.1);
  border-radius: 0;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.service-item:hover {
  background: rgba(232, 227, 218, 0.2);
  border-left-color: var(--what-i-do-text);
  transform: translateX(10px);
}

.service-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.cta-section {
  text-align: center;
  margin: 4rem 0;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

#services .cta-section {
  background: rgba(232, 227, 218, 0.1);
}

#why-work .cta-section,
#about .cta-section {
  background: rgba(214, 207, 196, 0.3);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--charcoal);
  color: var(--off-white);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--soft-taupe);
  color: var(--charcoal);
}

/* Update CTA buttons for different sections */
#why-work .cta-button,
#about .cta-button {
  background: var(--charcoal);
  color: var(--off-white);
}

#why-work .cta-button:hover,
#about .cta-button:hover {
  background: var(--soft-taupe);
  color: var(--charcoal);
}

#services .cta-button {
  background: var(--what-i-do-text);
  color: var(--charcoal);
}

#services .cta-button:hover {
  background: var(--soft-taupe);
  color: var(--charcoal);
}

.navigation {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  display: none;
  background: rgba(232, 227, 218, 0.7);
  padding: 0.75rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(43, 43, 43, 0.1);
  box-shadow: 0 4px 20px rgba(43, 43, 43, 0.1);
  transition: all 0.3s ease;
}

.navigation:hover {
  background: rgba(232, 227, 218, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(43, 43, 43, 0.15);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hamburger:hover {
  opacity: 1;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
  opacity: 0.8;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -5px);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-menu a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 15px;
  position: relative;
}

.nav-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .section-container {
      padding: 0 1.5rem;
  }
  
  #why-work .side-image {
      width: 50px;
      right: 15px;
  }

  .services-list {
      grid-template-columns: 1fr;
  }

  .hamburger {
      display: flex;
  }

  .nav-menu {
      position: absolute;
      top: calc(100% + 0.5rem);
      right: 0;
      background: rgba(232, 227, 218, 0.9);
      backdrop-filter: blur(20px);
      border-radius: 15px;
      flex-direction: column;
      gap: 0;
      padding: 0.75rem 0;
      min-width: 140px;
      box-shadow: 0 8px 25px rgba(43, 43, 43, 0.15);
      border: 1px solid rgba(43, 43, 43, 0.1);
      transform: translateY(-10px) scale(0.95);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
  }

  .nav-menu.active {
      transform: translateY(0) scale(1);
      opacity: 1;
      visibility: visible;
  }

  .nav-menu li {
      padding: 0 0.75rem;
  }

  .nav-menu a {
      display: block;
      padding: 0.6rem 0.5rem;
      border-radius: 10px;
      font-size: 0.9rem;
      margin: 0.1rem 0;
      border: none;
  }

  .nav-menu a:hover {
      background: rgba(255, 255, 255, 0.4);
      transform: none;
  }

  .navigation {
      top: 1.5rem;
      right: 1.5rem;
      padding: 0.5rem;
      background: rgba(232, 227, 218, 0.6);
  }

  .navigation:hover {
      background: rgba(232, 227, 218, 0.8);
  }

  .scroll-indicator {
      bottom: 1.5rem;
  }

  .scroll-text {
      font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section {
      padding: 3rem 0;
  }
  
  .section-container {
      padding: 0 1rem;
  }
  
  #why-work .side-image {
      display: none;
  }

  .brand-enso {
      max-height: 250px;
  }

  .tagline {
      font-size: 1rem;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.main-content::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Additional styling for better mobile experience */
@media (max-width: 768px) {
  .cta-section {
      padding: 2rem 1rem;
  }
  
  .stats-list li {
      font-size: 1rem;
  }
  
  .service-item {
      padding: 1.5rem;
  }
}