*{
    padding: 0px;
    margin: 0px;
}
@font-face { /* this loads the font from google itself*/
    font-family: "Inter";
    src: url("https://fonts.gstatic.com/s/inter/v3/1cX3aA2DNXlZ5zE7G1l.woff2") format("woff2");
} 

body { /* the times new roman and san serif are the fallback fonts*/
    font-family: "Inter", "Times New Roman", Arial, Helvetica, sans-serif; 

    /* fade site in below*/
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    }
    @keyframes fadeIn {
        to {
            opacity: 1;
    }
}

html, body {
    overflow-x: hidden; /*this  prevents horizontal scrolling */
    max-width: 100vw; /* this ensures no element exceeds the screen width */
}



/* Light Mode (Default) */
:root {
    --background-color: white;
    --text-color: black;
    --border-color: black;
}

/* Dark Mode */
.dark-mode {
    --background-color: black;
    --text-color: white;
    --border-color: white;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/*below are things for the dark mode light mode toggle*/

.theme-toggle {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

.dark-mode .theme-toggle {
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between NT and the toggle */
}

.logo {
    font-weight: bold;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s ease-in-out;
}

.theme-checkbox:checked ~ .theme-label::before {
    content: "🌙"; /* Moon icon for dark mode */
}

.theme-checkbox:not(:checked) ~ .theme-label::before {
    content: "🌞"; /* Sun icon for light mode */
}

/* media queries below that ensure the NT and the toggle don't overlap on mobile */
@media (max-width: 768px) {
    .logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
        position: relative;
    }

    nav .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap; /* this ensures NT never breaks */
    }

    .theme-toggle {
        position: absolute;
        left: calc(50% + 30px); /* makes sure the the sun icon slightly to the right */
        transform: translateX(-50%);
        font-size: 18px;
    }
}



.noscript-warning {
    background-color: red;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}




@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack elements */
        align-items: center;
        text-align: center;
    }

    .about-text {
        order: 6; /* Moves the blurb below the image */
    }

    .about-image {
        order: 0; /* Places image between the name and the blurb */
    }
}


nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 185px;
    border-bottom: 2px solid var(--border-color); /* black line below navbar */
    padding-bottom: 15px; /* the space between line and text */
}

nav .logo{ /*styling NT only*/
    color: var( --text-color); /*ensures the text is a certain color, idk what happened here */
    font-weight: bold;
}

nav a { /* i think this refers to the navbar's links */
    font-size: 15px; /* changes the font size of the words in navbar */
    text-decoration: none; /* removes the default underline link*/
    color: var( --text-color);

}


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* change spacing between navbar words */
}

li { /* list elements (aka words of navbar) will be inline instead of a block of links */
    display: inline;
    align-items: end;
}

h1 { /* this is setting the h1 font for my name!! */
    font-family: 'Pinyon Script', cursive;
    align-items: center;
    font-size: 48px; /* Adjust size to match Figma */
    font-weight: 400; /* Ensure correct weight */
}

h1 { /* this is the pinyon script of my namet */
    font-family: 'Pinyon Script', cursive;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var( --text-color);
}


/* centers the pinyon text of my name and sttyles*/
.about-text h1 { 
    text-align: center; /* centering my pinyon */
    width: 100%; /* the full width is ensuringcentering */
    font-size: 65px;
    opacity: 0;
    transition: opacity 2s ease-out;
}

.about-text h1 {
    opacity: 1;
}

/* the main container to arrange elements in two columns (the left text and right pic)*/
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px; /* adjust width with whatever */
    margin: 50px auto; /* centers container, look into it */
    padding: 20px;
}

/* left col for name, blurb, and links */
.about-text {
    max-width: 500px; /* prevents text from stretching too  much */
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* spacing for the about blurb */
.about-text p {
    font-size: 15px;
    margin-bottom: 15px;
    color: var( --text-color);
}

blockquote{
    margin-top: 10px;
    margin-bottom: 10px;
    color: var( --text-color);
}

/* the styling for linked, git, resume, and email CHANGE THIS STYLING FOR THE ABOUT LINKS BACK TO A PREVIOUS COMMIT CAUSE ION LIKE IT, just changing it for the assignment stuff*/
.about-text address a {
    font-style: italic;  /* Make only the text italic */
    color: #4A90E2;  /* A good readable blue for light and dark mode */
    text-decoration: none; /* Remove underline */
}

.about-text address a:hover {
    text-decoration: underline; /* Underline on hover */
}




/* right column for the big image of me*/
.about-image img {
    width: 250px; /* image size */
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    height: 40svh; /* img woll adapt to smallest viewpoert*/
    object-fit: cover;
}

#moments-images h2 { /* the # selects an id */
    text-align: center; /* centering the heading */
    width: 100%;
    margin-bottom: 50px;
    color: var(--text-color);
    text-decoration: none;
}

#moments-images div {
    display: flex;
    justify-content: center;
    gap: 150px; /* this adjusts  spacing betwn images */
    flex-wrap: wrap; /* wraps the image on the same linee*/}

figure {
    text-align: center; /* centing both image and caption */    
}

figure img {
    width: 250px;  /* fixed width */
    height: 250px; /* fixed height */
    object-fit: cover; /* gets rid of squishing image issue */
    border: 1px solid var(--border-color);
    border-radius: 10px; 
}


figcaption {
    text-align: center; 
    display: block; 
    margin-top: 5px; /* spacing between image and caption */
    color: var(--text-color);
}
.contact-container {
    margin-top: 75px; /* Moves form lower */
}


.contact-form {
    text-align: center;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 2px solid var(--border-color); /*this is the outer border */
}

.contact-form h2 {
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* spacing BTWN each field */
    align-items: center;
}

.contact-form label{
    text-align: left;
    display: block;
    width: 100%; 

}

/*allows the big message box to be big*/
.contact-form textarea {
    min-height: 120px;
    resize: none;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #e0e0e0;
    font-size: 16px;
}


.contact-form button {
    width: 100%;
    padding: 12px;
    background: var(--border-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #333;
}



/* ✅ Style for flashing red input errors */
.flash-error {
    border: 2px solid red !important;
    animation: flash-border 0.5s alternate infinite;
}

@keyframes flash-border {
    0% {
        border-color: red;
    }
    100% {
        border-color: transparent;
    }
}

/* ✅ Error and success messages */
.error-message {
    color: red;
    font-size: 14px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.info-message {
    color: green;
    font-size: 14px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

/* ✅ Validation styles */
input:invalid, textarea:invalid {
    border: 2px solid red;
    background-color: #ffe6e6;
}

input:valid, textarea:valid {
    border: 2px solid green;
    background-color: #e6ffe6;
}




footer{
    margin-top: 100px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 90%; /* Makes form responsive to screen size */
        padding: 20px;  /* Reduce padding for smaller screens */
        border-width: 1.5px; /* Slightly thinner border for mobile */
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px; /* Adjust input font size for smaller screens */
        padding: 10px; /* Reduce padding inside inputs */
    }

    .contact-form button {
        padding: 10px;
        font-size: 14px; /* Reduce button size */
    }
}

/* hamburger menu stuff below */
.menu-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 30px;
    top: 15px;
    z-index: 100;
}

.menu-icon span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
    display: block;
}
.menu {
    list-style-type: none;
    display: flex;
    gap: 30px;
}

/* the mobile styles for menu */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu li {
        margin: 10px 0;
    }

    .menu-icon {
        display: flex;
    }

    /* menu is shown when checked*/
    .menu-checkbox:checked ~ .menu {
        display: flex;
    }
}
