@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Professional Palette: Trustworthy, Premium, Timeless */
    --primary: #0f172a;
    /* Deep Navy / Midnight */
    --primary-light: #1e293b;
    --secondary: #334155;
    /* Slate */
    --accent: #ca8a04;
    /* Muted Gold/Bronze - Subtle Luxury */
    --accent-hover: #a16207;

    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    /* Very light slate/grey */
    --bg-dark: #0f172a;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --border: #e2e8f0;
    --border-dark: #1e293b;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 4px;
    --radius: 8px;
    /* Sharper corners for professionalism */
    --container-width: 1280px;
    --header-height: 82px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Semantic Colors */
    --success: #10b981;
    --info: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Typography Mapping */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
    --font-nav: 'Outfit', sans-serif;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-main);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.italic {
    font-style: italic;
}

[data-theme="dark"] {
    --bg-main: #020617;
    /* Slate 950 */
    --bg-alt: #0f172a;
    /* Slate 900 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --card-bg: #0f172a;
    /* Brand Primary for Dark Mode */
    --primary: #c5a059;
    --primary-light: #d4b47a;
    /* Adjust accent for dark mode contrast */
    --accent: #ca8a04;
    --dark-mode-invert: 1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: inherit;
    /* Allow sections to define their own heading colors */
    font-weight: 700;
    line-height: 1.2;
}

/* Ensure headings have a default color when not in a special container */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: var(--text-main);
}

/* Contrast fix for dark background sections and containers */
section[style*="background: var(--primary)"],
section[style*="background: var(--bg-dark)"],
[style*="background: var(--primary)"],
[style*="background: var(--bg-dark)"],
.stats-section {
    color: white !important;
}

section[style*="background: var(--primary)"] h1,
section[style*="background: var(--primary)"] h2,
section[style*="background: var(--primary)"] h3,
section[style*="background: var(--primary)"] h4,
section[style*="background: var(--primary)"] h5,
section[style*="background: var(--primary)"] h6,
section[style*="background: var(--bg-dark)"] h1,
section[style*="background: var(--bg-dark)"] h2,
section[style*="background: var(--bg-dark)"] h3,
section[style*="background: var(--bg-dark)"] h4,
section[style*="background: var(--bg-dark)"] h5,
section[style*="background: var(--bg-dark)"] h6,
[style*="background: var(--primary)"] h1,
[style*="background: var(--primary)"] h2,
[style*="background: var(--primary)"] h3,
[style*="background: var(--primary)"] h4,
[style*="background: var(--primary)"] h5,
[style*="background: var(--primary)"] h6,
[style*="background: var(--bg-dark)"] h1,
[style*="background: var(--bg-dark)"] h2,
[style*="background: var(--bg-dark)"] h3,
[style*="background: var(--bg-dark)"] h4,
[style*="background: var(--bg-dark)"] h5,
[style*="background: var(--bg-dark)"] h6,
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6 {
    color: white !important;
}

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

button {
    cursor: pointer;
    font-family: var(--font-body);
}

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

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Professional Sticky */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    height: 70px;
    /* Slight shrink */
}

.navbar .container {
    max-width: var(--container-width);
    width: 100%;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.nav-toggle,
.toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-toggle:hover,
.toggle-btn:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 10px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo i {
    color: var(--accent);
}

/* Minimalist Header & Toggles from Image Assets */
.minimal-header {
    height: var(--header-height);
    padding: 0 60px;
    background: var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.minimal-header.centered {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.minimal-header.centered .minimal-logo {
    grid-column: 2;
}

.minimal-header.centered .minimal-actions {
    grid-column: 3;
    justify-content: flex-end;
}

.minimal-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.minimal-logo i {
    color: var(--accent);
    font-size: 1.6rem;
}

.minimal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    :root {
        --header-height: 60px;
    }

    .mobile-only {
        display: flex !important;
    }

    .minimal-header {
        padding: 0 12px;
    }
}

.minimal-separator {
    width: 1px;
    height: 30px;
    background: var(--border);
    margin: 0 5px;
}

.toggle-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    /* Very light circular border */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
}

[data-theme="dark"] .toggle-circle {
    border-color: rgba(255, 255, 255, 0.1);
}

.toggle-circle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-alt);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none; /* Removed dots */
}

.mobile-nav-item {
    display: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

[data-theme="dark"] .nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
    z-index: 1100;
}

li:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown-menu li a:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}

/* Hero Section - Professional & Parallax */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-main);
    padding-top: var(--header-height);
}

.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    background: url('Assets/hero1.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
    transform: translateZ(-1px) scale(2);
    /* CSS Parallax base */
}

/* Overlay to ensure text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-main);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.hero .hero-title {
    color: white;
    /* Specifically for index.html hero which has dark overlay */
}

.hero-description,
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
}

.hero .hero-description {
    color: #cbd5e1;
    /* For index.html dark hero */
}

/* Sections */
.section {
    padding: 100px 0;
    background: var(--bg-main);
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-eyebrow {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.75rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Featured / Collections Grid */
.curated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Global Asymmetric Splits (Mirrored from Dashboard) */
.dashboard-split-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .dashboard-split-2-1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.collection-card {
    position: relative;
    height: 500px;
    cursor: pointer;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.collection-card:hover .collection-img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

.collection-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.collection-link {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.collection-card:hover .collection-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stats / Trust Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Assets/bg-pattern.png') repeat;
    opacity: 0.03;
    pointer-events: none;
}

/* Responsive Layouts using auto-fit & minmax */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 50px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 1.1rem; /* Increased size */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.9;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

/* Footer Styles */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 100px 0 50px;
}

.footer .logo {
    color: white;
}

.footer p {
    color: #94a3b8;
}

.footer .container {
    max-width: 1400px;
    /* Constrain footer for better alignment on large screens */
    margin: 0 auto;
}

.footer-top,
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

@media (max-width: 1200px) {

    .footer-top,
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {

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

@media (max-width: 576px) {

    .footer-top,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4,
.footer-title {
    color: white;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #94a3b8;
    margin-left: 30px;
}

.footer-bottom a:hover {
    color: white;
}

.footer input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    color: white;
    border-radius: var(--radius-sm);
    width: 100%;
    outline: none;
    transition: var(--transition);
}

.footer input[type="email"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.footer .btn {
    padding: 12px 20px;
}


/* New Grid Utilities for Home 2 */
.feature-split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: clamp(30px, 5vw, 80px);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

@media (min-width: 993px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry-item-tall {
        grid-row: span 2;
        min-height: 400px;
    }

    .masonry-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 40px !important;
        /* Increased gap for clear separation */
    }

    .masonry-item-tall,
    .masonry-item-wide,
    .masonry-item-box {
        grid-row: auto !important;
        grid-column: auto !important;
        min-height: 350px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 40px 20px !important;
        margin-bottom: 0;
    }

    /* Ensure all flex containers inside blocks center their content */
    .masonry-item-box div,
    .masonry-item-wide,
    .masonry-item-tall,
    .glass-box div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Fixed Avatar and Quote Alignment - Center stack for better mobile ergonomics */
    .masonry-item-wide div[style*="display: flex"],
    .glass-box div[style*="display: flex"],
    .masonry-grid div[style*="display: flex"] {
        flex-direction: column !important;
        /* Stack vertically for clarity */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
        text-align: center !important;
    }

    /* Ensure text within these flex boxes is also centered */
    .masonry-item-wide div[style*="display: flex"] div,
    .glass-box div[style*="display: flex"] div {
        text-align: center !important;
    }

    .masonry-item-wide div[style*="font-size: 5rem"] {
        font-size: 3rem !important;
        margin-bottom: 0 !important;
    }
}

.masonry-item-box {
    min-height: 180px;
    transition: var(--transition);
}

.masonry-item-box h2,
.masonry-item-box h3,
.masonry-item-box .h3 {
    color: white !important;
}

.masonry-item-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.narratives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

/* Mobile constraints handled by minmax, removing aggressive media query overrides */
@media (max-width: 992px) {
    .navbar .container {
        padding: 0 10px;
        gap: 10px;
        /* Reduced gap between segments */
    }

    .nav-separator,
    .nav-actions .btn,
    .nav-actions .nav-separator {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

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

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3rem);
    }

    #menu-toggle {
        display: flex !important;
        order: 2;
        /* Move it before actions or keep it close */
        width: 34px;
        height: 34px;
        margin-left: 5px;
    }

    .logo {
        font-size: 1rem;
        margin-right: auto;
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-actions {
        order: 3;
        gap: 4px;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        /* Removed overflow:hidden to allow shadows to breathe if added later */
    }

    .hero,
    .hero-2,
    header.section {
        text-align: center !important;
        padding: 120px 15px 40px 15px !important;
        /* Increased padding-top to clear navbar */
    }

    .section {
        text-align: center !important;
        padding: 40px 15px !important;
    }

    .hero,
    .hero-2,
    .section {
        width: 100% !important;
        overflow-x: hidden;
    }

    .footer {
        padding: 60px 0 30px !important;
    }

    .footer-top,
    .footer-grid {
        gap: 30px !important;
        margin-bottom: 40px !important;
        padding-bottom: 30px !important;
    }

    .hero-content,
    .hero-2 .hero-content {
        margin: 0 auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        width: 100% !important;
    }

    .hero-desc,
    .hero-description,
    .hero-2 .hero-desc,
    .section-desc,
    .section p {
        margin: 0 auto 30px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .hero-label,
    .product-cat,
    .section-eyebrow {
        text-align: center !important;
    }

    .section-header {
        margin-bottom: 30px !important;
    }

    .section ul {
        text-align: left !important;
        display: inline-block;
        margin: 0 auto 30px !important;
    }

    .curated-grid,
    .feature-split-grid,
    .hero-container-responsive,
    .dashboard-split-2-1,
    .stats-grid,
    .journal-grid,
    .masonry-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 25px !important;
        /* Reduced gap for all grids on mobile */
    }

    /* Target all reveal wrappers within these grids for consistent spacing */
    .masonry-grid>.reveal,
    .curated-grid>.reveal,
    .journal-grid>.reveal,
    .masonry-item-tall,
    .masonry-item-wide,
    .masonry-item-box {
        margin-bottom: 10px !important;
        /* Minimal fallback spacer */
        width: 100% !important;
    }

    .reveal {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        /* Removed global margin:0 which was killing spacers */
    }

    img {
        width: 100% !important;
        height: auto;
    }

    /* Protect small avatars, icons, and logos from stretching */
    .avatar,
    [style*="width: 50px"],
    [style*="width: 60px"],
    [style*="width: 45px"],
    [style*="width: 40px"] {
        width: revert !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* Fixed dimensions for square/circle components to prevent 'white holes' */
    img[style*="width: 50px"] {
        width: 50px !important;
        height: 50px !important;
        object-fit: cover !important;
        display: block !important;
    }

    img[style*="width: 40px"] {
        width: 40px !important;
        height: 40px !important;
        object-fit: cover !important;
        display: block !important;
    }

    img[style*="width: 45px"] {
        width: 45px !important;
        height: 45px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .hero-image-responsive {
        height: 300px !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
        border-radius: 20px !important;
    }

}

@media (max-width: 360px) {
    .logo {
        font-size: 0.85rem !important;
        gap: 2px !important;
    }

    .nav-toggle,
    #menu-toggle {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        font-size: 0.75rem !important;
    }

    .nav-actions .btn {
        display: none !important;
        /* Hide Login button on mobile */
    }

    .nav-actions {
        gap: 3px !important;
    }

    .navbar .container {
        padding: 0 5px !important;
    }
}

/* Home 2 Hero Specifics - Moved from inline */
.hero-container-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-image-responsive {
    border-radius: 50px 0 50px 0;
    width: 100%;
    max-width: 550px;
    height: 380px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    /* Negative horizontal shadow to keep it inside the screen on mobile */
    box-shadow: -15px 15px 0 var(--primary);
}

@media (max-width: 768px) {
    .hero-image-responsive {
        height: 300px !important;
    }
}

@media (min-width: 769px) {
    .hero-image-responsive {
        box-shadow: 30px 30px 0 var(--primary);
    }
}

/* Global Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Liquid Background System */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: var(--bg-main);
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent);
    opacity: 0.08;
    filter: blur(100px);
    border-radius: 50%;
    animation: blobMove 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob:nth-child(2) {
    background: var(--primary);
    width: 700px;
    height: 700px;
    right: -150px;
    top: -150px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob:nth-child(3) {
    background: var(--primary-light);
    width: 500px;
    height: 500px;
    left: -100px;
    bottom: -100px;
    animation-delay: -10s;
    animation-duration: 22s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 80px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 60px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

[data-theme="dark"] .bg-grid {
    opacity: 0.05;
}

/* Footer Social Icons Visibility */
.footer .toggle-btn {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer .toggle-btn:hover {
    background: var(--accent);
    color: var(--primary) !important;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Utility to hide/show on mobile */
.hide-mobile {
    display: block;
}

.hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: block !important;
    }

    /* Mobile Navigation & Scroll Fix */
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--bg-main) !important;
        padding: 40px 20px !important;
        border-bottom: 1px solid var(--border) !important;
        box-shadow: var(--shadow) !important;
        gap: 20px !important;
        text-align: center !important;
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile Dropdown Fix */
    .nav-links.active .dropdown-menu {
        position: static !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: var(--bg-alt) !important;
        margin-top: 10px !important;
        width: 100% !important;
    }

    .nav-links.active li:active > .dropdown-menu,
    .nav-links.active li:focus-within > .dropdown-menu,
    .nav-links.active .nav-link.active + .dropdown-menu {
        display: block !important;
    }

    .nav-links.active .dropdown-menu li a {
        padding: 12px 20px !important;
        color: var(--text-main) !important;
    }
    .nav-actions {
        display: none !important; 
    }

    /* Mobile-specific headline scaling */
    .hero-content h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .stat-item h3 {
        font-size: 2.5rem !important;
    }

    .stats-grid {
        gap: 30px !important;
    }

    .curated-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.75rem !important;
    }

    .btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .section-eyebrow {
        letter-spacing: 2px;
    }
}