* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    background:
        linear-gradient(
            180deg,
            #061a26 0%,
            #0a3042 45%,
            #03131d 100%
        );
    color: #18252b;
}


/* ==========================================
   HEADER
========================================== */

.about-header {
    position: relative;
    padding: 25px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(3, 18, 27, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.about-heading {
    text-align: right;
}

.about-heading span {
    display: block;
    color: #9ed9e8;
    letter-spacing: 4px;
    font-size: 12px;
}

.about-heading h1 {
    margin: 5px 0 0;
    color: #ffffff;
    font-size: 25px;
    letter-spacing: 2px;
}

.back-home {
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: 0.3s ease;
}

.back-home:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}


/* ==========================================
   MAIN
========================================== */

main {
    width: 100%;
    overflow: hidden;
}


/* ==========================================
   WATER IMAGE
========================================== */

.about-hero {
    width: min(1100px, 90%);
    margin: 65px auto 20px;
}

.water-frame {
    position: relative;
    width: 100%;
    height: 470px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.12);
    transform:
        translate3d(var(--water-x, 0px), var(--water-y, 0px), 0);
    will-change: transform;
}

.water-svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: scale(1.06);
}


/* Moving water shimmer */

.water-shimmer {
    position: absolute;
    inset: -20%;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.00) 0px,
            rgba(255,255,255,0.08) 4px,
            rgba(255,255,255,0.00) 12px
        );

    mix-blend-mode: overlay;

    animation: waterSurface 5s ease-in-out infinite;
}


/* Water wave layers */

.water-wave {
    position: absolute;
    left: -25%;
    width: 150%;
    height: 90px;
    border-radius: 50%;
    pointer-events: none;
}

.wave-one {
    bottom: 70px;
    background: rgba(255,255,255,0.20);
    animation: waveMoveOne 5s ease-in-out infinite;
}

.wave-two {
    bottom: 35px;
    background: rgba(255,255,255,0.13);
    animation: waveMoveTwo 7s ease-in-out infinite;
}

.wave-three {
    bottom: 5px;
    background: rgba(0,0,0,0.12);
    animation: waveMoveThree 6s ease-in-out infinite;
}


@keyframes waterSurface {

    0% {
        transform:
            translateY(-20px)
            skewX(0deg);
    }

    50% {
        transform:
            translateY(20px)
            skewX(2deg);
    }

    100% {
        transform:
            translateY(-20px)
            skewX(0deg);
    }
}


@keyframes waveMoveOne {

    0%,
    100% {
        transform:
            translateX(-4%)
            rotate(1deg);
    }

    50% {
        transform:
            translateX(4%)
            rotate(-1deg);
    }
}


@keyframes waveMoveTwo {

    0%,
    100% {
        transform:
            translateX(4%)
            rotate(-1deg);
    }

    50% {
        transform:
            translateX(-4%)
            rotate(1deg);
    }
}


@keyframes waveMoveThree {

    0%,
    100% {
        transform:
            translateX(-3%);
    }

    50% {
        transform:
            translateX(3%);
    }
}


/* ==========================================
   SCROLL SECTION
========================================== */.scroll-section {
    width: min(1050px, 92%);
    margin: 70px auto 100px;
    position: relative;
    padding: 35px 0;
}


/* ==========================================
   PARCHMENT
========================================== */

.scroll-paper {
    position: relative;
    padding: 70px 9% 75px;

    background:
        linear-gradient(
            90deg,
            rgba(113, 74, 30, 0.20),
            transparent 8%,
            transparent 92%,
            rgba(113, 74, 30, 0.20)
        ),
        #ead6a8;

    box-shadow:
        0 30px 70px rgba(0,0,0,0.45),
        inset 0 0 45px rgba(100,65,25,0.25);

    border-left: 8px solid rgba(104, 67, 28, 0.45);
    border-right: 8px solid rgba(104, 67, 28, 0.45);

    transform:
        rotate(var(--scroll-movement, 0deg));

    animation: scrollWave 6s ease-in-out infinite;
}


/* Wavy top and bottom rolls */

.scroll-roll {
    position: absolute;
    left: -20px;
    right: -20px;
    height: 45px;

    background: #ead6a8;

    border-radius:
        50% 50% 45% 55% /
        65% 45% 55% 35%;

    box-shadow:
        0 8px 12px rgba(0,0,0,0.22),
        inset 0 -5px 12px rgba(100,65,25,0.20);

    animation: paperWave 4s ease-in-out infinite;
}

.scroll-roll-top {
    top: -22px;
}

.scroll-roll-bottom {
    bottom: -22px;
    transform: rotate(180deg);
}


.roll-water {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


@keyframes paperWave {

    0%,
    100% {
        border-radius:
            50% 50% 45% 55% /
            65% 45% 55% 35%;
    }

    50% {
        border-radius:
            42% 58% 55% 45% /
            50% 65% 35% 50%;
    }
}


@keyframes scrollWave {

    0%,
    100% {
        transform:
            rotate(var(--scroll-movement, 0deg));
    }

    50% {
        transform:
            rotate(calc(var(--scroll-movement, 0deg) + 0.15deg));
    }
}


/* ==========================================
   SCROLL CONTENT
========================================== */

.scroll-content {
    position: relative;
    z-index: 2;
}

.scroll-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 45px;
}

.scroll-heading h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(30px, 5vw, 48px);
    color: #49321d;
    letter-spacing: 2px;
}

.scroll-heading span {
    width: 70px;
    height: 1px;
    background: #80603b;
}


.scroll-content p {
    font-size: 18px;
    line-height: 1.9;
    margin: 0 0 28px;
    color: #382a1c;
    text-align: justify;
}


/* ==========================================
   MILESTONES
========================================== */

.milestones {
    margin: 50px 0;
    padding: 35px;
    border-top: 1px solid rgba(73,50,29,0.35);
    border-bottom: 1px solid rgba(73,50,29,0.35);
}

.milestones h3 {
    text-align: center;
    color: #49321d;
    font-size: 25px;
    margin: 0 0 30px;
}

.milestone {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(73,50,29,0.25);
}

.milestone:last-child {
    border-bottom: none;
}

.milestone-year {
    flex: 0 0 105px;
    font-weight: bold;
    color: #76502c;
    font-size: 17px;
}

.milestone > div:last-child {
    flex: 1;
}


/* ==========================================
   CLOSING
========================================== */

.closing-message {
    margin-top: 45px;
    text-align: center;
    padding: 30px 10px;
}

.closing-message h3 {
    font-size: 31px;
    color: #49321d;
    margin: 0 0 12px;
}

.closing-message p {
    text-align: center;
    font-style: italic;
    margin: 0;
}


/* ==========================================
   FOOTER
========================================== */

.about-footer {
    text-align: center;
    padding: 30px 20px;
    background: #020e15;
    color: rgba(255,255,255,0.75);
    font-family: Arial, sans-serif;
    font-size: 13px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {.about-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .about-heading {
        text-align: left;
    }

    .about-heading h1 {
        font-size: 20px;
    }

    .about-hero {
        margin-top: 35px;
    }

    .water-frame {
        height: 320px;
        border-radius: 20px;
    }

    .scroll-section {
        width: 94%;
        margin-top: 55px;
    }

    .scroll-paper {
        padding: 55px 7% 60px;
    }

    .scroll-content p {
        font-size: 16px;
        line-height: 1.75;
        text-align: left;
    }

    .scroll-heading {
        gap: 8px;
    }

    .scroll-heading span {
        width: 35px;
    }

    .milestones {
        padding: 25px 15px;
    }

    .milestone {
        gap: 15px;
    }

    .milestone-year {
        flex: 0 0 75px;
        font-size: 14px;
    }

}
/* Responsive hero cover sizing */
.hero-cover, .hero-cover img, .hero img.cover, .hero-image img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .hero {
        min-height: 62vh;
        height: auto;
    }
    .hero-cover, .hero-cover img, .hero img.cover, .hero-image img {
        max-height: 62vh;
        object-fit: cover;
    }
}
@media (min-width: 769px) {
    .hero {
        min-height: 72vh;
    }
}
