/* --- Global Styles, Variables & Luxury Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #2c3e50; /* Deep Obsidian / Charcoal */
    --secondary-color: #C5A059; /* Brushed Gold */
    --text-color: #333333;
    --bg-main: #FDFBF7;
    --bg-light: #F4EFE6;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', Tahoma, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    /* This applies the cream color to the About Us section and everything else */
    background-color: var(--bg-main); 
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}


/* --- Navigation --- */
/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    /* Solid cream base */
    background-color: var(--bg-main); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* This creates the faded image effect behind the text */
nav::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    /* Make sure this is the exact name of your image */
    background-image: url('images/your-image-name.jpg'); 
    background-size: cover;
    background-position: center;
    /* Adjust this number: 0.15 is faint, 0.5 is half-transparent */
    opacity: 0.35; 
    z-index: -1;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #d35400;
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* --- Hero Section & Lens Reveal --- */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0 20px;
    overflow: hidden; 
}

/* The hidden background layer */
.mantra-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35; /* Keeps the mantras subtle so they don't overpower the text */
    
    /* The Gaussian lens mask - defaults off-screen (-100%) until the mouse moves */
    mask-image: radial-gradient(circle 250px at var(--mouse-x, -100%) var(--mouse-y, -100%), black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x, -100%) var(--mouse-y, -100%), black 20%, transparent 100%);
    z-index: 1;
}

/* The text that stays above the effect */
.hero-content {
    position: relative;
    z-index: 2;
    /* Adds a subtle drop shadow to ensure the text is always readable over the mantras */
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color); /* Uses the new Brushed Gold */
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* --- General Sections --- */
.section {
    padding: 5rem 10%;
}

.bg-light {
    background: var(--bg-light);
}

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

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

/* --- About Us --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* --- Gallery Grid --- */
/* --- Pinned Scroll Gallery --- */

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    /* auto-fill stops a few items from stretching to the edges of the screen */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: center; /* Centers the grid on the page */
}

.art-card {
    background: var(--white);
    border-radius: 12px; /* Slightly softer corners */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    /* This absolutely prevents the card from becoming giant */
    max-width: 400px; 
    margin: 0 auto; /* Centers the card in its column */
    width: 100%;
}

.art-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Slightly stronger shadow on hover */
}

.art-img {
    width: 100%;
    /* Locks the height so every single painting box is perfectly identical */
    height: 350px; 
    /* object-fit: cover ensures the image fills the box without squishing or stretching the art */
    object-fit: cover; 
    background-color: #ddd; 
}
.gallery-scroll-wrapper {
    position: relative;
    /* The height will be dynamically calculated by the script so you have room to scroll */
}

.gallery-pinned-box {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* Creates a beautiful, slow crossfade between paintings */
    transition: opacity 0.8s ease, visibility 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-slide.active-slide {
    opacity: 1;
    visibility: visible;
}

/* Your rounded image frames and translucent text boxes remain the same! */
.slide-image {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: calc(100% - 4rem);
    height: calc(100vh - 4rem);
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); 
}

/* Ensure your images keep their rounded borders */
.slide-image {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: calc(100% - 4rem);
    height: calc(100vh - 4rem);
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); 
}
/* Update the text box to decrease opacity */
.slide-text {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 600px;
    padding: 3rem 2rem;
    /* Decreased opacity from 0.4 to 0.15 for a much lighter background */
    background: rgba(0, 0, 0, 0.15); 
    border-radius: 12px;
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    margin: 0 20px;
}

.slide-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 1px;
}

.slide-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.slide-text .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit; /* This forces it to use your website's main font */
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

/* Adds a nice highlight when the user clicks inside the box */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Footer & Social Links --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    background-image: url('images/mantra2-img.png');
    background-size: cover;
    background-position: center;
}

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

.social-links a {
    display: inline-block;
    /* This makes the icons translucent white */
    color: rgba(255, 255, 255, 0.5); 
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* On hover, they become fully opaque and float up slightly */
.social-links a:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-4px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Show the hamburger icon */
    .menu-toggle {
        display: block;
    }
    
    /* Turn the navigation links into a slide-out side panel */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Hides it off-screen to the left */
        height: 100vh;
        width: 250px; /* Width of the menu */
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: left 0.4s ease; /* Smooth sliding animation */
        z-index: 99;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    /* This class is added by JavaScript to slide the menu into view */
    .nav-links.active {
        left: 0;
    }

    /* Make the links white so they show up on the dark background */
    .nav-links a {
        color: var(--white);
        font-size: 1.5rem;
    }

    /* Make hero text a bit smaller on phones */
    .hero h1 {
        font-size: 2rem;
    }
}

/* --- Scroll Fade Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px); /* Starts slightly lower down */
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* This class will be added by JavaScript when the user scrolls to it */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Glides up to its normal position */
}