                /* 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 */
* {
  box-sizing: border-box; /* This ensures padding and borders 
  are included inside the width 
  (critical for side-by-side layout). */
}

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; /* Black Background */
    color: rgb(255, 255, 255); /* White Text */
    display: flex; /* Overrides @media display CSS */
    flex-direction: column;
    align-items: center; /* Centers children horizontally. */
    min-height: 100vh;
    position: relative;
}

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;
    left: 20px;
    font-size: 1.2rem;
}

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

/* Navigation (Top Right) */
/* #main-nav {
    position: absolute;
    top: 20px;
    right: 20px; */
    /* display: flex; /* This forces nav to always display */
/* } */

/* #main-nav a {
    text-decoration: none;
    font-size: 2rem;
    color: rgb(255, 255, 255); /* White Text */
    /* transition: opacity 0.3s ease-in-out;
} */

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

/* Adjust spacing for individual links */
#nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align to right */
}

/* 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 /* (Centered at the Top) */
#logo {
    margin-top: 0px;
}

#logo img {
    margin-top: 2vh; /* 10% of the viewport height, will drop logo down from top of screen */
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    transition: transform 0.3s ease-in-out;
}

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

/* Contact Section */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 300px; /* Spacing between header and forms */
    margin-bottom: 100px;
    margin-left: 50px;
    margin-right: 50px;
}

form {
    width: 80%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px; /* Rounded corners */
}

.form-group {
    width: 100%;
    position: relative;
}

.form-group input,
.form-group textarea {
    padding-bottom: 36px; /* make space for inline error */
}

.error-message {
    position: absolute;
    bottom: 50px; /* Crucial to text positioning */
    left: 15px;
    font-size: 1.25rem;
    color: rgb(150, 0, 0); /* Red 150 */
    pointer-events: none;
}

.error-message:empty {
    display: none; /* Only show .error-message 
    when there is an error */

}

/* Form Fields */
input, textarea {
    font-family: "carta-marina", sans-serif;
    font-weight: 400; /* Or 700 */
    font-style: normal;

    width: 100%;
    padding: 15px;
    margin-bottom: 30px;
    border: 2px solid white;
    border-radius: 15px;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    outline: none;
}

/* Email & Phone Fields */
.contact-row {
    display: flex;
    /* justify-content: space-between; */
    width: 100%;
    gap: 20px;
}

.contact-row .form-group {
    /* flex: 1; */
    width: 50%;
}

.contact-row input {
    width: 100%; /* was 48% */
    /* border-radius: 15px; */
}

/* Message Box */
textarea {
    height: 180px;
    resize: none;
    border-radius: 15px;
}

#char-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Submit Button */
button {
    font-family: "carta-marina", sans-serif;
    font-weight: 400; /* Or 700 */
    font-style: normal;

    padding: 15px 25px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    color: black;
    background-color: rgb(0, 150, 0);
    transform: scale(1.2);
    transition: 0.3s ease;
}

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

                /* Media Queries for Contact Page */

                /* Small Laptops and Tablets (≤1024px) */
                @media (max-width: 1024px) {
                    #greeting {
                        font-size: 1rem;
                        top: 15px;
                        left: 15px;
                    }

                    nav a {
                        font-size: 1.8rem;
                    }

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

                    form {
                        width: 90%;
                    }

                    input, textarea {
                        font-size: 1.1rem;
                    }

                    button {
                        font-size: 1.2rem;
                    }

                    .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: 100px;
                        padding-bottom: 50px;
                    }

                    .header-blur {
                        top: 100px; /* 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-bottom: 75px;
                    }

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

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

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

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

                    #hamburger {
                        display: block;
                    }

                    nav a {
                        font-size: 1.4rem;
                    }

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

                    #contact {
                        margin-top: 200px;
                    }

                    form {
                        width: 95%;
                    }

                    .contact-row,
                    .contact-row .form-group,
                    .contact-row input {
                    width: 100%;
                    }

                    input, textarea {
                        font-size: 1rem;
                    }

                    .error-message {
                        font-size: .7rem;
                    }

                    button {
                        font-size: 1.1rem;
                        padding: 12px 20px;
                    }

                    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; /* 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: 2.5rem;
                        height: 2.5rem;
                    }

                    .scroll-arrow {
                        width: 28px;
                        height: auto;
                    }

                    .scroll-label {
                        display: none;
                    }
                }

                /* Phones (≤480px) */
                @media (max-width: 480px) {
                    #greeting {
                        font-size: 0.8rem;
                        top: 8px;
                        left: 8px;
                    }

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

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

                    nav a {
                        font-size: 1.4rem;
                    }

                    #logo img {
                        max-width: 90px;
                        margin-top: 0.5vh;
                    }

                    #contact {
                        margin-top: 150px;
                    }

                    form {
                        width: 100%;
                        padding: 0 10px;
                    }

                    input, textarea {
                        font-size: 0.95rem;
                        padding: 12px;
                    }

                    .error-message {
                    font-size: 0.7rem;
                    }

                    button {
                        font-size: 1rem;
                        padding: 10px 18px;
                    }

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

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

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