/* Header section with background */
.header-section {
    background: url('img/Perfect_header_background.jpg') center/cover no-repeat;
    padding: 20px 0;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.logo-container {
    position: relative;
    z-index: 1;
}

.logo-img {
    max-height: 80px;
    width: auto;
}

/* Navigation styling */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand, .nav-link {
    font-weight: 600;
    color: #333 !important;
}

.nav-link:hover {
    color: #dc3545 !important;
}

/* Hero banner styling */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/perfect_background_1.png') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-hero {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Services & Industries Section */
.services-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    padding: 80px 0;
    color: white;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.services-industries-row {
    margin-top: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #f8f9fa);
}

.service-item, .industry-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover, .industry-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.service-item:last-child, .industry-item:last-child {
    border-bottom: none;
}

.service-icon, .industry-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: white;
    width: 30px;
    text-align: center;
}

.service-text, .industry-text {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Product Category Section */
.category-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #007bff);
}

.category-box {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.category-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.3) blur(2px);
}

.category-box:hover .category-image {
    transform: scale(1.1);
    filter: brightness(1) blur(0);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.4s ease;
}

.category-box:hover .category-overlay {
    opacity: 0;
}

.category-label {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.category-box:hover .category-label {
    transform: translateY(20px);
    opacity: 0;
}

/* Clients & Partners Section */
.clients-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('img/perfect_background_3.png') center/cover no-repeat;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
}

.clients-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.clients-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 288px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
}

.client-logo:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.clients-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(28, 74, 134, 0.1), rgba(13, 110, 253, 0.1));
    pointer-events: none;
}

/* Footer Section */
.footer-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('img/perfect_background_2.png') center/cover no-repeat;
    color: white;
    padding: 80px 0 0 0;
    position: relative;
}

.footer-content {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.office-location {
    text-align: center;
    padding: 0 20px;
}

.office-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    color: #ffffff;
}

.office-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #dc3545, #ffffff);
}

.office-details {
    line-height: 1.8;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.office-address {
    margin-bottom: 20px;
}

.office-contact {
    font-weight: 500;
}

.office-contact strong {
    color: #ffffff;
}

.vertical-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    min-height: 300px;
}

.chinese-text {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.copyright-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .services-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .category-section {
        padding: 60px 0;
    }
    .category-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .category-label {
        font-size: 1.1rem;
    }
    .clients-section {
        padding: 60px 0;
        background-attachment: scroll;
    }
    .clients-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    .clients-grid {
        gap: 20px;
    }
    .client-logo {
        height: 120px;
        padding: 20px;
    }
    .footer-section {
        padding: 60px 0 0 0;
    }
    .office-title {
        font-size: 1.5rem;
    }
    .office-details {
        font-size: 0.9rem;
    }
    .vertical-divider {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        min-height: auto;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
}

/* Global smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Products Page Styling */
.products-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.products-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.products-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #007bff);
}

/* Accordion Styling */
.accordion-item {
    border: none;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

.accordion-collapse {
    transition: all 0.5s ease-in-out;
}

.accordion-button {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

/* Hide the default caret/arrow */
.accordion-button::after {
    display: none;
}

.accordion-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.accordion-button:hover .accordion-banner {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.accordion-button:active .accordion-banner {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Add overlay effect on hover */
.accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(0, 123, 255, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.accordion-button:hover::before {
    opacity: 1;
}

.accordion-body {
    padding: 40px;
    background: white;
}

/* Subcategories */
.subcategories-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.subcategory-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.subcategory-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.subcategory-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subcategory-title i {
    color: #dc3545;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.product-item {
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 180px;
    height: 180px;
}

.product-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-item:hover .product-thumbnail {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-overlay i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.product-item:hover .product-overlay i {
    transform: scale(1.2);
}

/* Modal Styling */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, #dc3545, #007bff);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .products-section {
        padding: 40px 0;
    }
    
    .products-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .accordion-banner {
        height: 140px;
    }
    
    .accordion-body {
        padding: 20px;
    }
    
    .subcategories-container {
        gap: 30px;
    }
    
    .subcategory-title {
        font-size: 1.2rem;
    }
    
    .product-gallery {
        gap: 15px;
    }
    
    .product-item {
        width: 160px;
        height: 160px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        justify-content: center;
    }
    
    .product-item {
        width: 140px;
        height: 140px;
    }
    
    .subcategory-title {
        font-size: 1.1rem;
    }
}
