body {
    margin: 0;

    font-family: 'Prompt', sans-serif;
    color: white;
    background-color: #202731;
    overflow-x: hidden;
}

header {
    background-color: #3c31dd;
}

.links {
    width: 60%;
    display: flex;
    justify-content: space-around;
    padding: 10px;
    margin: auto;
}

.links a {
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
}

section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    padding: 100px 20vw;
}

section h1 {
    z-index: 1;
}

.h-shifted {
    bottom: 25%;
}

.shifted {
    bottom: 50%;
}

.d-shifted {
    bottom: 100%;
}

.t-shifted {
    bottom: 150%;
}

.th-shifted-flip {
    transform: rotate(180deg);
    bottom: 125%;
}

.th-shifted {
    bottom: 125%;
}

section p {
    z-index: 1;
    font-size: 1.25rem;
    text-align: center;
}

.blue {
    background: #3c31dd;
}

.red {
    background: #dd3f31;
}

.pink {
    background: #ff0066;
}

.dark {
    background: #000000;
}

.rose {
    background: #e0223e;
}

.curve {
    position: absolute;
    height: 225px;
    width: 100%;
    bottom: 0;
}

.curve::before {
    content: '';
    position: absolute;
    display: block;
    border-radius: 100% 50%;
    width: 55%;
    height: 100%;
    background-color: #202731;
    transform: translate(85%, 60%);
}

.curve::after {
    content: '';
    position: absolute;
    display: block;
    border-radius: 100% 50%;
    width: 55%;
    height: 100%;
    transform: translate(-4%, 40%);
    z-index: -1;
    background-color: #3c31dd;
}

.bubble::after {
    content: '';
    border-radius: 100% 100%;
    position: absolute;
    bottom: 0;
    height: 65%;
    width: 100%;
    background-color: #000000;
    transform: translateY(50%) translateY(100px);
}

.bubble-back::before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 65%;
    width: 100%;
    background-color: #e0223e;
    z-index: -100;
    transform: translateY(50%) translateY(100px);
}

/*Code provided by https://www.shapedivider.app/ */
.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/*SVG from https://app.haikei.app/*/
.spacer {
    aspect-ratio: 960/540;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.layer1 {
    background-image: url('./layer1.svg')
}

.layer2 {
    background-image: url('./layer2.svg')
}

.blob-motion {
    position: absolute;
    transform: translateY(-50%);
    z-index: 0;
}

.title h1 {
    font-size: 3rem;
    font-weight: 800;
}

.title p {
    font-size: 1.5rem;
    font-weight: 300;
}

.numbered-list {
    list-style-type: none;
    counter-reset: my-counter;
}

.numbered-list li {
    margin: 15px;
    padding: 3px;
    background-color: rgb(60, 49, 221);
    border-radius: 5px;
    transition: 0.1s ease-in-out;
    counter-increment: my-counter;
    position: relative;
}

.numbered-list li:nth-child(1):before {
    top: 10px;
}

.numbered-list li:before {
    bottom: 1px;
    position: absolute;
    content: counter(my-counter);
    left: -40px;
    border-radius: 10px;
    background: #ffffff;
    color: rgb(60, 49, 221);
    font-weight: bold;
    text-align: center;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.numbered-list li:hover {
    background-color: #ffffff;
    transform: scale(1.15);
    color: #3c31dd;
}

.numbered-list li:hover:before {
    background-color: #3c31dd;
    transform: scale(1.15);
    color: #ffffff;
}

.single-character-scale span {
    transition: 0.2s ease-in-out;
    padding: 0;
    margin: 0;
    display: inline-block
}

.single-character-scale span:hover {
    transform: scale(1.15);
}

#next-steps {
    height: 75vw;
    position: absolute;
}

.next-steps-text {
    transform: translateY(-250%);
}

.next-steps--coral {
    position: absolute;
    width: 35%;
    height: 30%;
    background-size: cover;
    background-image: url("./coral.jpg");
    border-radius: 20px;
}

.investment--ships::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 102, 1);
    border-radius: 20px;
    transition: background-color 0.3s ease-in-out;
    z-index: 1;
}

.investment--ships:hover::after {
    background-color: transparent;
}

.investment--text {
    position: relative;
    font-size: 5rem;
    font-weight: bold;
    color: transparent;
    background-image: url("./ships.jpg");
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    z-index: 2;
    transform: translateY(150%);
    background-position: 8% 28%;
    text-align: center;
    white-space: nowrap;
    transition: 0.05s ease-in-out;
    user-select: none;
    cursor: default;
    pointer-events: none;
}

.investment--ships:hover .investment--text {
    opacity: 0;
}

.research--lab {
    transition: 0.3s ease-in-out;
    position: absolute;
    width: 60%;
    height: 80%;
    z-index: 1;
    margin-top: 150px;
    background-size: cover;
    background-image: url("./lab.jpg");
    border-radius: 20px;
    transform: translateY(40%);
}

.research--lab::after {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 102, 1);
    border-radius: 20px;
    transition: background-color 0.3s ease-in-out;
    z-index: 1;
}

.research--lab:hover::after {
    background-color: transparent;
}

.research--lab--text {
    position: relative;
    font-size: 5rem;
    font-weight: bold;
    color: transparent;
    background-image: url("./lab.jpg");
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    z-index: 2;
    transform: translateY(350%);
    background-position: 8% 28%;
    text-align: center;
    white-space: nowrap;
    transition: 0.05s ease-in-out;
    user-select: none;
    cursor: default;
    pointer-events: none;
}

.research--lab:hover .research--lab--text {
    opacity: 0;
}

.about-us--pic {
    transition: 0.3s ease-in-out;
    position: absolute;
    width: 60%;
    height: 80%;
    z-index: 1;
    margin-top: 150px;
    background-position-y: -25vw;
    background-size: cover;
    background-image: url("./team-pic.jpg");
    border-radius: 20px;
    transform: translateY(-140%);
}

.about-us--pic:hover {
    transform: translateY(-160%) scale(1.1);
}

.divider {
    height: 100px;
}

.infrastructure--dna {
    transition: 0.3s ease-in-out;
    position: absolute;
    width: 60%;
    height: 80%;
    z-index: 1;
    margin-top: 150px;
    background-size: cover;
    background-image: url("./dna.jpg");
    border-radius: 20px;
}

.steps-list li {
    padding-top: 10px;
}

.steps-list {
    list-style-type: none;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    header {
        padding: 0;
    }
    header .warning {
        padding: 20px;
    }
    header .links {
        display: none;
    }

    section {
        padding: 40px 5vw;
        min-height: unset;
    }
    section h1 {
        font-size: 2rem;
        text-align: center;
    }
    section p, .title p {
        font-size: 1.1rem;
        text-align: center;
    }

    .numbered-list li {
        font-size: 1rem;
        margin: 10px 0;
        padding: 8px;
    }

    .curve, .curve::before, .curve::after {
        height: 80px;
    }
    .bubble::after, .bubble-back::before {
        height: 40%;
        transform: translateY(30%) translateY(40px);
    }

    .spacer {
        aspect-ratio: 1/1;
        min-height: 80px;
    }

    .title h1 {
        font-size: 2rem;
    }
    .title p {
        font-size: 1rem;
    }

    /* Investment Section - Mobile */
    .investment--ships {
        width: 95vw !important;
        max-width: 500px !important;
        height: 220px !important;
        max-height: 250px !important;
        margin: 30px auto 0 auto !important;
        position: relative !important;
        background-size: cover;
        background-position: center;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        display: block !important;
    }
    .investment--ships::after,
    .investment--text {
        display: none !important;
    }

    /* About Us Picture - Mobile */
    .about-us--pic {
        height: 30vh;
        transform: translateY(-160%);
        position: relative;
        width: 90vw;
        max-width: 500px;
        margin: 20px auto;
    }

    /* Research Lab (Innovation) - Mobile */
    .research--lab {
        height: 180px;
        max-height: 220px;
        position: relative;
        width: 95vw;
        max-width: 500px;
        margin: 30px auto 0 auto;
        display: block !important;
    }
    .research--lab::after,
    .research--lab--text {
        display: none !important;
    }

    /* Infrastructure DNA - Mobile */
    .infrastructure--dna {
        height: 180px;
        max-height: 220px;
        position: relative;
        width: 95vw;
        max-width: 500px;
        margin: 30px auto 0 auto;
        display: block !important;
    }

    /* Next Steps Coral (Algae Slider) - Mobile */
    #next-steps {
       transform: none;
       height: auto;
       position: static;
       padding-top: 40px;
    }
    .next-steps--coral {
        position: relative;
        width: 95vw;
        max-width: 500px;
        height: 180px;
        max-height: 220px;
        margin: 30px auto 0 auto;
        left: 0;
        right: 0;
        background-size: cover;
        background-position: center;
        display: block !important;
    }
    .next-steps-text {
        display: none !important;
    }

    .divider {
        height: 40px;
    }
}

/* --- Desktop Specific Styles (moved and refined) --- */
@media (min-width: 769px) {
    /* Investment Section - Desktop */
    .investment--ships {
        transition: 0.3s ease-in-out;
        position: absolute;
        width: 60%;
        height: 80%;
        background-size: cover;
        background-image: url("./ships.jpg");
        border-radius: 20px;
        transform: translateY(40%);
        display: block;
    }
    .investment--ships::after {
        display: block;
    }
    .investment--text {
        display: block;
    }

    /* Research Lab (Innovation) - Desktop */
    .research--lab {
        height: 80%;
        display: block;
    }
    .research--lab::after {
        display: block;
    }
    .research--lab--text {
        display: block;
    }

    /* Next Steps Coral (Algae Slider) - Desktop */
    .next-steps--coral {
        display: block;
    }
    .next-steps-text {
        display: block;
    }
}
@media (min-width: 1250px) {
    header .warning {
        display: none;
    }
    header .links a {
        position: relative;
    }
    header .links a::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        background-color: white;
        transform: translate(-100%, 1000%);
        transition: width 0.5s ease;
    }
    header .links a:hover::after {
        width: 100%;
    }
}
@media (max-width: 1250px) {
    header .warning {
        padding: 20px;
    }
    header .links {
        display: none;
    }
}