*, *::before, *::after {
  box-sizing: border-box;          
  margin: 0;                       
  padding: 0;
}

html {
  scroll-behavior: smooth;         
  scroll-padding-top: 5rem;        
}

.body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  min-height: 100vh; 
  max-width: 100dvw;  
  box-sizing: border-box;    
  display: flex; 
    flex-direction: column;
    width: 100dvw;
    min-height: 100vh; 
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f4f4f4;
    background-color: #090f3e;
    justify-content: space-between; 
    background-image: url('/media/smoky-mountain-sunset.jpg'); 
    background-size: cover;           
    background-position: center;      
    background-repeat: no-repeat;     
    background-attachment: fixed;       
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
        --max-width:      clamp(320px, 90vw, 100%);
        --font-size-base: clamp(15px, 2.5vw + 0.5rem, 18px);
        --font-size-h1:   clamp(2rem, 6vw + 1rem, 4rem);
        --font-size-h2:   clamp(1.6rem, 5vw + 0.8rem, 3rem);
        --spacing-sm:     clamp(0.5rem, 2vw, 1rem);
        --spacing-md:     clamp(1rem, 4vw, 2rem);
        --spacing-lg:     clamp(2rem, 6vw, 4rem);
        --sprucePine: #003a00; 
        --bluegrass: #005500;
        --kentuckyNight: #000d08;
        --mountainFog: #f0fff8; 
        --stormCloud: #333849;
        --blueRidgeParkway: #002167;
        --midnightBlue: #0d0033;
        --marianaTrench: #00001a;
        --starLight: #e1ceff; 
        
    }

/* Apply base font size */
html { 
    font-size: var(--font-size-base); 
}

body { 
    color: var(--kentuckyNight); 
    background: var(--mountainFog); 
}

/* Accessibility helpers */
@media (prefers-reduced-motion: reduce) {
  * { 
    animation: none !important; 
    transition: none !important; 
    scroll-behavior: auto; 
    }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:  var(--kentuckyNight);
    --color-text: var(--mountainFog);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg:  var(--mountainFog);
    --color-text: var(--kentuckyNight);
  }
}
    




    /* Navigation menu base styles*/
        .topnav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative; 
            padding: 1rem 1.5rem;
            background: var(--midnightBlue);        
            color: var(--mountainFog);
            min-height: 10vh;
            width: 100%; 
        }
    
       

        .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1000;
        position: absolute;
        right: 1.5rem;
        top: 0.5rem;
        }

        
        .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: white;
        margin: 6px 0;
        transition: all 0.3s ease;
        }

        .navLinks {
        display: none;               
        flex-direction: column;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        max-height: fit-content;
        }

        .navLinks a { 
            color: white;
            text-decoration: none;
            padding: 1rem 0;
            font-size: 1.4rem;
            border-bottom: 1px solid var(--blueRidgeParkway)
        }

        .nav-links a:hover, .nav-links a:focus {
        background: var(--stormCloud);
        }

        .navLinks.active {
            display: flex;
            flex-direction: column;
        }



.mainContainer {
    width: 95%; /* Full width with small margins */
    margin: 0 auto; /* Center the container */
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    box-sizing: border-box;
}

.projectsArticle {
    width: 100%; 
    box-sizing: border-box;
    margin: 2vh 0;
    padding-top: 2vh; 
    text-align: center; 
    border-top: 3px solid var(--mountainFog);
}

.item {
box-sizing: border-box;
width: 100%; 
border: solid var(--mountainFog) 3px;
margin: 5vh 0;
text-align: center;
font-size: 1.4rem;
background: linear-gradient(0deg, rgba(0, 1, 14, 0) 10%, rgba(0, 1, 14, 0.682) 100%) no-repeat;
}

.item a {
    font-weight: 600; 
    text-emphasis-style: italic;
    color: var(--mountainFog); 
}

.item a:hover {
    color:var(--starLight); 
}

.image {
    max-width: 95%; /* Responsive image */
    height: auto;
    margin: 1rem 0;
    box-sizing: border-box;
}

.header {
    text-align: center;
    padding: 5vh 0;
    font-size: 1.5rem;
}



.footer {
    text-align: center;
    padding: 0.5rem 0;
}

@media only screen and (min-width: 750px) {

body {
  background-image: url('/media/smoky-mountain-sunset.jpg'); 
  background-size: cover;           
  background-position: center;      
  background-repeat: no-repeat;     
  background-attachment: fixed;     
  min-height: 100vh;                
}

.topnav {
        display: flex;  /* always visible */
        flex-direction: row;
        justify-content: space-evenly;
        height: clamp(fit-content, 10vh, 12vh);
        grid-area: nav;
        width: 100%;
    }

    .navLinks {
        display: flex;               
        flex-direction: row;
        justify-content: space-evenly;
        width: clamp(fit-content, 60%, 100%);
        background: none;
        padding: 0;
        box-shadow: none;
        max-height: fit-content;

    }
  
    .hamburger {
        display: none; 
    }

.header > h1 {
    font-size: 3rem;
    mix-blend-mode: difference; 
}

.image {
    display: none; 
}
}

