/* Page structure styles */
body {
  margin: 0;
  background: var(--bg);
}

/* Main layout containers */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
}

/* Header styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 32, 0); /* Start transparent */
  backdrop-filter: blur(0px); /* Start with no blur */
  transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out, padding 0.3s ease-out, height 0.3s ease-out;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  display: flex;
  gap: 4px;
}

/* Hero section */
.hero-wrapper {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 85px); /* 85px is the initial header height (20px*2 padding + content) */
  width: 100%;
  padding: 80px 20px 40px;
  overflow: hidden;
  /* Add a subtle radial gradient background */
  background: linear-gradient(15deg, rgba(229, 120, 84, 0.1) 0%, rgba(255, 150, 100, 0.0) 60%, var(--bg) 80%);
  position: relative; /* Ensure it contains positioned children correctly */
  z-index: 1; /* Place it above the body background effects */
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

/* Section layouts */
.section-content {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  flex-direction: column; /* Mobile-first: default is column */
}

.section-content-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Desktop styles for section content layout */
@media (min-width: 981px) {
  .section-content {
    flex-direction: row;
  }
  .info-section:nth-of-type(even) .section-content {
    flex-direction: row-reverse;
  }
}

/* Visual section separation */
.section-wrapper {
  padding: 64px 20px;
}

.info-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.info-section:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-wrapper.alt-bg {
  background: rgba(27, 30, 37, 0.5);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 22px 20px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

/* Fix for sticky header overlapping content on anchor link navigation */
section[id] {
  scroll-margin-top: 100px; /* Increased to account for header height when scrolled */
}