/* Define CSS variables for consistency and maintainability */
:root {
  --primary-color: orange;
  --secondary-color: yellow;
  --background-overlay: rgba(0, 0, 0, 0.6);
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
  --spacing-unit: 1rem;
  --header-height: 600px; /* Further increased to make the background image larger */
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: #000; /* Black background for the rest of the page */
  font-family: var(--font-family);
  color: var(--primary-color);
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

/* Header with background image */
.header-image {
  width: 100%;
  height: var(--header-height);
  background-image: url('images/1stlogoExperimentalArtStudios.png');
  background-size: contain; /* Changed back to contain to show the full image without cutting off */
  background-position: center center; /* Centered for better visibility on larger size */
  background-repeat: no-repeat;
  position: relative;
  z-index: 1; /* Ensures header stays above other content */
}

.header-image p {
  display: none; /* Removed empty p tag styling since it's hidden */
}

/* Container layout */
.container {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navigation styles */
.sidebar-links {
  position: absolute;
  top: var(--spacing-unit);
  right: var(--spacing-unit);
  width: 200px;
  z-index: 2; /* Ensures sidebar stays above main content */
}

.sidebar-links ul {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin: calc(var(--spacing-unit) / 2) 0;
}

.sidebar-links a {
  display: block;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.1em;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.sidebar-links a:hover,
.sidebar-links a:focus {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

/* Main content styles */
main {
  width: 100%;
  padding: var(--spacing-unit) * 2;
  background-color: #000; /* Matches body background */
  z-index: 0; /* Ensures main stays below header and sidebar */
  margin-top: var(--header-height); /* Pushes main below the larger header image */
}

.intro {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-unit) * 1.25;
  background-color: var(--background-overlay);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: white;
}

.intro h1 {
  font-size: clamp(2rem, 5vw, 3em);
  margin-bottom: var(--spacing-unit);
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.intro p {
  font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-image {
    height: 400px; /* Increased from 350px */
  }

  .sidebar-links {
    position: static;
    width: 100%;
    margin-top: var(--spacing-unit);
    z-index: 2;
  }

  .sidebar-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-unit);
  }

  .sidebar-links li {
    margin: 0;
  }

  .sidebar-links a {
    width: 100%;
    text-align: center;
  }

  main {
    margin-top: 400px; /* Adjusted to match larger height */
    padding: var(--spacing-unit);
  }

  .intro {
    padding: var(--spacing-unit);
  }

  .intro h1 {
    font-size: clamp(1.5rem, 5vw, 2.5em);
  }
}

@media (max-width: 480px) {
  .header-image {
    height: 300px; /* Increased from 250px */
  }

  .sidebar-links a {
    padding: 0.4em 0.8em;
  }

  main {
    margin-top: 300px; /* Adjusted to match larger height */
    padding: calc(var(--spacing-unit) * 0.75);
  }

  .intro {
    padding: calc(var(--spacing-unit) * 0.75);
  }

  .intro h1 {
    font-size: clamp(1.2rem, 5vw, 2em);
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header-image {
    background-image: url('images/1stlogoExperimentalArtStudios@2x.png'); /* High-res version placeholder */
  }
}