/* General Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Header Styling */
.hero {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.jpg') center/cover;
}

.hero h1 {
    font-size: 3rem;
    color: #d4af37; /* Gold accent */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Layout Wrapper */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* The Sticky Magic */
.bio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
    align-items: start; /* Important for sticky */
}

.image-container {
    position: sticky;
    top: 20px; /* How far from the top it stops */
    height: auto;
}

.image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

/* Text Content */
.text-content h2 {
    color: #d4af37;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.flavor-text {
    font-style: italic;
    color: #888;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.item-card {
    background: #252525;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

.item-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bio-section {
        display: block; /* Standard flow */
    }

    .image-container {
        float: left; /* Image sits to the left of text */
        width: 120px; /* Smaller thumbnail size */
        height: 120px;
        margin: 0 15px 10px 0;
        position: sticky; /* It can still stick, but it's smaller! */
        top: 90px; /* Just below the shrunk header */
        z-index: 5;
    }

    .text-content h2 {
        clear: none; /* Allows title to wrap around the image */
        font-size: 1.4rem;
    }
}

footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 0.9rem;
}





/* Header Base State */
.hero {
    position: fixed; /* Keep it at the top */
    top: 0;
    width: 100%;
    height: 300px; /* Starting height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    z-index: 1000;
    transition: all 0.4s ease; /* Smooth shrinking animation */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 3rem;
    color: #d4af37;
    transition: font-size 0.4s ease;
}

.hero p {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Shrunk State (Triggered by JS) */
.hero.shrunk {
    height: 80px; /* Compact height */
    background-color: rgba(20, 20, 20, 0.95); /* More opaque when small */
    backdrop-filter: blur(10px); /* Modern glass effect */
}

.hero.shrunk h1 {
    font-size: 1.5rem; /* Smaller text */
}

.hero.shrunk p {
    opacity: 0; /* Hide title to save space */
    pointer-events: none;
}

/* Adjust Content Wrapper */
/* Since the header is 'fixed', it doesn't take up space in the layout.
   We need to push the content down so it doesn't start underneath the header. */
.content-wrapper {
    margin-top: 320px; /* Should be slightly more than the hero height */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* Adjust Sticky Sections for Shrunken Header */
/* We must account for the 80px header so sections don't hide behind it when scrolling */
.image-container {
    position: sticky;
    top: 100px; /* 80px (header) + 20px (padding) */
    height: auto;
}

/* My stuff I've added manually. */
p, li {
  padding: 5px;
  font-size: 1.2rem;
  /* margin: 20px 10px 10px 10px; */
}
