/* =====================================================
   VebX Metal Pvt Ltd — Premium Light Design System
   ===================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Brand Colors — Rich Gold */
    --primary: #b8860b;
    --primary-dark: #946c09;
    --primary-light: #d4a017;
    --primary-custom: #b8860b;
    --primary-subtle: rgba(184, 134, 11, 0.08);
    --primary-glow: rgba(184, 134, 11, 0.18);

    /* Neutrals — Clean Whites & Grays */
    --white: #ffffff;
    --off-white: #fafbfc;
    --light-bg: #f5f6f8;
    --card-bg: #ffffff;
    --border-color: #e8eaee;
    --border-light: #f0f1f3;

    /* Text */
    --text-dark: #1a1d23;
    --text-heading: #0f1117;
    --text-body: #4a4f5c;
    --text-muted: #7c8291;
    --text-light: #a0a5b0;

    /* Gradient */
    --gradient-gold: linear-gradient(135deg, #b8860b 0%, #d4a017 50%, #e6b422 100%);
    --gradient-hero: linear-gradient(135deg, #fafbfc 0%, #f0ece3 50%, #fafbfc 100%);
    --gradient-section-alt: linear-gradient(180deg, #f5f6f8 0%, #ffffff 100%);

    /* Shadows — Soft & Elegant */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(184, 134, 11, 0.08);
    --shadow-gold: 0 8px 30px rgba(184, 134, 11, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-py: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.tracking-wider {
    letter-spacing: 0.15em;
}

.max-w-md {
    max-width: 680px;
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =====================================================
   NAVBAR — Frosted Glass White
   ===================================================== */
#mainNavbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
    box-shadow: none;
}

#mainNavbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

#mainNavbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading) !important;
    letter-spacing: -0.02em;
}

#mainNavbar .navbar-brand i {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mainNavbar .nav-link {
    color: var(--text-body) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

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

#mainNavbar .nav-link.active {
    color: var(--text-heading) !important;
}

#mainNavbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.navbar-toggler {
    border: 1px solid var(--border-color) !important;
    padding: 0.4rem 0.6rem;
}

/* --- Primary CTA Button --- */
.btn-primary-custom {
    background: var(--gradient-gold);
    border: none;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.6s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(184, 134, 11, 0.3);
    color: var(--white) !important;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

/* --- Outline Button --- */
.btn-outline-primary-custom {
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 0.55rem 1.8rem;
    background: transparent;
    transition: var(--transition-smooth);
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 1.5px solid var(--text-heading) !important;
    color: var(--text-heading) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.btn-outline-dark:hover {
    background: var(--text-heading);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   HERO SECTION — Warm Gradient
   ===================================================== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Decorative orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -15px) scale(1.1); }
}

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

.hero-text .badge {
    background: var(--primary-subtle) !important;
    color: var(--primary) !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

.hero-text h1 .text-primary-custom {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .lead {
    color: var(--text-body) !important;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 520px;
}

/* Hero Image */
.hero-image-wrapper {
    background: var(--white) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-image-wrapper .placeholder-overlay {
    background: var(--light-bg) !important;
    border-radius: var(--radius-md);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
#about {
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

#about .placeholder-wrapper {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#about .placeholder-overlay {
    background: var(--light-bg) !important;
}

#about h2 {
    color: var(--text-heading);
}

#about p.text-muted {
    color: var(--text-body) !important;
    line-height: 1.8;
}

#about .fw-medium {
    color: var(--text-dark);
}

#about .fa-check-circle {
    color: var(--primary) !important;
}

/* =====================================================
   WHY CHOOSE US — Soft Alt Background
   ===================================================== */
#why-choose-us {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative circle */
#why-choose-us::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#why-choose-us h2 {
    color: var(--text-heading);
}

#why-choose-us p.text-muted {
    color: var(--text-body) !important;
}

/* Feature Cards */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

#why-choose-us .card {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

#why-choose-us .card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(184, 134, 11, 0.15) !important;
}

#why-choose-us .card h5 {
    color: var(--text-heading);
    font-size: 1rem;
}

#why-choose-us .card p {
    color: var(--text-body) !important;
}

#why-choose-us .icon-box {
    background: var(--primary-subtle) !important;
    border: 1px solid rgba(184, 134, 11, 0.1);
    transition: var(--transition-smooth);
}

#why-choose-us .card:hover .icon-box {
    background: rgba(184, 134, 11, 0.12) !important;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.1);
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
#products {
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

#products h2 {
    color: var(--text-heading);
}

/* Product Cards */
.product-card {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.product-card .placeholder-overlay {
    background: var(--light-bg) !important;
    position: relative;
    overflow: hidden;
}

.product-card .placeholder-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(184, 134, 11, 0.04) 50%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

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

.product-card .card-title {
    color: var(--text-heading) !important;
    font-weight: 700;
}

.product-card .card-text {
    color: var(--text-body) !important;
}

.product-card .btn-outline-primary-custom {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
}

/* =====================================================
   INQUIRY FORM
   ===================================================== */
#inquiry {
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
}

#inquiry .card {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Gold accent line at top of card */
#inquiry .card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 0 0 3px 3px;
}

#inquiry h2 {
    color: var(--text-heading);
}

#inquiry .form-label {
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
}

#inquiry .form-control,
#inquiry .form-select {
    background: var(--light-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

#inquiry .form-control:focus,
#inquiry .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12) !important;
    background: var(--white) !important;
}

#inquiry .form-control::placeholder {
    color: var(--text-light);
}

/* =====================================================
   FOOTER — Deep Charcoal
   ===================================================== */
footer {
    background: #111318 !important;
    border-top: none;
}

footer .text-secondary {
    color: #8a8f9a !important;
}

footer h5 {
    color: var(--white) !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

footer .footer-links a {
    color: #8a8f9a !important;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

footer .footer-links a:hover {
    color: var(--primary) !important;
    padding-left: 4px;
}

footer .navbar-brand {
    color: var(--white) !important;
}

footer .navbar-brand i {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer a.opacity-75:hover {
    opacity: 1 !important;
    color: var(--primary) !important;
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

footer address p {
    font-size: 0.9rem;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-content {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--light-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-header .modal-title {
    color: var(--primary) !important;
}

.modal-body .list-group-item {
    border-color: var(--border-color) !important;
}

.modal-footer {
    background: var(--light-bg) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* =====================================================
   SUB-PAGE STYLES (Cable Glands, Components)
   ===================================================== */

/* Page Header banner */
section.bg-light.py-5 {
    background: var(--light-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

section.bg-light.py-5 h1 {
    color: var(--text-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

section.bg-light.py-5 p {
    color: var(--text-body) !important;
}

/* Sub-page product grid */
section.bg-white {
    background: var(--white) !important;
}

.product-list-card {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-list-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-card-hover);
}

.product-list-card .placeholder-overlay {
    background: var(--light-bg) !important;
}

.product-list-card .card-title {
    color: var(--text-heading) !important;
}

.product-list-card .card-text {
    color: var(--text-body) !important;
}

.product-list-card .btn-outline-primary-custom {
    border-radius: var(--radius-sm);
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert-success {
    background: rgba(52, 211, 153, 0.08) !important;
    border: 1px solid rgba(52, 211, 153, 0.2) !important;
    color: #059669 !important;
    border-radius: var(--radius-md);
}

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

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

/* Pulse glow on CTA */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 30px rgba(184, 134, 11, 0.2); }
    50% { box-shadow: 0 8px 40px rgba(184, 134, 11, 0.35); }
}

.btn-primary-custom.pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Grain overlay — very subtle for light mode */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =====================================================
   SECTION GLOBAL HELPERS
   ===================================================== */
section h6.text-primary-custom {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

section h2.fw-bold {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    :root {
        --section-py: 4rem;
    }

    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

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

    .hero-text .lead {
        max-width: 100%;
        text-align: center;
    }

    #mainNavbar .navbar-collapse {
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 767.98px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    section h2.fw-bold {
        font-size: 1.6rem;
    }

    #inquiry .card {
        padding: 1.5rem !important;
    }
}

/* =====================================================
   STATS / COUNTERS (if used)
   ===================================================== */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}
