/* ============================================================================
   Photography Portfolio - Site Styles
   Organized by component with consolidated media queries
   ============================================================================ */

/* ============================================================================
   CSS Variables & Base Styles
   ============================================================================ */

:root {
    --primary: #1a1a1a;
    --primary-light: #333333;
    --accent: #2c2c2c;
    --accent-dark: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #e5e5e5;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-alt);
}

html {
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.15s ease-out;
    padding-top: 80px;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
    border: 3px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

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

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.page-title {
    font-size: 2.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ============================================================================
   Layout Containers
   ============================================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    animation: fadeIn 0.3s ease-out;
}

.home-container {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 4rem 1.5rem 0;
    display: flex;
    justify-content: center;
}

.project-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================================================
   Navigation Bar
   ============================================================================ */

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.navbar-logo:hover,
.navbar-logo:active {
    color: var(--accent);
}

.logo-primary {
    font-weight: 700;
}

.logo-separator {
    font-weight: 400;
    opacity: 0.6;
}

.logo-secondary {
    font-weight: 300;
    display: inline-block;
    vertical-align: baseline;
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.navbar-center.visible {
    opacity: 1;
}

.current-project {
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--primary);
    white-space: nowrap;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 6px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.navbar-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.navbar-link:active {
    background: var(--bg-alt);
    color: var(--text);
}

.navbar-link.active {
    color: var(--primary);
    background: var(--bg-alt);
    font-weight: 600;
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggle:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.navbar-toggle:active,
.navbar-toggle:focus {
    background: var(--bg-alt);
    color: var(--primary);
    outline: none;
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-toggle::before {
    content: '›';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1.15rem;
    line-height: 1;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.dropdown-toggle:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.dropdown-toggle.active::before {
    transform: rotate(90deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 200px;
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
    margin: 0.25rem;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover,
.dropdown-item:active {
    background: var(--bg-alt);
    color: var(--primary);
}

.dropdown-item.active {
    background: var(--bg-alt);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================================
   Home Page - Projects Section
   ============================================================================ */

.projects-section {
    width: 100%;
    max-width: 900px;
}

.projects-content {
    width: 100%;
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.projects-nav {
    flex: 1;
    width: 100%;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-link {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 2rem 0;
    background: transparent;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.project-link::after {
    content: '→';
    position: absolute;
    right: 3rem;   
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link:first-child {
    border-top: 1px solid var(--border);
}

.project-link:hover {
    padding-left: 0.5rem;
    padding-right: 2rem;
}

.project-link:hover::after {
    opacity: 0.6;
    right: 1.5rem;
}

.project-link:hover .project-number {
    color: var(--accent);
}

.project-link:active {
    opacity: 0.7;
}

.project-number {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    min-width: 3rem;
    flex-shrink: 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-number svg {
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--primary);
    margin: 0 0 0.375rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link:hover .project-name {
    color: var(--accent);
}

.project-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* Reveal Animation */
.reveal-item {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.visible {
    opacity: 1;
}

/* ============================================================================
   Project Pages
   ============================================================================ */

.project-header {
    text-align: center;
    padding: 4rem 2rem 0;
}

.header-content {
    padding: 0 2rem;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.project-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================================
   Gallery Styles
   ============================================================================ */

.gallery {
    margin-top: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.gallery-grid {
    padding: 0 2rem 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    cursor: default;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: none;
    border-radius: 0;
}

.gallery-item img[loading="lazy"] {
    background: linear-gradient(90deg, var(--bg-alt) 0%, var(--border) 50%, var(--bg-alt) 100%);
    background-size: 200% 100%;
}

/* Scroll-triggered Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for gallery items */
.gallery-grid .reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.gallery-grid .reveal-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.gallery-grid .reveal-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.gallery-grid .reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 4rem 2rem;
    font-size: 1.125rem;
}

/* ============================================================================
   About Page
   ============================================================================ */

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.1rem;
}

.about-quote {
    margin-top: 4rem;
    padding: 3rem 2.5rem 4rem;
    background: var(--bg-alt);
    border: 1px solid rgba(229, 229, 229, 0.5);
    border-radius: 12px;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text);
    position: relative;
}

.about-quote p {
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.about-quote::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    opacity: 0.2;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.about-quote::after {
    content: '"';
    font-size: 5rem;
    color: var(--accent);
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    line-height: 1;
    opacity: 0.2;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.quote-source {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: normal;
    color: var(--text-light);
    text-align: right;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: transparent;
}

.contact-section {
    margin-top: 6rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.contact-content {
    max-width: 300px;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    padding-right: 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.contact-item::after {
    content: '→';
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:first-child {
    border-top: 1px solid var(--border);
}

.contact-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
}

.contact-item:hover::after {
    opacity: 0.6;
    right: 1.5rem;
}

.contact-item:active {
    opacity: 0.7;
}

.contact-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 8px;
    color: var(--accent);
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

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

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    word-break: break-all;
}

.contact-section {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    position: relative;
    min-width: 160px;
    justify-content: center;
}

.contact-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0;
    border-radius: 999px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-link:hover::before {
    opacity: 0.06;
}

.contact-link-icon {
    font-size: 1.2em;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    color: var(--accent);
}

.contact-link .contact-link-text {
    display: inline-block;
    white-space: nowrap;
}

.contact-link:focus-visible {
    outline: 3px solid rgba(35, 106, 255, 0.12);
    outline-offset: 3px;
    border-color: var(--accent);
}

/* ============================================================================
   Footer
   ============================================================================ */

.home-footer {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    line-height: 1.4;
}

.home-footer p {
    margin: 0;
}
/* ============================================================================
   Responsive Design - Mobile (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {
    /* Base Layout */
    body {
        padding-top: 64px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .home-container {
        padding: 2rem 1rem 0;
    }

    .project-container {
        padding: 0;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 0.75rem;
        margin: 0 0 1.75rem 0;
        opacity: 0.4;
        letter-spacing: 0.15em;
    }

    /* Navbar */
    .navbar-container {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .navbar-logo {
        font-size: 1rem;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .navbar-actions {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0.75rem;
        width: 200px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        z-index: 1000;
    }

    .navbar-actions.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-actions .navbar-link {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        border: none;
        font-size: 0.95rem;
        text-align: left;
        white-space: nowrap;
        transition: background-color 0.15s ease;
        display: block;
    }

    .navbar-actions .navbar-link:hover {
        background: var(--bg-alt);
    }

    .navbar-actions .dropdown {
        display: block;
    }

    .navbar-actions .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        font-size: 0.95rem;
        white-space: nowrap;
        transition: background-color 0.15s ease;
        position: relative;
    }

    .navbar-actions .dropdown-toggle::before {
        display: none;
    }

    .navbar-actions .dropdown-toggle::after {
        content: '›';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.5rem;
        font-size: 1.15rem;
        line-height: 1;
        color: inherit;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .navbar-actions .dropdown-toggle:hover,
    .navbar-actions .dropdown-toggle.active {
        background: var(--bg-alt);
    }

    .navbar-actions .dropdown-toggle.active::after {
        transform: rotate(90deg);
    }

    .navbar-actions .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0.25rem 0 0 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .navbar-actions .dropdown-menu.open {
        max-height: 300px;
    }

    .navbar-actions .dropdown-item {
        padding: 0.625rem 1rem 0.625rem 1.5rem;
        margin: 0;
        border-radius: 6px;
        font-size: 0.9rem;
        text-align: left;
        white-space: nowrap;
        display: block;
        transition: background-color 0.15s ease;
    }

    .navbar-actions .dropdown-item:hover {
        background: var(--bg-alt);
    }

    .navbar-actions .dropdown-item.active {
        background: transparent;
        font-weight: 600;
        color: var(--accent);
    }

    .navbar-center {
        display: none;
    }

    .logo-secondary {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: opacity 0.3s ease;
    }

    /* Home Page - Projects */
    .projects-section {
        max-width: 100%;
    }

    .project-link {
        padding: 1.25rem 0;
        gap: 1rem;
    }

    .project-link:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .project-link::after {
        opacity: 0.3;
        right: 0;
    }

    .project-link:hover::after {
        right: 0;
    }

    .project-number {
        min-width: 2rem;
        font-size: 0.75rem;
    }

    .project-number svg {
        width: 1rem;
        height: 1rem;
    }

    .project-name {
        font-size: 1.05rem;
    }

    .project-desc {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    /* Project Pages */
    .project-header {
        padding: 2rem 1rem 3rem;
    }

    .header-content {
        padding: 0 1rem;
        margin-top: 0;
    }

    .project-title {
        font-size: 2rem;
        margin-top: 0;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        padding: 0 1rem 2rem;
    }

    /* About Page */
    .page-header {
        padding-top: 2rem;
    }

    .about-content {
        margin-top: 3rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .contact-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        min-width: 140px;
    }
}

/* ============================================================================
   Accessibility & Special Contexts
   ============================================================================ */

/* Print Styles */
@media print {
    .gallery-item {
        break-inside: avoid;
    }

    .main-navbar,
    header nav {
        display: none;
    }
/* ============================================================================
   Mobile Styles
   ============================================================================ */

@media (max-width: 768px) {
    .about-content {
        padding: 0 1.5rem;
    }

    .about-quote {
        margin-top: 3rem;
        padding: 2.5rem 2rem 3.5rem;
        font-size: 1.2rem;
    }

    .about-quote::before,
    .about-quote::after {
        font-size: 3rem;
    }

    .quote-source {
        bottom: 1rem;
        right: 1.5rem;
        font-size: 0.8rem;
    }

    .contact-section {
        margin-top: 4rem;
        padding: 3rem 1.5rem;
    }

    .contact-title {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .contact-list {
        gap: 1rem;
    }

    .contact-item {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-item:hover {
        padding-left: 0.25rem;
        padding-right: 1.5rem;
    }

    .contact-item:hover::after {
        right: 0.25rem;
    }

    .contact-icon {
        width: 2rem;
        height: 2rem;
    }

    .contact-icon svg {
        width: 1rem;
        height: 1rem;
    }

    .contact-label {
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}
