/* Apres Alliance 2027 - Niseko & Rusutsu, Japan */

/* Base styles */
html {
    font-size: 16px;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 18px;
    }
    .display-4 {
        font-size: 2.5rem !important;
    }
    .h1, h1 {
        font-size: 2.2rem !important;
    }
    .lead {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 20px;
    }
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.hero-section {
    height: 100vh;
    background-color: #0a0c0f;
    background-image: url('../images/Hero2027.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* ─── Photo Strip ─── */
.photo-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    overflow: hidden;
}

.photo-strip-inner {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.photo-strip-inner img {
    width: calc(100% / 6);
    height: 240px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .photo-strip-inner img {
        height: 160px;
        width: calc(100% / 4);
    }
    .photo-strip-inner img:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .photo-strip-inner img {
        height: 120px;
        width: calc(100% / 3);
    }
    .photo-strip-inner img:nth-child(n+4) {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    max-width: 90%;
    margin: 0 auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 400" preserveAspectRatio="none"><rect width="1000" height="400" fill="%230a1428"/><path d="M0 400 L0 180 L150 220 L300 130 L450 190 L600 140 L750 170 L900 130 L1000 150 L1000 400 Z" fill="%23e0e0e0"/><path d="M0 400 L0 200 L200 280 L400 150 L600 250 L800 180 L1000 220 L1000 400 Z" fill="%23152238"/><path d="M0 400 C250 380 750 380 1000 400 L1000 400 L0 400" fill="%23143321"/></svg>');
    background-size: 100% 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 1;
    animation: fadeOutMountains 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeOutMountains {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.hero-content h1 {
    font-size: calc(2rem + 2vw);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: calc(1rem + 0.5vw);
    margin-bottom: 1.5rem;
}

/* ─── Info Section Parallax ─── */
.info-section-parallax {
    position: relative;
    overflow: hidden;
}

.info-section-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/2027HeroPlaceHolder.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.info-section-parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.info-section-parallax > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .info-section-parallax::before {
        background-attachment: scroll;
    }
}

/* ─── Trail Maps Parallax ─── */
.trail-maps-section {
    position: relative;
    background-color: #d0d0d0;
    overflow: hidden;
}

.trail-maps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/2022Whistler/PXL_20220227_205012469.PORTRAIT.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.trail-maps-section > .container {
    position: relative;
    z-index: 1;
    background-color: rgba(200, 200, 200, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 2rem;
}

@media (max-width: 768px) {
    .trail-maps-section::before {
        background-attachment: scroll;
        width: 100%;
        height: 100%;
        top: 0;
        aspect-ratio: auto;
    }
}

.rounded {
    border-radius: 20px !important;
}

iframe {
    border-radius: 20px;
}

.hero-title {
    font-size: calc(2.5rem + 2vw);
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-year {
    font-size: calc(2rem + 1vw);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-location {
    font-size: calc(1.5rem + 0.5vw);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: calc(1rem + 0.2vw);
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: calc(2rem + 2vw);
    }
    .hero-year {
        font-size: calc(1.5rem + 1vw);
    }
    .hero-location {
        font-size: calc(1.2rem + 0.5vw);
    }
    .hero-subtitle {
        font-size: calc(1rem + 0.2vw);
    }
}

.gallery-section {
    background-color: #212529;
    padding: 4rem 0;
    color: white;
}
.gallery-section h2 {
    color: white;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 500;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .gallery-item {
        max-width: 200px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .gallery-item {
        max-width: none;
    }
    .gallery-section {
        padding: 2rem 0;
    }
    .gallery-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .shuffle-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.shuffle-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #3d5a80;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.shuffle-button:hover {
    background-color: #4d6a90;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.shuffle-button i {
    transition: transform 0.3s ease;
}
.shuffle-button:hover i {
    transform: rotate(180deg);
}
