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

/* Theme Variables */
:root {
    /* Dark mode (default) */
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #1f1f1f;
    --bg-hover: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --text-muted: #8a8a8a;
    --text-faint: #666;
    --border-color: #2a2a2a;
    --border-light: #333;
    --border-hover: #444;
    --accent-blue: #7ab8ff;
    --accent-blue-hover: #a8d1ff;
    --star-gold: #FFD700;
    --star-empty: #CCCCCC;
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --modal-overlay: rgba(0, 0, 0, 0.9);
    --success-bg: #2a4a2a;
    --success-border: #4a7a4a;
    --success-text: #7fff7f;
    --error-text: #e74c3c;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-hover: #d8d8d8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6a6a6a;
    --text-faint: #888;
    --border-color: #d0d0d0;
    --border-light: #c0c0c0;
    --border-hover: #a0a0a0;
    --accent-blue: #0066cc;
    --accent-blue-hover: #004999;
    --star-gold: #FFD700;
    --star-empty: #888888;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --success-bg: #d4edda;
    --success-border: #28a745;
    --success-text: #155724;
    --error-text: #dc3545;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, Georgia, 'Palatino Linotype', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2.5rem 4rem;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 580px;
    width: 100%;
    text-align: center;
}

h1 {
    font-family: Georgia, 'Palatino Linotype', serif;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.headline {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

.headshot {
    margin-bottom: 0.25rem;
}

.headshot img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-image {
    margin-bottom: 2.5rem;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.about {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.about h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.about p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

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

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    width: 100%;
    max-width: 580px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.7;
    border-bottom-color: var(--text-muted);
    cursor: pointer;
}

.main-nav a.active {
    border-bottom: 2px solid var(--text-primary);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.nav-dropdown > a {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.nav-dropdown > a:hover {
    opacity: 0.7;
    border-bottom-color: var(--text-muted);
    cursor: pointer;
}

.nav-dropdown > a.active {
    border-bottom: 2px solid var(--text-primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    min-width: 150px;
    padding-top: 0.5rem;
    z-index: 100;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

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

.dropdown-content a:hover {
    background-color: var(--bg-hover);
    opacity: 1;
}

.project-text-links {
    padding: 1rem 0 2.5rem;
    text-align: center;
}

.project-text-links p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.project-text-links a {
    color: var(--text-primary);
}

.genres {
    padding: 1rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.genres h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.genres ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.genres li {
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.page-content {
    padding: 2rem 0;
    text-align: left;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.interests,
.learning {
    padding-top: 2.5rem;
}

.interests h2,
.learning h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.interests ul,
.learning ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.interests li,
.learning li {
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0 1rem;
}

.gallery img {
    width: calc(50% - 0.5rem);
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Future Projects Gallery - Landscape images */
.future-projects-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

.future-projects-gallery img {
    width: calc(50% - 0.5rem);
    max-width: 340px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Photography Gallery - Stacked images */
.photography-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
}

.photography-gallery img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
}

.learning {
    padding-top: 1rem;
}

/* Contact Page Styles */
.contact-intro {
    padding: 0.5rem 0 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.contact-intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.social-links {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.social-links h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-icon {
    font-weight: 700;
    font-size: 0.9rem;
}

.social-btn.linkedin {
    background-color: #0077b5;
    color: #fff;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-btn.github {
    background-color: #333;
    color: #fff;
}

.contact-form-section {
    padding: 2rem 0;
}

.contact-form-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-success {
    display: none;
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.form-success.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.form-success::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--success-bg);
    border: 2px solid var(--success-border);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--success-text);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success p {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--text-secondary);
    transform: translateY(-1px);
}

/* Project Page Styles */
.project {
    padding: 0.5rem 0 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-image {
    text-align: center;
}

.project-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.project-info {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.project-info a {
    color: var(--text-primary);
}

.project-info a:hover {
    opacity: 0.7;
}

.project-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.project-title {
    margin-bottom: 0;
}

/* Legal Page Styles */
.legal-intro {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.legal-intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.legal-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.education-item {
    text-align: center;
}

.education-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-item .degree {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.education-item .education-details {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-item .date-range {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.experience-item ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.experience-item li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.experience-item li:last-child {
    margin-bottom: 0;
}

.interests-subsection {
    margin-bottom: 1.5rem;
}

.interests-subsection:last-child {
    margin-bottom: 0;
}

.interests-subsection h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.interests-subsection p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

.areas-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.areas-list li {
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skills-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.skills-grid li {
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer Styles */
.site-footer {
    width: 100%;
    max-width: 580px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Showcase Hub Styles */
.showcase-hero {
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.what-i-create {
    padding: 0.5rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.what-i-create h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.what-i-create p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 0;
}

.nav-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-heavy);
    border-color: var(--border-hover);
    opacity: 1;
}

.nav-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.nav-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Movie Reviews Page Styles */
.container-wide {
    max-width: 700px;
}

.reviews-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.review-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

.review-card {
    display: flex;
    gap: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.review-poster {
    flex-shrink: 0;
    width: 80px;
}

.review-poster img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.book-cover {
    width: 60px;
}

.book-cover img {
    width: 60px;
    height: 90px;
}

.review-author,
.review-director {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.review-content {
    flex: 1;
    text-align: left;
}

.review-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.review-year {
    font-weight: 400;
    color: var(--text-muted);
}

.review-rating {
    margin-bottom: 0.5rem;
}

.review-rating .stars {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    letter-spacing: 2px;
}

/* Full star - gold */
.review-rating .stars .full {
    color: var(--star-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Empty star - gray */
.review-rating .stars .empty {
    color: var(--star-empty);
    text-shadow: none;
}

/* Half star - uses gradient clip */
.review-rating .stars .half {
    position: relative;
    display: inline-block;
    color: var(--star-empty);
    letter-spacing: 0;
}

.review-rating .stars .half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--star-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
}

.review-rating .numeric {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-faint);
}

.review-venue {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

.movies-watched-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.movies-watched-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.movies-watched-list {
    list-style: none;
    text-align: left;
}

ol.top-ten-list {
    list-style: decimal;
    padding-left: 1.5rem;
}

.movies-watched-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.movies-watched-list li:last-child {
    border-bottom: none;
}

.movies-watched-list strong {
    color: var(--text-primary);
}

/* Currently Reading Section */
.currently-reading-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.currently-reading-card {
    display: flex;
    gap: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.currently-reading-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    height: 1.2em;
}

.filter-group select,
.filter-group input {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    font-family: inherit;
    height: 42px;
    box-sizing: border-box;
}

.filter-group select {
    cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-bottom-color: var(--accent-blue);
}

.filter-group select:hover,
.filter-group input:hover {
    border-bottom-color: var(--text-faint);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

.back-link {
    padding-top: 2rem;
    text-align: center;
}

.back-link a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* See All Reviews Button */
.see-all-reviews-link {
    text-align: center;
    margin: 0.75rem 0 2rem 0;
}

.see-all-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-faint);
    background-color: transparent;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.see-all-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-faint);
}

.about-read-more {
    text-align: center;
    margin-top: 1rem;
}

.see-all-btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px var(--shadow-heavy);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.video-placeholder:hover .play-button {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-button span {
    font-size: 2rem;
    color: var(--text-primary);
    margin-left: 5px;
}

/* Innovations Page */
.innovations-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.innovations-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.innovations-section .project {
    margin-bottom: 0;
}

.innovations-section h2 {
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Password Protection */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-modal {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
}

.password-modal h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.password-modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.password-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-modal input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.password-modal input:focus {
    outline: none;
    border-color: var(--text-muted);
}

.password-modal input::placeholder {
    color: var(--text-faint);
}

.password-modal button {
    padding: 0.75rem 1.5rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.password-modal button:hover {
    opacity: 0.85;
}

.password-modal button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-success {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.password-error {
    color: var(--error-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.auth-signup-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.auth-signup-link a {
    color: var(--accent-color);
    text-decoration: none;
}

.auth-signup-link a:hover {
    text-decoration: underline;
}

.innovations-header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.innovations-header h1 {
    margin-bottom: 0;
}

.logout-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.innovation-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Hide Innovations nav link by default - only shown for authenticated users */
.nav-menu a[href*="innovations"],
.dropdown-content a[href*="innovations"] {
    display: none !important;
}

/* Show nav link if session exists (prevents flicker) */
html.has-session .nav-menu a[href*="innovations"],
html.has-session .dropdown-content a[href*="innovations"],
body.innovations-visible .nav-menu a[href*="innovations"],
body.innovations-visible .dropdown-content a[href*="innovations"] {
    display: inline-block !important;
}

/* Hide auth overlay if session exists (prevents flicker) */
html.has-session .password-overlay {
    display: none !important;
}

/* Recent Reviews Section (Home Page) */
.recent-reviews-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.recent-reviews-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.recent-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.recent-review-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recent-review-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.recent-reviews-section .review-card {
    width: 100%;
    max-width: 280px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-reviews-section .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.recent-reviews-section .review-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.recent-reviews-section .review-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-reviews-section .review-content {
    padding: 1rem;
    text-align: center;
}

.recent-reviews-section .review-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recent-reviews-section .review-content .review-year {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recent-reviews-section .review-content .review-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.recent-reviews-section .review-rating {
    margin-bottom: 0.5rem;
}

.recent-reviews-section .review-rating .stars {
    font-size: 1rem;
    letter-spacing: 2px;
}

.recent-reviews-section .review-rating .stars .full {
    color: var(--star-gold);
}

.recent-reviews-section .review-rating .stars .half {
    color: var(--star-gold);
}

.recent-reviews-section .review-rating .stars .empty {
    color: var(--border-hover);
}

.recent-reviews-section .review-rating .numeric {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.recent-reviews-section .review-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-reviews-section .review-date {
    font-size: 0.75rem;
    color: var(--text-faint);
}

.see-more-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.see-more-link:hover {
    color: var(--accent-blue-hover);
}

/* Review Modal */
.review-card {
    cursor: pointer;
}

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.review-modal-overlay.active .review-modal {
    transform: scale(1);
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.review-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.review-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 1001;
    display: none;
}

.review-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.review-modal-prev {
    left: 1rem;
}

.review-modal-next {
    right: 1rem;
}

.review-modal-poster {
    width: 100%;
    text-align: center;
    background: var(--bg-primary);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.review-modal-poster img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.review-modal-content {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.review-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.review-modal-content .review-year {
    font-weight: 400;
    color: var(--text-muted);
}

.review-modal-content .review-author {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.review-modal-content .review-rating {
    margin-bottom: 1rem;
}

.review-modal-content .review-rating .stars {
    font-size: 1.4rem;
    letter-spacing: 3px;
}

.review-modal-content .review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-modal-content .review-date {
    font-size: 0.9rem;
    color: var(--text-faint);
}

.modal-see-more-link {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-hover);
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-see-more-link:hover {
    background-color: var(--border-light);
    border-color: var(--border-hover);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Ensure images never overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Articles Index */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.article-preview {
    display: block;
    text-decoration: none;
    padding: 1.75rem 2rem;
    border-left: 3px solid var(--text-muted);
    background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
    border-radius: 0 6px 6px 0;
    transition: border-color 0.3s ease;
}

.article-preview:hover {
    border-left-color: var(--text-primary);
}

.article-preview-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.article-preview-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-preview-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Article Full Page */
.article-container {
    text-align: left;
}

.article-full .article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-full .article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.article-full h1 {
    font-size: 2rem;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-body .coming-soon {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 3rem 0;
}

.articles-list .coming-soon,
.articles-list .loading {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

/* Featured Project (Home Page) */
.featured-project {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.featured-project h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-project-card {
    display: flex;
    gap: 1rem;
    text-align: left;
    align-items: center;
}

.featured-project-poster {
    flex-shrink: 0;
    width: 120px;
}

.featured-project-poster img {
    width: 100%;
    border-radius: 6px;
}

.featured-project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.featured-project-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.featured-project-info .see-more-link {
    font-size: 0.9rem;
}

/* Latest Article Preview (Home Page & Film and Writing) */
.latest-article-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.latest-article-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.latest-article-preview {
    text-decoration: none;
    display: block;
    text-align: left;
}

.latest-article-preview:hover {
    opacity: 0.7;
}

.latest-article-preview .article-preview-date {
    margin-bottom: 0.25rem;
}

.latest-article-preview .article-preview-title {
    margin-bottom: 0.35rem;
}

.latest-article-preview .article-preview-excerpt {
    margin-bottom: 0.5rem;
}

.latest-article-preview .see-more-link {
    font-size: 0.9rem;
}

/* Simple Nav Links */
.simple-nav-links {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.simple-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-primary);
    background-color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

:root .simple-nav-links a {
    color: var(--text-primary);
    background-color: #333;
}

[data-theme="light"] .simple-nav-links a {
    color: var(--bg-primary);
    background-color: var(--text-primary);
}

.simple-nav-links a:hover {
    opacity: 0.8;
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    body {
        padding: 0 4rem 4rem;
    }

    .container {
        max-width: 700px;
    }

    .container-wide {
        max-width: 900px;
    }

    .main-nav {
        max-width: 900px;
    }

    .site-footer {
        max-width: 900px;
    }

    .gallery img {
        max-width: 320px;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        padding: 0 2rem 3rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .container {
        max-width: 600px;
    }

    .main-nav {
        max-width: 700px;
        gap: 1rem;
        padding-right: 3rem;
    }

    .main-nav a,
    .nav-dropdown > a {
        font-size: 0.9rem;
    }

    .site-footer {
        max-width: 700px;
    }
}

/* Mobile: below 768px */
@media (max-width: 767px) {
    body {
        padding: 0 1.25rem 2rem;
        font-size: 16px;
    }

    /* Review Modal Mobile */
    .review-modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .review-modal {
        max-height: none;
    }

    .review-modal-poster {
        padding: 1rem;
    }

    .review-modal-poster img {
        max-height: 300px;
    }

    .review-modal-content {
        padding: 1rem 1.25rem 1.5rem;
    }

    .review-modal-content h3 {
        font-size: 1.25rem;
    }

    .review-modal-content .review-text {
        font-size: 1rem;
    }

    /* Review Modal Nav Mobile - inside modal content area */
    .review-modal {
        padding-bottom: 4rem;
    }

    .review-modal-nav {
        position: absolute;
        top: auto;
        bottom: 0.75rem;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: transparent;
        border: 1px solid #888;
        color: #666;
    }

    .review-modal-nav:hover,
    .review-modal-nav:active {
        color: #333;
        border-color: #444;
    }

    .review-modal-prev {
        left: 50%;
        margin-left: -50px;
    }

    .review-modal-next {
        left: 50%;
        margin-left: 14px;
    }

    /* Recent Reviews Mobile */
    .recent-reviews-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .recent-reviews-section .review-card {
        max-width: 240px;
    }

    h1 {
        font-size: 1.875rem;
    }

    .container,
    .container-wide {
        max-width: 100%;
    }

    /* Mobile Navigation */
    .main-nav {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        max-width: 100%;
        padding: 1rem 0;
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 1rem;
        order: 3;
    }

    .nav-menu.active {
        display: flex;
    }

    .main-nav > a:not(.nav-logo),
    .nav-dropdown {
        display: none;
    }

    .nav-menu a,
    .nav-menu .nav-dropdown {
        display: block;
        width: 100%;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    /* Mobile Dropdown */
    .nav-menu .nav-dropdown {
        position: relative;
    }

    .nav-menu .nav-dropdown > a {
        display: block;
        padding: 0;
    }

    .nav-menu .dropdown-content {
        position: static;
        display: none;
        transform: none;
        background-color: var(--bg-tertiary);
        border: none;
        border-radius: 0;
        min-width: auto;
        padding: 0;
        margin-top: 0.5rem;
    }

    .nav-menu .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .nav-menu .dropdown-content a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }

    .nav-menu .dropdown-content a:last-child {
        border-bottom: none;
    }

    /* Mobile fix for innovations nav visibility */
    body.innovations-visible .nav-menu a[href*="innovations"] {
        display: block !important;
    }

    /* Headshot */
    .headshot img {
        width: 180px;
        height: 180px;
    }

    /* Hero image */
    .hero-image img {
        max-width: 100%;
    }

    /* Gallery - stack vertically */
    .gallery {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .gallery img {
        width: 100%;
        max-width: 400px;
    }

    /* Future Projects Gallery - stack on mobile */
    .future-projects-gallery {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .future-projects-gallery img {
        width: 100%;
        max-width: 400px;
    }

    /* Nav cards - single column */
    .nav-cards {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .nav-card {
        padding: 1.25rem 1rem;
    }

    /* Review cards - stack poster and content */
    .review-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .review-poster {
        width: 100px;
        margin-bottom: 0.5rem;
    }

    .review-poster img {
        width: 100px;
        height: 150px;
    }

    .book-cover {
        width: 80px;
    }

    .book-cover img {
        width: 80px;
        height: 120px;
    }

    .review-content {
        text-align: center;
    }

    /* Contact form */
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Footer */
    .site-footer {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Legal page */
    .areas-list,
    .skills-grid {
        gap: 0.5rem;
    }

    .areas-list li,
    .skills-grid li {
        font-size: 0.85rem;
        padding: 0.4rem 0.875rem;
    }

    /* Project text links */
    .project-text-links p {
        font-size: 1rem;
    }

    /* Genres */
    .genres ul {
        gap: 0.5rem;
    }

    .genres li {
        font-size: 0.85rem;
    }


    /* Movies watched list */
    .movies-watched-list li {
        font-size: 0.9rem;
    }
}

/* Extra small screens: below 480px */
@media (max-width: 479px) {
    body {
        padding: 0 1rem 2rem;
    }

    h1 {
        font-size: 1.625rem;
    }

    .headline {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .headshot img {
        width: 150px;
        height: 150px;
    }

    .about h2,
    .what-i-create h2,
    .legal-section h2,
    .movies-watched-section h2 {
        font-size: 1.125rem;
    }

    .about p,
    .page-content p,
    .contact-intro p,
    .legal-intro p,
    .what-i-create p {
        font-size: 1rem;
    }

    .review-content h3 {
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .nav-card-icon {
        font-size: 1.75rem;
    }

    .nav-card h3 {
        font-size: 1rem;
    }

    .nav-card p {
        font-size: 0.85rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-50%) scale(1.05);
}

.theme-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    fill: var(--text-primary);
    transition: color 0.3s ease, stroke 0.3s ease, fill 0.3s ease;
}

/* Sun icon uses strokes only */
.theme-toggle .sun-icon {
    display: block;
    fill: none;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Moon icon for light mode (click to switch to dark) */
[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* Tablet adjustments for theme toggle */
@media (min-width: 768px) and (max-width: 1023px) {
    .theme-toggle {
        right: -0.5rem;
    }
}

/* Mobile adjustments for theme toggle */
@media (max-width: 767px) {
    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
    padding: 2rem;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 1rem;
    z-index: 2001;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Lightbox responsive styles - Tablet */
@media (max-width: 1023px) {
    .lightbox-nav {
        font-size: 2.5rem;
        padding: 0.75rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-image {
        max-width: 85%;
    }

    /* Review Modal Nav Tablet */
    .review-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.4);
    }

    .review-modal-prev {
        left: 0.75rem;
    }

    .review-modal-next {
        right: 0.75rem;
    }
}

/* Lightbox responsive styles - Mobile */
@media (max-width: 767px) {
    .lightbox-overlay {
        padding: 1rem;
        flex-direction: column;
        justify-content: center;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 70vh;
    }

    .lightbox-nav {
        position: fixed;
        top: auto;
        bottom: 2rem;
        transform: none;
        font-size: 2rem;
        padding: 1rem 1.5rem;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
    }

    .lightbox-prev {
        left: 25%;
        transform: translateX(-50%);
    }

    .lightbox-next {
        right: 25%;
        transform: translateX(50%);
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
        padding: 0.5rem;
    }
}

/* Articles responsive - Tablet */
@media (max-width: 1023px) {
    .article-preview-title {
        font-size: 1.35rem;
    }

    .article-full h1 {
        font-size: 1.75rem;
    }
}

/* Articles responsive - Mobile */
@media (max-width: 767px) {
    .articles-list {
        gap: 1.25rem;
    }

    .article-preview {
        padding: 1.25rem 1.25rem;
    }

    .article-preview-title {
        font-size: 1.2rem;
    }

    .article-preview-excerpt {
        font-size: 0.9rem;
    }

    .article-full .article-header {
        margin-bottom: 1.5rem;
    }

    .article-full h1 {
        font-size: 1.5rem;
    }

    .article-body p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Articles responsive - Small phones */
@media (max-width: 479px) {
    .article-preview {
        padding: 1rem 1rem;
    }

    .article-preview-title {
        font-size: 1.1rem;
    }

    .article-preview-date {
        font-size: 0.72rem;
    }

    .article-preview-excerpt {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .article-full h1 {
        font-size: 1.35rem;
    }
}
