* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    height: 110dvh;
    min-height: 600px;
    position: relative;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    background-image: url('static/solarpunk.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 70%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    margin-bottom: calc(10dvh + env(safe-area-inset-bottom, 0px));
    color: white;
    max-width: 600px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    /* margin-bottom: 16px; */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
}

/* Grid Layout for People Section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-top: 20px;
}

/* Different colored headers for each section */
.people-header {
    background: linear-gradient(135deg, #4a7c59 0%, #5d8f6a 100%);
}

.volunteers-header {
    background: linear-gradient(135deg, #3d7ea6 0%, #5094b8 100%);
}

.sponsors-header {
    background: linear-gradient(135deg, #b8943d 0%, #d4a94a 100%);
}

.projects-header {
    background: linear-gradient(135deg, #2d7d6b 0%, #4a9d87 100%);
}


/* Info cards for other sections */
.info-card {
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-content p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.placeholder-text {
    font-size: 12px;
    color: #999;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content a {
    color: #4a7c59;
    text-decoration: underline;
    font-weight: 500;
}

.card-content a:hover {
    background-color: #4a7c59;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Base header styles shared across all sections */
.grid-header {
    grid-column: span 2;
    border-radius: 16px;
    padding: 20px;
    color: white;
    aspect-ratio: 3/1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.grid-header h2 {
    font-size: 42px;
    margin: 0 0 0 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-transform: lowercase;
    font-weight: normal;
    position: relative;
    z-index: 2;
}

.grid-header .subtitle {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 300;
    position: relative;
    z-index: 2;
    margin-bottom: 0px;
}

.person-card {
    aspect-ratio: 1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;

    /* Placeholder background - replace with actual person photos */
    background: linear-gradient(45deg, #f0f0f0 0%, #e0e0e0 100%);
    background-size: cover;
    background-position: center;

    /* For demo purposes, using a pattern background */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f5f5"/><text x="50" y="45" font-family="Arial" font-size="12" fill="%23999" text-anchor="middle">Photo</text><text x="50" y="60" font-family="Arial" font-size="8" fill="%23bbb" text-anchor="middle">Coming Soon</text></svg>');
}

/* Add initials for cards without specific images */
.person-card::after {
    content: attr(data-initials);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.volunteers-header~.person-card:not([data-name="parker duff"]):not([data-name="harrison lin"]) {
    background: linear-gradient(135deg, #3d7ea6 0%, #5094b8 35%, #7bb3d1 100%);
}

.sponsors-header~.person-card:not([data-name="dragonfly farms"]):not([data-name="john rose"]) {
    background: linear-gradient(135deg, #b8943d 0%, #d4a94a 35%, #e8c168 100%);
}

.projects-header~.person-card:not([data-name="jupyter"]):not([data-name="llama"]) {
    background: linear-gradient(135deg, #2d7d6b 0%, #4a9d87 35%, #6bbba3 100%);
}

.person-card:not([data-name="nick foley"]):not([data-name="ben james"]):not([data-name="guthrie gintzler"]):not([data-name="bjorn heinbokel"]):not([data-name="luke murry"]):not([data-name="andy rapista"]):not([data-name="ivy zhang"]):not([data-name="ami zou"]):not([data-name="jupyter"]):not([data-name="john rose"]):not([data-name="harrison lin"]):not([data-name="parker duff"]):not([data-name="dragonfly farms"]):hover {
    background-size: 110% 110%;
}

.person-card:not([data-name="nick foley"]):not([data-name="ben james"]):not([data-name="guthrie gintzler"]):not([data-name="bjorn heinbokel"]):not([data-name="luke murry"]):not([data-name="andy rapista"]):not([data-name="ivy zhang"]):not([data-name="ami zou"]):not([data-name="jupyter"]):not([data-name="john rose"]):not([data-name="harrison lin"]):not([data-name="parker duff"]):not([data-name="dragonfly farms"]):hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%),
        rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.person-card:hover::before {
    background:
        radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%),
        rgba(0, 0, 0, 0.3);
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.person-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-weight: 500;
    font-size: 20px;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Update section spacing */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 18px;
    font-weight: normal;
    margin: 40px 0 20px 0;
    text-transform: lowercase;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
    margin-left: 20px;
}

li {
    margin-bottom: 8px;
}

li:before {
    content: "- ";
}

a {
    color: black;
    text-decoration: underline;
}

a:hover {
    background-color: black;
    color: white;
}

/* Responsive Design */
@media (max-width: 1199px) {

    /* Tablet - 3 columns */
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .main-content {
        max-width: 1000px;
        padding: 35px 20px;
    }
}

@media only screen and (max-width: 768px) {
    .hero {
        /* height: 100vh;
        height: 100dvh; */
        /* Dynamic viewport height for mobile */
        height: calc(110vh - env(safe-area-inset-top));
        /* Account for notches */
        min-height: 550px;
    }

    .hero-content {
        padding: 30px 20px;
        margin-bottom: 8dvh;
    }

    .main-content {
        max-width: none;
        padding: 30px 15px;
    }

    /* Mobile - 2 columns */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .grid-header {
        grid-column: span 2;
        padding: 25px;
    }

    .grid-header h2 {
        font-size: 30px;
    }

    .grid-header::before {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: -15px;
    }

    .person-name {
        font-size: 14px;
        bottom: 12px;
        left: 12px;
    }

    h2 {
        margin: 30px 0 15px 0;
    }

    section {
        margin-bottom: 50px;
    }

    .bottom-hero {
        height: 80dvh;
        min-height: 500px;
    }

    .bottom-hero-content {
        padding: 30px 20px;
    }

    .hero,
    .bottom-hero {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center center;
    }
}

@media only screen and (max-width: 480px) {
    .hero {
        height: calc(110vh - env(safe-area-inset-top));
        min-height: 500px;
    }

    .hero-content {
        padding: 20px 15px;
        margin-bottom: 10dvh;
    }

    .main-content {
        padding: 20px 15px;
    }

    /* Grid stays 2 columns on mobile */
    .grid-container {
        gap: 12px;
    }

    .grid-header {
        padding: 20px;
        aspect-ratio: 2/1;
    }

    .grid-header h2 {
        font-size: 24px;
    }

    .grid-header::before {
        width: 80px;
        height: 80px;
        bottom: -10px;
        right: -10px;
    }

    .info-card {
        padding: 15px;
    }

    .card-content p {
        font-size: 13px;
    }

    .placeholder-text {
        font-size: 11px;
    }

    .person-name {
        font-size: 13px;
        bottom: 10px;
        left: 10px;
    }

    ul {
        margin-left: 15px;
    }

    .hero,
    .bottom-hero {
        background-attachment: scroll !important;
    }

    .hero::after,
    .bottom-hero::after {
        content: "";
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-image: url('static/solarpunk.png') !important;
        background-size: cover;
        background-position: center center;
        z-index: -1;
    }
}

/* Person Cards */
.person-card[data-name="nick foley"] {
    background-image: url('static/nickfoley.jpg');
}

.person-card[data-name="ben james"] {
    background-image: url('static/benjames.jpg');
}

.person-card[data-name="guthrie gintzler"] {
    background-image: url('static/guthriegintzler.jpg');
}

.person-card[data-name="bjorn heinbokel"] {
    background-image: url('static/bjornheinbokel.jpg');
}

.person-card[data-name="luke murry"] {
    background-image: url('static/lukemurry.jpg');
}

.person-card[data-name="andy rapista"] {
    background-image: url('static/andyrapista.jpg');
}

.person-card[data-name="ivy zhang"] {
    background-image: url('static/ivyzhang.jpg');
}

.person-card[data-name="ami zou"] {
    background-image: url('static/amizou.jpg');
}

.person-card[data-name="jupyter"] {
    background-image: url('static/jupyter.png');
}

.person-card[data-name="john rose"] {
    background-image: url('static/lavish.jpg');
}

.person-card[data-name="harrison lin"] {
    background-image: url('static/harrisonlin.jpg');
}

.person-card[data-name="parker duff"] {
    background-image: url('static/parkerduff.jpg');
}

.person-card[data-name="dragonfly farms"] {
    background-image: url('static/dragonfly.jpg');
}

.person-card[data-name="llama"] {
    background-image: url('static/llama.jpg');
}

/* Hero Bottom Overlay */
.hero-cta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-cta-text {
    color: white;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c5530;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.hero-cta-button:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
    color: #2c5530;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero {
        height: 110vh;
        height: 110dvh;
        height: calc(110vh - env(safe-area-inset-top));
        min-height: 550px;
    }

    .hero-cta-overlay {
        padding: 15px 15px;
    }

    .hero-cta-text {
        font-size: 12px;
    }

    .hero-cta-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Bottom Hero Section */
.bottom-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    position: relative;
    background: linear-gradient(135deg, #1a3d1e 0%, #2c5530 80%);
    background-image: url('static/droneshot.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bottom-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%),
        rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.bottom-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
}

.bottom-hero-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.bottom-hero-attribution {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    opacity: 0.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}