/* ============================================
   Velvet Suds - Unified Professional Design
   ============================================ */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:wght@300;400;600;700&display=swap');

/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
    /* Colors */
    --primary-color: #5D4E7B;
    --primary-dark: #4a3e63;
    --primary-light: #7a6a9a;
    --secondary-color: #D4AF37;
    --secondary-dark: #b8941f;
    --secondary-light: #e8c85a;
    
    /* Backgrounds */
    --bg-soft: #FDFBF7;
    --bg-white: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #FDFBF7 0%, #F5F1E8 50%, #FDFBF7 100%);
    --bg-gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --bg-overlay: linear-gradient(135deg, rgba(93, 78, 123, 0.85) 0%, rgba(74, 62, 99, 0.75) 50%, rgba(0, 0, 0, 0.4) 100%);
    
    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-soft: #666;
    --text-light: #999;
    --text-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-elegant: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(93, 78, 123, 0.15);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-gradient);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Text color adapts to background */
section:not(.trust-section):not(.hero-section) h1,
section:not(.trust-section):not(.hero-section) h2,
section:not(.trust-section):not(.hero-section) h3,
section:not(.trust-section):not(.hero-section) h4,
section:not(.trust-section):not(.hero-section) h5,
section:not(.trust-section):not(.hero-section) h6 {
    color: var(--text-dark);
}

section:not(.trust-section):not(.hero-section) p {
    color: var(--text-soft);
}

/* Dark background sections - white text */
.trust-section,
.hero-section {
    color: var(--text-white);
}

.trust-section h1,
.trust-section h2,
.trust-section h3,
.trust-section h4,
.trust-section h5,
.trust-section h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
    color: var(--text-white);
}

.trust-section p,
.hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Light background sections - dark text */
.bg-white,
.bg-light,
.bg-soft,
section:not(.trust-section):not(.hero-section) {
    color: var(--text-dark);
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6,
.bg-soft h1,
.bg-soft h2,
.bg-soft h3,
.bg-soft h4,
.bg-soft h5,
.bg-soft h6 {
    color: var(--text-dark);
}

.bg-white p,
.bg-light p,
.bg-soft p {
    color: var(--text-soft);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.1rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-soft);
    line-height: 1.8;
}

/* Ensure text is readable on all backgrounds */
.text-muted {
    color: var(--text-soft) !important;
}

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

/* Override Bootstrap text colors for dark sections */
.trust-section .text-muted,
.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.trust-section .text-secondary,
.hero-section .text-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
}

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

a:hover {
    color: var(--secondary-color);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 0;
    transition: all var(--transition-fast);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
    font-style: italic;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    display: inline-block;
    cursor: pointer;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 34px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-white);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    border: none;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(93, 78, 123, 0.03), rgba(212, 175, 55, 0.03));
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::after {
    opacity: 1;
}

.product-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
}

.product-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.product-card:hover .product-img-wrapper::before {
    opacity: 1;
}

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

.product-card:hover .product-img-wrapper img {
    transform: scale(1.12);
}

.product-card .card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.product-card .card-body p {
    flex: 1;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    padding: 2.5rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fffcf5 0%, #ffffff 100%);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotate(15deg) scale(1.15);
    background: white;
    box-shadow: var(--shadow-gold);
}

.feature-card:hover .feature-icon-wrapper::after {
    opacity: 1;
}

.feature-card:hover .feature-icon-wrapper i {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
    clear: both;
}

/* Ensure about section doesn't overlap hero */
#about {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 5rem;
    background: var(--bg-white);
    clear: both;
    isolation: isolate;
}

/* Prevent any floating/overlapping between sections */
header.hero-section {
    position: relative;
    z-index: 1;
}

header.hero-section + section,
.hero-section + section {
    position: relative;
    z-index: 2;
    margin-top: 0;
    background: var(--bg-white);
}

.bg-soft {
    background: var(--bg-gradient) !important;
}

/* ============================================
   Text Color Adaptation for Different Backgrounds
   ============================================ */

/* Default: Light backgrounds use dark text */
section:not(.trust-section):not(.hero-section) {
    color: var(--text-dark);
}

section:not(.trust-section):not(.hero-section) h1,
section:not(.trust-section):not(.hero-section) h2,
section:not(.trust-section):not(.hero-section) h3,
section:not(.trust-section):not(.hero-section) h4,
section:not(.trust-section):not(.hero-section) h5,
section:not(.trust-section):not(.hero-section) h6 {
    color: var(--text-dark) !important;
}

section:not(.trust-section):not(.hero-section) p,
section:not(.trust-section):not(.hero-section) .text-muted,
section:not(.trust-section):not(.hero-section) .text-secondary {
    color: var(--text-soft) !important;
}

/* White background sections - ensure dark text */
.bg-white,
.bg-light {
    color: var(--text-dark) !important;
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--text-dark) !important;
}

.bg-white p,
.bg-white .text-muted,
.bg-white .text-secondary,
.bg-light p,
.bg-light .text-muted,
.bg-light .text-secondary {
    color: var(--text-soft) !important;
}

/* Soft gradient background - dark text */
.bg-soft {
    color: var(--text-dark) !important;
}

.bg-soft h1,
.bg-soft h2,
.bg-soft h3,
.bg-soft h4,
.bg-soft h5,
.bg-soft h6 {
    color: var(--text-dark) !important;
}

.bg-soft p,
.bg-soft .text-muted,
.bg-soft .text-secondary {
    color: var(--text-soft) !important;
}

/* Dark background sections - white text */
.trust-section,
.hero-section {
    color: var(--text-white) !important;
}

.trust-section h1,
.trust-section h2,
.trust-section h3,
.trust-section h4,
.trust-section h5,
.trust-section h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
    color: var(--text-white) !important;
}

.trust-section p,
.trust-section .text-muted,
.trust-section .text-secondary,
.hero-section p,
.hero-section .text-muted,
.hero-section .text-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Override Bootstrap utility classes for dark sections */
.trust-section .text-white,
.hero-section .text-white {
    color: var(--text-white) !important;
}

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

/* Ensure lead text is readable */
.lead {
    color: inherit;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

.bg-white .lead,
.bg-light .lead,
.bg-soft .lead {
    color: var(--text-soft) !important;
}

.trust-section .lead,
.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ============================================
   Marquee
   ============================================ */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-color), transparent);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: fit-content;
    animation: scroll 25s linear infinite;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Animations
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform var(--transition-fast), 
                box-shadow var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* ============================================
   Scroll Snap - Curated For You
   ============================================ */
.scroll-snap-x {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
    gap: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Mobile only: align cards from start so one full card shows (no half-and-half) */
@media (max-width: 767.98px) {
    .scroll-snap-x {
        justify-content: flex-start;
        padding: 0 0.5rem 2rem;
        gap: 1.25rem;
        scroll-padding-inline: 0.5rem;
    }
}

.scroll-snap-x::-webkit-scrollbar {
    display: none;
}

.scroll-snap-card {
    transition: transform 0.3s ease;
}

/* Mobile only: one card at a time, snap to start */
@media (max-width: 767.98px) {
    .scroll-snap-card {
        flex: 0 0 85%;
        min-width: 0;
        scroll-snap-align: start;
    }
}

.scroll-snap-card:hover {
    transform: scale(1.02);
}

/* Desktop: centered row, multiple cards visible */
@media (min-width: 768px) {
    .scroll-snap-x {
        justify-content: center;
    }
    .scroll-snap-card {
        flex: 0 0 32%;
        scroll-snap-align: center;
    }
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.trust-item {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.trust-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.trust-item i {
    transition: all var(--transition-fast);
    display: inline-block;
}

.trust-item:hover i {
    transform: scale(1.3) rotate(5deg);
    color: var(--secondary-light) !important;
}

.trust-item h6 {
    transition: color var(--transition-fast);
}

.trust-item:hover h6 {
    color: var(--secondary-color) !important;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--bg-gradient-dark);
    color: var(--text-white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    padding-left: 15px;
}

footer a:hover::before {
    width: 8px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    padding-left: 0;
}

.social-icons a i {
    position: relative;
    z-index: 1;
}

/* ============================================
   Floating Contact Buttons
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-float {
    width: 64px;
    height: 64px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.btn-float:hover::before {
    transform: scale(1);
}

.btn-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    color: white;
}

.btn-float.phone {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.btn-float.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.letter-spacing-3 { letter-spacing: 3px; }

.text-secondary-light {
    color: rgba(255, 255, 255, 0.8);
}

/* Text color utilities that adapt to background */
.text-adaptive {
    color: var(--text-dark);
}

.bg-white .text-adaptive,
.bg-light .text-soft .text-adaptive,
section:not(.trust-section):not(.hero-section) .text-adaptive {
    color: var(--text-dark);
}

.trust-section .text-adaptive,
.hero-section .text-adaptive {
    color: var(--text-white);
}

/* Force text colors for specific backgrounds */
[style*="background"] h1,
[style*="background"] h2,
[style*="background"] h3,
[style*="background"] h4,
[style*="background"] h5,
[style*="background"] h6 {
    color: var(--text-dark);
}

[style*="background-color: var(--primary-color)"] h1,
[style*="background-color: var(--primary-color)"] h2,
[style*="background-color: var(--primary-color)"] h3,
[style*="background-color: var(--primary-color)"] h4,
[style*="background-color: var(--primary-color)"] h5,
[style*="background-color: var(--primary-color)"] h6,
[style*="background-color: var(--primary-color)"] p {
    color: var(--text-white) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .product-img-wrapper {
        height: 220px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog Header Section */
.blog-header-section {
    padding: 4rem 0;
    background: var(--bg-gradient);
}

/* Blog Card */
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--bg-soft);
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.blog-read-more {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 1.75rem;
}

.blog-meta {
    margin-bottom: 0.75rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
}

.blog-date i {
    color: var(--secondary-color);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Blog Post Hero */
.blog-post-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    margin-bottom: 0;
}

.blog-post-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.blog-post-header {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.blog-post-badge {
    margin-bottom: 1.5rem;
}

.blog-post-badge span {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-post-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Ensure h1 in blog post hero is white */
.blog-post-hero h1,
.blog-post-hero .blog-post-title,
.blog-post-header h1,
.blog-post-header .blog-post-title {
    color: #ffffff !important;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.9rem;
}

.blog-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}

.blog-post-meta .meta-item i {
    color: var(--secondary-color);
    text-shadow: none;
}

.meta-divider {
    color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Blog Post Content */
.blog-post-content-section {
    background: var(--bg-white);
    padding: 4rem 0;
}

.blog-post-article {
    background: var(--bg-white);
}

.blog-post-excerpt {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-soft);
}

.blog-post-excerpt .lead {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    font-family: var(--font-heading);
}

.blog-post-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
    color: var(--text-soft);
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-body h2 {
    font-size: 2rem;
}

.blog-post-body h3 {
    font-size: 1.5rem;
}

.blog-post-body h4 {
    font-size: 1.25rem;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-body li {
    margin-bottom: 0.75rem;
    color: var(--text-soft);
}

.blog-post-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-soft);
    font-size: 1.2rem;
}

/* Share Section */
.blog-post-share {
    text-align: center;
    padding: 3rem 0;
    margin: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.share-divider {
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    margin: 0 auto 1.5rem;
}

.share-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-email {
    background: var(--primary-color);
}

.share-whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Back to Blog Button */
.blog-post-footer {
    text-align: center;
    padding-top: 2rem;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.back-to-blog-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Related Posts Section */
.related-posts-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .floating-contact,
    footer,
    .blog-post-share,
    .back-to-blog-btn {
        display: none;
    }
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 60vh;
        padding-bottom: 2rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-excerpt .lead {
        font-size: 1.2rem;
    }
    
    .blog-post-body {
        font-size: 1rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
}

/* Testimonials Carousel */
#reviews .carousel {
    padding-bottom: 2rem;
}
#reviews .carousel-inner {
    min-height: 280px;
}
#reviews .testimonials-slide-card {
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-fast);
}
#reviews .carousel-control-prev,
#reviews .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: var(--bg-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    opacity: 1;
    border: 1px solid rgba(0,0,0,0.08);
}
#reviews .carousel-control-prev { left: -24px; }
#reviews .carousel-control-next { right: -24px; }
#reviews .carousel-control-prev-icon,
#reviews .carousel-control-next-icon {
    filter: invert(1);
    opacity: 0.7;
}
#reviews .carousel-control-prev:hover,
#reviews .carousel-control-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
#reviews .carousel-control-prev:hover .carousel-control-prev-icon,
#reviews .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
    opacity: 1;
}
#reviews .carousel-indicators {
    bottom: -0.5rem;
}
#reviews .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-light);
    opacity: 0.5;
}
#reviews .carousel-indicators .active {
    background-color: var(--secondary-color);
    opacity: 1;
}
@media (max-width: 768px) {
    #reviews .carousel-control-prev { left: 8px; }
    #reviews .carousel-control-next { right: 8px; }
    #reviews .carousel-control-prev,
    #reviews .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}
