
html {
    scroll-behavior: smooth;
}

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


body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #2c3e50; 
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 160px;
    scroll-snap-type: y proximity;
}

body::before,
body::after {
    content: none;
}


.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-out forwards;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.top-header {
    width: min(720px, calc(100% - 32px));
    margin: 24px auto 140px;
    position: relative;
    z-index: 1;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(15, 23, 32, 0.1);
    box-shadow: 0 14px 40px rgba(15, 23, 32, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
}

.top-header-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.6px;
    color: rgba(15, 23, 32, 0.92);
    font-size: 0.95rem;
}

.top-header-subtitle {
    font-size: 0.82rem;
    color: rgba(15, 23, 32, 0.62);
    text-align: right;
}


.title {
    font-family: 'Playfair Display', serif;
    font-size: 5vw; 
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a252f;
    text-shadow: 2px 5px 15px rgba(0,0,0,0.1); 
    transition: transform 0.1s ease-out; 
}


.subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 2vw;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: rgba(15, 23, 32, 0.55);
    display: block;
    margin-top: 15px;
}

.content {
    width: 100%;
    max-width: 1920px;
    padding: 0 24px 90px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.section-card {
    border: none;
    border-radius: 18px;
    padding: 26px 26px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(15, 23, 32, 0.06);
    width: 100%;
    margin: 18px auto;
    max-width: 1920px;
    height: min(1080px, calc(100vh - 160px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-margin-top: 96px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    color: rgba(15, 23, 32, 0.92);
    margin-bottom: 10px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.section-text {
    min-width: 0;
}

.section-list {
    padding-left: 18px;
    line-height: 1.55;
    color: rgba(15, 23, 32, 0.82);
}

.section-list li + li {
    margin-top: 8px;
}

.section-media {
    min-height: 520px;
    border-radius: 16px;
    border: 1px dashed rgba(15, 23, 32, 0.18);
    background: rgba(15, 23, 32, 0.03);
}

.reveal-item {
    opacity: 0;
    transform: translate3d(-36px, 0, 0);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.reveal-item.from-right {
    transform: translate3d(36px, 0, 0);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.bottom-box {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 45px rgba(15, 23, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    overflow: visible;
    z-index: 2;
}

.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: rgba(15, 23, 32, 0.92);
    background: transparent;
    transition: transform 320ms ease, margin 320ms ease, filter 220ms ease;
    transform-origin: center bottom;
    will-change: transform;
}

.icon-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 22px rgba(15, 23, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.icon-button svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    transition: transform 320ms ease;
}

.icon-button::after {
    content: attr(aria-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: 240px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 200ms ease;
}

.icon-button:hover::after,
.icon-button.active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.icon-button:hover {
    filter: saturate(1.15);
}

.icon-button:hover::before {
    background: rgba(255, 255, 255, 0.5);
}

.icon-button.active {
    transform: scale(1.8);
    margin-left: 14px;
    margin-right: 14px;
    z-index: 200;
}

.icon-button.active::before {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(15, 23, 32, 0.18);
    box-shadow: 0 0 0 2px rgba(15, 23, 32, 0.08), 0 14px 30px rgba(15, 23, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.icon-button.prev,
.icon-button.next {
    transform: scale(1.34);
    margin-left: 9px;
    margin-right: 9px;
    z-index: 100;
}

.icon-button:focus-visible {
    outline: 3px solid rgba(15, 23, 32, 0.28);
    outline-offset: 4px;
}


@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .title { font-size: 3rem; }
    .subtitle { font-size: 1.2rem; }
    .top-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-header-subtitle {
        text-align: left;
    }
    .section-card {
        height: auto;
    }
    .section-grid {
        grid-template-columns: 1fr;
    }
    .section-media {
        min-height: 220px;
    }
    .bottom-box {
        bottom: 16px;
    }
    .icon-button {
        width: 54px;
        height: 54px;
    }
    .icon-button svg {
        width: 22px;
        height: 22px;
    }
    .icon-button::before {
        width: 42px;
        height: 42px;
    }
}
