* {

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

body,
html {
    margin: 0;
    padding: 0;
    max-width: none !important;
    overflow-x: hidden;
    /* Prevents horizontal scroll */
}

/* Make sure your sections span full width */
body {
    position: relative;
    min-width: 100vw;
    min-height: 100vh;
    /* Viewport width - always full screen */
    margin-left: calc(-50vw + 50%);
    margin-top: calc(-50vh +50%);
    /* Centers it if inside a container */
    min-height: 100vh;
    background: linear-gradient(to bottom,
            #1a4d5c 0%,
            #0d3a4a 20%,
            #062838 40%,
            #041b28 60%,
            #020f1a 80%, #000000 100%);
    overflow: hidden;
}


html {
    scroll-behavior: smooth;
}

body {
    color: beige;
    /*base of website letter color*/
    background-color: black;
    /*base of website color*/
    margin: 0px;
    /*general*/
    /*stops overflowing on the sides and having a x scroll bar*/
    min-height: 100vh;
    padding: 10px;
}

h1 {
    font-family: "Cascadia Mono", Verdana, sans-serif;
    font-weight: 300;
    /*boldness*/
    font-style: italic;
    font-size: 50px;
    margin: 0px;
    padding: 0px;
}

h4,
p,
li {
    font-family: "open sans", Arial, Helvetica, sans-serif;
    font-weight: 100;
    margin: 0px;
    padding: 0px;
}

h2 {
    font-family: "Cascadia Mono", Verdana, sans-serif;
    font-weight: 300;
    /*boldness*/
    font-style: italic;
    font-size: 30px;
    margin: 0px;
    padding: 0px;
}

h3 {
    font-family: "Cascadia Mono", Verdana, sans-serif;
    font-weight: 300;
    /*boldness*/
    font-style: italic;
    font-size: 20px;
    margin: 0px;
    padding: 0px;
}


/* Light rays coming from above */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 150%;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 20%,
            transparent 40%),
        repeating-linear-gradient(90deg,
            transparent 0px,
            rgba(100, 200, 255, 0.03) 100px,
            transparent 200px,
            rgba(150, 220, 255, 0.02) 300px,
            transparent 400px);
    pointer-events: none;
    animation: lightRays 20s ease-in-out infinite;
}

#subheading {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 10vh;
    pointer-events: none;
}


#navbar {

    top: 15px;
    /* Distance from top when stuck */
    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: center;
    /* Changed from 'top' */
    max-height: 35%;
    gap: 10vw;
    font-size: 20px;
    border-radius: 50px;
    padding: 10px;
    border-bottom: 1px solid #f5f5dc;
    margin-top: 15px;
    pointer-events: all;
}





#navbar a {
    text-decoration: none;
    /*removes hyperlink underline*/
    font-style: italic;
    color: #f5f5dc;
}

#navbar a:visited {
    text-decoration: none;
    /*removes hyperlink underline*/
    font-style: italic;
    color: #f5f5dc;
}

#navbar a:hover {
    text-decoration: underline;
    font-style: italic;
    color: #b5ecda;
    font-size: 1.07em;
}

#navlogo {
    width: 30px
}

#navlogo:hover {
    transform: scale(1.07);
    /* Same growth as text */
}

#footer {
    padding-top: 200px;
    padding-bottom: 100px;
}


#footernavbar {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    min-height: 100px;
}

#footernavbar a {
    text-decoration: none;
    /*removes hyperlink underline*/
    font-style: italic;
    color: #f5f5dc;
    font-size: 20px;
}

#footernavbar a:visited {
    text-decoration: none;
    /*removes hyperlink underline*/
    font-style: italic;
    color: #f5f5dc;
}

#footernavbar a:hover {
    text-decoration: underline;
    font-style: italic;
    color: #b5ecda;
    font-size: 25px;
}

#signature {
    text-align: center;
}

.icons {
    font-size: 3vh;
    padding: 1vh;
    display: flex;
    gap: 15px;
    max-width: 40vw;
    justify-content: space-evenly;
    position: relative;
    border: 2px solid #f5f5dc;
    z-index: 3;
}

.icons a:visited {
    color: beige;
    text-decoration: none;
}

.icons a:hover {
    color: rgb(181, 236, 218);
    font-size: 3.1vh;

}

.icons a {
    color: beige;
}

@keyframes lightRays {

    0%,
    100% {
        transform: translateX(-50%) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) rotate(2deg);
        opacity: 0.8;
    }
}

/* Bubbles container */
.bubbles {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Individual bubble styling */
.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.8),
            rgba(200, 240, 255, 0.4) 40%,
            rgba(150, 220, 255, 0.2));
    border-radius: 50%;
    opacity: 0.6;
    animation: rise linear infinite;
}

/* Bubble highlight/shine */
.bubble::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    filter: blur(2px);
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        bottom: 110%;
        transform: translateX(calc(var(--drift) * 1px)) scale(0.8);
        opacity: 0;
    }
}

/* Varied bubble sizes and positions */
.bubble:nth-child(1) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-duration: 40s;
    animation-delay: 0s;
    --drift: 30;
}

.bubble:nth-child(2) {
    left: 25%;
    width: 15px;
    height: 15px;
    animation-duration: 22s;
    animation-delay: 2s;
    --drift: -20;
}

.bubble:nth-child(3) {
    left: 40%;
    width: 25px;
    height: 25px;
    animation-duration: 19s;
    animation-delay: 4s;
    --drift: 40;
}

.bubble:nth-child(4) {
    left: 55%;
    width: 18px;
    height: 18px;
    animation-duration: 35s;
    animation-delay: 1s;
    --drift: -30;
}

.bubble:nth-child(5) {
    left: 70%;
    width: 22px;
    height: 22px;
    animation-duration: 22s;
    animation-delay: 3s;
    --drift: 25;
}

.bubble:nth-child(6) {
    left: 85%;
    width: 16px;
    height: 16px;
    animation-duration: 32s;
    animation-delay: 5s;
    --drift: -35;
}

.bubble:nth-child(7) {
    left: 15%;
    width: 12px;
    height: 12px;
    animation-duration: 24s;
    animation-delay: 1.5s;
    --drift: 15;
}

.bubble:nth-child(8) {
    left: 60%;
    width: 28px;
    height: 28px;
    animation-duration: 34s;
    animation-delay: 6s;
    --drift: -40;
}

/* Lab report cards that "float" in the ocean */
.card {
    background: rgba(15, 40, 60, 0.7);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(100, 200, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(100, 200, 255, 0.2);
}

/* Text color for readability */
.bubbles .content {
    position: relative;
    z-index: 10;
    color: #e0f2ff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.bubbles h2 {
    color: #8dd4ff;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
}

#title {
    text-align: center;
}

.card img {
    width: 20vw;
    position: relative;
    right: 15px;
    border-style: solid;
    border-width: 3px;
    border-radius: 10px;
}

.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-right: 1em;
}

.card ul {
    max-width: 65vw;
}

.card p {
    max-width: 50vw;

}

.pdf img {
    width: 40vh;
    height: 20vh;
    /* Force square */
    object-fit: cover;
    /* Crop to fit */
    margin-left: 0.9em;
    border: 3px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;


}


.pdf {
    align-items: center;
}