/* ==========================================================================
   SUNITHA PEN KALAMKARI WORKS - STYLE SYSTEM (VANILLA CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Configuration
   -------------------------------------------------------------------------- */
:root {
    /* Brand Palette (Traditional Organic Pigments) */
    --maroon-raw: 122, 31, 31;
    /* #7A1F1F - Red madder root */
    --terracotta-raw: 199, 107, 60;
    /* #C76B3C - Saffron/clay */
    --beige-raw: 245, 230, 211;
    /* #F5E6D3 - Natural unbleached cotton */
    --gold-raw: 201, 162, 39;
    /* #C9A227 - Alum/yellow pomegranate */
    --dark-brown-raw: 61, 43, 31;
    /* #3D2B1F - Jaggery & iron rust black */

    --maroon: rgb(var(--maroon-raw));
    --terracotta: rgb(var(--terracotta-raw));
    --beige: rgb(var(--beige-raw));
    --gold: rgb(var(--gold-raw));
    --dark-brown: rgb(var(--dark-brown-raw));

    /* Active Light Theme Variable Overrides */
    --bg-color: #F5E6D3;
    --text-color: #3D2B1F;
    --text-muted: rgba(61, 43, 31, 0.7);
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-hover-bg: rgba(255, 255, 255, 0.95);
    --header-bg: rgba(245, 230, 211, 0.85);
    --border-color: rgba(61, 43, 31, 0.12);
    --accent-color: var(--maroon);
    --accent-secondary: var(--terracotta);

    /* Layout & Utilities */
    --shadow-sm: 0 4px 12px rgba(61, 43, 31, 0.05);
    --shadow-md: 0 12px 30px rgba(61, 43, 31, 0.08);
    --shadow-lg: 0 20px 40px rgba(61, 43, 31, 0.15);
    --transition-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

[data-theme="dark"] {
    --bg-color: #1F150F;
    /* Dark earthy charcoal brown */
    --text-color: #F5E6D3;
    /* Antique beige text */
    --text-muted: rgba(245, 230, 211, 0.7);
    --card-bg: rgba(61, 43, 31, 0.45);
    --card-hover-bg: rgba(61, 43, 31, 0.7);
    --header-bg: rgba(31, 21, 15, 0.85);
    --border-color: rgba(245, 230, 211, 0.12);
    --accent-color: var(--gold);
    --accent-secondary: var(--terracotta);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. Reset & Typography Foundations
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    transition: background-color var(--transition-medium), color var(--transition-medium);

    /* Textured handmade fabric appearance: subtle thread grid overlay + lotus watermark */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 15 C43 28, 55 30, 58 35 C58 45, 48 48, 40 58 C32 48, 22 45, 22 35 C22 30, 34 28, 40 15 Z' fill='none' stroke='%237A1F1F' stroke-width='0.5' stroke-opacity='0.03'/%3E%3C/svg%3E"),
        linear-gradient(rgba(61, 43, 31, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 43, 31, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 4px 4px, 4px 4px;
}

[data-theme="dark"] body {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 15 C43 28, 55 30, 58 35 C58 45, 48 48, 40 58 C32 48, 22 45, 22 35 C22 30, 34 28, 40 15 Z' fill='none' stroke='%23C9A227' stroke-width='0.5' stroke-opacity='0.025'/%3E%3C/svg%3E"),
        linear-gradient(rgba(245, 230, 211, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 230, 211, 0.015) 1px, transparent 1px);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   3. Loading Preloader & Transitions
   -------------------------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #F5E6D3;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

[data-theme="dark"] #preloader {
    background: #1F150F;
}

.preloader-content {
    text-align: center;
    max-width: 90%;
}

.drawing-kalam {
    margin: 0 auto 20px;
    display: block;
}

/* Drawing animations for the preloader lotus logo */
.lotus-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lotus-path-inner {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawPath 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.preloader-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #7A1F1F;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 700;
}

[data-theme="dark"] .preloader-title {
    color: var(--gold);
}

.preloader-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 30px;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(61, 43, 31, 0.1);
    margin: 0 auto;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .loading-bar {
    background: rgba(245, 230, 211, 0.1);
}

.loading-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta), var(--accent-color));
    transform: translateX(-100%);
    animation: loadProgress 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadProgress {
    to {
        transform: translateX(0);
    }
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Screen Wipe Reveal Effect */
#reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--maroon);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

[data-theme="dark"] #reveal-overlay {
    background: var(--dark-brown);
}

#reveal-overlay.wipe-reveal {
    animation: wipeEffect 1.2s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes wipeEffect {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    51% {
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Menu
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 900;
    transition: background-color var(--transition-medium), border var(--transition-medium), height var(--transition-medium);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.logo-accent {
    color: #7A1F1F;
    font-style: italic;
}

[data-theme="dark"] .logo-accent {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--accent-color);
}

/* Nav Underline Drawing Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast) ease, left var(--transition-fast) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: var(--transition-fast);
}

#theme-toggle:hover {
    background-color: rgba(var(--terracotta-raw), 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(15deg);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition-fast);
    padding: 4px;
}

/* --------------------------------------------------------------------------
   5. Mobile Overlay Menu
   -------------------------------------------------------------------------- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 40px;
    text-align: center;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: -40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.mobile-link:hover,
.mobile-link.active {
    opacity: 1;
    color: var(--accent-color);
    transform: scale(1.05);
}

.mobile-menu-footer {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   6. UI Elements & Layout Utilities
   -------------------------------------------------------------------------- */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.text-center-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
}

/* Handmade organic brush line */
.brush-line {
    height: 12px;
    width: 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M5 5 Q 25 1, 50 8 T 95 5' fill='none' stroke='%237A1F1F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-top: 12px;
    margin-bottom: 24px;
}

[data-theme="dark"] .brush-line {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M5 5 Q 25 1, 50 8 T 95 5' fill='none' stroke='%23C9A227' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.brush-line.center {
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #F5E6D3;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(var(--maroon-raw), 0.2);
}

[data-theme="dark"] .btn-primary {
    color: #1F150F;
    box-shadow: 0 4px 15px rgba(var(--gold-raw), 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--maroon-raw), 0.35);
    background-color: transparent;
    color: var(--accent-color);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(var(--gold-raw), 0.4);
    color: var(--accent-color);
}

.btn-secondary {
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: #FFF;
    border: 1px solid #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background-color: transparent;
    color: #25D366;
}

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

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background-image: url("assets/hero_bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(61, 43, 31, 0.85) 0%,
            rgba(122, 31, 31, 0.75) 50%,
            rgba(31, 21, 15, 0.9) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    z-index: 2;
    text-align: center;
    color: #F5E6D3;
}

.hero-tag {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #F5E6D3;
    opacity: 0.7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    pointer-events: none;
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid #F5E6D3;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #F5E6D3;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 16px;
        opacity: 0;
    }

    100% {
        top: 6px;
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-paragraph strong {
    color: var(--accent-color);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 6px;
    color: var(--text-muted);
}

/* Premium Image Stack layout */
.image-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 480px;
}

.stack-img {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.main-stack-img {
    width: 75%;
    height: 380px;
    top: 20px;
    left: 0;
    z-index: 2;
    border: 8px solid var(--bg-color);
}

.main-stack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-stack-img {
    width: 65%;
    height: 300px;
    bottom: 20px;
    right: 0;
    z-index: 1;
    opacity: 0.8;
}

.secondary-stack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Interactive Stack Hover Effects */
.image-stack:hover .main-stack-img {
    transform: translateY(-8px) scale(1.02);
    z-index: 1;
}

.image-stack:hover .secondary-stack-img {
    transform: translateY(8px) scale(1.05);
    z-index: 3;
    opacity: 1;
    border: 8px solid var(--bg-color);
}

.image-overlay-card {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--maroon);
    color: #F5E6D3;
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    border: 1px solid var(--gold);
}

[data-theme="dark"] .image-overlay-card {
    background-color: var(--dark-brown);
}

.image-overlay-card i {
    font-size: 1.2rem;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   9. Our Collections Section
   -------------------------------------------------------------------------- */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collection-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.collection-card:hover {
    transform: translateY(-8px);
    background-color: var(--card-hover-bg);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--dark-brown);
    color: var(--gold);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    border: 1px solid var(--gold);
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-card-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid #25D366;
    border-radius: 4px;
    color: #25D366;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-medium);
}

.btn-card-whatsapp:hover {
    background-color: #25D366;
    color: #FFF;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.btn-card-whatsapp i {
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   10. Crafting Process Section (Timeline)
   -------------------------------------------------------------------------- */
.process-section {
    position: relative;
    background-color: rgba(var(--maroon-raw), 0.02);
}

[data-theme="dark"] .process-section {
    background-color: rgba(0, 0, 0, 0.2);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 20px 0;
}

/* Central Timeline track line */
.timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(to bottom,
            transparent,
            transparent 4px,
            var(--accent-secondary) 4px,
            var(--accent-secondary) 8px);
    transform: translateX(-50%);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    transition: var(--transition-medium);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -16px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -16px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-secondary);
    color: var(--bg-color);
    transform: scale(1.15);
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    backdrop-filter: blur(5px);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Gallery Section (Masonry Grid & Category Filters)
   -------------------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 22px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #F5E6D3;
}

[data-theme="dark"] .filter-btn.active {
    color: #1F150F;
}

/* Core Masonry Column Layout */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-medium);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Filtering Animations Classes */
.gallery-item.hidden {
    display: none;
}

.gallery-item.fade {
    animation: fadeGrid 0.5s ease forwards;
}

@keyframes fadeGrid {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(61, 43, 31, 0.9) 0%, rgba(122, 31, 31, 0.4) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: var(--transition-medium);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay-content {
    color: #F5E6D3;
    width: 100%;
    transform: translateY(15px);
    transition: transform var(--transition-medium);
}

.gallery-item:hover .item-overlay-content {
    transform: translateY(0);
}

.gallery-item-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.gallery-item-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.expand-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1rem;
    color: #F5E6D3;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   12. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 30px 6px 30px 6px;
    /* Handmade scroll cut style */
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
    backdrop-filter: blur(5px);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 2.2rem;
    color: var(--accent-secondary);
    opacity: 0.2;
    position: absolute;
    top: 24px;
    left: 24px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.customer-info {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.customer-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-color);
}

.customer-location {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Contact & Google Maps Section
   -------------------------------------------------------------------------- */
.contact-section {
    position: relative;
    background-color: rgba(var(--maroon-raw), 0.015);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-section {
    background-color: rgba(0, 0, 0, 0.15);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(var(--terracotta-raw), 0.15);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Map Wrapper styled like an art frame */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border: 8px solid var(--card-bg);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

[data-theme="dark"] .map-wrapper {
    border-color: var(--card-bg);
}

.google-map {
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   14. Footer Section
   -------------------------------------------------------------------------- */
.footer-section {
    background-color: var(--dark-brown);
    color: #F5E6D3;
    padding-top: 80px;
    border-top: 1px solid rgba(245, 230, 211, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(245, 230, 211, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #1F150F;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.1);
    padding: 30px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   15. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition-medium);
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.tooltip-text {
    position: absolute;
    right: 75px;
    background-color: var(--dark-brown);
    color: #F5E6D3;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gold);
}

.floating-whatsapp-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   16. Gallery Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(31, 21, 15, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    color: #F5E6D3;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-secondary);
    transform: rotate(90deg);
}

.lightbox-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.lightbox-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 85vh;
}

.lightbox-content img {
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 4px solid #F5E6D3;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

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

.lightbox-caption-wrapper {
    text-align: center;
    color: #F5E6D3;
    margin-top: 20px;
    max-width: 600px;
}

.lightbox-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.lightbox-prev,
.lightbox-next {
    background: none;
    border: 1px solid rgba(245, 230, 211, 0.2);
    color: #F5E6D3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   17. Scroll-Triggered Reveal Classes & Keyframes
   -------------------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Initial load animation helpers */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag.animate-fade-up {
    animation-delay: 0.2s;
}

.hero-title.animate-fade-up {
    animation-delay: 0.4s;
}

.hero-subtitle.animate-fade-up {
    animation-delay: 0.6s;
}

.hero-buttons.animate-fade-up {
    animation-delay: 0.8s;
}

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

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints (Mobile First)
   -------------------------------------------------------------------------- */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-text-column {
        order: 1;
    }

    .about-visual-column {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

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

    .gallery-grid {
        column-count: 2;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .header-container {
        padding: 0 16px;
    }

    body {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .section-description,
    .about-paragraph,
    .step-text,
    .card-description,
    .testimonial-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .section-container {
        padding: 60px 16px;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline Mobile adjustments (sequential stack) */
    .timeline-track {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        text-align: left !important;
        padding-left: 45px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 4px;
        right: auto;
    }

    .gallery-grid {
        column-count: 1;
    }

    .image-stack {
        height: 380px;
    }

    .main-stack-img {
        width: 85%;
        height: 300px;
    }

    .secondary-stack-img {
        width: 70%;
        height: 220px;
    }

    .image-overlay-card {
        padding: 10px 14px;
        font-size: 0.75rem;
        bottom: 12px;
        right: 12px;
    }

    .footer-section {
        display: none;
    }

    .floating-whatsapp-btn {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-modal {
        padding: 20px;
    }

    .lightbox-container {
        gap: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-around;
        margin-top: 24px;
    }

    .stat-num {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .stat-lbl {
        font-size: 0.85rem;
        font-weight: 600;
    }
}