/* CORTEX - Progetto Silica - Stili CSS */

/* Variabili CSS */
:root {
    --color-primary: #000000;
    --color-secondary: #111111;
    --color-accent: #ffffff;
    --color-text: #ffffff;
    --color-text-secondary: #cccccc;
    --color-border: #333333;
    --color-dark-gray: #111111;
    --color-shadow: rgba(0, 0, 0, 0.5);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-large: 1.125rem;
    --font-size-h3: 1.25rem;
    --font-size-h2: 1.5rem;
    --font-size-h1: 2rem;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    --border-radius: 8px;
    --border-radius-large: 12px;
    --border-radius-xl: 16px;

    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--color-secondary);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.header h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-text-secondary) 50%, var(--color-accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.header p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Intro Section - Minimal */
.intro {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(17, 17, 17, 0.95) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    margin: 40px 0;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

.intro-header {
    text-align: center;
    margin-bottom: 30px;
}

.intro-subtitle blockquote {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent);
    font-style: italic;
    margin: 0;
    padding: 15px 0;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
}

.intro-content {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.intro-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-large);
    transition: var(--transition);
}

.intro-section:hover {
    border-color: var(--color-accent);
    transform: translateX(5px);
}

.section-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.section-icon svg {
    width: 60%;
    height: 60%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.intro-section p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-large);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.intro-section strong {
    color: var(--color-accent);
    font-weight: 600;
}

.intro-cta {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius-large);
}

.cta-accent {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cta-text p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-large);
    font-weight: 500;
    margin: 0;
}

/* Navigation Grid */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nav-card {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(17, 17, 17, 0.9) 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-text-secondary), var(--color-accent));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s ease, background-position 0.6s ease;
}

.nav-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.nav-card:hover::before {
    transform: scaleX(1);
    background-position: 100% 0;
}

.nav-card:hover::after {
    opacity: 1;
}

.nav-card h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: var(--font-size-h3);
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

/* Ensure card text is centered and neatly constrained */
.nav-card h4,
.nav-card p,
.nav-card a {
    text-align: center;
}

.nav-card h4 {
    color: var(--color-accent);
    margin: 10px 0 8px 0;
    font-size: var(--font-size-h3);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-card p {
    color: var(--color-text-secondary);
    max-width: 36ch;
    margin: 0 auto 10px auto;
    line-height: 1.6;
}

.nav-card:hover h3 {
    transform: scale(1.05);
}

.nav-card a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    display: block;
    padding: 10px 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

.nav-card:hover a {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -10px;
    padding: 12px 10px;
}

/* Stili per le immagini nelle nav-card */
.nav-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-card img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-card:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-card:hover img::before {
    opacity: 1;
}

/* Effetto di caricamento per le immagini */
.nav-card img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Miglioramento per immagini con alt text */
.nav-card img[alt] {
    position: relative;
}

.nav-card img[alt]:hover::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
    opacity: 0;
    animation: fadeInCaption 0.3s ease forwards;
}

@keyframes fadeInCaption {
    to {
        opacity: 1;
    }
}

.card-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    color: var(--color-text-secondary);
}

.card-icon svg {
    width: 70%;
    height: 70%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--color-accent);
}

/* Category Sections */
.category {
    margin: 60px 0;
    position: relative;
}

.category h2 {
    color: var(--color-accent);
    margin-bottom: 30px;
    font-size: var(--font-size-h2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.category:hover h2::after {
    width: 100px;
}

/* Timeline Section */
.timeline-section {
    text-align: center;
    padding: 30px;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    margin: 40px 0;
}

.timeline-section h2 {
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: var(--font-size-h2);
}

.timeline-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.timeline-section a:hover {
    color: var(--color-accent);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(17, 17, 17, 0.95) 100%);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Subpage Styles */
.nav-back {
    margin: 30px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
}

.back-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateX(-5px);
}

.back-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.content-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(17, 17, 17, 0.95) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    margin: 30px 0;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.section-header .section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    flex-shrink: 0;
}

.section-header .section-icon svg {
    width: 60%;
    height: 60%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-header h2 {
    color: var(--color-accent);
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.content-section p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-large);
    line-height: 1.75;
    margin: 0 auto 18px auto;
    max-width: 80ch;
}

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

.content-section strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Lists & Bullets for better readability */
.content-section ul {
    margin: 15px 0 20px 0;
    padding-left: 0;
}

.bullet-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 60ch;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.bullet-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-large);
    padding: 12px 16px 12px 36px;
    position: relative;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

/* Roles grid (Prospettori, Scribi, Legionari) */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 16px auto 0 auto;
    max-width: 80ch;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-large);
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.role-card p {
    margin: 0;
    text-align: left;
    line-height: 1.7;
}

/* Roles grid layout tuning */
@media (min-width: 1024px) {
    .roles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .roles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Narrow content width for long text blocks */
.content-section>ul,
.content-section>h3 {
    max-width: 80ch;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}


.gallery-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h4 {
    color: var(--color-accent);
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.gallery-caption p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    margin: 0 auto;
    max-width: 48ch;
    line-height: 1.5;
}

/* Responsive for subpages */
@media (max-width: 768px) {
    .content-section {
        padding: 20px;
        margin: 20px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .section-header .section-icon {
        width: 35px;
        height: 35px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 15px;
        margin: 15px 0;
    }

    .section-header .section-icon {
        width: 30px;
        height: 30px;
    }

    .gallery-item img {
        height: 160px;
    }

    .gallery-caption {
        padding: 15px;
    }
}

/* Todo List Styles */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-list li {
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: var(--border-radius);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.todo-list li.completed {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4ade80;
}

.todo-list li.completed::before {
    content: '✓';
    position: absolute;
    left: 8px;
    font-weight: bold;
}

.todo-list li.pending {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: #fbbf24;
}

.todo-list li.pending::before {
    content: '○';
    position: absolute;
    left: 8px;
    font-weight: bold;
}

.todo-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline Styles */
.content-section h3 {
    color: var(--color-accent);
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 28px auto 18px auto;
    padding-left: 20px;
    border-left: 3px solid var(--color-accent);
    position: relative;
}

.content-section h3::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.content-section h3:first-of-type {
    margin-top: 0;
}

/* Timeline specific styling */
.timeline-event {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-large);
    padding: 20px;
    margin: 15px 0;
    transition: var(--transition);
    position: relative;
}

.timeline-event:hover {
    border-color: var(--color-accent);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    border-radius: 2px;
}

/* Lightbox Styles - Versione Moderna */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-large);
    padding: 20px;
    text-align: center;
    max-width: 600px;
    color: var(--color-text);
}

.lightbox-caption h4 {
    color: var(--color-accent);
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0 0 10px 0;
}

.lightbox-caption p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
    line-height: 1.5;
}

.lightbox-counter {
    position: absolute;
    top: -40px;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    color: var(--color-text);
    font-size: var(--font-size-small);
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
    font-size: 24px;
    font-weight: bold;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
    font-size: 24px;
    font-weight: bold;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Clickable images */
.clickable-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        gap: 15px;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-caption {
        padding: 15px;
        max-width: 100%;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }

    .lightbox-counter {
        top: -35px;
        left: 0;
    }

    .lightbox-close {
        top: -35px;
        right: 0;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        display: none;
    }

    .lightbox-image {
        max-height: 50vh;
    }

    .lightbox-caption {
        padding: 10px;
    }

    .lightbox-caption h4 {
        font-size: var(--font-size-base);
    }
}

.footer p {
    color: var(--color-text-secondary);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .intro {
        padding: 25px;
        margin: 25px 0;
    }

    .intro-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .section-icon {
        margin: 0 auto;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }

    .nav-card {
        padding: 25px 20px;
        min-height: 140px;
    }

    .nav-card img {
        height: 120px;
        margin-bottom: 15px;
        border-radius: var(--border-radius);
    }

    .card-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .intro {
        padding: 20px;
        margin: 20px 0;
    }

    .intro-section {
        padding: 15px;
        gap: 12px;
    }

    .section-icon {
        width: 20px;
        height: 20px;
    }

    .intro-section p {
        font-size: var(--font-size-base);
    }

    .card-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }

    .nav-card {
        padding: 20px 15px;
        min-height: 120px;
    }

    .nav-card img {
        height: 100px;
        margin-bottom: 12px;
        border-radius: var(--border-radius);
    }

    .section-icon {
        width: 18px;
        height: 18px;
    }
}