:root {
    --overlay-green: #002420;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #525252;
    --hover-red: #eab8b8;
    --spacing-unit: 1rem;
    --transition-speed: 0.3s;
    --nav-height: 60px;
    --accent-color: #c8c8c8;
    --background-color: #000000;
    --background-secondary: #1e1e1e;
    --accent-primary: #323232;
    --accent-secondary: #323232;
    --section-margin: 0rem; /* Control section spacing from screen edges */
    --article-margin: -1rem; /* Control article spacing from edges */
}

/* Font Declarations */
@font-face {
    font-family: 'Work Sans ExtraBold';
    src: local('Work Sans ExtraBold'),
         local('WorkSans-ExtraBold');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans ExtraLight';
    src: local('Work Sans ExtraLight'),
         local('WorkSans-ExtraLight');
    font-weight: 200;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    min-height: 100vh;
    font-family: 'Work Sans ExtraLight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Utility Classes */
.fullscreen-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.section {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Category structure */
.category {
    margin-bottom: 400rem;
    padding: 200rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 800px;
    width: 100%;
}

.category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Column layout */
.columns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.column {
    width: 100%;
}

.column h3 {
    font-size: 1.5rem;
    margin-bottom: 2000rem;
    color: var(--accent-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Project grid */
.project-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1000fr;
    gap: 2000rem;
}

/* Project thumbnail */
.project-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-thumbnail:hover {
    transform: translateY(-5px);
}

.project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.95));
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 10;
}

.project-thumbnail:hover .thumbnail-caption {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 1));
    padding-bottom: 20px;
}

.project-thumbnail.protected img {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

.thumbnail-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.thumbnail-lock-overlay i {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.project-thumbnail.protected.unlocked img {
    filter: none;
}

.project-thumbnail.protected.unlocked .thumbnail-lock-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    font-family: 'Work Sans ExtraLight', 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.nav-brand {
    font-family: 'Work Sans ExtraBold', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5em;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--overlay-green);
    min-width: 200px;
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
    text-transform: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-category {
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    pointer-events: none;
    opacity: 0.7;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--overlay-green);
    min-width: 250px;
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed) ease;
    text-transform: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Landing Section */
#landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing-content h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-content h1 .large-text {
    font-family: 'Work Sans ExtraBold', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.landing-content h1 .small-text {
    font-family: 'Work Sans ExtraLight', sans-serif;
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

main {
    position: relative;
    z-index: 2;
    margin-top: 100vh;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 200px
    );
    padding-top: var(--nav-height);
}

/* Subcategory Styles */
.subcategory {
    margin-bottom: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 6px;
}

.subcategory h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Project Keywords */
.project-keywords {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-unit);
}

/* Project Section */
.project {
    margin: 4rem 0;
    padding: 2rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.project-title-container {
    margin-bottom: 2rem;
    text-align: center;
}

.project-title {
    font-family: 'Work Sans ExtraBold', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    opacity: 0.9;
    font-family: 'Work Sans', sans-serif;
}

.project-keywords {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
    max-width: 800px;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-media {
    margin: 2rem 0;
    width: 100%;
}

.project-video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform var(--transition-speed) ease;
}

.project-gallery img:hover {
    transform: scale(1.02);
}

/* Project Grid in Summary */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.project-thumbnail {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-speed) ease;
}

.project-thumbnail:hover {
    transform: translateY(-2px);
}

.project-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    border-radius: 0 0 4px 4px;
    font-size: 0.9rem;
}

.project-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.9));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.project-card:hover h3 {
    padding-bottom: 1.5rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 1));
}

/* Portfolio Summary specific styles */
#portfolio-summary {
    padding: 1rem;
}

#portfolio-summary .category {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

#portfolio-summary .category h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

#portfolio-summary .columns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#portfolio-summary .column {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

#portfolio-summary .column h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#portfolio-summary .subcategory {
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
}

#portfolio-summary .subcategory h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

#portfolio-summary .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

#portfolio-summary .project-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#portfolio-summary .project-thumbnail:hover {
    transform: translateY(-5px);
}

#portfolio-summary .project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#portfolio-summary .thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: bold;
}

#portfolio-summary .thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    text-align: center;

    text-shadow: 
        0px -2.5px 4px rgba(0, 0, 0, 1),
        0px 2px 0 #000,
        -2px 0px 0 #000,
        2px 0px 0 #000,
        0px -2px 0 #000 !important;
    transform: translateY(0);
    transition: all 0.3s ease;
}

#portfolio-summary .project-thumbnail:hover .thumbnail-caption {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.3));
    padding-bottom: 20px;
}

/* Maintain the original styles for the detailed project sections */
#projects .project-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

#projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Modal Styles */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.password-modal.active {
    display: flex;
}

.password-modal-content {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.password-modal h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.password-modal input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--background-color);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--text-primary);
}

.password-modal .button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.password-modal button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.password-modal .submit-button {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.password-modal .cancel-button {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}

.password-modal .error-message {
    color: #ff4444;
    margin-bottom: 1rem;
    display: none;
}

.password-modal .error-message.visible {
    display: block;
}

/* Project Content Styles */
.project-title {
    font-family: 'Work Sans ExtraBold', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-keywords {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
    max-width: 800px;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-media {
    margin-bottom: 2rem;
    width: 100%;
}

.project-video {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform var(--transition-speed) ease;
}

.project-gallery img:hover {
    transform: scale(1.02);
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-thumbnail {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-speed) ease;
}

.project-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
}

.project-container {
    background: var(--background-secondary);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.project-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.project-container .project-title {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
}

.project-container .project-description {
    margin: 2rem auto;
    max-width: 800px;
}

.project-container .project-media-gallery {
    margin: 2rem -2rem;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .project-container {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .project-container .project-title {
        font-size: 2rem;
    }

    .project-container .project-media-gallery {
        margin: 2rem -1rem;
        padding: 0 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .category h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .column {
        flex: 1;
        min-width: 250px;
        margin: 0 0.5rem;
    }

    .column h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-thumbnail {
        padding-bottom: 50%; /* 16:9 aspect ratio */
    }

    .project-category-header {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.5;
    transition: opacity var(--transition-speed) ease-out;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn var(--transition-speed) ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 16:9 Aspect Ratio Media Containers and Captions */
.project-media-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 2rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
}

.project-media-container img,
.project-media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-media-container video {
    z-index: 1;
}

.media-caption {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-tertiary);
    font-size: 0.6rem;
    z-index: 2;
}

.project-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-media-gallery .project-media-container {
    margin-bottom: 0; /* Remove bottom margin in grid items */
}

/* Media queries */
@media (min-width: 1200px) {
    .columns {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .column {
        flex: 1 1 800px; /* grow | shrink | basis */
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }

    .category {
        padding: 1rem;
    }

    .project-grid {
        gap: 1rem;
    }
}

/* Text Section Styles */
.project-text-section {
    padding: 2rem 1rem;
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-text-section p {
    margin-bottom: 1rem;
}

.project-text-section ul, 
.project-text-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-text-section li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-unit);
}

label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

input,
textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.5);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
    background: var(--overlay-green);
    color: var(--text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease-out;
}

button:hover {
    background-color: color-mix(in srgb, var(--overlay-green) 80%, white);
}

.project-content.protected {
    position: relative;
    filter: blur(75px);
}

.project-content.protected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.unlock-button {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    background: var(--background-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.unlock-button i {
    font-size: 1.3rem;
}

.unlock-button:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: translateX(-50%) scale(1.05);
}

.project-container.protected {
    position: relative;
}

.project-container.protected .project-content {
    filter: blur(75px);
    transition: filter 0.3s ease;
}

.project-container.protected.unlocked .project-content {
    filter: none;
}

.project-container.protected.unlocked .protection-overlay {
    display: none;
}

.protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.unlock-button {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    background: var(--background-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.unlock-button i {
    font-size: 1.3rem;
}

.unlock-button:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: translateX(-50%) scale(1.05);
}

.project-container.unlocked .protection-overlay {
    opacity: 0;
    pointer-events: none;
}

.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.password-modal-content {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.password-modal h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.password-modal input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--background-color);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--text-primary);
}

.password-modal .button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.password-modal button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.password-modal .submit-button {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.password-modal .cancel-button {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}

.password-modal .error-message {
    color: #ff4444;
    margin-bottom: 1rem;
    display: none;
}

.password-modal .error-message.visible {
    display: block;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-color) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .section-title::after {
        width: 60px;
        height: 2px;
    }
}

/* Contact Section Styles */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.contact-section {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-link:hover {
    background: var(--accent-color);
    color: var(--background-color);
}

.contact-link i {
    font-size: 1.5rem;
}

.cv-preview {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 210/297;
    background: var(--background-color);
}

.cv-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cv-preview:hover .cv-overlay {
    opacity: 1;
}

.cv-preview:hover img {
    transform: scale(1.05);
}

.download-cv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    border: none;
    border-radius: 0.5rem;
    color: var(--background-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.download-cv:hover {
    transform: scale(1.05);
}

.copy-success {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--accent-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-success.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .contact-link {
        padding: 0.75rem;
    }

    .download-cv {
        padding: 0.75rem 1.5rem;
    }
}

/* Split Contact Section and Bio Styles */
.contact-section-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.bio-container {
    flex: 1;
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--accent-color);
}

.bio-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.links-container {
    flex: 1;
}

.links-container h3 {
    margin-bottom: 1rem;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contact-link {
    font-size: 0.9rem;
    padding: 0.75rem;
}

.contact-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-links {
        grid-template-columns: 1fr;
    }
    
    .contact-link {
        font-size: 1rem;
        padding: 1rem;
    }
}

.project-thumbnail.protected img {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

.thumbnail-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.thumbnail-lock-overlay i {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Remove blur and lock when projects are unlocked */
.unlocked .project-thumbnail.protected img {
    filter: none;
}

.unlocked .project-thumbnail.protected .thumbnail-lock-overlay {
    opacity: 0;
    pointer-events: none;
}

.welcome-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 2px solid var(--accent-color);
    animation: fadeIn 0.3s ease;
}

.welcome-popup p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.welcome-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-button:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: scale(1.05);
}

.welcome-popup.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

/* Override default section styles for projects section */
#projects.section {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Style for project articles */
.project {
    margin: 2rem calc(var(--article-margin));
    position: relative;
    width: calc(100% - (var(--article-margin) * 2));
}

/* Keep the existing project container styles */
.project-container {
    background: var(--background-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    /* Navigation overlay mobile styles */
    .nav-overlay {
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-end;
        position: absolute;
        top: 2rem;
        right: 2rem;
        gap: 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
        position: absolute;
        top: 2rem;
        left: 2rem;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .nav-brand span {
        display: block;
        text-align: left;
    }

    /* Landing page mobile styles */
    .landing-content {
        padding: 1rem;
    }

    .landing-content h1 .large-text {
        font-size: 1.8rem;
        max-width: 90vw;
        display: block;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.2;
        margin: 0 auto;
    }

    /* New mobile styles for containers and thumbnails */
    .section {
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }

    #categories-container {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .category {
        margin: 0 0 2rem 0;
        padding: 1rem;
        border-radius: 0;
        width: 100%;
    }

    .project-grid {
        width: 100%;
        gap: 1rem;
    }

    .project-thumbnail {
        width: 100%;
        margin: 0;
    }

    .columns {
        width: 100%;
        gap: 1rem;
        padding: 0;
    }

    .column {
        width: 100%;
        padding: 0;
    }

    .project-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;  /* Single column for mobile */
        gap: 1rem;
        padding: 0;
        margin: 0;
    }

    .project-thumbnail {
        width: 100%;
        margin: 0;
        border-radius: 4px;
    }

    .project-thumbnail img {
        width: 100%;
        height: 100%;
    }

    /* Project article and media styles for mobile */
    .modal-content {
        margin: 0;
        padding: 1rem;
        width: 100vw;
        max-width: none;
        border-radius: 0;
        border: none;
    }

    .project-title {
        font-size: 2rem;
        padding: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    .project-keywords {
        padding: 0;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .project-description {
        padding: 0;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: none;
    }

    .project-media {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: 1.5rem;
    }

    .project-video {
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin: 0;
    }

    .project-gallery {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .project-gallery img {
        width: 100%;
        height: auto;
        max-width: none;
        border-radius: 0;
        margin: 0;
    }

    /* Ensure modal takes full width */
    .modal {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    .close-modal {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 2001;
    }
}

@media (max-width: 768px) {
    /* Project container styles */
    #projects {
        padding: 0;
        margin: 0;
        width: 100vw;
    }

    .project {
        width: 100vw;
        margin: 0;
        padding: 0;
    }

    .project-container {
        width: 100vw;
        margin: 0;
        padding: 0;
    }

    .project-content {
        width: 100vw;
        margin: 0;
        padding: 1rem;
    }

    .project-title-container {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    .project-description {
        width: 100%;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    /* Media container styles */
    .project-media-container {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: 1.5rem;
    }

    .project-media-container video,
    .project-media-container img {
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin: 0;
    }

    .project-media-gallery {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .media-caption {
        padding: 0.5rem 1rem;
        margin: 0;
        width: 100%;
    }

    /* Text section styles */
    .project-text-section {
        width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    /* Main video styles */
    .main-video {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: 1.5rem;
    }

    .main-video video {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}
