                /* http://meyerweb.com/eric/tools/css/reset/ 
                v2.0 | 20110126
                License: none (public domain)
                */

                html, body, div, span, applet, object, iframe,
                h1, h2, h3, h4, h5, h6, p, blockquote, pre,
                a, abbr, acronym, address, big, cite, code,
                del, dfn, em, img, ins, kbd, q, s, samp,
                small, strike, strong, sub, sup, tt, var,
                b, u, i, center,
                dl, dt, dd, ol, ul, li,
                fieldset, form, label, legend,
                table, caption, tbody, tfoot, thead, tr, th, td,
                article, aside, canvas, details, embed, 
                figure, figcaption, footer, header, hgroup, 
                menu, nav, output, ruby, section, summary,
                time, mark, audio, video {
                    margin: 0;
                    padding: 0;
                    border: 0;
                    font-size: 100%;
                    font: inherit;
                    vertical-align: baseline;
                }
                /* HTML5 display-role reset for older browsers */
                article, aside, details, figcaption, figure, 
                footer, header, hgroup, menu, nav, section {
                    display: block;
                }
                body {
                    line-height: 1;
                }
                ol, ul {
                    list-style: none;
                }
                blockquote, q {
                    quotes: none;
                }
                blockquote:before, blockquote:after,
                q:before, q:after {
                    content: '';
                    content: none;
                }
                table {
                    border-collapse: collapse;
                    border-spacing: 0;
                }


/* General Page Styling */
body {
    font-family: "carta-marina", sans-serif;
    font-weight: 400; /* Normal font weight, Or 700. */
    font-style: normal;
    margin: 0; /* Removes default browser margin. */
    /* padding: 0; */
    padding-top: 275px; /* How much the content is pushed below the header. */
    padding-bottom: 100px; /*Space between the content bottom and footer. */
    text-align: center; /* Centers text inside elements */
    background-color: black;
    color: rgb(255, 255, 255); /* Text Color. */
    display: flex; /* Enables flexbox layout. */
    flex-direction: column; /* Arranges children vertically. */
    align-items: center; /* Centers children horizontally. */
    min-height: 100vh; /* Full viewport height minimum. */
    position: relative; /* Allows absolutely-positioned children. */
}

header {
    position: fixed; /* Fixes header at top of page */
    top: 0;
    left: 0;
    padding-bottom: 50px; /* Adds bottom spacing */
    width: 100%; /* Full page width */
    z-index: 1000; /* Places header above other elements */
    background-color: black;
}

.header-blur {
    position: fixed; /* Fixed blur overlay */
    top: 200px; /* Adjust based on your actual header height */
    left: 0;
    width: 100%;
    height: 150px; /* Controls the vertical length of the fade */
    z-index: 999; /* Below the header, above body */
    background-color: black; /* Needed for masking */

    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0) 100%); /* Fades to transparent */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0) 100%); /* Safari support */
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    pointer-events: none; /* Allows clicks through the blur */

    backdrop-filter: blur(100px); /* Applies blur */
    -webkit-backdrop-filter: blur(100px); /* Safari support */
}

/* Greeting (Top Left) */
#greeting {
    position: absolute;
    top: 20px; /* Drop the greeting down slightly */
    left: 20px; /* Move the greeting right slightly */
    font-size: 1.2rem;
    color: white;
    z-index: 1002;
}

/* Navigation (Top Right) */
/* Hamburger icon (hidden by default) */
#hamburger {
    display: none;
    font-size: 2.5rem;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001; /* Above nav */
}

/* Hide hamburger when menu is open */
#hamburger.hide {
    display: none;
}

#main-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    /* display: flex; */
}

nav {
    background: none;
    position: absolute;
    top: 20px;
    right: 20px;
    /* display: flex; */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-end;
    text-align: right;
    transition: all 0.5s ease-in-out;
}

/* Navigation Links */
nav a {
    text-decoration: none;
    font-size: 2rem; /* Adjust size if needed */
    color: rgb(255, 255, 255);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Hover effect for better visibility */
nav a:hover {
    color: #daa520;
    transition: transform 0.3s ease-in-out;
    transform: scale(1.1);
    /* opacity: 0.7; /* Darkens color on hover */
}

/* Logo at the Top */
#logo {
    margin-top: 180px;
}

#logo img {
    /* margin-top: 80px; */
    margin-top: 2vh; /* 10% of the viewport height */
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

#logo img:hover {
    transform: scale(1.1);
}

/* About Section */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    width: 80%;
    max-width: 600px;
}

/* About Header */
#about-header {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* About Site Paragraph */
.site-text {
    font-size: 1.2rem;
    line-height: 1.5;

    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
}

/* Section for Image */
#Me {
    display: flex;
    justify-content: center;
    margin-top: 30px; /* Space between paragraph and image */
    padding-bottom: 60px; /* Extra space so last project isn't blocked by footer */
    max-width: 1000px; /* Adjusts the entire section for the sake of the text width */
}

#Me img {
    max-width: 400px; /* Adjust to your preferred size */
    height: auto;
    border-radius: 400px; /* Optional: Adds rounded corners */
    padding-bottom: 20px;
}

/* About Me Paragraph */
.me-text {
    font-size: 1.2rem;
    line-height: 1.5;

    margin: 50px auto;
    padding: 0 20px;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
}

/* Footer - Fixed at Bottom */
            footer {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                background-color: black;
                padding-top: 45px;
                padding-right: 0;
                padding-bottom: 10px;
                padding-left: 0;
                /* text-align: center; for copyright only footer */
                font-size: 0.9rem;
            }

            .footer-blur {
                position: fixed;
                height: 40px; /* raises blur to be over the footer slightly */
                bottom: 60px;  /* lifts blur to expose footer content. */
                left: 0;
                width: 100%;
                z-index: 1000;
                mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0));
                -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0));
                background-color: black;
            }

            .footer-content {
                display: flex;
                justify-content: center;
                align-items: center;
                position: relative;
            }

            .footer-content p {
                margin: 0 auto;
                text-align: center;
                flex: 1;
            }

            .icon-wrapper {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                z-index: 1001; /* Higher than .footer-blur */
            }

            .tooltip-text {
                position: absolute;
                bottom: 125%; /* Show above the icon */
                background-color: rgba(0, 0, 0, 0.8);
                color: #daa520;
                padding: 4px 8px;
                border-radius: 6px;
                font-size: 1rem;
                white-space: nowrap;
                opacity: 0;
                transition: opacity 0.3s ease;
                transform: translateY(-8px);
                pointer-events: none;
                z-index: 1002; /* Must be above .footer-blur (which is z-index: 1000) */
            }

            .icon-wrapper:hover .tooltip-text {
                opacity: 1;
            }

            .social-icons {
                position: absolute;
                padding-right: 20px; /* Pulls the icons off the very edge of the page */
                padding-bottom: 25px;
                right: 0;
                display: flex;
                gap: 20px;
                align-items: center;
                z-index: 1001; /* Higher than footer blur */
            }

            .social-icons img {
                width: 32px;
                height: 32px;
                /* filter: invert(1); /* makes icons white if they're black */
                transition: transform 0.3s ease;
            }

            .social-icons img:hover {
                transform: scale(1.5);
            }

/* Wrapper to position everything */
#scrollToTopWrapper {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#scrollToTopWrapper.show {
    opacity: 1;
    visibility: visible;
}

/* Circle button itself */
#scrollToTop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #daa520;
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTop:hover {
    /* background-color: #ffcc00; */
    transform: scale(1.15);
}

/* Label outside the button */
.scroll-label {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #daa520;
    font-family: inherit;
}

.scroll-arrow {
    /* width: 60%;
    height: auto;
    object-fit: contain; */

    width: 22px; /* Seems to be the only fix here to make the arrow appear compared to the other pages */
    height: auto;
}

                /* Queries for About Page */

                /* Small Laptops and Tablets (≤1024px) */
                @media (max-width: 1024px) {
                    #logo img {
                        max-width: 250px;
                    }

                    nav a {
                        font-size: 1.8rem;
                    }

                    #about-header {
                        font-size: 1.8rem;
                    }

                    #about-text {
                        font-size: 1.1rem;
                    }

                    #Me img {
                        max-width: 350px;
                    }

                    #greeting {
                        font-size: 1rem;
                    }

                    .social-icons {
                        flex-wrap: wrap;
                        gap: 16px;
                        padding-right: 16px;
                    }

                    .social-icons img {
                        width: 28px;
                        height: 28px;
                    }
                }

                /* Desktop (≥769px) — show nav, This set of queries can override some original CSS */
                @media (min-width: 769px) {
                    body {
                        padding-top: 275px;
                    }

                    .header-blur {
                        top: 180px; /* Up to move the blur down, down to move blur up. */
                        height: 125px;
                    }

                    .footer-blur {
                        bottom: 65px;
                        height: 80px;
                    }

                    nav {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                    }

                    #hamburger {
                        display: none;
                    }
                }

                /* Tablets (≤768px) */
                @media (max-width: 768px) {
                    body {
                        padding-top: 220px; /* Make room for resized header */
                    }

                    #logo img {
                        max-width: 200px;
                        margin-top: 1vh;
                    }

                    .header-blur {
                        top: 125px; /* Lower than full size header if header compresses, down for up, up for down. */
                        height: 120px;
                    }

                    nav {
                        display: none;
                        position: absolute;
                        top: 0px;
                        right: 20px;
                        background-color: black;
                        padding: 10px;
                        /* border: 1px solid white;  
                        Puts a border around the nav 
                        when the hamburger is clicked */
                        z-index: 1000;

                        flex-direction: column;
                        align-items: flex-end;
                    }

                    nav.active {
                        display: flex;
                        /* flex-direction: column;
                        align-items: flex-end; */
                    }

                    #hamburger {
                        display: block;
                    }

                    nav a {
                        font-size: 1.4rem;
                    }

                    #about-header {
                        font-size: 1.6rem;
                    }

                    #about-text {
                        font-size: 1rem;
                    }

                    #Me img {
                        max-width: 280px;
                    }

                    section {
                        width: 90%;
                    }

                    #greeting {
                        font-size: 0.9rem;
                        left: 15px;
                    }

                    footer {
                        font-size: 0.8rem;
                    }

                    .footer-blur {
                        bottom: 100px; /* Adjust based on compressed footer height, Up for up, down for down. */
                        height: 75px;
                    }

                    .footer-content {
                        flex-direction: column;
                        align-items: center;
                    }

                    .social-icons {
                        flex-wrap: wrap;
                        position: static;
                        padding: 10px 0 0;
                        justify-content: center;
                    }

                    .social-icons img {
                        width: 26px;
                        height: 26px;
                    }

                    .tooltip-text {
                        display: none !important;
                        pointer-events: none;
                    }

                    #scrollToTopWrapper {
                        bottom: 100px; /* Raise above mobile footer */
                        right: 50%;
                        transform: translateX(50%); /* Center horizontally */
                    }

                    #scrollToTop {
                        width: 2.5rem;
                        height: 2.5rem;
                    }

                    .scroll-arrow {
                        width: 65%; /* Adjust arrow size for smaller button */
                    }

                    .scroll-label {
                        display: none;
                    }
                }

                /* Phones (≤480px) */
                @media (max-width: 480px) {
                    body {
                        padding-top: 200px;
                    }

                    #logo img {
                        max-width: 120px;
                        margin-top: 0;
                    }

                    .header-blur {
                        top: 100px;
                        height: 100px;
                    }

                    nav {
                        right: 10px;
                        top: 15px;
                    }

                    nav a {
                        font-size: 1.2rem;
                    }

                    #about-header {
                        font-size: 1.4rem;
                    }

                    #about-text {
                        font-size: 0.95rem;
                        line-height: 1.4;
                    }

                    #Me img {
                        max-width: 220px;
                    }

                    section {
                        width: 95%;
                    }

                    #greeting {
                        font-size: 0.8rem;
                        left: 10px;
                        top: 8px;
                    }

                    footer {
                        font-size: 0.75rem;
                        padding: 8px 0;
                    }

                    .footer-blur {
                        bottom: 65px;
                        height: 80px;
                    }

                    .footer-content {
                        flex-direction: column;
                        align-items: center;
                        gap: 6px;
                    }

                    .social-icons {
                        flex-wrap: wrap;
                        position: static;
                        padding: 8px 0 0;
                        gap: 14px;
                    }

                    .social-icons img {
                        width: 24px;
                        height: 24px;
                    }

                    .tooltip-text {
                        display: none !important;
                        pointer-events: none; /* This actually remove the text for smaller screens, cleaner look */
                    }
                }