
.main-page {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-image: url('../images/blue_bird.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    opacity: 0;
    animation: fadeInPage 1.2s ease forwards;
}

.main-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32,38,72,0.4);
    mix-blend-mode: multiply;
}

.main-page > * {
    position: relative;
    z-index: 2;
}

.main-page .about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.main-page .about-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.main-page .about-text .tagline {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
}

.main-page .about-text .cta-button {
    margin-top: 1rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    padding: 1rem 2.5rem;
}

/* About page layout */
.about-page {
    background-image: url('../images/white_bird.JPG');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 4rem;
    align-items: start;
}

/* Content grid layouts */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

/* Splash page layout */
.splash-container {
    min-height: 100vh;
    position: relative;
    background-image: url('../images/blue_bird.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* Define the boundaries for animation */
    --content-width: min(400px, 60vw);
    --content-height: min(160px, 25vh);
    --h-boundary: calc(100% - var(--content-width));
    --v-boundary: calc(100% - var(--content-height));
}

.splash-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32,38,72,0.35);
    mix-blend-mode: multiply;
}

.splash-content {
    text-align: center;
    position: absolute;
    z-index: 2;
    padding: clamp(0.8rem, 1.5vw, 1.2rem);
    width: var(--content-width);
    height: var(--content-height);
    background-image: url('../images/paper_backgrounds/three.jpg.JPG');
    background-size: cover;
    background-position: center;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.splash-content .splash-text {
    margin: 0;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
}

.splash-content .splash-button {
    margin: 0;
    padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(1.2rem, 3vw, 2rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.splash-content::before {
    content: '';
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    z-index: 1;
}

.splash-content > * {
    position: relative;
    z-index: 2;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .main-page, .about-page, .splash-container {
        padding-top: 2rem;
    }

    .content-box, .about-text {
        margin: 1rem auto;
        width: 90%;
    }
    
    .content-grid {
        width: 95%;
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .content-box, .about-text {
        padding: 1.2rem;
        margin: 0.8rem auto;
        width: 95%;
    }
} 