/**
 * Inner Pages Styles
 * Fixes for service, about, contact and other inner pages
 * Improves readability when header has background images
 */

/* Apply to body when page has page-header */
body:has(.page-header) .main-header .nav-link .menu-text {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    padding: 6px 16px;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body:has(.page-header) .main-header .nav-link:hover .menu-text {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55));
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

body:has(.page-header) .main-header .nav-link.active .menu-text {
    background: linear-gradient(135deg, var(--accent-color), #d4c005);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(232, 211, 6, 0.4);
}

/* Language Selector Readability */
body:has(.page-header) .language-selector .current-language {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

body:has(.page-header) .language-selector:hover .current-language {
    background: rgba(0, 0, 0, 0.7);
}

body:has(.page-header) .language-options {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
}

body:has(.page-header) .language-option {
    color: #ffffff !important;
}

/* Logo Visibility Enhancement */
body:has(.page-header) .header-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Hamburger Menu Icon Enhancement */
body:has(.page-header) .mgx-hamburger-icon {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 6px;
}

body:has(.page-header) .mgx-hamburger-icon span {
    background-color: #ffffff !important;
}

/* Page Header Section Overlay */
.page-header {
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.page-header .main-header,
.page-header .page-header-content {
    position: relative;
    z-index: 2;
}

/* Page Header Title Enhancement */
.page-header .page-title h1 {
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

/* Breadcrumb Enhancement */
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.page-header .breadcrumb-item::before {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Nav Items Spacing */
body:has(.page-header) .main-header .navbar-nav .nav-item {
    position: relative;
    margin: 0 4px;
}

/* Desktop Menu Enhancement */
@media (min-width: 992px) {
    body:has(.page-header) .main-header .main-menu {
        padding: 10px 0;
    }
    
    body:has(.page-header) .main-header .navbar-nav {
        gap: 8px;
    }
}

/* Mobile Menu Enhancement */
@media (max-width: 991px) {
    body:has(.page-header) .mgx-hamburger-menu {
        background: rgba(25, 35, 36, 0.98) !important;
    }
    
    body:has(.page-header) .mgx-menu-item a {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}



body:has(.page-header) .submenu .nav-link {
    color: #ffffff !important;
}



/* Header Sticky State Enhancement */
body:has(.page-header) .header-sticky.sticky .main-header {
    background: rgba(25, 35, 36, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Keep menu-text background in sticky state */
body:has(.page-header) .header-sticky.sticky .nav-link .menu-text {
    background: rgba(0, 0, 0, 0.4);
}

body:has(.page-header) .header-sticky.sticky .nav-link:hover .menu-text {
    background: linear-gradient(135deg, var(--accent-color), #d4c005);
    color: var(--primary-color) !important;
}

/* Product Gallery Section */
.product-gallery-section {
    padding: 10px 0;
    background-color: var(--white-color);
}

.product-main-gallery {
    margin-bottom: 20px;
}

.product-gallery-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 10px;
    object-position: center;
    background-color: #f8f9fa;
}

/* Swiper Navigation Buttons */
.product-main-swiper .swiper-button-next,
.product-main-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.product-main-swiper .swiper-button-next:hover,
.product-main-swiper .swiper-button-prev:hover {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

.product-main-swiper .swiper-button-next::after,
.product-main-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.product-main-swiper .swiper-button-next {
    right: 20px;
}

.product-main-swiper .swiper-button-prev {
    left: 20px;
}

/* Technology Slider Navigation */
.technology-slider .swiper-button-next,
.technology-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.technology-slider .swiper-button-next:hover,
.technology-slider .swiper-button-prev:hover {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

.technology-slider .swiper-button-next::after,
.technology-slider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.technology-slider .swiper-button-next {
    right: 20px;
}

.technology-slider .swiper-button-prev {
    left: 20px;
}

.technology-slider .swiper-pagination {
    bottom: 20px;
}

.technology-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.technology-slider .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Product Main Swiper Navigation */
.product-main-swiper .swiper-button-next,
.product-main-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.product-main-swiper .swiper-button-next:hover,
.product-main-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.product-main-swiper .swiper-button-next {
    right: 20px;
}

.product-main-swiper .swiper-button-prev {
    left: 20px;
}

.product-main-swiper .swiper-button-next::after,
.product-main-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}


/* Product Gallery Section Background */
.product-gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.product-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/patterns/product-pattern.png');
    background-size: 200px 200px;
    opacity: 0.03;
    z-index: 0;
}

.product-gallery-section .container {
    position: relative;
    z-index: 1;
}

/* Technology Slider Section Background */
.technology-slider-section {
    background: linear-gradient(to right, #1a1a2e 0%, #16213e 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.technology-slider-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.technology-slider-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.technology-slider-section .container {
    position: relative;
    z-index: 1;
}

.technology-slider-section .section-title h2,
.technology-slider-section .section-title h3,
.technology-slider-section .section-title p {
    color: #ffffff;
}

/* Technical Specs Section Background */
.technical-specs-section {
    background: #f5f7fa;
    position: relative;
    padding: 100px 0;
}

.technical-specs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(26,115,232,0.05) 0%, transparent 100%);
}

.technical-specs-section .container {
    position: relative;
    z-index: 1;
}

/* Related Products Section Background */
.related-products-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    padding: 100px 0;
}

.related-products-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(26,115,232,0.03) 0%, transparent 70%);
    z-index: 0;
}

.related-products-section .container {
    position: relative;
    z-index: 1;
}