/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600&display=swap');

/* CSS Variables for Colors - Light Mode Defaults */
:root {
    --bg-light: #ffffff;
    --text-light: #000000;
    --accent-gold: #b8860b; /* Goldenrod for a rich gold */
    --accent-champagne: #f0e68c; /* Khaki for a soft champagne */
    --glass-bg-rgb: 255, 255, 255; /* White for glass base */
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(0, 0, 0, 0.1);

    /* Text Colors */
    --color-heading: var(--text-light);
    --color-body: var(--text-light);

    /* Background Colors */
    --color-background: var(--bg-light);
    --color-card-bg: rgba(var(--glass-bg-rgb), 0.7); /* Slightly translucent */
    --color-footer-bg: #f8f8f8; /* Light grey for footer/dark mode background */
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-light: #1a1a1a; /* Dark grey */
    --text-light: #f5f5f5; /* Off-white */
    --glass-bg-rgb: 50, 50, 50; /* Darker base for glass */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    --color-heading: var(--text-light);
    --color-body: var(--text-light);
    --color-background: var(--bg-light);
    --color-card-bg: rgba(var(--glass-bg-rgb), 0.7);
    --color-footer-bg: #0d0d0d; /* Even darker for dark mode footer */
}


/* Basic Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-body);
    background-color: var(--color-background);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease; /* Smooth transition for dark/light mode */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-heading);
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; } /* For hero tagline on large screens */
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--color-body); /* Default link color */
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-light { color: var(--text-light); } /* For text on dark backgrounds */
.bg-dark { background-color: var(--color-footer-bg); } /* Used for specific sections like testimonials/insta gallery */
.section-padding { padding: 80px 0; } /* Consistent section padding */

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-light); /* Button text color should contrast with gold */
}

.btn-primary:hover {
    background-color: #a0780a; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--glass-bg-rgb), 0.2); /* Subtle shadow on hover */
}

/* Glassmorphism Base Style */
.glass-effect {
    background: rgba(var(--glass-bg-rgb), 0.25); /* Base transparency for glass */
    border-radius: 16px;
    box-shadow: 0 4px 30px var(--glass-shadow);
    backdrop-filter: blur(10px); /* Adjust blur strength */
    -webkit-backdrop-filter: blur(10px); /* For Safari compatibility */
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease; /* Smooth transition for property changes */
}

/* Animations (using standard CSS for basic effects) */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Default for slide-up too, will override if needed */
    animation: fadeIn 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Keyframes for animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(var(--glass-bg-rgb), 0.8); /* Slightly less translucent for header */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px var(--glass-shadow);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold); /* ZAYNO in gold */
    letter-spacing: 2px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-body); /* Matches body text color */
    margin-left: 20px;
    transition: color 0.3s ease;
}
.dark-mode-toggle:hover {
    color: var(--accent-gold);
}

/* Mobile Menu */
.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-body);
    margin-left: 20px;
    z-index: 1100; /* Ensure it's above the nav menu when open */
}

/* Specific styles for Home Page Sections */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Essential for parallax */
    text-align: center;
    color: white; /* Default text color for hero */
    background-color: #000; /* Fallback if image doesn't load */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller than viewport for parallax effect */
    background-size: cover;
    background-position: center;
    will-change: transform; /* Performance optimization for animations */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10; /* Ensures content is above the background */
    padding-top: 100px; /* Space for fixed header */
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 30px;
    line-height: 1.1;
    color: #fff; /* Explicitly white for hero text */
}

.hero-content .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background-color: var(--color-background); /* From global style.css */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 30px var(--glass-shadow); /* Default glass shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* For glow & lift */
}

.product-card:hover {
    transform: translateY(-5px); /* Subtle lift */
}

.product-card img {
    width: 100%;
    height: 350px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05); /* Gentle zoom on image */
}

.product-info {
    padding: 20px;
    background: rgba(var(--glass-bg-rgb), 0.7); /* Slightly more opaque glass for text */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    position: relative; /* For overlay positioning */
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--color-heading);
}

.product-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.product-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--glass-bg-rgb), 0.25); /* Default glass overlay */
    backdrop-filter: blur(0px); /* Initially no blur */
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: all 0.3s ease-in-out;
    transform: scale(0.9); /* Subtle scale effect */
}

.product-card-hover-overlay p {
    margin-bottom: 10px;
    color: var(--text-light); /* Ensure text is visible on overlay */
}

.product-card-hover-overlay .wishlist-icon {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-card-hover-overlay .wishlist-icon:hover {
    color: var(--accent-gold);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--color-footer-bg); /* Using footer bg variable for consistency */
    color: var(--color-body);
}

.testimonial-carousel {
    display: flex; /* Will be managed by JS for actual carousel */
    overflow: hidden; /* Hide extra items */
    position: relative;
    margin-top: 50px;
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width of carousel */
    padding: 40px;
    max-width: 700px; /* Max width for readability */
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    line-height: 1.8;
    background: rgba(var(--glass-bg-rgb), 0.1); /* Lighter glass for testimonials */
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 4px 30px var(--glass-shadow);
    transition: opacity 0.5s ease; /* For fade between slides */
}

.testimonial-item p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.testimonial-item cite {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 15px;
}

/* Brand Mission + Video Section */
.brand-mission {
    padding: 80px 0;
    background-color: var(--color-background);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr; /* Stack on small screens */
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    }
}

.mission-text h2 {
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-heading);
}

.mission-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--color-body);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 30px var(--glass-shadow); /* Glassmorphic shadow */
    background: rgba(var(--glass-bg-rgb), 0.25); /* Glass background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Instagram Gallery Section */
.instagram-gallery {
    padding: 80px 0;
    background-color: var(--color-footer-bg); /* Using footer bg variable */
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.insta-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.insta-item img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9); /* Slightly darker initially */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.insta-item:hover img {
    filter: brightness(1.1); /* Brighter on hover */
    transform: scale(1.05);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay span { /* For the text 'icon-instagram' if no icon font is used */
    color: #fff;
    font-size: 2.5rem;
}


/* Footer */
.main-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-body);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Sticky Shop Now CTA */
.sticky-shop-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 12px 25px;
    font-size: 0.9rem;
    opacity: 0; /* Hidden by default, shown by JS */
    transform: translateY(20px); /* Initial off-screen position */
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }
    .product-info h3 { font-size: 1.1rem; }
    .product-info p { font-size: 1rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hidden desktop nav */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(var(--glass-bg-rgb), 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 4px 15px var(--glass-shadow);
        padding: 20px 0;
        text-align: center;
        transform: translateY(-100%); /* Start off-screen */
        transition: transform 0.4s ease-in-out;
    }

    .nav-menu.open {
        display: flex;
        transform: translateY(0); /* Slide in */
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: block; /* Show hamburger */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .btn { padding: 12px 25px; font-size: 0.9rem; }
    .product-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .sticky-shop-cta {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    .testimonial-item { padding: 25px; }
}