/* ==========================================================================
   1. CORE ARCHITECTURE & LIGHT LUXURY SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* LIGHT PREMIUM THEME */
    --bg-clean: #f4f7fb;
    --bg-pure: #ffffff;

    /* NEW SOFT BACKGROUND SHADES */
    --bg-soft: #f8fbff;
    --bg-section: #eef4ff;
    --bg-glass: rgba(255, 255, 255, 0.75);

    --text-primary: #090d16;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --brand-blue: #0052ff;
    --brand-blue-deep: #0036b3;
    --brand-blue-rgb: 0, 82, 255;
    --brand-cyan: #00d2ff;

    --premium-border: 2px solid rgba(0, 82, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);

    --radius-fluid: 32px;
    --radius-standard: 20px;
    --radius-pill: 100px;

    /* SOFTER LIGHT SHADOWS */
    --shadow-soft: 0 10px 30px rgba(9, 13, 22, 0.03);
    --shadow-elevated: 0 20px 50px rgba(9, 13, 22, 0.06);
    --shadow-premium: 0 40px 90px rgba(9, 13, 22, 0.10);
    --shadow-brand: 0 25px 50px rgba(0, 82, 255, 0.16);

    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --mesh-glow:
        radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
            rgba(0, 82, 255, 0.05) 0%,
            transparent 60%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(circle at top left,
            rgba(0, 82, 255, 0.04),
            transparent 28%),

        radial-gradient(circle at bottom right,
            rgba(0, 210, 255, 0.05),
            transparent 30%),

        linear-gradient(180deg,
            #ffffff 0%,
            #f4f7fb 100%);

    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* PREMIUM LIGHT DOT GRID */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(0, 82, 255, 0.035) 1px,
            transparent 1px);

    background-size: 42px 42px;
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-blue,
.accent-blue,
.blue-text {
    color: var(--brand-blue) !important;
}

/* ==========================================================================
   2. HIGH-END LIQUID BUTTONS & HOVERS
   ========================================================================== */
.btn-premium-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--text-primary);
    color: var(--bg-pure) !important;
    padding: 18px 38px;
    border-radius: var(--radius-standard);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--ease-premium);
    box-shadow: var(--shadow-elevated);
}

.btn-premium-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-premium-main .btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-bounce);
}

.btn-premium-main:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-brand);
}

.btn-premium-main:hover::before {
    opacity: 1;
}

.btn-premium-main:hover .btn-icon {
    transform: translateX(6px) rotate(360deg);
    background: var(--bg-pure);
    color: var(--brand-blue);
}

.btn-premium-sub {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--ease-premium);
}

.btn-premium-sub i {
    transition: var(--ease-bounce);
}

.btn-premium-sub::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30%;
    height: 2px;
    background: var(--brand-blue);
    transition: var(--ease-premium);
}

.btn-premium-sub:hover i {
    transform: translateX(8px) scale(1.2);
}

.btn-premium-sub:hover::after {
    width: 100%;
}

.btn-outline-minimal {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-pure) !important;
    text-decoration: none;
    padding: 18px 38px;
    border-radius: var(--radius-standard);
    font-weight: 600;
    transition: var(--ease-premium);
}

.btn-outline-minimal:hover {
    background: var(--bg-pure);
    color: var(--text-primary) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

/* ==========================================================================
   3. IMMERSIVE HERO WITH FULL-SCREEN IMAGE MASK
   ========================================================================== */
.services-hero {
    position: relative;
    padding: 240px 0 140px 0;
    background: linear-gradient(180deg, rgba(6, 9, 25, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%),
        url('/images/services-hero-bg.jpg') no-repeat center center / cover;
    overflow: hidden;
}

.hero-overlay-blur {
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.s-hero-content .page-route {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.s-hero-content .page-route a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

.s-hero-content .page-route a:hover {
    opacity: 1;
    color: var(--brand-cyan);
}

.s-hero-title {
    font-size: clamp(3rem, 6.5vw, 5rem);
    font-weight: 800;
    color: var(--bg-pure);
    margin-bottom: 28px;
}

.s-hero-text {
    font-size: 1.3rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    max-width: 800px;
    margin-bottom: 48px;
}

.hero-category-pills .pill {
    background: rgba(255, 255, 255, 0.06);
    color: var(--bg-pure);
    padding: 16px 32px;
    border-radius: var(--radius-standard);
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--ease-bounce);
}

.hero-category-pills .pill:hover {
    background: var(--bg-pure);
    color: var(--text-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   4. ASYMMETRIC BENTO GRID (FLOATING FRAMES)
   ========================================================================== */
.bento-services-section {
    padding: 140px 0;
    position: relative;
}

.premium-header {
    text-align: center;
    margin-bottom: 80px;
}

.badge-accent {
    background: rgba(0, 82, 255, 0.05);
    color: var(--brand-blue);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 20px;
}

.display-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    margin: 24px auto 0;
    border-radius: var(--radius-pill);
}

.bento-grid-wrapper {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
}

/* Main Glass Hero Card */
.glass-hero-card {
    background: var(--bg-pure);
    border: var(--glass-border);
    border-radius: var(--radius-fluid);
    box-shadow: var(--shadow-elevated);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--ease-premium);
    position: relative;
}

/* Floating Image Tech */
.glass-hero-card .hero-image-area {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-standard);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    border: var(--premium-border);
    transform: translateY(-10px);
    transition: var(--ease-premium);
}

.glass-hero-card .hero-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-premium);
}

.glass-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.glass-hero-card:hover .hero-image-area {
    transform: translateY(-20px) scale(1.02);
}

.glass-hero-card:hover .hero-image-area img {
    transform: scale(1.08);
}

.overlay-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(9, 13, 22, 0.9);
    color: var(--bg-pure);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.hero-content-area {
    padding: 40px 16px 16px 16px;
}

.cat-tag {
    color: var(--brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content-area h3 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.hero-content-area p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.hero-features span i {
    color: var(--brand-blue);
}

/* Sub Matrix Carts */
.bento-sub-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sub-cart {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: var(--bg-pure);
    border-radius: var(--radius-fluid);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-sub-row .sub-cart:nth-child(1) {
    grid-template-columns: 160px 1fr;
}

.bento-sub-row .sub-cart:nth-child(2) {
    grid-template-columns: 260px 1fr !important;
    background: var(--text-primary);
    color: var(--bg-pure);
    border-left: 6px solid var(--brand-blue);
    box-shadow: var(--shadow-premium);
}

.bento-sub-row .sub-cart:nth-child(2) h4 {
    color: #ffffff;
}

.bento-sub-row .sub-cart:nth-child(2) p {
    color: var(--text-muted);
}

.bento-sub-row .sub-cart:nth-child(2) .btn-premium-sub {
    color: var(--brand-cyan);
}

.bento-sub-row .sub-cart:nth-child(3) {
    grid-template-columns: 180px 1fr;
}

.sub-cart:hover {
    transform: translateX(16px) translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(var(--brand-blue-rgb), 0.15);
}

/* Floated Nested Inside Carts */
.cart-visual {
    margin: 20px;
    border-radius: var(--radius-standard);
    overflow: hidden;
    border: var(--premium-border);
    transition: var(--ease-premium);
}

.cart-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sub-cart:hover .cart-visual {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.sub-cart:hover .cart-visual img {
    transform: scale(1.12);
}

.cart-body {
    padding: 32px 40px 32px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-body h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.cart-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   5. 3D FLOATING IMAGE FRAMES & INTERACTIVE METRIC GRIDS
   ========================================================================== */
.industrial-features-section,
.technical-trust-section,
.quality-standards-section,
.quality-assurance-section {
    padding: 140px 0;
    position: relative;
}

.features-wrapper,
.trust-grid,
.quality-wrapper,
.compliance-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* Pro Floating Card Image Frames */
.floating-img-frame {
    position: relative;
    padding: 16px;
    background: var(--bg-pure);
    border-radius: var(--radius-fluid);
    border: var(--premium-border);
    box-shadow: var(--shadow-elevated);
    transition: var(--ease-premium);
}

.floating-img-frame img {
    width: 100%;
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-soft);
    transition: var(--ease-premium);
}

.floating-img-frame:hover {
    transform: translateY(-14px) rotate(-0.5deg);
    box-shadow: var(--shadow-premium);
}

.floating-img-frame:hover img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--text-primary);
    color: var(--bg-pure);
    padding: 32px 40px;
    border-radius: var(--radius-standard);
    box-shadow: 0 30px 60px rgba(9, 13, 22, 0.25);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.experience-badge .exp-num {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.features-content .content-header .sub-tag {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 16px;
}

.features-content .content-header h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 48px;
}

.features-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.f-matrix-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.f-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 82, 255, 0.04);
    color: var(--brand-blue);
    border-radius: var(--radius-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition-bounce);
}

.f-matrix-item:hover .f-icon {
    background: var(--brand-blue);
    color: var(--bg-pure);
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.2);
}

.f-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.f-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.features-footer {
    margin-top: 56px;
}

/* Specs Matrix Sheets */
.specs-card {
    background: var(--bg-pure);
    border-radius: var(--radius-fluid);
    padding: 48px;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.specs-card .card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.specs-card .card-header i {
    font-size: 2rem;
    color: var(--brand-blue);
}

.specs-card .card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.spec-row .value {
    font-weight: 700;
    color: var(--text-primary);
}

.experience-showcase .trust-badge-group {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.trust-pill {
    background: var(--bg-pure);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.trust-pill i {
    color: var(--brand-blue);
}

.experience-showcase h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.experience-showcase p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 40px;
}

.tech-icons {
    display: flex;
    gap: 40px;
    align-items: center;
}

.t-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.t-icon-box img {
    height: 56px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.t-icon-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px);
}

.trust-footer {
    margin-top: 48px;
}

/* Mouse Glow Grids */
.glass-grid-layout,
.quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.glass-grid-box,
.q-box {
    background: var(--bg-pure);
    padding: 48px;
    border-radius: var(--radius-fluid);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--ease-premium);
}

.glass-grid-box::before,
.q-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mesh-glow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.glass-grid-box>*,
.q-box>* {
    position: relative;
    z-index: 5;
}

.glass-grid-box:hover::before,
.q-box:hover::before {
    opacity: 1;
}

.glass-grid-box:hover,
.q-box:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(var(--brand-blue-rgb), 0.15);
}

.g-icon,
.q-icon-wrap {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 24px;
    display: inline-block;
    transition: var(--transition-bounce);
}

.glass-grid-box:hover .g-icon,
.q-box:hover .q-icon-wrap {
    transform: scale(1.15) translateY(-2px);
}

.quality-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.tag-row {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.pill-tag {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pill-tag.blue {
    background: rgba(0, 82, 255, 0.06);
    color: var(--brand-blue);
}

.pill-tag.green {
    background: rgba(16, 185, 129, 0.06);
    color: var(--brand-green);
}

.quality-pitch h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.quality-pitch p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.brand-stats-row {
    display: flex;
    gap: 56px;
    margin-top: 48px;
}

.b-stat {
    display: flex;
    flex-direction: column;
}

.b-stat .b-num {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.b-stat .b-lab {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.quality-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.quality-header .mini-label {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.quality-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.quality-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.trust-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-pure);
    padding: 36px;
    border-radius: var(--radius-fluid);
    box-shadow: var(--shadow-soft);
    margin-top: 80px;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
}

.strip-item i {
    color: var(--brand-blue);
}

.strip-sep {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

/* ==========================================================================
   6. COMPLIANCE & THE FINAL HERO DOCK CARD
   ========================================================================== */
.services-compliance {
    padding: 120px 0;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.compliance-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.comp-text h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.comp-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cert-grid {
    display: flex;
    gap: 24px;
}

.cert-card {
    background: var(--bg-pure);
    padding: 16px 28px;
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-micro);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.cert-card i {
    color: var(--brand-blue);
}

.comp-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.logo-box {
    background: var(--bg-pure);
    padding: 24px 40px;
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-micro);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-premium);
    border: 1px solid transparent;
}

.logo-box img {
    height: 48px;
    object-fit: contain;
}

.logo-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(var(--brand-blue-rgb), 0.1);
}

/* Master Black Dock Box */
.final-trust-cta {
    margin-top: 120px;
    position: relative;
    z-index: 10;
}

.cta-inner-box {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
    padding: 80px;
    border-radius: var(--radius-fluid);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bg-pure);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(9, 13, 22, 0.3);
}

.cta-inner-box::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--brand-blue-rgb), 0.25) 0%, transparent 70%);
}

.cta-inner-box h3 {
    font-size: 2.4rem;
    max-width: 550px;
    position: relative;
    z-index: 5;
}

.cta-btns {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   7. RESPONSIVE BREAK CONTROL ENGINE
   ========================================================================== */
@media (max-width: 1024px) {

    .bento-grid-wrapper,
    .features-wrapper,
    .trust-grid,
    .quality-wrapper,
    .compliance-wrapper {
        grid-template-columns: 1fr !important;
        gap: 56px;
    }

    .bento-sub-row .sub-cart {
        grid-template-columns: 1fr !important;
    }

    .cart-visual {
        height: 220px;
        margin: 24px 24px 10px 24px;
    }

    .cta-inner-box {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 40px;
    }

    .cta-inner-box h3 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .features-matrix,
    .glass-grid-layout,
    .quality-grid,
    .comp-logos {
        grid-template-columns: 1fr !important;
    }

    .trust-strip {
        flex-direction: column;
        gap: 24px;
    }

    .strip-sep {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-container {
        padding: 0 20px;
    }

    .hero-category-pills .pill {
        width: 100%;
        text-align: center;
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-premium-main,
    .btn-outline-minimal {
        width: 100%;
    }
}





/* ==========================================================================
   PREMIUM IMAGE ENHANCEMENT SYSTEM (DOTTED & LAYERED LUXURY)
   ========================================================================== */

/* 1. Common Frame Base: सभी इमेज कंटेनर्स के लिए */
.glass-hero-card .hero-image-area,
.cart-visual,
.floating-img-frame {
    position: relative;
    background: var(--bg-pure);
    padding: 12px;
    /* इमेज और बॉर्डर के बीच प्रीमियम स्पेस */
    border-radius: var(--radius-standard);
    overflow: visible;
    /* ओवरफ्लो को विज़िबल किया ताकि ग्लो और शैडो बाहर दिखे */
    box-shadow:
        0 10px 40px rgba(9, 13, 22, 0.04),
        0 1px 3px rgba(0, 82, 255, 0.05);
    transition: all 0.6s var(--ease-premium);
}

/* 2. Advanced Dotted & Neon Border Ring (इमेज के ठीक पीछे की बॉर्डर) */
.glass-hero-card .hero-image-area::before,
.cart-visual::before,
.floating-img-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    /* इमेज फ्रेम से थोड़ा बाहर की तरफ़ */
    border: 2.5px dotted rgba(0, 82, 255, 0.35);
    /* प्रीमियम डॉटेड बॉर्डर */
    border-radius: calc(var(--radius-standard) + 6px);
    z-index: -1;
    pointer-events: none;
    transition: all 0.6s var(--ease-premium);
    background: transparent;
}

/* 3. Luxury Ambient Shadow Layer (इमेज के पीछे गहरा लग्जरी लुक देने के लिए) */
.glass-hero-card .hero-image-area::after,
.cart-visual::after,
.floating-img-frame::after {
    content: '';
    position: absolute;
    inset: 15px;
    background: rgba(0, 82, 255, 0.2);
    /* ब्रैंड कलर की शैडो */
    border-radius: var(--radius-standard);
    filter: blur(25px);
    /* स्मूथ ब्लर */
    z-index: -2;
    opacity: 0.5;
    transition: all 0.6s var(--ease-premium);
}

/* 4. Core Image Styling (इमेज के अंदरूनी हिस्से का डिज़ाइन) */
.glass-hero-card .hero-image-area img,
.cart-visual img,
.floating-img-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-standard) - 4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* इनर वाइट ग्लास लाइन */
    transition: transform 0.8s var(--ease-premium), filter 0.6s ease;
}

/* ==========================================================================
   HOVER EFFECTS (जब यूजर माउस ऊपर लाएगा तो इमेज निखर कर बाहर आएगी)
   ========================================================================== */

/* पूरे कार्ड या फ्रेम पर होवर होने पर */
.glass-hero-card:hover .hero-image-area,
.sub-cart:hover .cart-visual,
.floating-img-frame:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

/* होवर पर डॉटेड बॉर्डर का इफ़ेक्ट (Spin & Glow) */
.glass-hero-card:hover .hero-image-area::before,
.sub-cart:hover .cart-visual::before,
.floating-img-frame:hover::before {
    inset: -12px;
    /* बॉर्डर बाहर की तरफ़ फैलेगी */
    border-color: var(--brand-cyan);
    /* कलर बदलकर स्यान हो जाएगा */
    border-style: dashed;
    /* डॉटेड से डैश में स्मूथ चेंज */
    transform: rotate(1deg);
    /* हल्का सा ट्विस्ट जो डिज़ाइन को डायनामिक बनाएगा */
}

/* होवर पर पीछे का प्रीमियम ग्लो बढ़ जाएगा */
.glass-hero-card:hover .hero-image-area::after,
.sub-cart:hover .cart-visual::after,
.floating-img-frame:hover::after {
    inset: 5px;
    opacity: 0.8;
    background: rgba(0, 210, 255, 0.3);
    /* स्यान-ब्लू मिक्स नियॉन ग्लो */
    filter: blur(35px);
}

/* इमेज का खुद का मोशन */
.glass-hero-card:hover .hero-image-area img,
.sub-cart:hover .cart-visual img,
.floating-img-frame:hover img {
    transform: scale(1.05);
    /* इमेज हल्की सी ज़ूम होगी */
    filter: brightness(1.05) contrast(1.02);
    /* इमेज के कलर्स और चमक बढ़ जाएंगे */
}


.services-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full screen */
    display: flex;
    align-items: flex-start;
    /* Content ko upar rakhne ke liye */
    padding-top: 150px;
    /* Navbar ke niche se start karne ke liye */
    background-image: url('/images/services.png');
    /* Apni image ka path yahan dalein */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect ke liye */
    overflow: hidden;
}

/* Image ke upar dark layer taaki text saaf dikhe */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.section-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    z-index: 2;
}

.s-hero-content {
    max-width: 800px;
    text-align: left;
    /* Image ki tarah left align */
}

/* Route style */
.page-route {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-route span {
    color: #3b82f6;
    /* Blue separator */
    margin: 0 5px;
}

/* Title style */
.s-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    /* Responsive font size */
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 25px;
}

.accent-blue {
    color: #2563eb;
    /* Royal Blue color jaisa image mein hai */
}

/* Text style */
.s-hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 45px;
    max-width: 650px;
}

/* Pills style */
.hero-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pill:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-5px);
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .services-hero {
        padding-top: 120px;
        /* Mobile navbar height adjust */
        min-height: 100vh;
    }

    .section-container {
        padding: 0 25px;
    }

    .s-hero-title {
        font-size: 2.2rem;
    }

    .s-hero-text {
        font-size: 1rem;
    }

    .pill {
        width: 100%;
        /* Mobile par buttons full width ho jayenge selection ke liye */
        text-align: center;
    }
}

/* PREMIUM TOP HEADING */
.premium-section-heading {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 90px auto;
}

.heading-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;

    background: rgba(0, 82, 255, 0.06);
    color: var(--brand-blue);

    border: 1px solid rgba(0, 82, 255, 0.08);
    border-radius: var(--radius-pill);

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    margin-bottom: 22px;
}

.premium-section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.premium-section-heading p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.heading-line {
    width: 90px;
    height: 4px;

    margin: 35px auto 0;

    border-radius: 100px;

    background: linear-gradient(90deg,
            var(--brand-blue),
            var(--brand-cyan));

    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.18);
}

/* SECTION KO UPER LANE KE LIYE */
.industrial-features-section {
    padding-top: 60px !important;
    /* pehle 140px tha */
    margin-top: -40px;
    /* optional premium overlap */
}

/* TECHNICAL TRUST SECTION UPER */
.technical-trust-section {
    padding-top: 60px !important;
    margin-top: -40px;
}

/* =========================================================
   LIGHT PREMIUM DIFFERENT SECTION BACKGROUNDS
   ========================================================= */

/* SECTION 1 */
.industrial-features-section {
    background:
        linear-gradient(135deg,
            #ffffff 0%,
            #f5f9ff 100%);

    padding-top: 60px !important;
    margin-top: -40px;
}

/* SECTION 2 */
.technical-trust-section {
    background:
        linear-gradient(135deg,
            #f3f7fc 0%,
            #eef4ff 100%);

    padding-top: 60px !important;
    margin-top: -40px;

    border-top: 1px solid rgba(0, 82, 255, 0.05);
    border-bottom: 1px solid rgba(0, 82, 255, 0.05);
}

/* OPTIONAL PREMIUM MESH EFFECT */
.technical-trust-section::before {
    content: '';
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(0, 82, 255, 0.04),
            transparent 30%),

        radial-gradient(circle at bottom left,
            rgba(0, 210, 255, 0.04),
            transparent 30%);

    pointer-events: none;
}

/* QUALITY ASSURANCE SECTION UPER + PREMIUM BG */
.quality-assurance-section {
    position: relative;

    padding-top: 60px !important;
    margin-top: -40px;

    background:
        linear-gradient(135deg,
            #ffffff 0%,
            #f6faff 50%,
            #eef4ff 100%);

    border-top: 1px solid rgba(0, 82, 255, 0.05);
}

/* PREMIUM LIGHT GLOW */
.quality-assurance-section::before {
    content: '';
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top left,
            rgba(0, 82, 255, 0.04),
            transparent 28%),

        radial-gradient(circle at bottom right,
            rgba(0, 210, 255, 0.04),
            transparent 30%);

    pointer-events: none;
}


/* Services Hero Container Setup */
.services-hero {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Foreground Content Setup - Slider ke upar float karne ke liye */
.services-hero .section-container {
    position: relative !important;
    z-index: 3 !important;
}

/* Fixed Overlay Overlay Depth Setup */
.services-hero .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Content ke peeche aur slider ke upar */
    background: rgba(0, 0, 0, 0.65);
    /* Isse images ke upar text clear dikhega */
}

/* Background Slider Wrapper */
.services-hero .hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Sabse peeche ka layer */
}

/* Common Slide Properties */
.services-hero .hero-slider-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: servicesSliderAnim 15s infinite;
}

/* Individual Slides Background Images */
.services-hero .hero-slider-bg .slide-1 {
    background-image: url('/images/services1.png');
    animation-delay: 0s;
}

.services-hero .hero-slider-bg .slide-2 {
    background-image: url('/images/services2.png');
    animation-delay: 5s;
}

.services-hero .hero-slider-bg .slide-3 {
    background-image: url('/images/services3.png');
    animation-delay: 10s;
}

/* Keyframes for Smooth Fade & Subtle Zoom Effect */
@keyframes servicesSliderAnim {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    8% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    41.33% {
        opacity: 0;
        transform: scale(1.04);
        /* Background me dhiire se halka zoom */
    }

    100% {
        opacity: 0;
    }
}

/* Bootstrap modal scroll issue fix */

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Backdrop remove */
.modal-backdrop {
    display: none !important;
}









/* --- APP CARDS MATRIX CORRECTIONS --- */

/* White Card Style Fixes */
.app-card-light {
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.04);
}

/* Dark Card Style Fixes (Dome Insulation) */
.app-card-dark {
    background: #090d16;
    /* Deep Corporate Slate */
    border-radius: 35px;
    padding: 35px;
    border: 1px solid rgba(0, 82, 204, 0.1);
}

/* CRITICAL: Text Contrast Fix for Dark Mode Card */
.app-card-dark p {
    color: #94a3b8 !important;
    /* Premium light silver tint for high readability */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Dynamic Interactive Dashed Border Framework */
.image-dash-wrap {
    position: relative;
    padding: 8px;
    border: 2px dashed rgba(0, 82, 204, 0.3);
    /* Soft interactive dash spacer */
    border-radius: 24px;
    /* Perfectly aligned curves */
    display: inline-block;
    transition: border-color 0.3s ease;
}

.app-card-dark:hover .image-dash-wrap {
    border-color: #0052cc;
    /* Hover par dash vibrant blue ho jayega */
}

/* Clean Image Grid Tuning */
.app-card-dark img {
    border-radius: 18px;
    width: 100%;
    object-fit: cover;
}





/* --- COMPONENT MASTER LAYOUT --- */
.material-showcase-section {
    padding: clamp(60px, 8vw, 120px) 0;
    background: #f4f8fd;
    width: 100%;
}

.showcase-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.showcase-header {
    text-align: center;
    margin-bottom: 60px;
}

.showcase-tag {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 12px;
}

.showcase-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: #090d16;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.showcase-subtitle {
    font-size: 1.05rem;
    color: #5e6c84;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* THE CARDS GRID */
.material-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    width: 100%;
}

.material-item-card {
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    /* Strict clipping block */
    box-shadow: 0 30px 70px rgba(0, 82, 204, 0.03);
    border: 1px solid rgba(0, 82, 204, 0.04);
    cursor: pointer;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 90px rgba(0, 82, 204, 0.09);
}

.material-img-box {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e9f2fc;
    display: block;
}

.material-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Fixed outer presentation stretching */
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphic Tooltip Overlay */
.material-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.material-hover-overlay span {
    background: #090d16;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-item-card:hover .material-hover-overlay {
    opacity: 1;
}

.material-item-card:hover .material-hover-overlay span {
    transform: translateY(0);
}

.material-item-card:hover .material-img-box img {
    transform: scale(1.05);
}

.material-info-box {
    padding: 35px;
}

.material-info-box h3 {
    font-size: 1.45rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 12px;
}

.material-info-box p {
    font-size: 0.95rem;
    color: #5e6c84;
    line-height: 1.65;
    margin-bottom: 25px;
}

.card-footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.custom-size-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef5ff;
    color: #0052cc;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-gallery-trigger {
    display: none;
    background: #0052cc;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.15);
}

/* ==========================================================================
   FIXED: SLIDER VIEWPORT BOX (PREVENTS IMAGE OVERFLOW OUTSIDE)
   ========================================================================== */
.gallery-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-window-wrapper {
    position: relative;
    width: 90%;
    max-width: 650px;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.gallery-popup-modal.active .modal-window-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* The Viewport Container Mask */
.modal-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000000;
    overflow: hidden !important;
    /* CRITICAL: Hide sliding images outside box */
}

/* FIX: Flex Track alignment mechanism for side-by-side stack */
.modal-slide-track {
    display: flex !important;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    /* Clean sliding hardware acceleration */
}

/* FIX: Individual item takes exactly 100% of wrapper grid space */
.m-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

/* FIX: Absolute clean cover crop alignment inside modal viewport */
.m-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Fills full screen aspect */
    display: block !important;
}

/* Nav Control Elements Layer */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 25;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: #ffffff;
    color: #0052cc;
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

.modal-caption-bar {
    padding: 25px 35px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.modal-caption-bar h4 {
    font-size: 1.2rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 4px;
}

.modal-caption-bar p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 992px) {
    .material-product-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .modal-slider-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .card-footer-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mobile-gallery-trigger {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .custom-size-badge {
        width: 100%;
        justify-content: center;
    }

    .material-img-box {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .showcase-container {
        padding: 0 20px !important;
    }

    .modal-slider-container {
        height: 260px;
    }
}

/* ==========================================
   SCROLL REVEAL ANIMATION SYSTEM (AD DIGITAL SYSTEM)
   ========================================== */

/* Cards ki initial state (Scroll karne se pehle) */
.material-product-grid .material-item-card {
    opacity: 0;
    visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s ease,
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Left side waala card (Roll) halka sa left se aayega */
.material-product-grid .material-item-card:nth-child(1) {
    transform: translateX(-40px);
}

/* Right side waala card (Sheet) halka sa right se aayega */
.material-product-grid .material-item-card:nth-child(2) {
    transform: translateX(40px);
}

/* Active State: Jab user scroll karke section par pahunchega */
.material-product-grid .material-item-card.reveal-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) !important;
}

/* Mobile responsive optimization: Mobile par side se aane ke bajaye niche se aayega */
@media (max-width: 768px) {

    .material-product-grid .material-item-card:nth-child(1),
    .material-product-grid .material-item-card:nth-child(2) {
        transform: translateY(30px);
    }

    .material-product-grid .material-item-card.reveal-active {
        transform: translateY(0) !important;
    }
}



/* --- FOOTER GRID LAYOUT SYSTEM --- */
.card-footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

/* --- THE PREMIUM "CLICK HERE" TRIGGER BUTTON --- */
.mobile-gallery-trigger {
    display: none;
    /* Desktop par hidden rahega standard UI flow ke liye */
    background: #0052cc;
    /* AD DIGITAL Corporate Accent Blue */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.mobile-gallery-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-gallery-trigger:active {
    transform: scale(0.95);
    background: #090d16;
    /* Dark shift on dynamic press */
}

/* --- SMART MEDIA RESPONSIVE SPECIFICATION --- */
@media (max-width: 768px) {

    /* Mobile layouts par flex elements ko automatic stack mode diya */
    .card-footer-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ACTIVATING THE BUTTON ON PHONE SCREENS */
    .mobile-gallery-trigger {
        display: inline-flex;
        /* Micro devices par visible ho jayega */
        width: 100%;
        /* Full card row capture options */
        justify-content: center;
        padding: 14px;
        /* Bigger touch target box size for easy clicking */
    }

    .custom-size-badge {
        width: 100%;
        justify-content: center;
        /* Badges align system balanced */
    }
}




/* =========================
   MOBILE RESPONSIVE FIX
========================= */

@media (max-width: 768px) {

    .bento-services-section {
        overflow-x: hidden;
        padding: 80px 0;
    }

    .bento-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .glass-hero-card {
        padding: 18px;
    }

    .glass-hero-card .hero-image-area {
        height: 240px;
        transform: none;
    }

    .hero-content-area {
        padding: 24px 8px 8px;
    }

    .hero-content-area h3 {
        font-size: 1.5rem;
    }

    .hero-content-area p {
        font-size: 0.95rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 14px;
    }

    /* SUB CARDS */
    .sub-cart,
    .bento-sub-row .sub-cart:nth-child(1),
    .bento-sub-row .sub-cart:nth-child(2),
    .bento-sub-row .sub-cart:nth-child(3) {
        grid-template-columns: 1fr !important;
    }

    .cart-visual {
        margin: 0;
        border-radius: 20px 20px 0 0;
    }

    .cart-visual img {
        height: 220px;
    }

    .cart-body {
        padding: 20px;
    }

    /* REMOVE RIGHT PUSH */
    .sub-cart:hover {
        transform: translateY(-6px);
    }

    .glass-hero-card:hover {
        transform: translateY(-6px);
    }

    .glass-hero-card:hover .hero-image-area {
        transform: none;
    }

    .btn-premium-main,
    .btn-premium-sub {
        width: 100%;
        justify-content: center;
    }
}

:root {
    --primary-blue: #007aff;
    --accent-cyan: #00d4ff;
    --light-bg: #ffffff;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Reset and Container */
.bento-services-section {
    background: var(--light-bg);
    padding: 80px 0;
    overflow: hidden; /* Prevents animation from causing scrollbars */
}

.section-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* THE GRID FIX */
.bento-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch; /* This makes both columns the same height */
}

/* Left Column Styling */
.bento-hero-col {
    display: flex;
}

.hero-card {
    background: #fff;
    border-radius: 28px;
    flex: 1; /* Makes card fill the whole column height */
    border: 1px solid #f0f0f0;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-img-wrap {
    background: #f9f9f9;
    padding: 40px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrap img { width: 100%; object-fit: contain; }

.hero-text { padding: 30px; background: #fff; }

/* Right Column Styling */
.bento-frames-col {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the two frames */
}

.product-frame {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 2px; /* This is your animated border thickness */
    overflow: hidden;
    flex: 1; /* Makes both frames take equal height */
}

/* ANIMATION FIX: z-index management */
.product-frame::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, var(--primary-blue), var(--accent-cyan));
    animation: rotateBorder 5s linear infinite;
    z-index: 0;
    opacity: 0.1; /* Very subtle on white theme until hover */
    transition: opacity 0.3s;
}

.product-frame:hover::before { opacity: 1; }

.frame-content {
    position: relative;
    z-index: 1; /* Sits above the animation */
    background: #fff;
    border-radius: 26px;
    padding: 25px;
    height: 100%;
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

/* Image Grid Alignment */
.image-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.img-box {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    background: #fcfcfc;
    border: 1px solid #eee;
}

.img-box img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive Fix */
@media (max-width: 992px) {
    .bento-grid-layout { grid-template-columns: 1fr; }
    .hero-img-wrap { height: 300px; }
}

/* --- PREMIUM BUTTON STYLE --- */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #007aff, #00d4ff);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
    border: none;
    cursor: pointer;
    z-index: 1;
}

.btn-premium span {
    position: relative;
    z-index: 2;
}

.btn-premium i {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

/* Button Hover Animation */
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0056b3, #007aff);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 122, 255, 0.4);
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:hover i {
    transform: translateX(5px) rotate(15deg);
}

/* --- PREMIUM FRAME BORDERS --- */
.product-frame {
    position: relative;
    background: #fff;
    border-radius: 30px;
    padding: 3px; /* The thickness of the animated border */
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* The Animated Liquid Border */
.product-frame::after {
    content: '';
    position: absolute;
    inset: -100%; /* Expands the background to allow rotation */
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 150deg,
        var(--primary-blue) 180deg,
        var(--accent-cyan) 210deg,
        transparent 240deg
    );
    animation: rotateGlow 4s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-frame:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.1);
}

/* Show glow only on hover for a clean white theme look */
.product-frame:hover::after {
    opacity: 1;
}

/* Inner container to clip the border */
.frame-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 27px;
    padding: 25px;
    height: 100%;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Button */
@media (max-width: 480px) {
    .btn-premium {
        width: 100%;
        justify-content: center;
    }
}

/* --- 7-LAYER HERO PREMIUM FRAME --- */
.hero-frame-premium {
    position: relative;
    border: none !important; /* Remove standard border */
    background: #fff;
    padding: 4px; /* Space for the double glow */
    z-index: 1;
}

/* Layer 1: The Rotating Comet Glow */
.hero-frame-premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--primary-blue) 25%,
        var(--accent-cyan) 50%,
        transparent 75%
    );
    border-radius: 32px;
    animation: rotateGlow 4s linear infinite;
    z-index: -2;
}

/* Layer 2: The Soft Breathing Glow (Shadow) */
.hero-frame-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.15);
    z-index: -1;
    animation: breatheGlow 3s ease-in-out infinite alternate;
}

/* Hero Badge Style */
.glass-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    border: 1px solid rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.premium-tagline {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ANIMATIONS */
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes breatheGlow {
    0% { box-shadow: 0 0 20px rgba(0, 122, 255, 0.1); }
    100% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.3); }
}

/* Hover Enhancement for the Hero */
.hero-frame-premium:hover {
    transform: translateY(-8px) scale(1.01);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-frame-premium:hover .hero-img-wrap img {
    transform: scale(1.08) rotate(-2deg);
}

:root {
    --primary-blue: #007aff;
    --accent-cyan: #00d4ff;
    --light-bg: #ffffff;
    --text-dark: #2d3436;
}

/* Scroll Animation Initial States */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Premium 7-Layer Frame Style */
.hero-frame-premium {
    position: relative;
    background: #fff;
    border-radius: 30px;
    padding: 3px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hero-frame-premium::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg, transparent, var(--primary-blue), var(--accent-cyan), transparent);
    animation: rotateGlow 4s linear infinite;
    z-index: 0;
}

/* Details and Content Management */
.frame-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 27px;
    padding: 25px;
    height: 100%;
}

.frame-desc {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Premium Button Styling */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.2);
    transition: 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.4);
}

/* Image Grids */
.image-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.img-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.img-box span {
    position: absolute; bottom: 0; width: 100%; padding: 5px;
    background: rgba(255,255,255,0.9); font-size: 10px; font-weight: 700;
    text-align: center; transform: translateY(100%); transition: 0.3s;
}

.img-box:hover img { transform: scale(1.1); }
.img-box:hover span { transform: translateY(0); }

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

/* --- CLEAN PREMIUM HERO STYLE --- */
.hero-frame-premium {
    position: relative;
    background: #ffffff;
    border-radius: 30px;
    /* Static premium border instead of animation */
    border: 1px solid rgba(0, 122, 255, 0.15) !important; 
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.04), 
        0 0 40px rgba(0, 122, 255, 0.05); /* Soft Blue Glow */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* Removing the rotating before/after pseudo-elements */
.hero-frame-premium::before, 
.hero-frame-premium::after {
    display: none !important; 
}

/* Adding a sophisticated subtle gradient line at the very top */
.hero-card.hero-frame-premium {
    border-top: 4px solid var(--primary-blue) !important;
}

/* Hover effect: Solid lift and deeper shadow */
.hero-frame-premium:hover {
    transform: translateY(-12px);
    border-color: var(--primary-blue) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1), 
        0 0 50px rgba(0, 122, 255, 0.15);
}

.hero-img-wrap {
    background: #fcfdfe; /* Very light blue-ish white */
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
}

.hero-img-wrap img {
    max-width: 90%;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); /* Makes the product image pop */
    transition: transform 0.5s ease;
}

.hero-frame-premium:hover .hero-img-wrap img {
    transform: scale(1.05);
}

:root {
    --primary-blue: #007aff;
    --light-gray: #e1e8ed;
    --text-main: #2d3436;
}

/* --- DOTTED/DASHED FRAME STYLE --- */
.hero-dotted-frame, .product-frame-dotted {
    background: #ffffff;
    border-radius: 24px;
    position: relative;
    /* Inital Border Style */
    border: 2px dashed var(--light-gray);
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Hover Effect for Dotted Border */
.hero-dotted-frame:hover, .product-frame-dotted:hover {
    border-color: var(--primary-blue);
    border-style: dashed;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.08);
}

/* Adding a subtle animation to the dashed border on hover */
@keyframes border-dance {
    0% { border-dash-offset: 0; }
    100% { border-dash-offset: 10; }
}

.hero-dotted-frame:hover {
    /* Marching ants effect */
    animation: dash 0.5s linear infinite;
}

/* Premium Label for Hero */
.premium-label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    background: #f1f4f9;
    padding: 5px 12px;
    border-radius: 4px;
    color: var(--primary-blue);
    border: 1px solid var(--light-gray);
}

/* --- BUTTON & DETAILS --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px; /* Squareish but rounded for a tech look */
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-premium:hover {
    background: #005bb5;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

.frame-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px dotted var(--light-gray);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.frame-desc {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Image Grids */
.image-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.img-box {
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.img-box:hover img { transform: scale(1.1); }


:root {
    /* Glowing base colors */
    --glow-border: #00d4ff; /* Pehle se chamakne wala color */
    --hover-dark: #00416a;  /* Hover karne pe dark hone wala color */
    --primary-blue: #007aff;
}

/* --- THE BENTO CARDS --- */
.hero-card, .product-frame {
    background: #ffffff;
    border-radius: 30px;
    
    /* 1. PEHLE SE CHAMAKNE WALA BORDER */
    /* Humne border ko solid rakha hai aur ek subtle glow (box-shadow) pehle se di hai */
    border: 2.5px solid var(--glow-border);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); 
    
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* --- HOVER TRANSFORMATION --- */
.hero-card:hover, .product-frame:hover {
    /* 2. HOVER PE COLOUR DARK HOGA */
    border-color: var(--hover-dark);
    
    /* Glow ko thoda deep aur dark blue tone mein shift karenge */
    box-shadow: 
        0 15px 40px rgba(0, 65, 106, 0.15), 
        0 0 25px rgba(0, 122, 255, 0.3);
        
    transform: translateY(-10px) scale(1.01);
}

/* --- 7-LAYER HERO (Extra "Star" Glow) --- */
.hero-frame-premium {
    /* Iska border thoda extra chamkega load hote hi */
    border-width: 3px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.hero-frame-premium:hover {
    border-color: #002d4d; /* Extra dark on hover */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* --- INNER PRODUCT BOXES --- */
.img-box {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: 0.3s ease;
}

.img-box:hover {
    /* Image box also changes to dark border */
    border-color: var(--hover-dark);
    transform: scale(1.05);
}

/* --- BUTTON STYLE --- */
.btn-premium {
    background: linear-gradient(135deg, var(--glow-border), var(--primary-blue));
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    transition: 0.4s;
}

.btn-premium:hover {
    background: var(--hover-dark); /* Button also goes dark on hover */
    box-shadow: 0 12px 25px rgba(0, 65, 106, 0.4);
    transform: translateY(-3px);
}

/* --- TEXT DETAILS --- */
.frame-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hover-dark); /* Dark titles for premium feel */
    margin-bottom: 10px;
}

.frame-desc {
    color: #57606f;
    line-height: 1.6;
    font-weight: 500;
}