/* Global Variables & Mixins */
:root {
    --primary-color: #FF5733; /* Coral */
    --secondary-color: #F0E68C; /* Pale Goldenrod */
    --background-color: #F5F5DC; /* Beige */
    --text-color: #333333; /* Dark Gray */
    --off-white: #FAF0E6; /* Antique White */
    --heading-font: 'Syne', sans-serif;
    --body-font: 'Work Sans', sans-serif;
    --transition-speed: 0.4s;
    --holographic-shimmer: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
    --vaporwave-gradient: linear-gradient(135deg, rgba(255, 87, 51, 0.1) 0%, rgba(240, 230, 140, 0.05) 50%, rgba(245, 245, 220, 0.1) 100%);
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700&family=Work+Sans:wght@300;400;700&display=swap');

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: none; /* Hide default cursor for magnetic cursor */
}

.magnetic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out, width 0.3s ease-out, height 0.3s ease-out, border-color 0.3s ease-out;
    mix-blend-mode: difference; /* For visibility against various backgrounds */
    background-color: rgba(255, 255, 255, 0.5); /* Subtle background for contrast */
    will-change: transform, width, height, border-color;
}

.magnetic-cursor.active {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
    background-color: rgba(255, 87, 51, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(245, 245, 220, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled-in {
    opacity: 1;
    transform: translateY(0);
}

.navbar-logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8em;
    color: var(--text-color);
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1em;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

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

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

.nav-actions {
    display: flex;
    gap: 20px;
}

.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions button:hover {
    color: var(--primary-color);
}

.nav-actions button svg {
    width: 24px;
    height: 24px;
}

/* Sections */
.section {
    padding: 100px 5vw;
    position: relative;
    overflow: hidden; /* To contain the vaporwave effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 150px; /* Space between sections */
}

/* Vaporwave Gradient Overlay */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--vaporwave-gradient);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.section:hover::before {
    opacity: 1;
}

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--text-color);
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.3em;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.8;
}

.section-content {
    font-size: 1.1em;
    max-width: 700px;
    margin-top: 30px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    color: var(--off-white);
    text-align: center;
    overflow: hidden; /* Ensure video is contained */
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 0 5vw;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 6em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: 1.8em;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px; /* Space between tagline and CTA */
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--off-white);
    border: none;
    padding: 15px 35px;
    font-size: 1.3em;
    font-weight: 700;
    font-family: var(--heading-font);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: background-color 0.4s ease, transform 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-3px);
}

/* Section: The New Vision */
.section-the-new-vision {
    background-color: var(--background-color);
    margin-top: 100vh; /* Pushes it down below the hero */
}

.vision-content {
    font-size: 1.2em;
    max-width: 700px;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.9;
}

/* Section: Curated Narratives */
.section-curated-narratives {
    background-color: var(--off-white);
    padding: 100px 0; /* Full width for scroll */
}

.horizontal-scroll-canvas {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 50px 0; /* Vertical padding for visual spacing */
}

.canvas-item {
    flex: 0 0 70vw; /* Each item takes 70% of viewport width */
    scroll-snap-align: center;
    padding: 0 2vw; /* Horizontal padding between items */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.canvas-item img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out;
}

.canvas-item:hover img {
    transform: scale(1.02);
}

.item-caption {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}

.item-caption h3 {
    font-family: var(--heading-font);
    font-size: 1.8em;
    margin-bottom: 5px;
}

.item-caption p {
    font-size: 1em;
    font-weight: 300;
}

/* Hide scrollbar for webkit browsers */
.horizontal-scroll-canvas::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.horizontal-scroll-canvas {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* Section: Artisan Spotlight */
.section-artisan-spotlight {
    background-color: var(--background-color);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
}

.spotlight-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.spotlight-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    transition: transform 0.5s ease-out, filter 0.5s ease-out;
    filter: grayscale(50%) brightness(0.8);
}

.spotlight-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.spotlight-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--off-white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(20px);
}

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

.spotlight-caption h4 {
    font-family: var(--heading-font);
    font-size: 2.5em;
    margin-bottom: 5px;
}

.spotlight-caption p {
    font-size: 1.2em;
    font-weight: 300;
}

/* Section: Digital Alchemy */
.section-digital-alchemy {
    background-color: var(--off-white);
}

.alchemy-content p {
    font-size: 1.1em;
    max-width: 700px;
    margin-bottom: 60px;
    opacity: 0.9;
}

.color-pop-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-button {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 10px 25px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: var(--heading-font);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 5px;
}

.filter-button .abstract-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-button.active {
    background-color: var(--primary-color);
    color: var(--off-white);
    border-color: var(--primary-color);
}

.filter-button:hover {
    background-color: var(--primary-color);
    color: var(--off-white);
    border-color: var(--primary-color);
}

.filter-button:hover .abstract-shape {
    opacity: 1;
    transform: translate(-50%, -50%) scale(5);
}

.filter-button[data-filter="surreal"] .abstract-shape {
    background-color: var(--primary-color);
}

.filter-button[data-filter="ethereal"] .abstract-shape {
    background-color: var(--secondary-color);
    width: 30px;
    height: 30px;
}

.filter-button[data-filter="luminous"] .abstract-shape {
    background-color: #40E0D0; /* Turquoise for luminous */
    width: 25px;
    height: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.product-item {
    position: relative;
    overflow: hidden;
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block; /* Remove bottom space */
}

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

.product-info h3 {
    font-family: var(--heading-font);
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-info .price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
}

/* Liquid Fill Add to Cart Button */
.add-to-cart-button {
    background-color: var(--text-color);
    color: var(--off-white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: var(--heading-font);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: background-color 0.4s ease;
    display: inline-block; /* To make it fit content */
    z-index: 1;
}

.add-to-cart-button .liquid-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* Starts from bottom */
    background-color: var(--primary-color);
    transition: height 0.5s cubic-bezier(0.42, 0, 0.58, 1); /* Liquid effect */
    z-index: -1; /* Behind text */
    border-radius: 5px;
}

.add-to-cart-button:hover {
    color: var(--text-color); /* Text changes color on hover */
}

.add-to-cart-button:hover .liquid-fill {
    height: 100%; /* Fills from bottom up */
}


/* Section: Foundations of Style */
.section-foundations-of-style {
    background-color: var(--background-color);
}

.foundations-content p {
    font-size: 1.2em;
    max-width: 700px;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.9;
}

/* Section: The Aetheria Edit */
.section-the-aetheria-edit {
    background-color: var(--off-white);
    padding-bottom: 150px; /* Extra space at the bottom */
}

.edit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
}

.edit-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.edit-item img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.edit-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.edit-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--off-white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(20px);
}

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

.edit-caption h4 {
    font-family: var(--heading-font);
    font-size: 2.2em;
    margin-bottom: 5px;
}

.edit-caption p {
    font-size: 1.1em;
    font-weight: 300;
}


/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 50px 40px;
    text-align: center;
    font-size: 0.9em;
    margin-top: 100px; /* Space above footer */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--background-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3em;
    }
    .section-subtitle {
        font-size: 1.1em;
    }
    .hero-title {
        font-size: 4.5em;
    }
    .hero-tagline {
        font-size: 1.5em;
    }
    .canvas-item {
        flex: 0 0 80vw;
    }
    .spotlight-grid, .edit-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .spotlight-caption h4, .edit-caption h4 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .navbar-logo {
        font-size: 1.5em;
    }
    .nav-links {
        display: none; /* Hide nav links on small screens, usually handled by a hamburger menu */
    }
    .nav-actions {
        gap: 15px;
    }
    .section {
        padding: 80px 5vw;
        margin-bottom: 100px;
    }
    .section-title {
        font-size: 2.5em;
    }
    .section-subtitle {
        font-size: 1em;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-tagline {
        font-size: 1.2em;
    }
    .hero-section {
        align-items: center; /* Center hero content */
        padding-bottom: 0; /* Remove bottom padding */
    }
    .hero-overlay {
        padding-top: 15%; /* Add some top padding for better visibility */
    }
    .cta-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .vision-content, .alchemy-content p, .foundations-content p {
        font-size: 1em;
    }
    .horizontal-scroll-canvas {
        padding: 30px 0;
    }
    .canvas-item {
        flex: 0 0 90vw;
    }
    .canvas-item img {
        height: 60vh;
    }
    .spotlight-grid, .edit-gallery {
        grid-template-columns: 1fr;
    }
    .spotlight-item img, .edit-item img {
        height: 70vh;
    }
    .add-to-cart-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .color-pop-filters {
        flex-direction: column;
        align-items: center;
    }
    .filter-button {
        width: 80%;
        text-align: center;
    }
    .footer {
        padding: 30px 20px;
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    .navbar-logo {
        font-size: 1.2em;
    }
    .nav-actions button svg {
        width: 20px;
        height: 20px;
    }
    .section {
        padding: 60px 5vw;
        margin-bottom: 80px;
    }
    .section-title {
        font-size: 2em;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-tagline {
        font-size: 1em;
    }
    .hero-overlay {
        padding-top: 25%; /* More top padding on very small screens */
    }
    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
    }
    .canvas-item img {
        height: 50vh;
    }
    .spotlight-item img, .edit-item img {
        height: 60vh;
    }
    .add-to-cart-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}