/**
 * 3D Homepage Glass CSS System
 * Part of DDG Theme Child
 */

:root {
    --bg-dark: #061A2E;
    --bg-dark-rgb: 6, 26, 46;
    --bg-light: #F7FAFC;
    --bg-mist: #E6EEF5;
    --color-primary: #0586C9;
    --color-primary-rgb: 5, 134, 201;
    --color-secondary: #D7B56D;
    --color-chrome: #B8C3CC;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --font-3d: 'Outfit', sans-serif;
}

/* Base resets & Container */
.ddg-3d-body {
    font-family: var(--font-3d) !important;
    background-color: var(--bg-dark) !important;
    color: #ffffff !important;
    overflow-x: hidden;
    position: relative;
}

/* Specific overrides to prevent parent theme (Flatsome) from forcing dark colors on texts/headings */
.ddg-3d-body, 
.ddg-3d-body p, 
.ddg-3d-body span, 
.ddg-3d-body div, 
.ddg-3d-body li, 
.ddg-3d-body a,
.ddg-3d-body h1, 
.ddg-3d-body h2, 
.ddg-3d-body h3, 
.ddg-3d-body h4, 
.ddg-3d-body h5, 
.ddg-3d-body h6 {
    text-shadow: none !important;
}

.ddg-3d-body h1, 
.ddg-3d-body h2, 
.ddg-3d-body h3, 
.ddg-3d-body h4, 
.ddg-3d-body h5, 
.ddg-3d-body h6 {
    color: #ffffff !important;
    font-weight: 700;
}

.ddg-3d-body p, 
.ddg-3d-body .hero-desc,
.ddg-3d-body .badge-card p,
.ddg-3d-body .product-cat-card p,
.ddg-3d-body .spec-info p,
.ddg-3d-body .step-details p,
.ddg-3d-body .project-info-overlay p,
.ddg-3d-body .news-content p,
.ddg-3d-body .cta-desc {
    line-height: 1.6;
}

/* Stats specific styling */
.ddg-3d-body .stat-item h3 {
    color: var(--color-primary) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 5px !important;
    background: none !important;
    -webkit-text-fill-color: var(--color-primary) !important;
}

.ddg-3d-body .stat-item p {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
}



/* Hero Badge */
.ddg-3d-body .hero-badge-tag {
    color: var(--color-primary) !important;
    background: rgba(5, 134, 201, 0.15) !important;
    border: 1px solid rgba(5, 134, 201, 0.3) !important;
}

/* Badge card headings inside why choose us */
.ddg-3d-body .badge-card h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

/* Product categories text color */
.ddg-3d-body .product-cat-card h3 {
    color: #ffffff !important;
    font-size: 17px !important;
}


.ddg-3d-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.ddg-3d-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Common Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px 0 rgba(5, 134, 201, 0.2);
    transform: translateY(-5px);
}

/* Dynamic Section Title */
.section-header-3d {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-3d h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-header-3d p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.6);
}

/* Section 1: Hero Showroom */
.hero-3d {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: radial-gradient(circle at 70% 30%, rgba(5, 134, 201, 0.15) 0%, rgba(6, 26, 46, 0) 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text-content {
    z-index: 10;
}

.hero-badge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(5, 134, 201, 0.15);
    border: 1px solid rgba(5, 134, 201, 0.3);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, var(--color-chrome) 80%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-content p.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-3d {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-3d.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #036093 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(5, 134, 201, 0.3);
    border: none;
}

.btn-3d.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(5, 134, 201, 0.5);
    transform: translateY(-2px);
}

.btn-3d.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-3d.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Hero Showcase 3D Visualizer */
.hero-visualizer {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.visualizer-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visualizer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Glass Reflection Layer */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(5,134,201,0.05) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Ambient Particles */
.ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 134, 201, 0.2) 0%, rgba(6, 26, 46, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* Section 2: Why Choose Us - 4 Glass Badges */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.badge-card {
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: var(--color-primary);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.badge-card:hover .badge-icon {
    transform: rotateY(180deg) scale(1.1);
    background: rgba(5, 134, 201, 0.15);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(5, 134, 201, 0.4);
}

.badge-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.badge-card p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Section 3: Product Universe */
.products-universe-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.universe-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.universe-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 550px;
}

.universe-center-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(5, 134, 201, 0.25);
    position: relative;
    z-index: 2;
}

.universe-center-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.orbit-ring {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring.ring-1 {
    width: 112%;
    height: 0;
    padding-bottom: 112%;
    top: 50%;
    left: 50%;
    margin-top: -56%;
    margin-left: -56%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: spin 60s linear infinite;
}

.product-categories-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-cat-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 200px;
}

.product-cat-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-cat-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-cat-card a.learn-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.product-cat-card a.learn-more:hover {
    color: #ffffff;
}

/* Section 4: Morphing Mirror Modules */
.mirrors-morph-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.mirrors-layout-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-btn:hover, .control-btn.active {
    background: rgba(5, 134, 201, 0.1);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateX(5px);
}

.control-btn .btn-arrow {
    opacity: 0;
    transition: all 0.3s ease;
}

.control-btn:hover .btn-arrow, .control-btn.active .btn-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Mirror Wall Container */
.mirror-wall-container {
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
}

.mirror-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    gap: 8px;
    padding: 15px;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Layout definitions */
.mirror-grid-overlay.layout-hexagon {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.mirror-grid-overlay.layout-diamond {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.mirror-grid-overlay.layout-rectangle {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.mirror-tile {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    transform-style: preserve-3d;
}

.mirror-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.mirror-tile:hover::after {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.mirror-tile:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(5, 134, 201, 0.3);
    transform: scale(1.05) translateZ(10px);
    z-index: 10;
}

/* Hexagon morph styling */
.layout-hexagon .mirror-tile {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Diamond morph styling */
.layout-diamond .mirror-tile {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Rectangle morph styling */
.layout-rectangle .mirror-tile {
    clip-path: none;
    border-radius: 4px;
}

/* Section 5: Kitchen Before/After Wipe Reveal */
.kitchen-wipe-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.kitchen-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.kitchen-image-layer.before-layer {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.kitchen-image-layer.after-layer {
    width: 50%;
    z-index: 2;
    border-right: 3px solid var(--color-primary);
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

/* Wipe slider bar */
.wipe-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--color-primary);
}

.wipe-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.wipe-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: rgba(6, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    z-index: 5;
    pointer-events: none;
}

.wipe-label.before-label {
    right: 20px;
}

.wipe-label.after-label {
    left: 20px;
}

/* Section 6: Tempered Glass Railings & Partitions */
.glass-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.glass-spec-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.spec-item {
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.spec-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(5, 134, 201, 0.1);
    border: 1px solid rgba(5, 134, 201, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.spec-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.spec-info p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.glass-visual-canvas {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-visual-canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stroke-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.stroke-element svg {
    width: 100%;
    height: 100%;
}

.stroke-path {
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawStroke 4s ease-out infinite alternate;
}

/* Section 7: 4-Step Process Pipeline */
.process-pipeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.process-steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.process-step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.process-step-item.active {
    background: rgba(5, 134, 201, 0.05);
    border-color: rgba(5, 134, 201, 0.2);
}

.step-number {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    transition: color 0.3s ease;
}

.process-step-item.active .step-number {
    color: var(--color-primary);
}

.step-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.process-step-item.active .step-details h3 {
    color: #ffffff;
}

.step-details p {
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.process-step-item.active .step-details p {
    color: rgba(255, 255, 255, 0.7);
}

.process-visual-screen {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.process-visual-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(5,134,201,0) 0%, var(--color-primary) 50%, rgba(5,134,201,0) 100%);
    box-shadow: 0 0 10px var(--color-primary);
    z-index: 5;
    animation: scanVertical 3s linear infinite;
}

/* Section 8: Projects 3D Carousel */
.projects-carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-carousel-track {
    position: relative;
    width: 60%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.project-carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.project-carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(6, 26, 46, 0.95) 0%, rgba(6, 26, 46, 0.4) 60%, rgba(6, 26, 46, 0) 100%);
    z-index: 3;
}

.project-info-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.project-info-overlay p {
    font-size: 13px;
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.7);
}

.project-info-overlay a.project-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-info-overlay a.project-btn:hover {
    background: #ffffff;
    color: var(--bg-dark);
}

/* Card positions for 3D layout */
.project-carousel-card.pos-left {
    transform: translateX(-45%) translateZ(-150px) rotateY(35deg);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.project-carousel-card.pos-center {
    transform: translateX(0) translateZ(0) rotateY(0);
    opacity: 1;
    z-index: 5;
}

.project-carousel-card.pos-right {
    transform: translateX(45%) translateZ(-150px) rotateY(-35deg);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(5, 134, 201, 0.5);
}

.carousel-nav-btn.btn-prev {
    left: 40px;
}

.carousel-nav-btn.btn-next {
    right: 40px;
}

/* Section 9: Blog/SEO News Cards with Hover Shimmer */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.08);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: var(--color-primary);
}

.news-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.5;
}

.news-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-chrome);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.news-readmore:hover {
    color: var(--color-primary);
}

/* Shimmer Hover Effect */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
}

.shimmer-effect:hover::after {
    left: 150%;
    transition: left 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Section 10: Glass Portal CTA & Contact Footer */
.cta-portal-section {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 80%, rgba(5, 134, 201, 0.2) 0%, rgba(6, 26, 46, 0) 70%);
}

.cta-portal-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.portal-visual {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.portal-door-image {
    width: 90%;
    height: 90%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portal-door-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.portal-visual:hover .portal-door-image {
    transform: rotateY(-15deg) rotateX(5deg);
}

.portal-visual:hover .portal-door-image img {
    transform: scale(1.05);
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, var(--color-chrome) 80%, var(--color-primary) 100%);
    -webkit-background-clip: text;
}

.cta-content p.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    max-width: 500px;
}

.cta-contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
}

.contact-info h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.contact-info p {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.contact-info p a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--color-primary);
}

/* Animations declarations */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes drawStroke {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scanVertical {
    0% {
        top: 0;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 0;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .hero-grid, 
    .why-choose-grid, 
    .products-universe-grid, 
    .mirrors-morph-grid,
    .glass-showcase-grid,
    .process-pipeline-wrapper,
    .cta-portal-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text-content {
        text-align: center;
    }
    
    .hero-text-content p.hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visualizer {
        height: 380px;
    }
    
    .universe-showcase {
        height: auto;
        padding: 30px 0;
        order: -1;
    }
    
    .universe-image-wrapper {
        max-width: 320px;
        min-height: 320px;
        aspect-ratio: 1 / 1;
    }
    
    .mirror-wall-container {
        height: 300px;
    }
    
    .kitchen-wipe-container {
        height: 320px;
    }
    
    .glass-visual-canvas {
        height: 320px;
    }
    
    .process-visual-screen {
        height: 300px;
        order: -1;
    }
    
    .project-carousel-track {
        width: 90%;
    }
    
    .project-carousel-card.pos-left,
    .project-carousel-card.pos-right {
        display: none;
    }
    
    .carousel-nav-btn.btn-prev {
        left: 10px;
    }

    .carousel-nav-btn.btn-next {
        right: 10px;
    }
    
    .portal-visual {
        height: 320px;
        order: -1;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-content p.cta-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-contact-details {
        align-items: center;
    }
}

@media screen and (max-width: 575px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .product-categories-list {
        grid-template-columns: 1fr;
    }
    
    .hero-text-content h1 {
        font-size: 38px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-3d {
        width: 100%;
    }
    
    .section-header-3d h2 {
        font-size: 28px;
    }
}

/* Progressive Enhancement Scroll Reveal */
.js-active .section-header-3d,
.js-active .badge-card,
.js-active .product-cat-card,
.js-active .glass-visual-canvas {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Specific CSS delay stagger fallbacks */
.js-active .badge-card:nth-child(1) { transition-delay: 0.1s; }
.js-active .badge-card:nth-child(2) { transition-delay: 0.25s; }
.js-active .badge-card:nth-child(3) { transition-delay: 0.4s; }
.js-active .badge-card:nth-child(4) { transition-delay: 0.55s; }

.js-active .product-cat-card:nth-child(1) { transition-delay: 0.05s; }
.js-active .product-cat-card:nth-child(2) { transition-delay: 0.15s; }
.js-active .product-cat-card:nth-child(3) { transition-delay: 0.25s; }
.js-active .product-cat-card:nth-child(4) { transition-delay: 0.35s; }
.js-active .product-cat-card:nth-child(5) { transition-delay: 0.45s; }
.js-active .product-cat-card:nth-child(6) { transition-delay: 0.55s; }

/* Revealed states */
.js-active .section-header-3d.revealed,
.js-active .badge-card.revealed,
.js-active .product-cat-card.revealed,
.js-active .glass-visual-canvas.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Tempered Glass SVG Stroke transition */
.js-active .glass-visual-canvas .stroke-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2.5s ease;
}
.js-active .glass-visual-canvas.revealed .stroke-path {
    stroke-dashoffset: 0 !important;
}

/* Kitchen Wipe Transition Fallback */
.js-active .kitchen-wipe-container .after-layer {
    width: 0%;
    transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-active .kitchen-wipe-container .wipe-slider-handle {
    left: 0%;
    transition: left 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-active .kitchen-wipe-container.revealed .after-layer {
    width: 60%;
}
.js-active .kitchen-wipe-container.revealed .wipe-slider-handle {
    left: 60%;
}

/* Bypass transition during user dragging to maintain 1:1 responsiveness */
.kitchen-wipe-container.user-dragging .after-layer,
.kitchen-wipe-container.user-dragging .wipe-slider-handle {
    transition: none !important;
}

