/* Load custom fonts */
@font-face {
    font-family: 'HelveticaNeueLight';
    src: url('assets/HelveticaNeueLTStd-Lt.woff') format('woff');
}

@font-face {
    font-family: 'HelveticaNeueBold';
    src: url('assets/HelveticaNeueLTStd-Bd.woff') format('woff');
}

/* Global styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'HelveticaNeueBold', Arial, sans-serif;
    background: url('assets/background-image.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

#livingston-page {
    background: url('assets/background-livingston.jpg') no-repeat center center fixed;
    background-size: cover;
}

#livingstoncentral-page {
    background: url('assets/background-livingston.jpg') no-repeat center center fixed;
    background-size: cover;
}

#seton-west-page {
    background: url('assets/background-seton-west.jpg') no-repeat center center fixed;
    background-size: cover;
}

#seton-west-phase2-page {
    background: url('assets/background-seton-west-phase2.jpg') no-repeat center center fixed;
    background-size: cover;
}

#seton-west-phase3-page {
    background: url('assets/background-seton-west.jpg') no-repeat center center fixed;
    background-size: cover;
}

#altitude-page {
    background: url('assets/background-altitude.jpg') no-repeat center center fixed;
    background-size: cover;
}

#waterside-page {
    background: url('assets/background-watwerside-mahogany.jpg') no-repeat center center fixed;
    background-size: cover;
}

#sage-walk-page {
    background: url('assets/background-sage-walk-bridges.jpg') no-repeat center center fixed;
    background-size: cover;
}

#sage-walk-phase1-page {
    background: url('assets/background-sage-walk-bridges.jpg') no-repeat center center fixed;
    background-size: cover;
}

#sage-walk-phase2-page {
    background: url('assets/background-sage-walk-bridges.jpg') no-repeat center center fixed;
    background-size: cover;
}

#sage-walk-townhomes-page {
    background: url('assets/background-sage-walk-bridges.jpg') no-repeat center center fixed;
    background-size: cover;
}

#sage-walk-ravines-page {
    background: url('assets/background-sage-walk-bridges.jpg') no-repeat center center fixed;
    background-size: cover;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
}

/* Ensure a 1 cm gap between the navigation bar and the body */
header {
    margin-bottom: 1cm !important; /* Force margin to apply */
}

/* Add extra padding to the main content, if needed */
main {
    padding-top: 1cm;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
}

header {
    background-color: transparent;
    display: block;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-logo img {
    max-height: 50px;
    margin-right: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'HelveticaNeueLight', Arial, sans-serif;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0f0f0;
}

main {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    z-index: 100;
}

.footer-container {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-contact {
    text-align: center;
    color: #ffffff;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #ffffff;
    margin: 0 10px;
    font-size: 1.2em;
    text-decoration: none;
}

.footer-legal {
    text-align: right;
    color: #ffffff;
    font-size: 0.9em;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: underline;
}

#main-content {
    min-height: 100vh;
    position: relative;
    padding-bottom: 200px; /* Height of the footer */
}

/* Main content wrapper styles */

/* Ensure left alignment for the files and folders list on development pages */
#livingston-page #file-list,
#livingstoncentral-page #file-list,
/*#seton-west-page #file-list,*/
#seton-west-phase2-page #file-list,
#seton-west-phase3-page #file-list,
#altitude-page #file-list,
#waterside-page #file-list,
#sage-walk-page #file-list,
#sage-walk-phase1-page #file-list,
#sage-walk-phase2-page #file-list,
#sage-walk-townhomes-page #file-list {
    text-align: left !important;
    padding-left: 20px;
    margin: 0;
}

/* Override the main element's alignment for file list sections */
#livingston-page main,
#livingstoncentral-page main,
/*#seton-west-page main,*/
#seton-west-phase2-page main,
#seton-west-phase3-page main,
#altitude-page main,
#waterside-page main,
#sage-walk-page main,
#sage-walk-phase1-page main,
#sage-walk-phase2-page main,
#sage-walk-townhomes-page main {
    text-align: left !important;
}

#livingston-page #file-list ul,
#livingstoncentral-page #file-list ul,
/*#seton-west-page #file-list ul,*/
#seton-west-phase2-page #file-list ul,
#seton-west-phase3-page #file-list ul,
#altitude-page #file-list ul,
#waterside-page #file-list ul,
#sage-walk-page #file-list ul,
#sage-walk-phase1-page #file-list ul,
#sage-walk-phase2-page #file-list ul,
#sage-walk-townhomes-page #file-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#livingston-page #file-list li,
#livingstoncentral-page #file-list li,
/*#seton-west-page #file-list li,*/
#seton-west-phase2-page #file-list li,
#seton-west-phase3-page #file-list li,
#altitude-page #file-list li,
#waterside-page #file-list li,
#sage-walk-page #file-list li,
#sage-walk-phase1-page #file-list li,
#sage-walk-phase2-page #file-list li,
#sage-walk-townhomes-page #file-list li {
    margin-bottom: 5px;
    padding-left: 10px;
}

/* Darker translucent overlay for better legibility */
.overlay {
    background-color: rgba(0, 0, 0, 0.8); /* Darker semi-transparent black */
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    margin: 40px auto; /* Center the overlay */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Adjust the file list inside the overlay */
#livingston-page #file-list,
#livingstoncentral-page #file-list,
/*#seton-west-page #file-list,*/
#seton-west-phase2-page #file-list,
#seton-west-phase3-page #file-list,
#altitude-page #file-list,
#waterside-page #file-list,
#sage-walk-page #file-list,
#sage-walk-phase1-page #file-list,
#sage-walk-phase2-page #file-list,
#sage-walk-townhomes-page #file-list {
    text-align: left;
    color: #ffffff; /* White text for better readability */
}

#livingston-page .overlay h1,
#livingstoncentral-page .overlay h1,
/*#seton-west-page .overlay h1,*/
#seton-west-phase2-page .overlay h1,
#seton-west-phase3-page .overlay h1,
#altitude-page .overlay h1,
#waterside-page .overlay h1,
#sage-walk-page .overlay h1,
#sage-walk-phase1-page .overlay h1,
#sage-walk-phase2-page .overlay h1,
#sage-walk-townhomes-page .overlay h1 {
    color: #ffffff; /* White heading text */
    margin-bottom: 20px;
}

/* Forcefully override browser default styles for links */
#livingston-page #file-list a:link,
#livingston-page #file-list a:visited,
#livingstoncentral-page #file-list a:link,
#livingstoncentral-page #file-list a:visited,
/*#seton-west-page #file-list a:link,*/
/*#seton-west-page #file-list a:visited,*/
#seton-west-phase2-page #file-list a:link,
#seton-west-phase2-page #file-list a:visited,
#seton-west-phase3-page #file-list a:link,
#seton-west-phase3-page #file-list a:visited,
#altitude-page #file-list a:link,
#altitude-page #file-list a:visited,
#waterside-page #file-list a:link,
#waterside-page #file-list a:visited,
#sage-walk-page #file-list a:link,
#sage-walk-page #file-list a:visited,
#sage-walk-phase1-page #file-list a:link,
#sage-walk-phase1-page #file-list a:visited,
#sage-walk-phase2-page #file-list a:link,
#sage-walk-phase2-page #file-list a:visited,
#sage-walk-townhomes-page #file-list a:link,
#sage-walk-townhomes-page #file-list a:visited {
    color: #ffffff !important; /* Force links to be white */
    text-decoration: underline; /* Keep underline */
}

#livingston-page #file-list a:hover,
#livingstoncentral-page #file-list a:hover,
/*#seton-west-page #file-list a:hover,*/
#seton-west-phase2-page #file-list a:hover,
#seton-west-phase3-page #file-list a:hover,
#altitude-page #file-list a:hover,
#waterside-page #file-list a:hover,
#sage-walk-page #file-list a:hover,
#sage-walk-phase1-page #file-list a:hover,
#sage-walk-phase2-page #file-list a:hover,
#sage-walk-townhomes-page #file-list a:hover {
    color: #f0f0f0 !important; /* Slightly lighter color on hover */
    text-decoration: underline; /* Keep underline on hover */
}

#livingston-page #file-list a:active,
#livingstoncentral-page #file-list a:active,
/*#seton-west-page #file-list a:active,*/
#seton-west-phase2-page #file-list a:active,
#seton-west-phase3-page #file-list a:active,
#altitude-page #file-list a:active,
#waterside-page #file-list a:active,
#sage-walk-page #file-list a:active,
#sage-walk-phase1-page #file-list a:active,
#sage-walk-phase2-page #file-list a:active,
#sage-walk-townhomes-page #file-list a:active {
    color: #ffffff !important; /* Ensure active links are white */
    text-decoration: underline; /* Keep underline on active state */
}

/* Password protection styles */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.password-container h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#password-input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 1em;
    width: 250px;
}

#password-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#password-form button:hover {
    background: #0056b3;
}

/* About page specific styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.about-content h1 {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
}

.about-content h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-section {
    margin-bottom: 40px;
}

.about-content p {
    margin-bottom: 20px;
    font-family: 'HelveticaNeueLight', Arial, sans-serif;
}

.about-content .highlight {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

#about-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/background-image.jpg') no-repeat center center fixed;
    background-size: cover;
}

ul {
    list-style-type: none;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

.folder {
    cursor: pointer;
    font-weight: bold;
}

.folder::before {
    content: '▶ ';
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.2s ease;
}

.expanded::before {
    transform: rotate(90deg);
}

.hidden {
    display: none;
}

#livingston-page #file-list,
#livingstoncentral-page #file-list,
/*#seton-west-page #file-list,*/
#seton-west-phase2-page #file-list,
#seton-west-phase3-page #file-list,
#altitude-page #file-list,
#waterside-page #file-list,
#sage-walk-page #file-list,
#sage-walk-phase1-page #file-list,
#sage-walk-phase2-page #file-list,
#sage-walk-townhomes-page #file-list {
    margin-top: 20px;
}

#livingston-page main,
#livingstoncentral-page main,
/*#seton-west-page main,*/
#seton-west-phase2-page main,
#seton-west-phase3-page main,
#altitude-page main,
#waterside-page main,
#sage-walk-page main,
#sage-walk-phase1-page main,
#sage-walk-phase2-page main,
#sage-walk-townhomes-page main {
    padding: 20px;
}

#livingston-page #file-list ul,
#livingstoncentral-page #file-list ul,
/*#seton-west-page #file-list ul,*/
#seton-west-phase2-page #file-list ul,
#seton-west-phase3-page #file-list ul,
#altitude-page #file-list ul,
#waterside-page #file-list ul,
#sage-walk-page #file-list ul,
#sage-walk-phase1-page #file-list ul,
#sage-walk-phase2-page #file-list ul,
#sage-walk-townhomes-page #file-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#livingston-page #file-list li,
#livingstoncentral-page #file-list li,
/*#seton-west-page #file-list li,*/
#seton-west-phase2-page #file-list li,
#seton-west-phase3-page #file-list li,
#altitude-page #file-list li,
#waterside-page #file-list li,
#sage-walk-page #file-list li,
#sage-walk-phase1-page #file-list li,
#sage-walk-phase2-page #file-list li,
#sage-walk-townhomes-page #file-list li {
    margin: 10px 0;
}

#livingston-page #file-list,
#livingstoncentral-page #file-list,
/*#seton-west-page #file-list,*/
#seton-west-phase2-page #file-list,
#seton-west-phase3-page #file-list,
#altitude-page #file-list,
#waterside-page #file-list,
#sage-walk-page #file-list,
#sage-walk-phase1-page #file-list,
#sage-walk-phase2-page #file-list,
#sage-walk-townhomes-page #file-list {
    padding: 20px;
}

#livingston-page .overlay h1,
#livingstoncentral-page .overlay h1,
/*#seton-west-page .overlay h1,*/
#seton-west-phase2-page .overlay h1,
#seton-west-phase3-page .overlay h1,
#altitude-page .overlay h1,
#waterside-page .overlay h1,
#sage-walk-page .overlay h1,
#sage-walk-phase1-page .overlay h1,
#sage-walk-phase2-page .overlay h1,
#sage-walk-townhomes-page .overlay h1 {
    margin-bottom: 20px;
}

#livingston-page #file-list a:link,
#livingston-page #file-list a:visited,
#livingstoncentral-page #file-list a:link,
#livingstoncentral-page #file-list a:visited,
/*#seton-west-page #file-list a:link,*/
/*#seton-west-page #file-list a:visited,*/
#seton-west-phase2-page #file-list a:link,
#seton-west-phase2-page #file-list a:visited,
#seton-west-phase3-page #file-list a:link,
#seton-west-phase3-page #file-list a:visited,
#altitude-page #file-list a:link,
#altitude-page #file-list a:visited,
#waterside-page #file-list a:link,
#waterside-page #file-list a:visited,
#sage-walk-page #file-list a:link,
#sage-walk-page #file-list a:visited,
#sage-walk-phase1-page #file-list a:link,
#sage-walk-phase1-page #file-list a:visited,
#sage-walk-phase2-page #file-list a:link,
#sage-walk-phase2-page #file-list a:visited,
#sage-walk-townhomes-page #file-list a:link,
#sage-walk-townhomes-page #file-list a:visited {
    color: #fff;
    text-decoration: none;
}

#livingston-page #file-list a:hover,
#livingstoncentral-page #file-list a:hover,
/*#seton-west-page #file-list a:hover,*/
#seton-west-phase2-page #file-list a:hover,
#seton-west-phase3-page #file-list a:hover,
#altitude-page #file-list a:hover,
#waterside-page #file-list a:hover,
#sage-walk-page #file-list a:hover,
#sage-walk-phase1-page #file-list a:hover,
#sage-walk-phase2-page #file-list a:hover,
#sage-walk-townhomes-page #file-list a:hover {
    text-decoration: underline;
}

#livingston-page #file-list a:active,
#livingstoncentral-page #file-list a:active,
/*#seton-west-page #file-list a:active,*/
#seton-west-phase2-page #file-list a:active,
#seton-west-phase3-page #file-list a:active,
#altitude-page #file-list a:active,
#waterside-page #file-list a:active,
#sage-walk-page #file-list a:active,
#sage-walk-phase1-page #file-list a:active,
#sage-walk-phase2-page #file-list a:active,
#sage-walk-townhomes-page #file-list a:active {
    color: #ccc;
}

/* File list styling */
#file-list {
    text-align: left;
    margin-top: 20px;
}

#file-list ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 0;
}

#sage-walk-townhomes-page #file-list ul {
    list-style-type: none;
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

/* ========================================
   RESPONSIVE DESIGN STYLES
   ======================================== */

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    width: 56px;
    height: 56px;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-nav-toggle i {
    pointer-events: none;
}

.mobile-nav-toggle:focus,
.mobile-nav-toggle:hover {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.03);
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
    /* Mobile Typography */
    h1 {
        font-size: 1.8em !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.4em !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* Mobile Navigation */
    header {
        padding: 10px 15px;
        position: fixed;
        width: calc(100% - 30px);
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }
    
    nav {
        width: 100%;
        justify-content: space-between;
        padding: 0 15px;
    }

    .nav-logo img {
        max-height: 40px;
        margin-right: 10px;
    }

    .mobile-nav-toggle {
        display: flex;
        margin-left: auto;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
    }

    nav ul.mobile-nav-open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1em;
        border-radius: 0;
        transition: background-color 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    /* Mobile Main Content */
    .main-content {
        padding: 10px 15px;
        margin-top: 70px;
    }
    
    main {
        padding-top: 20px;
        margin-top: 0;
    }
    
    /* Mobile Overlay Adjustments */
    .overlay {
        max-width: 95%;
        margin: 20px auto;
        padding: 15px;
        border-radius: 8px;
    }
    
    .about-content {
        padding: 20px 15px;
    }
    
    /* Mobile Footer */
    footer {
        position: relative;
        margin-top: 40px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .footer-logo {
        order: 1;
    }
    
    .footer-contact {
        order: 2;
    }
    
    .footer-legal {
        order: 3;
        text-align: center;
        font-size: 0.8em;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .social-icons a {
        margin: 0 15px;
        font-size: 1.4em;
    }
    
    /* Mobile File List Adjustments */
    #file-list {
        padding: 10px;
        margin-top: 15px;
    }
    
    #file-list ul {
        padding-left: 15px;
    }
    
    #file-list li {
        margin: 8px 0;
        word-wrap: break-word;
    }
    
    #file-list a {
        font-size: 0.95em;
        line-height: 1.4;
    }
    
    /* Mobile Password Form */
    .password-container {
        margin: 0 15px;
        padding: 25px 20px;
    }
    
    #password-input {
        width: 100%;
        max-width: 280px;
        font-size: 1em;
    }
    
    #password-form button {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Tablet Navigation */
    header {
        padding: 10px 20px;
    }
    
    nav ul li {
        margin-right: 15px;
    }
    
    nav ul li a {
        font-size: 0.95em;
    }
    
    /* Tablet Typography */
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    /* Tablet Layout */
    .main-content {
        padding: 15px 20px;
    }
    
    .overlay {
        max-width: 90%;
        padding: 25px;
    }
    
    .about-content {
        padding: 30px 25px;
    }
    
    /* Tablet Footer */
    .footer-container {
        padding: 20px;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .footer-legal {
        text-align: center;
        flex-basis: 100%;
        margin-top: 15px;
    }
}

/* Large Desktop Styles */
@media screen and (min-width: 1400px) {
    .main-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px 40px;
    }
    
    .overlay {
        max-width: 70%;
    }
    
    .about-content {
        max-width: 1000px;
    }
    
    .footer-container {
        max-width: 1400px;
    }
}

/* Desktop Contrast Improvements */
@media screen and (min-width: 1025px) {
    /* Add a gentle dark gradient under the fixed header to increase contrast */
    header {
        background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0));
    }

    /* Slight text-shadow for nav items to improve readability on bright backgrounds */
    nav ul li a {
        text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    }

    /* Improve legibility of headings and homepage text over imagery */
    h1, h2, p {
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }

    /* On the homepage (no body id), give main a subtle dark backdrop */
    body:not([id]) main {
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        display: inline-block;
        padding: 20px 24px;
        border-radius: 10px;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    nav ul {
        max-height: calc(100vh - 60px);
        padding: 10px 0;
    }
    
    nav ul li a {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .main-content {
        margin-top: 60px;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .nav-logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    nav ul {
        transition: none;
    }
    
    .folder::before {
        transition: none;
    }
}

/* Focus Improvements for Keyboard Navigation */
nav ul li a:focus,
.social-icons a:focus,
#password-input:focus,
#password-form button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    footer,
    .mobile-nav-toggle,
    #password-overlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main-content {
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    .overlay {
        background: transparent !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}