/* ==========================================================================
   Advanced Design System for Gumtree Chemicals
   ========================================================================== */

:root {
    /* Deep Space Navy Base */
    --bg-dark: #0B1E36;
    --bg-surface: #163B65;
    --bg-surface-elevated: rgba(22, 59, 101, 0.4);
    
    /* Gold Accent System */
    --gold-primary: #B9872E;
    --gold-light: #DFAB4C;
    --gold-glow: rgba(185, 135, 46, 0.3);
    --gold-gradient: linear-gradient(135deg, #EAD196 0%, #B9872E 50%, #8A6B32 100%);
    --gold-gradient-text: linear-gradient(to right, #DFAB4C, #B9872E, #DFAB4C);

    /* Navy Accents */
    --navy-glow: rgba(22, 59, 101, 0.6);
    --cyan-accent: #00E5FF;
    
    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    /* Glassmorphism System */
    --glass-bg: rgba(11, 20, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    /* Custom Scrollbar */
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

::selection {
    background: var(--gold-glow);
    color: var(--text-primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.text-secondary, .text-muted {
    color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.display-hero {
    font-size: clamp(2.2rem, 5vw + 1rem, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.text-gradient-gold {
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
    display: inline-block;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Glassmorphism & Layouts
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(197, 160, 89, 0.3);
}

/* Ambient Glow Backgrounds */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--navy-glow); animation-delay: 0s; }
.orb-2 { bottom: -20%; right: -10%; width: 40vw; height: 40vw; background: var(--gold-glow); animation-delay: -5s; }
.orb-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: rgba(0, 229, 255, 0.1); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.bento-item {
    grid-column: span 12;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bento-col-4 { grid-column: span 4; }
    .bento-col-6 { grid-column: span 6; }
    .bento-col-8 { grid-column: span 8; }
    .bento-col-12 { grid-column: span 12; }
    .bento-row-2 { grid-row: span 2; }
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Floating Navbar */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.floating-nav.scrolled {
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 0.5rem 2rem;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #dfb867 !important; /* Gold active state so it is visible against dark background */
}

/* Ensure the dropdown toggle caret matches color */
.dropdown-toggle::after {
    border-top-color: currentColor !important;
}

/* Desktop Hover Dropdown with smooth micro-animation */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown .dropdown-menu {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
        pointer-events: none;
    }
    
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.logo-badge {
    background: white;
    padding: 5px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 50px;
    height: 50px;
}

.logo-badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
}

/* Buttons */
/* Buttons */
.btn-magnetic {
    background: linear-gradient(135deg, #dfb867 0%, #c5a059 100%);
    color: #0b5394; /* Dark blue text on gold button */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem; /* Matches pill in mockup */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #FFF 0%, rgba(255,255,255,0) 50%);
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-magnetic:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
    color: #0b1426;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Specific Section Adjustments */
main {
    padding-top: 120px; /* Space for floating nav */
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Why Gumtree Chemicals? Premium Styles
   ========================================================================== */
.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.why-stat-col::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.why-pillar-col::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* On desktop, remove vertical border on last columns */
@media (min-width: 992px) {
    .why-stat-col.last-col::after {
        display: none;
    }
    .why-pillar-col.last-col::after {
        display: none;
    }
}

/* Responsive columns borders */
@media (max-width: 991px) {
    /* For 2x2 stats layout, hide right border on even items */
    .why-stat-col:nth-child(2n)::after {
        display: none;
    }
    
    /* For 3x2 pillars layout, hide right border on every 3rd pillar */
    .why-pillar-col:nth-child(3n)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .why-stat-col::after, .why-pillar-col::after {
        display: none !important;
    }
}

.pillar-hover-effect {
    cursor: default;
}

.pillar-hover-effect .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-hover-effect:hover .icon-wrapper {
    background: var(--gold-gradient);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(185, 135, 46, 0.5);
    transform: translateY(-5px) scale(1.05);
}

.pillar-hover-effect:hover .icon-wrapper i {
    background: none !important;
    -webkit-text-fill-color: var(--bg-dark) !important;
    color: var(--bg-dark) !important;
    animation: iconPulse 1s infinite alternate;
}

.pillar-hover-effect span {
    transition: color 0.3s ease;
}

.pillar-hover-effect:hover span {
    color: var(--text-primary) !important;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}
.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.15) rotate(5deg);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Markets & Purposes Section
   ========================================================================== */
.market-section {
    position: relative;
}

.section-watermark-container {
    position: relative;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.section-title-wrapper {
    position: relative;
    z-index: 1;
}

.market-image-wrapper {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 100%;
    aspect-ratio: 16 / 10; /* Wider box to show a larger landscape image */
    margin: 0 auto 2rem auto;
    box-shadow: var(--glass-shadow);
    background: rgba(11, 20, 38, 0.5);
    height: auto !important;  /* Override h-100 class */
    flex-grow: 0 !important;   /* Override flex-grow-1 class */
}

.market-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the card completely, removing borders and matching card size */
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Center the market image column vertically next to the list on desktop */
@media (min-width: 992px) {
    [class*="col-"]:has(> .market-image-wrapper) {
        justify-content: center !important;
    }
}

.market-image-wrapper:hover img {
    transform: scale(1.03);
}

/* About Page Intro Image — Portrait (550x832) */
.about-intro-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    border: none !important; /* Remove border */
    box-shadow: var(--glass-shadow);
    object-fit: cover;
    max-height: 700px;
    object-position: center top;
}

@media (min-width: 992px) {
    /* Stretch row and columns on desktop to make image height equal to text height */
    .row-about-intro {
        align-items: stretch !important;
    }
    .about-intro-col {
        display: flex !important;
        flex-direction: column;
    }
    .about-intro-img {
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        border: none !important; /* Remove border */
    }
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.market-item {
    display: flex;
    align-items: center;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
}

.market-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.market-item:hover::before {
    opacity: 1;
}

.market-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.market-item:hover .market-icon-box {
    background: var(--gold-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(185, 135, 46, 0.4);
}

.market-icon-box i {
    font-size: 1.2rem;
    color: var(--gold-light);
    transition: color 0.3s ease;
}

.market-item:hover .market-icon-box i {
    color: var(--bg-dark);
}

.market-content {
    flex-grow: 1;
}

.market-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.market-item:hover .market-title {
    color: var(--gold-light);
}

.market-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

.market-arrow {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.market-item:hover .market-arrow {
    color: var(--gold-light);
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .market-image-wrapper {
        height: 350px;
        min-height: auto;
        margin-bottom: 2rem;
        border-top-left-radius: 80px;
        border-bottom-right-radius: 80px;
    }
    .market-item {
        padding: 1.4rem 0.5rem;
    }
}

@media (min-width: 992px) {
    .market-image-wrapper {
        margin: auto;
    }
    .market-section .col-lg-6:first-child {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        display: flex;
        justify-content: center;
    }
    .market-section .col-lg-6:last-child {
        width: 66.667% !important;
        flex: 0 0 66.667% !important;
        max-width: 66.667% !important;
    }
}

/* Responsive Logo heights */
.navbar-logo {
    height: 55px;
    width: auto;
    transition: height 0.3s ease;
}

.footer-logo {
    height: 65px;
    width: auto;
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .navbar-logo {
        height: 75px;
    }
    .footer-logo {
        height: 85px;
    }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(11, 20, 38, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-collapse .dropdown-menu {
        background: rgba(22, 59, 101, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        margin-top: 0.5rem;
        border-radius: 12px;
        box-shadow: none !important;
    }
    
    .navbar-collapse .dropdown-item {
        padding-left: 1.5rem !important;
    }

    .custom-pills-layout {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .custom-pills-layout::-webkit-scrollbar {
        height: 4px;
    }
    
    .custom-pills-layout::-webkit-scrollbar-thumb {
        background: var(--gold-glow);
        border-radius: 2px;
    }
    
    .custom-pills-layout .nav-link {
        white-space: nowrap;
        margin-bottom: 0 !important;
        margin-right: 0.5rem;
        padding: 0.75rem 1.25rem !important;
    }
    
    .custom-pills-layout .nav-link:hover {
        transform: none !important;
    }
    
    /* Remove vertical border on mobile details tabs layout */
    .col-lg-8.col-xl-9.border-start {
        border-left: none !important;
    }
}

@media (max-width: 767px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem !important;
        --bs-gutter-y: 1.5rem !important;
    }
    .row.g-4 {
        --bs-gutter-x: 1.25rem !important;
        --bs-gutter-y: 1.25rem !important;
    }
}

/* ==========================================================================
   Advanced Custom Fixes & Enhancements
   ========================================================================== */

/* Navbar Dropdown Visibility Fixes */
.dropdown-item {
    transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover, .dropdown-item:focus,
.dropdown-item.text-white:hover, .dropdown-item.text-white:focus {
    background: var(--gold-gradient) !important;
    color: var(--bg-dark) !important;
}

/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(197, 160, 89, 0.3);
}

/* Card Descriptions Uniform Line-Clamp */
.productSwiper .glass-panel p, 
.blogSwiper .glass-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Blog List Grid Descriptions Uniform Line-Clamp */
.rs-product-item .rs-product-content .rs-product-price.text-start {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 5.6em; /* Keeps alignment even if text is shorter than 4 lines */
}

/* Product Details Table Contrast Fixes */
.tab-content-text table, 
.tab-content-text tr, 
.tab-content-text td, 
.tab-content-text th {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.tab-content-text td[style*="background-color"],
.tab-content-text tr[style*="background-color"] {
    background-color: rgba(255, 255, 255, 0.02) !important;
}
.tab-content-text th {
    background-color: rgba(185, 135, 46, 0.15) !important;
    color: var(--gold-light) !important;
}

/* Blog Content Premium Layout Styling */
.blog-content .highlight-box {
    background: rgba(185, 135, 46, 0.08);
    border-left: 4px solid var(--gold-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}
.blog-content .highlight-box h3 {
    margin-top: 0 !important;
    color: var(--gold-light) !important;
}
.blog-content .key-points {
    background: rgba(22, 59, 101, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
}
.blog-content .key-points h3 {
    margin-top: 0 !important;
    color: white !important;
}
.blog-content .roadmap {
    background: rgba(11, 20, 38, 0.4);
    border: 1px solid rgba(185, 135, 46, 0.2);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
}
.blog-content .roadmap h3 {
    margin-top: 0 !important;
    color: var(--gold-light) !important;
}
.blog-content blockquote {
    border-left: 4px solid var(--cyan-accent);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    color: var(--text-primary);
}
.blog-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
    background: rgba(11, 20, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}
.blog-content th, .blog-content td {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.blog-content th {
    background: rgba(185, 135, 46, 0.15) !important;
    color: var(--gold-light) !important;
    font-weight: 600;
}
.blog-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}
.blog-content tr:hover {
    background-color: rgba(185, 135, 46, 0.05);
}

/* ==========================================================================
   Contact Page Premium Dark/Glass Styling
   ========================================================================== */
.col-lg-7 .card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    color: var(--text-primary) !important;
}

.col-lg-7 .card h3 {
    color: var(--text-primary) !important;
}

/* Form Inputs matching the dark theme */
.col-lg-7 .card .form-control {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.col-lg-7 .card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--gold-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(185, 135, 46, 0.25) !important;
}

/* Floating labels color overrides */
.col-lg-7 .card .form-floating > label {
    color: var(--text-secondary) !important;
}

.col-lg-7 .card .form-floating > .form-control:focus ~ label,
.col-lg-7 .card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--gold-light) !important;
}

/* Submit Button styled as gold gradient */
.col-lg-7 .card .btn-primary {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(185, 135, 46, 0.2) !important;
}

.col-lg-7 .card .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(185, 135, 46, 0.4) !important;
}

/* Contact Info Column Styling */
.col-lg-5 h2 {
    color: var(--text-primary) !important;
}

.col-lg-5 .icon-box {
    background: rgba(185, 135, 46, 0.08) !important;
    border: 1px solid rgba(185, 135, 46, 0.15) !important;
    color: var(--gold-light) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.col-lg-5 h5 {
    color: var(--text-primary) !important;
}

.col-lg-5 strong {
    color: var(--gold-light) !important;
}

.col-lg-5 .text-muted {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   Creative Upgrade - Molecular Canvas Background
   ========================================================================== */
#bonding-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* ==========================================================================
   Creative Upgrade - Substrate Simulator Widget
   ========================================================================== */
.simulator-widget {
    background: rgba(11, 20, 38, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(185, 135, 46, 0.25) !important;
    border-radius: 32px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.simulator-widget:hover {
    transform: translateY(-2px) rotate(1deg) !important;
    box-shadow: 0 25px 60px rgba(185, 135, 46, 0.15) !important;
}

.sim-select {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
}

.sim-select:focus {
    border-color: var(--gold-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(185, 135, 46, 0.25) !important;
}

.sim-select option {
    background: #0B1E36 !important;
    color: white !important;
}

.sim-btn {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 15px rgba(185, 135, 46, 0.3) !important;
    transition: all 0.3s ease !important;
}

.sim-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(185, 135, 46, 0.5) !important;
}

/* ==========================================================================
   Creative Upgrade - Button Shimmer Sheen Effect
   ========================================================================== */
.btn-magnetic, .btn-primary, .btn-ghost {
    position: relative;
    overflow: hidden;
}

.btn-magnetic::after, .btn-primary::after, .btn-ghost::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.13);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.btn-magnetic:hover::after, .btn-primary:hover::after, .btn-ghost:hover::after {
    left: 150%;
    transition: all 0.8s ease-in-out;
}

/* ==========================================================================
   Creative Upgrade - Delay reveals
   ========================================================================== */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* Prevent flash of visible elements during Turbo preview/loading state */
html[data-turbo-preview] .reveal {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: none !important;
}

/* Hover Zoom Effect for Hero Video Container */
section .col-lg-4 .glass-panel:not(.simulator-widget),
section .col-lg-5 .glass-panel:not(.simulator-widget) {
    transition: box-shadow 0.4s ease !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

section .col-lg-4 .glass-panel:not(.simulator-widget):hover,
section .col-lg-5 .glass-panel:not(.simulator-widget):hover {
    box-shadow: 0 25px 60px rgba(185, 135, 46, 0.3) !important;
}

section .col-lg-4 .glass-panel:not(.simulator-widget) video,
section .col-lg-5 .glass-panel:not(.simulator-widget) video {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: scale(1.0) !important;
    border-radius: 0 !important;
}

/* Remove hover zoom effect from video */
section .col-lg-4 .glass-panel:not(.simulator-widget):hover video,
section .col-lg-5 .glass-panel:not(.simulator-widget):hover video {
    transform: scale(1.0) !important;
}



/* About page sealant image — always visible (swap handled by JS) */
.page-header ~ .container img[src*="sealant_application"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hero Video Mobile & Responsive Layout Adjustments */
@media (max-width: 991px) {
    section .col-lg-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 1rem !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    section .col-lg-5 .glass-panel {
        width: 100% !important;
        max-width: 480px !important;
        aspect-ratio: 16/9 !important;
    }
    section .col-lg-5 .glass-panel video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }
    section.position-relative {
        padding-bottom: 3rem !important;
    }
}