:root {
  --light-yellow: #f6ff7b;
  --primary-text: #333;
  --overlay-color: rgba(0, 0, 0, 0.5); /* Darken image by 20% more */
  --animation-duration: 2s; /* Changed to 2 seconds for image reveal */
  --animation-delay-1: 0.2s;
  --animation-delay-2: 0.4s;
  --animation-delay-3: 0.6s;
  --animation-delay-4: 0.8s;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--primary-text);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #000; /* Black background */
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Image Container */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80vh; /* 80% of viewport height */
  z-index: 0; /* Changed from -1 to 0 to make image visible */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
  top: 90px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  background-position: 40% center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
}

/* Image Reveal Animation */
.image-reveal-covers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; /* Above image but below text content */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 equal columns */
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  overflow: hidden;
}

.reveal-strip {
  background: #000; /* Black covers that hide the image initially */
  width: 100%; /* Full width of their column */
  height: 100%;
  animation: shrinkStrip var(--animation-duration) ease-out forwards;
}

.strip-1 {
  animation-delay: var(--animation-delay-1);
}

.strip-2 {
  animation-delay: var(--animation-delay-2);
}

.strip-3 {
  animation-delay: var(--animation-delay-3);
}

.strip-4 {
  animation-delay: var(--animation-delay-4);
}

/* Content Wrapper */
.hero-content {
  position: relative;
  z-index: 10; /* Increased z-index to appear above image */
  height: 100%;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title Section */
.title-section {
  margin-top: 5rem;
}

.user-banner-title {
  z-index: -1;
  color: var(--light-yellow);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp var(--animation-duration) ease-out forwards;
  animation-delay: calc(var(--animation-delay-3) + 0.4s);
}

.yellow_title {
  color: var(--light-yellow);
}
/* Bio Section */
.bio-section {
  margin-bottom: 2rem;
}

.user-bio {
  max-width: 600px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp var(--animation-duration) ease-out forwards;
  animation-delay: var(--animation-delay-1);
}

.user-bio p {
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Bottom Section */
.bottom-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--animation-duration) ease-out forwards;
  animation-delay: calc(var(--animation-delay-3) + 0.6s);
}

.bottom-content {
  /* Placeholder for future content */
  min-height: 50px;
}

/* Bottom Line */
.bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--light-yellow);
  width: 0%;
  animation: expandWidth 1s ease-out forwards;
  animation-delay: calc(var(--animation-delay-3) + 0.8s);
}

/* Animations */
@keyframes shrinkStrip {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .hero-content {
    padding: 3rem;
  }
  
  .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .title-section {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }
  
  .user-banner-title {
    font-size: clamp(3rem, 6vw, 5rem);
  }
  
  .bio-section {
    grid-column: 1;
  }
  
  .bottom-section {
    grid-column: 2;
    align-self: end;
  }
  
  .hero-photo {
    background-position: 50% center;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero-content {
    padding: 4rem;
  }
  
  .content-wrapper {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
  
  .user-banner-title {
    font-size: 4rem;
    margin-top: 30px;
  }
  
  .user-bio p {
    font-size: 1.1rem;
  }
  
  .hero-image-container {
    height: 85vh;
  }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
  .user-banner-title {
    font-size: 5rem;
  }
  
  .content-wrapper {
    max-width: 1400px;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-image-container {
    height: 100vh;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .user-banner-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .user-bio p {
    font-size: 0.9rem;
  }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  .reveal-strip,
  .user-banner-title,
  .user-bio,
  .bottom-section,
  .bottom-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .reveal-strip {
    width: 0%; /* Hide strips when animations are disabled */
  }
  
  .bottom-line {
    width: 100%;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-photo {
    background-size: contain;
  }
}

