:root {
    --primary-bg: #F8F8F8;
    --secondary-bg: #EDEDED;
    --text-color: #000000;
    --secondary-text: #808080;
    --accent-color: #000000;
    --secondary-accent: #A7A7A7;
    --border-color: #C1C1C1;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-radius: 8px;
    --heading-font: 'Melodrama', serif;
    --body-font: 'Inter', sans-serif;
    --vh: 1vh;
    --mobile-header-height: 60px;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--body-font);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    min-height: -webkit-fill-available;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: 1.2;
}

.brand h1 {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.exhibition-title {
    font-family: var(--heading-font);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.info-card h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.section h2, .section-title {
    font-family: var(--heading-font);
    font-size: 3.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--text-color);
}

.exhibition-details h3, .timeline-content h4, .acquisition-info h3 {
    font-family: var(--heading-font);
}

.contact-details h4, .gallery-hours h4 {
    font-family: var(--heading-font);
    font-weight: 500;
}

.nav-link {
    font-family: var(--body-font);
    font-weight: 400;
}

/* Art background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1576792645012-a2e2e3aae8a2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* Reduced opacity for lighter background */
    z-index: -2;
}

/* Add texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,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');
    opacity: 0.03;
    z-index: -1;
}

/* Add these animated brush strokes */
.brush-stroke {
    position: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

.brush-1 {
    top: 10%;
    left: 5%;
    width: 500px;
    height: 300px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgdmlld0JveD0iMCAwIDgwMCA2MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcwLDUwQzE1MCwxMjAgMzUwLDIwIDQwMCw3MEM1MDAsNTAgNjUwLDE1MCA3NTAsMjAwQzY1MCwzMDAgNTUwLDQwMCA1MDAsMzUwQzQwMCwyNTAgMjUwLDUwMCAxMDAsNDUwIiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMTAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==');
    animation: float 20s ease-in-out infinite alternate;
}

.brush-2 {
    top: 60%;
    right: 5%;
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgdmlld0JveD0iMCAwIDgwMCA2MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIwMCw1MEM0MDAsMTAwIDYwMCwyMDAgNDAwLDMwMEM1MDAsMzUwIDMwMCw0NTAgMjAwLDM1MEMxMDAsNTAwIDQwMCw1MDAgNDUwLDQwMEM2MDAsMzUwIDcwMCwyNTAgNjUwLDE1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODA4MDgwIiBzdHJva2Utd2lkdGg9IjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==');
    animation: float 25s ease-in-out infinite alternate-reverse;
}

.brush-3 {
    bottom: 10%;
    left: 15%;
    width: 350px;
    height: 250px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgdmlld0JveD0iMCAwIDgwMCA2MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwMCwzMDBDMjAwLDE1MCAzMDAsMzAwIDUwMCwyMDBDNjAwLDEwMCA3MDAsNTAgNjUwLDIwMEM3MDAsNDAwIDYwMCw1MDAgNTAwLDQ1MEM0MDAsNDAwIDI1MCw1NTAgMTUwLDQ1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzdDN0M3IiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=');
    opacity: 0.1;
    animation: float 30s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -15px) rotate(2deg);
    }
    100% {
        transform: translate(-15px, 10px) rotate(-2deg);
    }
}

/* Enhance main content sections with artistic backgrounds */
.slide, .section {
    position: relative;
    overflow: hidden;
}

/* Add subtle canvas texture */
.slide::before, .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,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');
    opacity: 0.03;
    z-index: -1;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sticky sidebar navigation */
.sidebar {
    width: 250px;
    background-color: var(--primary-bg);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border-color);
    z-index: 100;
}

.brand {
    margin-bottom: 60px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    display: block;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-color);
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    color: var(--text-color);
    transition: var(--transition);
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    position: relative;
}

/* Section styling for one-page scrolling */
.slide, .section {
    min-height: 100vh;
    display: block;
    padding: 40px;
    position: relative;
    scroll-margin-top: 20px; /* Added for better scroll positioning */
    z-index: 1;
}

.slide {
    display: flex;
    align-items: center;
}

/* Section dividers and transitions */
.section {
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.8), rgba(248, 248, 248, 0));
    pointer-events: none;
    z-index: -1;
}

/* Gallery item hover effects */
.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #F8F8F8;
    opacity: 0;
    transition: var(--transition);
}

/* Exhibition card */
.exhibition-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
}

/* Exhibition card */
.exhibition-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.exhibition-card:hover img {
    transform: scale(1.05);
}

.exhibition-details {
    padding: 20px;
}

.exhibition-details h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.exhibition-details .date {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    opacity: 0.7;
    transition: var(--transition);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    opacity: 1;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-color);
    color: white;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

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

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

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    opacity: 1;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3,
.contact-form h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-info p {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .info-card {
        position: relative;
        top: 0;
        transform: none;
        max-width: 100%;
        margin-top: 30px;
    }
    
    .navigation-controls {
        position: relative;
        margin-top: 30px;
    display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        flex-direction: row;
    align-items: center;
    }
    
    .brand {
        margin-bottom: 0;
    }
    
    .brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        flex-direction: row;
        margin: 0 20px;
        gap: 15px;
    }
    
    .social-links {
        margin-top: 0;
    }
    
    .main-content,
    .section {
        margin-left: 0;
    }
    
    .slide {
        padding: 20px;
    }
    
    .exhibition-title {
        font-size: 3rem;
    }
    
    .exhibition-gallery {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .exhibitions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .brand h1 {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 15px;
    }
    
    .section h2 {
        font-size: 2.5rem;
    }
}

/* Additional Section Styling */

/* Common Section Styles */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.subsection-title {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
}

.subsection-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.text-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.text-link:hover:after {
    width: 100%;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.art-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--accent-color);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-color);
}

.art-quote cite {
    display: block;
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: var(--shadow);
}

.image-caption {
    position: absolute;
    bottom: -10px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.team-section {
    margin-top: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

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

.member-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Artist card */
.member-title {
    color: var(--secondary-text);
}

.member-bio {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Exhibition Section */
.exhibition-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.exhibition-image {
    position: relative;
    overflow: hidden;
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.7s ease;
}

.exhibition-featured:hover .exhibition-image img {
    transform: scale(1.05);
}

.exhibition-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

.exhibition-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.exhibition-info .date {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.exhibition-info .curator {
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.exhibition-info .description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.past-exhibitions {
    margin-top: 5rem;
}

.timeline {
    position: relative;
    margin-top: 3rem;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background-color: var(--primary-bg);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination-btn, .pagination-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn.active, .pagination-btn:hover, .pagination-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
}

.acquisition-info {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.acquisition-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.acquisition-info p {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    color: var(--accent-color);
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details .time {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.gallery-hours {
    margin-top: 3rem;
}

.gallery-hours h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.hours-table td {
    padding: 0.75rem 0;
}

.hours-table td:last-child {
    text-align: right;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition);
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-container input {
    width: auto;
}

.map-container {
    margin-top: 4rem;
}

.map-placeholder {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 2px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(90%);
    transition: var(--transition);
}

.map-placeholder:hover img {
    filter: grayscale(0) brightness(1);
}

.map-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    text-decoration: none;
    transition: var(--transition);
}

.map-link:hover {
    background-color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-grid,
    .exhibition-featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        margin-top: 3rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
    flex-direction: column;
        gap: 0.5rem;
    }
}

/* Enhanced Responsive Design */

/* Base responsive styles for all sections */
@media screen and (max-width: 1280px) {
    .exhibition-featured, 
    .about-grid {
        gap: 2rem;
    }
    
    .info-card {
        max-width: 300px;
    }
    
    .exhibition-title {
        font-size: clamp(3.5rem, 8vw, 6rem);
    }
    
    .brush-1, .brush-2, .brush-3 {
        opacity: 0.05;
    }
}

/* Tablet devices */
@media screen and (max-width: 992px) {
    /* Wrapper structure */
    .wrapper {
        flex-direction: column;
    }
    
    /* Sidebar navigation transformation */
    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
        flex-direction: row;
    align-items: center;
        justify-content: space-between;
        padding: 1.5rem;
        z-index: 100;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(27, 26, 22, 0.97);
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .nav-links.active {
    display: flex;
    }
    
    .brand h1 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .social-links {
        margin-top: 0;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
    display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
        left: 7.5px;
    }
    
    .mobile-menu-toggle span:nth-child(1) {
        top: 12px;
    }
    
    .mobile-menu-toggle span:nth-child(2) {
        top: 19px;
    }
    
    .mobile-menu-toggle span:nth-child(3) {
        top: 26px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Main content adjustments */
    .main-content, .section {
        margin-left: 0;
        width: 100%;
    }
    
    .section {
        padding: 5rem 2rem;
    }
    
    .slide {
        min-height: auto;
        padding: 5rem 2rem;
    }
    
    .slide-content {
        padding: 0;
    }
    
    .exhibition-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        position: relative;
        max-width: 100%;
        transform: none;
        margin-top: 2rem;
    }
    
    .navigation-controls {
        position: relative;
        margin-top: 2rem;
        justify-content: flex-end;
    }
    
    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Exhibition section */
    .exhibition-featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Team section */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Gallery section */
    .gallery-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    /* Contact section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-hours {
        margin-top: 2rem;
    }
}

/* Mobile devices */
@media screen and (max-width: 576px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    .slide {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .exhibition-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    /* Sidebar adjustments */
    .sidebar {
        padding: 1rem;
    }
    
    .brand h1 {
        font-size: 1rem;
}

.social-links {
    gap: 1rem;
}

    .social-links a svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-links {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Team section */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Gallery section */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        aspect-ratio: 3/4;
    }
    
    .gallery-info {
        opacity: 1;
        background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    }
    
    /* Contact section */
    .contact-card {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    /* Form elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
    }
    
    .action-button {
        width: 100%;
    text-align: center;
    }
}

/* Very small devices */
@media screen and (max-width: 400px) {
    .exhibition-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
    }
    
    .navigation-controls {
        gap: 10px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
    }
    
    .exhibition-badge {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
    
    .art-quote {
        font-size: 1.2rem;
        padding-left: 1rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    animation: fadeInOut 2s infinite;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-text);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--secondary-text);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
}

.scroll-arrow {
    margin-top: 10px;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary-text);
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
    opacity: 0;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Section entrance animations */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section transitions */
.section-transition {
    height: 100px;
    position: relative;
    z-index: 2;
    margin-top: -50px;
    margin-bottom: -50px;
    pointer-events: none;
}

/* Fixed scroll-related styles */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Section styling for one-page scrolling */
.slide, .section {
    min-height: 100vh;
    display: block;
    padding: 40px;
    position: relative;
    scroll-margin-top: 20px; /* Added for better scroll positioning */
    z-index: 1;
}

/* Fixed section visibility issue */
.section {
    opacity: 1; /* Default to visible for sections */
    transform: none; /* Remove default transform */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.animate {
    opacity: 0;
    transform: translateY(40px);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure the home section is always visible */
#home {
    opacity: 1 !important;
    transform: none !important;
}

/* Mobile-specific scroll fixes */
@media screen and (max-width: 992px) {
    .slide, .section {
        scroll-margin-top: 80px; /* Larger offset for mobile fixed header */
        padding-top: 100px; /* Ensure content doesn't hide under header */
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 992px) {
    /* Main content margin adjustment for mobile sidebar */
    .main-content {
        margin-left: 0;
        padding-top: 80px; /* Space for fixed mobile header */
    }
    
    /* Sidebar as fixed header on mobile */
    .sidebar {
        width: 100%;
        height: auto !important; /* Force override any height setting */
        min-height: auto;
        position: fixed;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    .brand {
        margin-bottom: 0;
    }
    
    /* Adjust scroll indicator position */
    .scroll-indicator {
        bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    /* Tighter spacing for mobile */
    .slide, .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Smaller scroll indicator */
    .scroll-mouse {
        width: 24px;
        height: 40px;
    }
}

/* Floating shapes */
.floating-shape {
    border-radius: 50%;
    background: linear-gradient(135deg, #A7A7A7, #EDEDED);
    opacity: 0.1;
}

/* Modal */
.modal {
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
}

/* Mobile menu */
.mobile-menu-toggle span {
    background-color: var(--text-color);
}

/* Success message */
.success-message {
    color: var(--accent-color);
    background-color: var(--secondary-bg);
}

/* Hours table */
.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

/* Ensure brush strokes use proper opacity */
.brush-stroke {
    position: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

/* Main content styles */
.slide-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.exhibition-label {
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--secondary-text);
}

.exhibition-title {
    font-family: var(--heading-font);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.exhibition-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.artwork {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/3;
}

.artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.artwork:hover img {
    transform: scale(1.05);
}

/* Info card for slide content */
.info-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-20%);
    background-color: var(--secondary-bg);
    padding: 40px;
    max-width: 350px;
    color: var(--text-color);
    z-index: 10;
    border-left: 3px solid var(--accent-color);
}

.info-card .date {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--secondary-text);
}

.info-card h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Navigation controls */
.navigation-controls {
    position: absolute;
    bottom: 40px;
    right: 0;
    display: flex;
    gap: 20px;
}

.slide-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.slide-nav:hover {
    background-color: var(--secondary-bg);
    border-color: var(--text-color);
}

/* Section headers */
.section h2, .section-title {
    font-family: var(--heading-font);
    font-size: 3.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--text-color);
}

/* Contact icon color fix */
.contact-icon svg {
    stroke: var(--accent-color);
}

/* Timeline color adjustments */
.timeline-date {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Text links */
.text-link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

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

/* Fix section gradient */
.section::before {
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.8), rgba(248, 248, 248, 0));
}

/* Font refinements */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.exhibition-label {
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--secondary-text);
}

.art-quote {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--accent-color);
    color: var(--text-color);
}

.art-quote cite {
    display: block;
    font-family: var(--body-font);
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.timeline-date {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-btn {
    font-family: var(--body-font);
    font-weight: 400;
}

.exhibition-badge {
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Adjust brand logo font size */
.brand h1 {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Button styles */
.action-button {
    font-family: var(--body-font);
    font-weight: 500;
}

/* Button Styles */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.action-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: all 0.6s ease;
    z-index: -1;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.action-button:hover::after {
    left: 100%;
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.action-button svg {
    margin-right: 8px;
    height: 18px;
    width: 18px;
}

/* Secondary action button style */
.action-button.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-button.secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-button.secondary::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 100%
    );
}

/* Outlined action button style */
.action-button.outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.action-button.outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Text links that act like buttons */
.text-link {
    position: relative;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.text-link:hover::after {
    width: 100%;
}

.text-link svg {
    margin-left: 6px;
    height: 16px;
    width: 16px;
    transition: transform 0.3s ease;
}

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

/* Filter buttons */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.02);
    border-color: var(--secondary-accent);
    transform: translateY(-1px);
}

.filter-btn:active {
    transform: translateY(0);
}

.filter-btn.active {
    color: var(--primary-bg);
    font-weight: 500;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Navigation controls and slide nav buttons */
.navigation-controls {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.slide-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.slide-nav svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.slide-nav:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.05);
}

.slide-nav:active {
    transform: scale(0.95);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    border-radius: 4px;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Form submit button */
.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 20px;
}

/* Pagination buttons */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 50%;
}

.pagination-btn:hover::before {
    transform: scale(1.5);
    opacity: 1;
}

.pagination-btn.active {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.pagination-btn:hover:not(.active) {
    border-color: var(--secondary-accent);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pagination-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 50%;
}

.pagination-next:hover::before {
    transform: scale(1.5);
    opacity: 1;
}

.pagination-next svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.pagination-next:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-next:hover svg {
    transform: translateX(2px);
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Form buttons */
.form-group input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    padding: 14px 28px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group input[type="submit"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: all 0.6s ease;
    z-index: -1;
}

.form-group input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.form-group input[type="submit"]:hover::after,
button[type="submit"]:hover::after {
    left: 100%;
}

.form-group input[type="submit"]:active,
button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Checkbox styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--primary-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Interactive elements */
.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-text);
    padding: 12px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-link:hover:before {
    width: 40%;
}

.nav-link.active {
    color: var(--text-color);
    font-weight: 500;
}

.nav-link.active:before {
    width: 40%;
}

/* Mobile optimization */
:root {
    --vh: 1vh;
    --mobile-header-height: 60px;
    --sidebar-width: 280px;
}

/* Better touch interaction for all devices */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    min-height: -webkit-fill-available;
}

/* Improved mobile navigation */
@media screen and (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: calc(var(--vh) * 100);
        z-index: 1000;
        padding: 0;
        background-color: var(--primary-bg);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        box-shadow: 0 0 20px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
    }

    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background-color: var(--primary-bg);
        border-bottom: 1px solid var(--border-color);
        height: var(--mobile-header-height);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: var(--mobile-header-height);
        background-color: var(--primary-bg);
        border-bottom: 1px solid var(--border-color);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 990;
    }

    .nav-links-container {
        padding-top: calc(var(--mobile-header-height) + 15px);
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links {
        padding: 0 20px 100px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .main-content {
        margin-left: 0;
        margin-top: var(--mobile-header-height);
    }

    /* Improved slide section for mobile */
    .slide {
        min-height: calc(100vh - var(--mobile-header-height));
        min-height: calc(var(--vh) * 100 - var(--mobile-header-height));
        padding: 30px 20px;
    }

    .slide-content {
        width: 100%;
    }

    .exhibition-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 30px;
    }

    /* Better gallery display on mobile */
    .exhibition-gallery {
        flex-direction: column;
        gap: 20px;
    }

    .artwork {
        height: 50vw;
        max-height: 300px;
    }

    /* Improved section layout for mobile */
    .section {
        padding: 40px 20px;
        scroll-margin-top: calc(var(--mobile-header-height) + 20px);
    }

    .section h2, .section-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    /* Better grid layouts for mobile */
    .about-grid,
    .team-grid,
    .exhibitions-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Improved contact section for mobile */
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    /* Better form elements for mobile */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Touch-optimized buttons */
    .action-button,
    .filter-btn,
    .pagination-btn,
    .pagination-next {
        padding-top: 14px;
        padding-bottom: 14px;
        min-height: 48px; /* Minimum touch target size */
    }

    .filter-btn {
        flex: 1;
        min-width: calc(50% - 10px);
        text-align: center;
        justify-content: center;
    }

    .gallery-filter {
        justify-content: center;
    }
}

/* Mobile Navigation Fix */
.mobile-menu-toggle {
    display: block;
}

@media screen and (min-width: 993px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-header {
        display: none;
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 576px) {
    .slide {
        padding: 20px 15px;
    }
    
    .section {
        padding: 30px 15px;
    }
    
    .exhibition-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section h2, .section-title {
        font-size: 2rem;
    }

    .team-grid {
        gap: 20px;
    }

    /* Adjust map display */
    .map-placeholder img {
        height: 200px;
        object-fit: cover;
    }

    /* Improve brush strokes positioning */
    .brush-stroke {
        opacity: 0.5;
        transform: scale(0.8);
    }

    /* Better modal for mobile */
    .modal-content {
        width: calc(100% - 30px);
        max-height: 80vh;
        padding: 15px;
    }
    
    /* Better timeline on mobile */
    .timeline-item {
        padding: 15px;
    }
    
    /* Optimize gallery item display */
    .gallery-item {
        height: 50vw;
    }
}

/* Extra small devices */
@media screen and (max-width: 400px) {
    .slide {
        padding: 15px 10px;
    }
    
    .section {
        padding: 25px 10px;
    }
    
    .exhibition-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 20px;
    }

    /* Adjust navigation icons */
    .navigation-controls {
        gap: 8px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
    }

    /* Better form elements for very small screens */
    .form-group label {
        font-size: 0.85rem;
    }
    
    .checkbox-container {
        padding-left: 28px;
    }
}

/* Add a mobile header to the HTML structure */
@media screen and (max-width: 992px) {
    .main-content {
        padding-bottom: 80px; /* Add space for bottom elements */
    }

    /* Prevent content hiding under fixed header */
    #about, #exhibitions, #gallery, #contact {
        padding-top: 30px;
    }

    /* Touch-optimized gallery */
    .gallery-grid {
        gap: 15px;
    }
    
    /* Fix touch targets in pagination */
    .gallery-pagination {
        margin: 30px 0;
        justify-content: center;
    }

    /* Optimize timeline for mobile */
    .timeline {
        margin-left: 0;
    }
    
    .timeline-item {
        margin-left: 0;
        border-left: 3px solid var(--border-color);
    }

    /* Fix checkbox touch targets */
    .checkbox-container .checkmark {
        width: 24px;
        height: 24px;
    }
}

/* Lazy loading images */
img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
}

img.fade-in {
    opacity: 1;
}

/* Nav open body state */
body.nav-open {
    overflow: hidden;
}

/* Mobile Navigation Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Better image display on mobile */
.artwork img,
.about-image img,
.gallery-item img,
.exhibition-image img,
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Improved active states for mobile navigation */
@media screen and (max-width: 992px) {
    .nav-link.active {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--accent-color);
        font-weight: 500;
    }
    
    .nav-link.active::before {
        content: '';
        position: absolute;
        left: -20px;
        top: 0;
        height: 100%;
        width: 4px;
        background-color: var(--accent-color);
    }
    
    /* Enhanced mobile touch feedback */
    .action-button:active,
    .filter-btn:active,
    .nav-link:active,
    .pagination-btn:active,
    .pagination-next:active,
    .slide-nav:active,
    .checkbox-container:active {
        opacity: 0.7;
        transition: opacity 0.1s ease;
    }
}

/* Safe area insets for modern mobile devices */
@supports (padding: max(0px)) {
    .mobile-header,
    .sidebar-header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .slide,
    .section {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .main-content {
        padding-bottom: max(80px, env(safe-area-inset-bottom));
    }
}

/* Gallery grid for mobile */
@media screen and (max-width: 992px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        aspect-ratio: 1;
        height: auto;
    }
    
    /* Improve filter buttons on mobile */
    .gallery-filter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0 15px;
        margin: 0 -20px 20px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .gallery-filter::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-filter .filter-btn {
        flex: 0 0 auto;
        margin: 0 5px;
        white-space: nowrap;
    }
    
    .gallery-filter .filter-btn:first-child {
        margin-left: 20px;
    }
    
    .gallery-filter .filter-btn:last-child {
        margin-right: 20px;
    }
    
    /* Optimized touch interactions */
    .action-button,
    .filter-btn,
    .pagination-btn,
    .pagination-next,
    .nav-link,
    input[type="submit"],
    button[type="submit"],
    .text-link,
    .slide-nav {
        touch-action: manipulation;
    }
    
    /* Better exhibition gallery for mobile */
    .exhibition-gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Fix hero section on mobile */
    .slide {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Improved mobile navigation experience */
@media screen and (max-width: 992px) {
    .nav-links-container {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: var(--mobile-header-height);
    }
    
    .nav-links {
        padding: 20px 20px 100px;
    }
    
    .nav-link {
        padding: 16px;
        margin: 4px 0;
        border-radius: 8px;
        transition: all 0.3s ease;
        border-bottom: none;
    }
    
    .nav-link.active::before {
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        border-radius: 4px 0 0 4px;
    }
}

/* Optimize Contact Section for Mobile */
@media screen and (max-width: 992px) {
    .contact-wrapper {
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
    }
    
    .gallery-hours {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .hours-table {
        min-width: 100%;
        font-size: 0.9rem;
    }
    
    .hours-table td {
        padding: 8px 4px;
    }
    
    .map-placeholder {
        aspect-ratio: 16/9;
        height: auto;
        overflow: hidden;
    }
    
    /* Better form elements for mobile */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group select {
        padding-right: 35px;
    }
    
    textarea {
        min-height: 120px;
    }
    
    /* Fix for iOS form elements */
    input, 
    textarea, 
    select {
        font-size: 16px !important; /* Prevents iOS zoom */
        border-radius: 0;
        -webkit-appearance: none;
    }
    
    /* Better checkbox for mobile */
    .checkbox-container {
        padding-left: 35px;
        font-size: 0.95rem;
        min-height: 24px;
        display: flex;
        align-items: center;
    }
}

/* Main content mobile layout */
@media screen and (max-width: 992px) {
    body {
        padding: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    /* Better main section layouts */
    .section {
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .section:last-child {
        border-bottom: none;
    }
    
    /* Better featured exhibition on mobile */
    .exhibition-featured {
        flex-direction: column;
    }
    
    .exhibition-image {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .exhibition-info {
        width: 100%;
    }
    
    /* Artwork display improvements */
    .artwork img:hover,
    .gallery-item img:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    /* Better about section on mobile */
    .about-grid {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .about-content {
        width: 100%;
    }
    
    /* Fix brush strokes on mobile */
    .brush-stroke {
        z-index: -1;
        opacity: 0.4;
    }
    
    /* Touch-specific styles */
    @media (hover: none) {
        .action-button:hover,
        .filter-btn:hover,
        .nav-link:hover,
        .pagination-btn:hover,
        .pagination-next:hover,
        .text-link:hover {
            transform: none;
            box-shadow: none;
        }
        
        .action-button:active,
        .filter-btn:active,
        .nav-link:active,
        .pagination-btn:active,
        .pagination-next:active {
            opacity: 0.7;
        }
    }
}

/* Fix iOS 100vh issue */
@supports (-webkit-touch-callout: none) {
    .slide,
    .sidebar {
        height: -webkit-fill-available;
    }
}

/* Smooth scrolling reset for older browsers */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Hide background image on mobile */
@media screen and (max-width: 992px) {
    body::before, 
    body::after {
        display: none;
    }
    
    .brush-stroke {
        display: none;
    }
    
    body {
        background: var(--primary-bg);
    }
}

/* Mobile Bottom Navigation */
@media screen and (max-width: 992px) {
    /* Hide side navigation on mobile */
    .sidebar {
        display: none;
    }
    
    /* Show mobile header at top */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: var(--mobile-header-height);
        background-color: var(--primary-bg);
        border-bottom: 1px solid var(--border-color);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 990;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    /* Create bottom navigation */
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--primary-bg);
        border-top: 1px solid var(--border-color);
        z-index: 990;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--secondary-text);
        text-decoration: none;
        flex: 1;
        padding: 8px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .mobile-nav-text {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    .mobile-nav-link.active {
        color: var(--accent-color);
    }
    
    /* Adjust main content to accommodate fixed header and footer nav */
    .main-content {
        margin-top: var(--mobile-header-height);
        margin-bottom: 60px; /* Height of bottom nav */
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Remove existing mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Make sections fit between header and footer nav */
    .section:last-child {
        margin-bottom: 80px;
    }
}

/* Enhanced mobile navigation styles */
@media screen and (max-width: 992px) {
    .mobile-nav-link {
        position: relative;
    }
    
    .mobile-nav-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 28px;
        margin-bottom: 3px;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-icon svg {
        width: 20px;
        height: 20px;
        stroke-width: 1.5;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-text {
        font-family: var(--heading-font);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.03em;
    }
    
    .mobile-nav-link.active {
        position: relative;
    }
    
    .mobile-nav-link.active::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: var(--accent-color);
    }
    
    .mobile-nav-link.active .mobile-nav-icon {
        transform: translateY(-2px);
    }
    
    .mobile-nav-link.active .mobile-nav-text {
        font-weight: 500;
    }
    
    .mobile-nav-link.active .mobile-nav-icon svg {
        stroke-width: 2;
    }
    
    /* Elegant header styling for mobile */
    .mobile-header .brand h1 {
        font-family: var(--heading-font);
        font-weight: 500;
        letter-spacing: 0.05em;
    }
    
    /* Elegant mobile navigation bar */
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: var(--primary-bg);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 990;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.06);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Elegant mobile header */
@media screen and (max-width: 992px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 25px;
        height: var(--mobile-header-height);
        background-color: var(--primary-bg);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 990;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    }
    
    .mobile-header .brand h1 {
        font-family: var(--heading-font);
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        margin: 0;
        text-transform: uppercase;
    }
    
    /* Make mobile typography more elegant */
    .section h2, 
    .section-title {
        font-family: var(--heading-font);
        font-weight: 500;
    }
    
    .exhibition-title {
        font-family: var(--heading-font);
        font-weight: 500;
    }
    
    /* Additional elegant touches for mobile navigation */
    .mobile-nav {
        height: 68px;
        background-color: var(--primary-bg);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.08);
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: transparent;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link.active::before {
        top: -1px;
        background-color: var(--accent-color);
        width: 20px;
        height: 2px;
        border-radius: 1px;
    }
    
    /* Enhance mobile nav icon transitions */
    .mobile-nav-icon {
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .mobile-nav-link.active .mobile-nav-icon {
        transform: translateY(-4px);
    }
    
    .mobile-nav-link.active .mobile-nav-text {
        transform: translateY(-2px);
    }
}

/* Additional elegant styling for the mobile experience */
@media screen and (max-width: 992px) {
    /* More sophisticated mobile typography */
    body {
        letter-spacing: 0.01em;
    }
    
    .mobile-nav-text {
        font-family: var(--heading-font);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.08em;
        transition: all 0.3s ease;
    }
    
    /* Refined indicator for active navigation item */
    .mobile-nav-link.active::after {
        content: '';
        position: absolute;
        bottom: calc(100% - 42px);
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 3px;
        border-radius: 50%;
        opacity: 0.7;
        background-color: var(--accent-color);
    }
    
    /* Refined transitions for navigation */
    .mobile-nav-link {
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    
    /* More elegant section titles */
    .section-title {
        font-family: var(--heading-font);
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    .section-title::after {
        height: 1px;
        width: 40px;
        background-color: var(--accent-color);
        opacity: 0.7;
    }
    
    /* Elegant info card on mobile */
    .info-card {
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .info-card h3 {
        font-family: var(--heading-font);
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    /* Better spacing for the last section */
    .section:last-child {
        margin-bottom: 75px;
    }
}