                /* 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 */
/* 1rem = 16px */
body {
    font-family: "carta-marina", sans-serif;
    font-weight: 400; /* Or 700 */
    font-style: normal;

    margin: 0;
    padding: 0;
    text-align: center;
    background-color: black;
    color: rgb(255, 255, 255);
}

/* Greeting (Top Left) */
#greeting {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 1.2rem;
}

/* Header and Logo */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    position: relative;
}

#logo {
    transition: all 1s ease-in-out;
    padding-bottom: 40px;
}

#thanks { /* for "contact-thanks.html" only */
    font-size: 4rem;
    color: rgb(255, 200, 0);
}

#logo img {
    max-width: 600px;
    height: auto;
    transition: all 1s ease-in-out;
}

/* Move logo to top center and shrink */
.logo-move {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.5); /* Shrinks */
    transition: all 1s ease-in-out;
}

/* 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 */
}

/* Nav moves to the top right */
.nav-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-end;
    transition: all 1s ease-in-out;
}

/* Fade Out */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Fade In */
.fade-in {
    opacity: 1 !important;
    transition: opacity 1s ease-in-out;
}

/* Move About header */
.about-header-move {
    position: relative;
    top: 0;
}

/* Navigation */
nav {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 1s ease-in-out; */
    background: none;
    flex-direction: column;
    align-items: center;
    transition: all 1s ease-in-out;
}

nav a {
    text-decoration: none;
    font-size: 3rem;
    color: rgb(255, 255, 255);
    margin: 10px 0;
    transition: all 1s ease-in-out;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

nav a:hover {
    color: #daa520;
    transition: transform 0.3s ease-in-out;
    transform: scale(1.1);
}

/* About Section */
#about {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: none; /* Initially hidden */
    transition: opacity 1s ease-in-out;
    width: 80%;
    max-width: 600px;
    z-index: -1;
}

/* Make "About" section properly visible */
.about-visible {
    opacity: 1;
    z-index: 1; /* Bring it forward when it appears */
}

/* About Header */
#about-header {
    text-transform: lowercase;
    margin-bottom: 10px;
    font-size: 2.5rem;
    transition: all 1s ease-in-out;
}

/* About Paragraph */
#about-text {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in {
    opacity: 1 !important;
}

/* Logo Shrinking and Moving */
.logo-move {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.5); /* Shrinks to half size */
}

/* Moving "About" Link Slightly Up (NOT to the top-right) */
.about-move {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem; /* Slightly larger for emphasis */
}

/* Nav moves to the top right (Keeps Projects & Contact stacked vertically) */
.nav-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column; /* Ensures vertical stacking */
    align-items: flex-end;
}

/* Stack Projects and Contact in vertical layout */
#nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Smooth fade out */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

            .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;
            }

            .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;
}

#scrollToTop img.scroll-arrow {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

                /* Media Queries */

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

                    nav a {
                        font-size: 2.5rem;
                    }

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

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

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

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

                /* Desktop (≥769px) — show nav */
                @media (min-width: 769px) {
                    nav {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                    }

                    #hamburger {
                        display: none;
                    }
                }

                /* Tablets (≤768px) */
                @media (max-width: 768px) {

                    header {
                        padding: 20px;
                    }

                    #logo img {
                        max-width: 200px;
                    }

                    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;
                    }
                    
                    /* Optional: ensure nav only shows when active */
                    #main-nav {
                        display: none;
                        flex-direction: column;
                        align-items: center;
                    }

                    #main-nav.active {
                        display: flex;
                    }

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

                    #hamburger {
                        display: block;
                        position: absolute;
                        top: 20px;
                        right: 20px;
                        font-size: 2.5rem;
                        color: white;
                        cursor: pointer;
                        z-index: 1001;
                    }

                    #hamburger.hide {
                        display: none;
                        }

                    nav a {
                        font-size: 1.2rem;
                        margin: 8px 0;
                    }

                    #about {
                        width: 90%;
                    }

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

                    .about-move {
                        top: 35%;
                        font-size: 2.2rem;
                    }

                    #greeting {
                        font-size: 0.9rem;
                    }

                    footer {
                        font-size: 0.8rem;
                    }

                    .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;
                    }

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

                    #scrollToTop {
                        width: 40px;
                        height: 40px;
                        font-size: 1.2rem;
                    }

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

                    .scroll-label {
                        display: none;
                    }
                }

                /* Phones (≤480px) */
                @media (max-width: 480px) {
                    #logo img {
                        max-width: 220px;  /* was 220 */
                    }

                    #hamburger.hide {
                        display: none;
                        }

                    nav a {
                        font-size: 1rem;
                    }

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

                    .about-move {
                        top: 38%;
                        font-size: 2rem;
                    }

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

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

                    .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 { /* For text on social icons */
                        display: none !important;
                        pointer-events: none; /* This actually remove the text for smaller screens, cleaner look */
                    }

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

                    #scrollToTop {
                        width: 40px;
                        height: 40px;
                        font-size: 1.2rem;
                    }

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

                    .scroll-label {
                        display: none;
                    }
                }