:root {
  	color-scheme: light only;
  
    --bg-color: #F5F5DC; /* Beige */
    --text-color: #2d2d2d;
    --accent-color: #800020; /* Burgundy */
    --accent-secondary: #A67B5B;
    --accent-tertiary: #664831;
    --secondary-color: #E2C9A6; /* Sand */
    --tertiary-color: #A67B5B; /* Darker sand */
    --shadow-color: rgba(166, 123, 91, 0.1);
}

[data-theme="dark"] {
    --bg-color: #000000; /* Black */
    --text-color: #f4f4f4;
    --accent-color: #800020; /* Burgundy */
    --accent-secondary: #800020; /* Burgundy */
    --accent-tertiary: #c90032; /* Burgundy */
    --secondary-color: #DC143C; /* Crimson */
    --tertiary-color: #5A0015; /* Darker burgundy */
    --shadow-color: rgba(220, 20, 60, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent scrolling when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}

header {
    padding: 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 20px var(--shadow-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
    font-weight: 700;
}

/* Navigation styles */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a:hover::after {
    width: 100%;
    opacity: 1;
}

.main-nav a.active {
    color: var(--accent-color);
}

.main-nav a.active::after {
    width: 100%;
    opacity: 1;
}

/* Make the contact link stand out slightly */
.main-nav a[href="#contact-section"] {
    background-color: var(--accent-secondary);
    color: var(--bg-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a[href="#contact-section"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Ensure active state works for contact link */
.main-nav a[href="#contact-section"].active {
    color: var(--bg-color);
    background-color: var(--accent-tertiary);
}

.main-nav a[href="#contact-section"]::after {
    display: none; /* Remove underline effect */
}

/* Fix contact section scroll-margin */
#contact-section {
    scroll-margin-top: 150px;
}

/* Theme toggle styling */
.theme-toggle {
    background: var(--accent-secondary);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

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

/* Mobile theme toggle container */
.nav-theme-toggle {
    display: none;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    text-align: center;
}

.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color), var(--secondary-color) 150%);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: none;
}

/* Show light logo in light mode */
.hero-logo .logo-light {
    display: block;
}

/* Show dark logo in dark mode */
[data-theme="dark"] .hero-logo .logo-light {
    display: none;
}

[data-theme="dark"] .hero-logo .logo-dark {
    display: block;
}


.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--shadow-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
    letter-spacing: 1px;
}

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

.gallery h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gallery section styles */
.gallery-section {
    margin-bottom: 5rem;
    scroll-margin-top: 8rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--tertiary-color);
    position: relative;
    padding-bottom: 0.5rem;
    display: block; 
    left: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

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

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

/* Equal grid for new layout */
.equal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
}

.equal-grid .art-piece {
    aspect-ratio: 1/1;
    height: 100%;
}

.equal-grid .art-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-piece {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.art-piece:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.art-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.art-piece:hover img {
    transform: scale(1.08);
}

.art-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid var(--accent-color);
}

.art-piece:hover .art-info {
    transform: translateY(0);
}

.art-info h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section Styling */
.contact {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background-color: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    text-align: center;
}

.contact h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-intro {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 15px;
    border: 1px solid var(--tertiary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.contact-method i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.contact-method span {
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Individual platform colors */
.contact-method.email:hover {
    border-color: #800020;
    background-color: rgba(128, 0, 32, 0.2);
}

.contact-method.instagram:hover {
    border-color: #E1306C;
    background-color: rgba(225, 48, 108, 0.2);
}

.contact-method.facebook:hover {
    border-color: #1877F2;
    background-color: rgba(24, 119, 242, 0.2);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contact-method:hover i {
    transform: scale(1.2);
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--accent-color);
    margin-top: 4rem;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--accent-color);
}

.copyright {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-color);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(128, 0, 32, 0.5);
    border: 1px solid #800020;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-nav:hover {
    background: rgba(220, 20, 60, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
}

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

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

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    z-index: 1000;
    border: 1px solid transparent;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-color);
    border-color: var(--accent-color);
}

.modal-info {
    color: white;
    margin-top: 1.5rem;
    text-align: center;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* Mobile styles */
@media (max-width: 900px) {
    .grid, .equal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-nav {
        order: 3;
    }
    
    .desktop-theme-toggle {
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    header {
        padding: 1rem;
    }
    
    .gallery-section {
        scroll-margin-top: 12rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .modal-nav {
        font-size: 1.5rem;
        padding: 0.7rem;
    }
    
    .modal-prev {
        left: -50px;
    }
    
    .modal-next {
        right: -50px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop theme toggle on mobile */
    .desktop-theme-toggle {
        display: none;
    }
    
    /* Show theme toggle inside mobile nav */
    .nav-theme-toggle {
        display: block;
        padding: 2rem 1.5rem 1.5rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--accent-color);
        text-align: center;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .logo {
        text-align: center;
        white-space: nowrap;
        order: 2;
    }

    .header-buttons {
        display: flex;
        align-items: center;
        gap: 1rem;
        order: 3;
    }

    .main-nav {
        display: none;
        order: 1;
    }
    
    .nav-theme-toggle .theme-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .modal-nav {
        top: auto;
        bottom: -70px;
        transform: none;
    }
        
    .modal-nav:hover {
        transform: scale(1.1);
    }
        
    .modal-prev {
        left: 30%;
    }
        
    .modal-next {
        right: 30%;
    }
    
    .modal-close {
        top: -40px;
        right: 0;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid, .equal-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-logo img {
        max-width: 150px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .modal-prev {
        left: 20%;
    }
    
    .modal-next {
        right: 20%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery h3 {
        font-size: 2rem;
    }
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    /* Full-height mobile navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh; /* Full height */
        width: 100%; /* Full width on small screens */
        max-width: 300px;
        background-color: var(--bg-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 70px;
        overflow-y: auto; /* Allow scrolling if content is taller than screen */
        display: flex;
        flex-direction: column;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        flex-grow: 1; /* Make the ul take remaining space */
    }
    
    .main-nav a {
        display: block;
        font-size: 1.1rem;
        text-align: center;
    }
    
    /* Ensures the original horizontal nav styles don't interfere on mobile */
    .main-nav a::after {
        display: none;
    }
    
    /* Overlay when mobile menu is active */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Adjust header layout for mobile */
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    /* Mobile-specific contact button styling */
    .main-nav a[href="#contact-section"] {
        background-color: var(--accent-color);
        color: var(--bg-color);
        border-radius: 4px;
        text-align: center;
        margin: 1rem 1.5rem;
    }
}
