/* 
   Srijona — The Radiant Weave
   Core Stylesheet & Design System
*/

:root {
    /* Color Palette derived from Logo DNA */
    --bg-ivory: #F8F3EA;
    --warm-parchment: #EFE4D2;
    --temple-gold: #B28A31;
    --deep-vermilion: #9B1C1C;
    --wine-maroon: #732638;
    --earth-brown: #5E4334;
    --muted-leaf-green: #6F8365;
    --dust-rose: #DABFB4;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Libre Baskerville', serif;
    
    /* Animation Speeds */
    --transition-slow: 1000ms cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 600ms cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-ivory);
    color: var(--earth-brown);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-ivory);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--wine-maroon); /* Rich maroon from logo DNA */
    letter-spacing: 0.05em;
}

p {
    font-weight: 400;
    opacity: 0.85;
    color: var(--earth-brown);
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--temple-gold);
    margin-bottom: 15px;
    font-weight: 500;
}

.section-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 45px;
    color: var(--wine-maroon);
    position: relative;
}

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

/* Brand Headline in Philosophy */
.brand-headline {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--deep-vermilion); /* Highlight vermilion from logo DNA */
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 300;
}

/* Soft Paper Texture Effect for Cards and Sections */
.paper-texture {
    background-image: radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 0), 
                      radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

/* Centered Navigation Menu integrated with elegant border lines */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-slow), box-shadow var(--transition-slow), padding var(--transition-slow);
    background-color: var(--bg-ivory); /* Matches the logo background */
    border-top: 1px solid rgba(178, 138, 49, 0.25); /* Thin gold line at top */
    border-bottom: 1px solid rgba(178, 138, 49, 0.25); /* Thin gold line at bottom */
    padding: 16px 0; /* Increased padding for higher row height */
}

#main-nav.scrolled {
    background-color: var(--bg-ivory);
    box-shadow: 0 4px 20px rgba(94, 67, 52, 0.04);
    padding: 12px 0; /* Compact scrolled height */
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Centering grid layout */
    align-items: center;
    position: relative; /* Context for absolute logo */
    height: 70px; /* Increased row height */
}

.nav-logo-link {
    display: block;
    padding: 0;
    text-decoration: none;
    width: 260px; /* Allocate space so links don't overlap the larger absolute image */
    height: 70px;
}

/* Styled Image Logo - Positioned absolutely to scale large without expanding row height */
.nav-logo {
    height: 92px; /* Set to fit perfectly within the 102px navbar borders (leaves 5px padding) */
    width: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    transition: height var(--transition-medium);
}

#main-nav.scrolled .nav-logo {
    height: 84px; /* Scaled down slightly to fit the 94px scrolled navbar (leaves 5px padding) */
}

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

.nav-left {
    justify-content: flex-end;
    padding-right: 30px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 30px;
}

.nav-links a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--wine-maroon); /* Derived from logo DNA */
    font-family: var(--font-heading);
    font-size: 1.35rem; /* Category size increased to be larger */
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700; /* Bolder navigation links */
    transition: color var(--transition-medium), text-shadow var(--transition-medium);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--temple-gold);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--temple-gold);
    text-shadow: 0 0 10px rgba(178, 138, 49, 0.2);
}

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

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    grid-column: 3;
    justify-self: end;
}

.menu-toggle .bar {
    width: 25px;
    height: 1px;
    background-color: var(--wine-maroon);
    transition: all var(--transition-medium);
}

/* Hero Section (Section 1) */
.hero-section {
    height: calc(100vh - 102px); /* Push height down to account for the navbar */
    margin-top: 102px; /* Offset by the navbar height so it starts below the border line */
    background-size: cover;
    background-position: center center; /* Centered layout */
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Transparent golden glow accentuating the sunset */
    background: linear-gradient(to top, rgba(178, 138, 49, 0.1) 0%, rgba(248, 243, 234, 0) 50%);
    pointer-events: none;
}

/* Floating Hero Button */
.hero-btn-container {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.float-btn {
    box-shadow: 0 6px 25px rgba(94, 67, 52, 0.12);
    background-color: var(--temple-gold);
    color: var(--bg-ivory);
    border-radius: 30px; /* Pill layout */
    padding: 16px 48px;
    font-weight: 500;
    letter-spacing: 0.25em;
    backdrop-filter: blur(5px);
    transition: all var(--transition-medium);
}

.float-btn:hover {
    background-color: #c49a3c;
    box-shadow: 0 8px 30px rgba(178, 138, 49, 0.4), 0 0 10px rgba(178, 138, 49, 0.2);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--temple-gold);
    color: var(--bg-ivory);
    box-shadow: 0 4px 15px rgba(178, 138, 49, 0.15);
}

.btn-primary:hover {
    background-color: #c49a3c;
    box-shadow: 0 0 20px rgba(178, 138, 49, 0.4);
}

.btn-footer {
    background-color: var(--temple-gold);
    color: var(--bg-ivory);
    padding: 10px 24px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-footer:hover {
    background-color: #c49a3c;
    box-shadow: 0 0 15px rgba(178, 138, 49, 0.5);
}

/* Philosophy Section (Section 2) */
.philosophy-section {
    background-color: var(--bg-ivory);
}

.philosophy-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.philosophy-left {
    position: relative;
}

.image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(94, 67, 52, 0.08);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.philosophy-right {
    padding-left: 20px;
}

.philosophy-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--deep-vermilion);
    margin-top: 35px;
    font-style: italic;
    border-left: 3px solid var(--temple-gold);
    padding-left: 25px;
}

/* Collections Section (Section 3) */
.collections-section {
    background-color: var(--warm-parchment);
}

.collections-layout {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    margin-top: 60px;
    padding-bottom: 25px; /* Leave space for elegant scrollbar and shadows */
    scrollbar-width: none; /* Hide for firefox */
    -ms-overflow-style: none; /* Hide for IE */
}

/* Hide scrollbar for Chrome/Safari */
.collections-layout::-webkit-scrollbar {
    display: none;
}

/* Collection Cards */
.collection-card {
    flex: 0 0 calc(25% - 22.5px); /* Accommodate exactly 4 on screen (accounting for 30px gaps) */
    scroll-snap-align: start;
    background-color: var(--bg-ivory);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(94, 67, 52, 0.05);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.collection-card::after {
    /* Soft paper texture background */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 0);
    background-size: 8px 8px;
    pointer-events: none;
    opacity: 0.7;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4; /* Uniform portrait aspect ratio for all collection drapes */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(94, 67, 52, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-medium);
    text-align: center;
}

.card-poetic-desc {
    color: var(--bg-ivory);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.5;
    font-style: italic;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
}

.card-info {
    padding: 20px;
    background-color: var(--bg-ivory);
    z-index: 2;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--wine-maroon);
}

.card-summary {
    font-size: 0.85rem;
    color: var(--temple-gold);
    font-style: italic;
}

/* Card Hover Interactions */
.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(94, 67, 52, 0.1);
}

.collection-card:hover .card-image-wrapper img {
    transform: scale(1.04);
}

.collection-card:hover .card-overlay {
    opacity: 1;
}

.collection-card:hover .card-poetic-desc {
    transform: translateY(0);
}

/* Artisan Stories (Section 4) */
.artisan-section {
    background-color: var(--warm-parchment);
    background-image: radial-gradient(rgba(178, 138, 49, 0.08) 1px, transparent 0);
    background-size: 16px 16px;
    border-top: 1px solid rgba(178, 138, 49, 0.1);
    border-bottom: 1px solid rgba(178, 138, 49, 0.1);
}

.artisan-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.artisan-text-side {
    padding-right: 20px;
}

.artisan-description p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.artisan-details {
    list-style: none;
    margin-top: 35px;
}

.artisan-details li {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--wine-maroon);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    color: var(--temple-gold);
    font-size: 1.1rem;
}

.artisan-image-side {
    display: flex;
    justify-content: center;
}

/* Woven border decoration */
.woven-texture-frame {
    position: relative;
    padding: 15px;
    background-color: var(--bg-ivory);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(94, 67, 52, 0.08);
}

.woven-texture-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--temple-gold);
    border-radius: 10px;
    pointer-events: none;
}

.woven-texture-frame img {
    border-radius: 8px;
    transition: transform var(--transition-slow);
}

/* Editorial Journal (Section 5) */
.journal-section {
    background-color: var(--bg-ivory);
}

.journal-asymmetric-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-top: 60px;
    align-items: flex-start;
}

.journal-featured {
    background-color: var(--bg-ivory);
    box-shadow: 0 10px 35px rgba(94, 67, 52, 0.04);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(239, 228, 210, 0.4);
}

.journal-image-box {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.journal-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.journal-featured:hover .journal-image-box img {
    transform: scale(1.03);
}

.journal-details {
    padding: 40px;
}

.journal-category {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--temple-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.journal-featured h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.journal-snippet {
    font-size: 1.05rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.read-more-link {
    font-family: var(--font-heading);
    color: var(--deep-vermilion);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-medium);
}

.read-more-link span {
    transition: transform var(--transition-medium);
}

.read-more-link:hover {
    color: var(--temple-gold);
}

.read-more-link:hover span {
    transform: translateX(5px);
}

/* Journal Sidebar List */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.journal-item {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid rgba(178, 138, 49, 0.15);
    padding-bottom: 30px;
}

.journal-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.journal-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dust-rose);
    line-height: 1;
}

.journal-item-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    transition: color var(--transition-medium);
    cursor: pointer;
}

.journal-item-content h4:hover {
    color: var(--temple-gold);
}

.journal-item-content p {
    font-size: 0.95rem;
    font-weight: 300;
}

/* Customer Stories & Testimonial Slider (Section 6) */
.testimonials-section {
    background-color: var(--bg-ivory);
    border-top: 1px solid rgba(239, 228, 210, 0.6);
    text-align: center;
    overflow: hidden;
}

.testimonial-container {
    padding: 100px 0;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    transition: transform var(--transition-slow);
    width: 300%; /* Support 3 slides */
}

.testimonial-slide {
    width: 33.333%; /* 1/3 of slides width */
    flex-shrink: 0;
    opacity: 0.2; /* Soft inactive opacity */
    transition: opacity var(--transition-medium);
    padding: 0 40px;
}

.testimonial-slide.active {
    opacity: 1;
}

.poetic-quote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.5;
    color: var(--wine-maroon);
    font-style: italic;
    margin-bottom: 25px;
    font-weight: 300;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--temple-gold);
    display: block;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--warm-parchment);
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.testimonial-dots .dot:hover {
    background-color: var(--temple-gold);
}

.testimonial-dots .dot.active {
    background-color: var(--wine-maroon);
    transform: scale(1.3);
}

/* Footer Section (Section 7) - Dynamically Sized Page */
.footer-section {
    background-color: var(--warm-parchment); /* Light background for seamless blending */
    color: var(--wine-maroon); /* Dark wine text */
    position: relative;
    height: auto; /* Shrink height to dynamically fit elements */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(178, 138, 49, 0.25); /* Elegant gold line divider */
    padding: 50px 0 20px 0; /* Compact top padding, minimal bottom padding below copyright */
    box-sizing: border-box;
}

.footer-border-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(45deg, var(--temple-gold) 25%, transparent 25%), 
                      linear-gradient(-45deg, var(--temple-gold) 25%, transparent 25%);
    background-size: 12px 12px;
    opacity: 0.15;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Balanced two-column grid */
    gap: 80px;
    align-items: start; /* Align elements to start of columns */
    padding-top: 0;
}

/* Clean, Floating Transparent Logo in Footer (Removed background box, borders) */
.footer-logo-wrapper {
    display: inline-block;
    margin-bottom: 0px; /* Remove bottom spacing wrapper */
}

.footer-logo {
    height: 64px; /* Reduced to align perfectly and scale cleanly */
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
}

.footer-philosophy {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--wine-maroon);
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 380px;
}

/* Instagram QR Styling */
.footer-qr-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.qr-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--temple-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-qr-image {
    width: 220px; /* Enlarge QR code more */
    height: 220px; /* Enlarge QR code more */
    background-color: transparent; /* No frame */
    border: none; /* No frame */
    padding: 0; /* No frame */
    box-shadow: none; /* No frame */
    object-fit: contain;
    transition: transform var(--transition-medium);
}

.footer-qr-image:hover {
    transform: scale(1.05);
    border-color: var(--temple-gold);
}

.copyright {
    position: relative; /* Restored to flow naturally below QR code */
    margin-top: 30px;
    margin-bottom: 0; /* No extra spacing pushing the page down */
    font-size: 0.8rem;
    color: var(--wine-maroon);
    opacity: 0.85; /* Increased opacity for better visibility */
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.footer-right h3 {
    color: var(--wine-maroon);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Contact Us Form Styling */
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    background-color: var(--bg-ivory);
    border: 1px solid rgba(115, 38, 56, 0.15); /* Soft wine-maroon borders */
    padding: 10px 14px;
    color: var(--wine-maroon);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 6px;
    outline: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-contact-form textarea {
    resize: none;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(115, 38, 56, 0.55);
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    border-color: var(--wine-maroon);
    background-color: #fff;
}

.btn-footer-submit {
    background-color: var(--wine-maroon);
    color: var(--bg-ivory);
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.15em;
    padding: 12px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: all var(--transition-medium);
    cursor: pointer;
    text-align: center;
    border: none;
    width: 100%;
}

.btn-footer-submit:hover {
    background-color: var(--temple-gold);
    box-shadow: 0 4px 15px rgba(178, 138, 49, 0.2);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials a {
    color: var(--wine-maroon);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: color var(--transition-medium);
}

.footer-socials a:hover {
    color: var(--temple-gold);
}

.separator {
    color: rgba(115, 38, 56, 0.4); /* Contrast adjustments for dots */
}

/* Animations & Motion Design System */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1000ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in-up-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1000ms cubic-bezier(0.25, 1, 0.5, 1) 200ms forwards;
}

.fade-in-up-delayed-more {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1000ms cubic-bezier(0.25, 1, 0.5, 1) 400ms forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Revealing System */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Image zoom effect on scroll */
.scroll-zoom img {
    transform: scale(1.08);
    transition: transform var(--transition-slow);
}

.scroll-zoom.revealed img {
    transform: scale(1);
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .philosophy-container {
        gap: 40px;
    }
    
    .journal-asymmetric-layout {
        gap: 40px;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 60px 0;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--bg-ivory);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right var(--transition-medium);
        box-shadow: -5px 0 25px rgba(94, 67, 52, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .collections-layout {
        gap: 20px;
        padding-bottom: 15px;
    }
    
    .collection-card, .skeleton-card {
        flex: 0 0 85%; /* Peek layout so mobile users visually see they can swipe horizontally */
    }
    
    .artisan-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .artisan-text-side {
        order: 2;
        padding-right: 0;
    }
    
    .artisan-image-side {
        order: 1;
    }
    
    .journal-asymmetric-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-left .footer-philosophy {
        max-width: 100%;
    }

    .footer-logo {
        margin: 0 auto 20px auto; /* Centers the logo on mobile screens */
    }
    
    .footer-qr-container {
        align-items: center;
    }
    
    .footer-contact-form {
        max-width: 500px;
        margin: 0 auto 30px auto;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

/* ==========================================
   PRODUCT DETAIL PANEL (BUY PAGE OVERLAY)
   ========================================== */
.product-detail-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen on load */
    width: 100%;
    height: 100vh;
    background-color: var(--bg-ivory);
    z-index: 2000;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product-detail-panel.active {
    right: 0; /* Slide in smoothly */
}

.panel-header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0 10px 0;
    display: flex;
    justify-content: flex-end;
}

.panel-close-btn {
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--wine-maroon);
    cursor: pointer;
    line-height: 1;
    transition: transform var(--transition-medium), color var(--transition-medium);
}

.panel-close-btn:hover {
    transform: rotate(90deg);
    color: var(--temple-gold);
}

.panel-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    padding-bottom: 80px;
    align-items: start;
}

/* Gallery & Thumbnails */
.panel-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Match collections ratio */
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(94, 67, 52, 0.03);
    box-shadow: 0 10px 30px rgba(94, 67, 52, 0.05);
}

/* Gallery Navigation Arrow Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(115, 38, 56, 0.5); /* Srijona Wine-Maroon with opacity */
    color: var(--bg-ivory);
    border: none;
    font-size: 1.4rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-medium), transform var(--transition-medium);
    z-index: 10;
    outline: none;
}

.gallery-nav-btn:hover {
    background-color: rgba(115, 38, 56, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav-btn.prev-btn {
    left: 15px;
}

.gallery-nav-btn.next-btn {
    right: 15px;
}

/* Hide navigation buttons when there's only one image in the gallery */
.gallery-main-wrapper.single-image .gallery-nav-btn {
    display: none;
}

.gallery-main-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-medium);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumb-img {
    width: 90px;
    height: 120px; /* 3:4 aspect ratio */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-medium), transform var(--transition-medium);
}

.thumb-img:hover {
    transform: translateY(-2px);
}

.thumb-img.active {
    border-color: var(--temple-gold);
}

/* Product Info */
.panel-details-side {
    display: flex;
    flex-direction: column;
}

.panel-product-category {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--temple-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.panel-product-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--wine-maroon);
    margin: 0 0 10px 0;
    line-height: 1.15;
    font-weight: 400;
}

.panel-product-price {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--temple-gold);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.panel-product-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--wine-maroon);
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Specs Table */
.panel-specs {
    margin-bottom: 40px;
}

.panel-specs h3 {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    color: var(--wine-maroon);
    border-bottom: 1px solid rgba(178, 138, 49, 0.2);
    padding-bottom: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.specs-table tr {
    border-bottom: 1px solid rgba(178, 138, 49, 0.08);
}

.specs-table td {
    padding: 8px 0;
    font-size: 0.85rem;
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--wine-maroon);
    width: 35%;
}

.specs-table td:last-child {
    color: var(--wine-maroon);
    opacity: 0.8;
}

.panel-buy-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-medium);
}

/* Mobile responsive overrides for buy panel */
@media (max-width: 992px) {
    .panel-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 50px;
    }
    
    .panel-product-title {
        font-size: 2.2rem;
    }

    .collection-card, .skeleton-card {
        flex: 0 0 calc(50% - 15px); /* Exactly 2 cards visible on tablet viewports */
    }
}

/* ==========================================
   SKELETON SHIMMER LOADERS
   ========================================== */
.skeleton-card {
    flex: 0 0 calc(33.333% - 20px); /* Keep skeleton size matching product cards */
    scroll-snap-align: start;
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(94, 67, 52, 0.03);
    border: 1px solid rgba(94, 67, 52, 0.05);
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #f7f5f0 25%, #eae6dc 50%, #f7f5f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-title {
    width: 60%;
    height: 20px;
    margin: 20px 20px 10px 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f7f5f0 25%, #eae6dc 50%, #f7f5f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    width: 80%;
    height: 14px;
    margin: 0 20px 20px 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f7f5f0 25%, #eae6dc 50%, #f7f5f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
