:root {
    --primary: #d4af37; /* Gold for historical touch */
    --primary-hover: #b5952f;
    --bg-base: #0f172a; /* Deep elegant dark blue */
    --bg-surface: rgba(30, 41, 59, 0.7); /* Glassmorphism base */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent: #e11d48; /* Crimson accent */
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.title-cinzel {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Navbar */
/* Search Bar in Nav */
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 2rem;
    margin-right: 1rem;
}

.nav-search input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    font-size: 0.85rem;
    width: 120px;
    transition: width 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    width: 180px;
}

.nav-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

@media screen and (max-width: 992px) {
    .nav-search {
        display: none; /* Hide on mobile to avoid clutter */
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    min-width: 220px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    font-size: 0.85rem;
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

.btn-contacto {
    background: var(--primary);
    color: var(--bg-base) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-contacto:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Search Results Dropdown */
.nav-search {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.search-results.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.result-title {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Page Content */
.page-content {
    min-height: 100vh;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-base);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--bg-base);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.bg-light {
    background-color: rgba(255,255,255,0.02);
}

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.p-4 { padding: 1.5rem; }
.text-muted { color: var(--text-muted); }

/* Grid Features */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hover-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
}

/* Parallax Highlight */
.highlight-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    z-index: -2;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: -1;
}

.historical-quote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.4;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    color: var(--primary);
}

.historical-quote cite {
    display: block;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-style: normal;
}

/* Page Headers */
.page-header {
    padding: 10rem 0 4rem;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), var(--bg-base));
    text-align: center;
    position: relative;
}

.header-history .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.intro-box {
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Biografias Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--bg-color);
    transition: width 0.3s ease;
}

.category-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.category-card .icon {
    font-size: 2.5rem;
    z-index: 1;
}

.category-card h3 {
    color: var(--text-main);
    z-index: 1;
}

/* Biografias List */
.biography-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.bio-item {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.bio-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.bio-content {
    padding: 2rem;
}

.bio-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.bio-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-text:hover {
    color: var(--text-main);
}

.references-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Timeline */
.timeline-eras {
    position: relative;
    padding-left: 3rem;
}

.timeline-eras::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.era-card {
    position: relative;
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.era-card::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 4px solid var(--primary);
    transform: translateX(-50%);
}

.era-year {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.era-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.era-card p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Transversal Topics */
.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.topic-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.topic-tag:hover {
    background: var(--primary);
    color: var(--bg-base);
    border-color: var(--primary);
}

/* Detailed Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-period-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 3rem 0 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.timeline-event {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: 8px;
    transition: var(--transition);
}

.timeline-event:hover {
    transform: translateX(10px);
    background: rgba(212, 175, 55, 0.05);
}

.event-date {
    min-width: 150px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.event-desc {
    color: var(--text-muted);
}

/* Gallery */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--bg-base);
    border-color: var(--primary);
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Documents */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    text-align: center;
}

.doc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.doc-type {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.doc-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    margin: 0.25rem;
}

/* Articles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-card {
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-content {
    padding: 2.5rem;
}

.article-category {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Content Box (Proyecto) */
.content-box {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    color: var(--text-muted);
}

.content-box h2 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-box ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Bibliografia */
.biblio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.biblio-col h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.8rem;
}

.biblio-list {
    list-style: none;
}

.biblio-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.biblio-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.biblio-list a {
    color: var(--text-main);
    text-decoration: underline;
}

/* Contacto */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-container {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.info-list .icon {
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
    background: var(--primary);
    color: var(--bg-base);
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: #080c17;
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: var(--text-muted);
}

.footer-section ul a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-base);
}

.footer-bottom {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-base);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-text { font-size: 1rem; }
    
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    
    .page-header { padding: 8rem 0 3rem; }
    .page-header h1 { font-size: 2.5rem; }
}

/* Detailed Biography Layout */
.biography-detailed-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
}

.bio-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.bio-image-card {
    background: var(--bg-surface);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.bio-image-card img {
    width: 100%;
    border-radius: 8px;
    filter: sepia(0.3) contrast(1.1);
}

.bio-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.bio-data-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.bio-data-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.data-list {
    list-style: none;
}

.data-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.data-list li strong {
    color: var(--text-main);
}

.quote-card {
    background: rgba(212, 175, 55, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px dashed var(--primary);
    text-align: center;
}

.quote-card p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1rem;
}

.bio-article h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.bio-article h2:first-of-type {
    margin-top: 0;
}

.bio-article p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: justify;
}

.sources-box {
    background: rgba(0,0,0,0.2);
    padding: 2.5rem;
    border-radius: 8px;
}

.sources-box h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.sources-box ul {
    margin-left: 1.5rem;
}

.sources-box li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .biography-detailed-layout {
        grid-template-columns: 1fr;
    }
    
    .bio-sidebar {
        position: relative;
        top: 0;
    }
}



/* Articles Section */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.article-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden; transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.article-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05); background: #1a1a1a; }
.article-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-category { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 1rem; }
.article-card h3 { font-family: \'Cinzel\', serif; font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-light); line-height: 1.4; }
.article-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.article-card .btn-text { color: var(--primary); font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; margin-top: auto; }
.article-card .btn-text:hover { color: #fff; }
/* Article Reading Page */
.article-reading { max-width: 800px; margin: 0 auto; font-family: \'Inter\', sans-serif; font-size: 1.15rem; line-height: 1.8; color: #e0e0e0; }
.article-reading p { margin-bottom: 1.5rem; }
.article-reading h2 { font-family: \'Cinzel\', serif; color: var(--primary); margin: 3rem 0 1.5rem; }
.article-reading blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: #ccc; background: rgba(255,255,255,0.02); padding: 1.5rem; border-radius: 0 8px 8px 0; }
.article-reading .drop-cap::first-letter { font-family: \'Cinzel\', serif; font-size: 4rem; float: left; line-height: 1; padding-right: 0.5rem; color: var(--primary); margin-top: -0.2rem; }
.article-reading img.inline-img { width: 100%; border-radius: 8px; margin: 2rem 0; border: 1px solid rgba(255,255,255,0.1); }


/* Gallery Section */
.gallery-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { padding: 0.6rem 1.5rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; color: var(--text-muted); cursor: pointer; transition: var(--transition); font-family: \'Inter\', sans-serif; font-size: 0.9rem; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--bg-base); border-color: var(--primary); }

.masonry-gallery { column-count: 3; column-gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 992px) { .masonry-gallery { column-count: 2; } }
@media (max-width: 600px) { .masonry-gallery { column-count: 1; } }

.gallery-item { break-inside: avoid; margin-bottom: 1.5rem; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: var(--transition); }
.gallery-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; transform: translateY(100%); transition: transform 0.3s ease; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h4 { font-family: \'Cinzel\', serif; color: var(--primary); margin-bottom: 0.3rem; }
.gallery-caption p { font-size: 0.85rem; color: #ddd; }

/* Lightbox */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border: 2px solid var(--primary); border-radius: 8px; }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; font-size: 3rem; color: #fff; cursor: pointer; transition: var(--transition); }
.lightbox-close:hover { color: var(--primary); }


/* Bibliography Section */
.biblio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 2rem; }
.biblio-col h3 { font-family: \'Cinzel\', serif; color: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.biblio-list { list-style: none; padding: 0; }
.biblio-list li { margin-bottom: 1.2rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; padding-left: 1.5rem; position: relative; }
.biblio-list li::before { content: \'📚\'; position: absolute; left: 0; font-size: 0.8rem; top: 0.2rem; }
.biblio-list a { color: var(--primary); text-decoration: none; transition: var(--transition); }
.biblio-list a:hover { color: #fff; text-decoration: underline; }
.bg-light-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 12px; }
