/* Rear Cabinets Page Specific Styles */

/* Hero Section */
.rear-hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(244, 247, 252, 0.98) 100%),
        url('https://images.unsplash.com/photo-1578916170144-9bb7d8c06f6b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=40');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.rear-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(59, 175, 218, 0.15) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    z-index: 1;
}

.hero-content-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 4rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(11, 60, 93, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.2), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(59, 175, 218, 0.3), 
        rgba(11, 60, 93, 0.2), 
        rgba(59, 175, 218, 0.3));
    border-radius: 34px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--deep-navy) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(11, 60, 93, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-grey);
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    max-width: 800px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(11, 60, 93, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(59, 175, 218, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-grey);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Concept Section */
.concept-section {
    padding: 6rem 0;
    background: var(--white);
}

.concept-diagram {
    max-width: 1000px;
    margin: 4rem auto 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
}

.diagram-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.diagram-front,
.diagram-rear {
    flex: 0 0 30%;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.diagram-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--glacier-blue));
}

.diagram-rear::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--deep-navy));
}

.front-icon,
.rear-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.front-icon {
    background: linear-gradient(135deg, rgba(59, 175, 218, 0.1), rgba(166, 225, 250, 0.2));
}

.rear-icon {
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.1), rgba(23, 107, 135, 0.2));
}

.front-icon i {
    color: var(--accent-blue);
    font-size: 1.8rem;
}

.rear-icon i {
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.diagram-front h4,
.diagram-rear h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.diagram-front h4 {
    color: var(--accent-blue);
}

.diagram-rear h4 {
    color: var(--primary-blue);
}

.diagram-front p,
.diagram-rear p {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.diagram-middle {
    flex: 0 0 30%;
    position: relative;
}

.cabinet-illustration {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shelving {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.shelf {
    background: var(--white);
    border-radius: 5px;
    height: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.temperature-zones {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.zone {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.zone.frozen {
    background: rgba(59, 175, 218, 0.1);
    color: var(--accent-blue);
    border: 2px solid rgba(59, 175, 218, 0.3);
}

.zone.chill {
    background: rgba(166, 225, 250, 0.1);
    color: var(--glacier-blue);
    border: 2px solid rgba(166, 225, 250, 0.3);
}

.concept-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.arrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.arrow i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--glacier-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow.backward i {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-navy));
}

.arrow span {
    font-weight: 600;
    color: var(--deep-navy);
    font-size: 1.1rem;
}
/* ===================== Configuration Section ===================== */
.configuration-section {
    padding: 90px 0;
    background: #f9faff;
    font-family: 'Poppins', sans-serif;
}

/* Section Header */
.configuration-section .section-header {
    text-align: center;
    margin-bottom: 55px;
    padding: 0 15px;
}

.configuration-section .section-title2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0b3c5d;
    margin-bottom: 12px;
    line-height: 1.2;
}

.configuration-section .section-subtitle2 {
    font-size: 1.1rem;
    color: #33475b;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Tabs Navigation */
.configurations-tabs .config-nav {
    margin-bottom: 30px;
}

.configurations-tabs .nav-link {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(11, 60, 93, 0.12);
    border-radius: 14px;
    color: #0b3c5d !important;
    font-weight: 600;
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 18px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(11, 60, 93, 0.04);
}

.configurations-tabs .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 60, 93, 0.08);
}

.configurations-tabs .nav-link.active {
    background: #0b3c5d;
    color: #fff !important;
    border-color: #0b3c5d;
    box-shadow: 0 12px 25px rgba(11, 60, 93, 0.18);
}

.configurations-tabs .nav-link i {
    font-size: 1.2rem;
}

/* Tab Content */
.config-content {
    background: rgba(255, 255, 255, 0.97);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(11, 60, 93, 0.08);
    border: 1px solid rgba(11, 60, 93, 0.08);
}

/* Header inside content */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.config-header h3 {
    font-size: 1.9rem;
    color: #0b3c5d;
    margin: 0;
    font-weight: 700;
}

.config-badge {
    background: linear-gradient(135deg, #ffc107, #ffdd6b);
    color: #0b3c5d;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Image */
.config-image img {
    width: 100%;
    border-radius: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.config-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

/* Details */
.config-details p {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 15px;
}

/* Features */
.config-features {
    margin-top: 20px;
}

.config-features .feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 12px;
    font-weight: 600;
    color: #0b3c5d;
    line-height: 1.4;
}

.config-features .feature i {
    color: #28a745;
    margin-top: 4px;
    font-size: 1rem;
}

/* ===================================================== */
/* ✅ FULL MOBILE RESPONSIVE FIX */
/* ===================================================== */

@media (max-width: 991px) {
    .configuration-section {
        padding: 70px 0;
    }

    .config-content {
        padding: 25px;
    }

    .configuration-section .section-title2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .configuration-section {
        padding: 60px 0;
    }

    /* Center everything */
    .configuration-section .section-header {
        margin-bottom: 35px;
    }

    .configuration-section .section-title2 {
        font-size: 2rem;
    }

    .configuration-section .section-subtitle2 {
        font-size: 1rem;
    }

    /* Tabs become horizontal scroll for small screens */
    .configurations-tabs .config-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .configurations-tabs .config-nav::-webkit-scrollbar {
        height: 6px;
    }

    .configurations-tabs .nav-link {
        min-width: 220px;
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
        border-radius: 14px;
        padding: 12px 14px;
    }

    /* Content spacing */
    .config-content {
        padding: 22px;
        border-radius: 16px;
    }

    .config-header h3 {
        font-size: 1.5rem;
    }

    .config-details p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .configuration-section .section-title2 {
        font-size: 1.7rem;
    }

    .config-content {
        padding: 18px;
    }

    .config-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .config-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .configurations-tabs .nav-link {
        min-width: 200px;
    }
}

/* CTA Button */
.config-cta {
    text-align: center;
}

.config-cta .btn {
    background: #0b3c5d;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.config-cta .btn:hover {
    background: #09527a;
    color: #fff;
}
/* ============================= */
/* Rear CTA Section */
/* ============================= */

.rear-cta-section {
    padding: 80px 0;
    background: #f9faff;
}

/* Main CTA Box */
.rear-cta-section .cta-section {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 45px 50px;

    border: 1px solid rgba(11, 60, 93, 0.12);

    box-shadow: 0 18px 45px rgba(11, 60, 93, 0.08);
    overflow: hidden;
}

/* Soft gradient glow */
.rear-cta-section .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
            rgba(59, 175, 218, 0.15) 0%,
            transparent 55%);
    z-index: 0;
}

/* Content stays above glow */
.rear-cta-section .cta-section .row {
    position: relative;
    z-index: 2;
}

/* Title */
.rear-cta-section .cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0b3c5d;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* Subtitle */
.rear-cta-section .cta-subtitle {
    font-size: 1.1rem;
    color: #33475b;
    line-height: 1.7;
    max-width: 680px;
}

/* Button */
.rear-cta-section .btn-primary-custom {
    background: linear-gradient(135deg, #0b3c5d, #3bafda);
    border: none;
    border-radius: 14px;

    font-weight: 700;
    padding: 14px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    box-shadow: 0 14px 30px rgba(11, 60, 93, 0.18);
    transition: all 0.25s ease;
    text-decoration: none;
}

/* Button hover */
.rear-cta-section .btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(11, 60, 93, 0.25);
}

/* Button icon */
.rear-cta-section .btn-primary-custom i {
    font-size: 1.1rem;
}

/* ============================= */
/* Mobile Responsive */
/* ============================= */

@media (max-width: 991px) {
    .rear-cta-section {
        padding: 60px 0;
    }

    .rear-cta-section .cta-section {
        padding: 35px 30px;
    }

    .rear-cta-section .cta-title {
        font-size: 1.7rem;
    }

    .rear-cta-section .cta-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .rear-cta-section .cta-section {
        padding: 30px 22px;
        text-align: center;
    }

    .rear-cta-section .cta-subtitle {
        margin: 0 auto;
    }

    /* Center button */
    .rear-cta-section .col-lg-4 {
        text-align: center !important;
    }

    /* Full width button on mobile */
    .rear-cta-section .btn-primary-custom {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .rear-cta-section .cta-section {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .rear-cta-section .cta-title {
        font-size: 1.5rem;
    }

    .rear-cta-section .cta-subtitle {
        font-size: 0.95rem;
    }
}

/* Sticky CTA Buttons */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.sticky-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sticky-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quote-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--glacier-blue));
}

.phone-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .diagram-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .diagram-front,
    .diagram-rear {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .config-nav {
        margin-bottom: 2rem;
    }
    
    .nav-pills .nav-link {
        justify-content: center;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rear-hero-section {
        padding: 100px 15px 60px;
        background-attachment: scroll;
    }
    
    .hero-content-box {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .concept-diagram {
        padding: 2rem;
    }
    
    .concept-arrows {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .specs-details .row {
        gap: 1.5rem;
    }
    
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }
    
    .sticky-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content-box {
        padding: 2rem 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .concept-diagram {
        padding: 1.5rem;
    }
    
    .diagram-front,
    .diagram-rear {
        padding: 2rem 1.5rem;
    }
    
    .specs-table {
        font-size: 0.8rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }