/* Building Animation Section */
.building-section {
    height: 100vh; /* Increased height */
    min-height: 800px;
    /*margin-top: 50px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Background Image */
    background-image: url('../../images/safe.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Dark overlay for text readability */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.building-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Main Title Styles */
.building-main-title {
    opacity: 0; /* Hidden initially, controlled by JS */
    /* transform will be set by JS */
}

.building-main-title .text-en {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.building-main-title .text-cn {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 32px;
    font-weight: 500;
    opacity: 0.9;
}

/* Sub Title Styles */
.building-sub-title {
    opacity: 0; /* Hidden initially, controlled by JS */
    /* transform will be set by JS */
}

.building-sub-title .text-en {
    font-family: var(--font-body);
    font-size: 48px;
    line-height: 48px;
    font-weight: 500;
    margin-bottom: 100px;
    color: rgba(255, 255, 255, 0.9);
}

.building-sub-title .text-cn {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* Button Wrapper */
.building-btn-wrapper {
    margin-top: 20px;
    opacity: 0; /* Hidden initially */
}

/* Disclaimer Text */
.building-disclaimer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300; /* Extra Light / Thin */
    color: rgba(255, 255, 255, 0.6); /* White with 60% opacity */
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0; /* Initially hidden for animation */
}

/* Tech Spec Panel Styles - Bottom Horizontal Bar */
.tech-spec-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px; /* Positioned just above disclaimer */
    top: auto;
    
    background: rgba(0, 20, 50, 0.6); /* Deep blue semi-transparent */
    backdrop-filter: blur(8px);
    padding: 15px 30px;
    border-radius: 50px; /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    
    width: auto;
    min-width: 800px; /* Ensure width for content */
    max-width: 95%;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    
    z-index: 3;
    opacity: 0; /* Initially hidden */
}

.tech-spec-panel h3 {
    font-family: var(--font-heading);
    font-size: 14px; /* Compact title */
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    color: #FFB800; /* Bright Amber/Gold to pop against blue */
    border-bottom: none;
    padding-bottom: 0;
    white-space: nowrap;
    margin-right: 10px;
    text-decoration: none; /* Removed underline */
}

.tech-spec-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.tech-spec-panel ul li {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
}

/* Add separators between items */
.tech-spec-panel ul li:not(:last-child)::after {
    content: '|';
    margin-left: 20px;
    color: rgba(255,255,255,0.2);
    font-weight: 300;
}

.tech-spec-panel ul li strong {
    font-weight: 700;
    color: #fff;
}

/* Highlight Result */
.tech-spec-panel ul li strong.highlight {
    color: #FFD700; /* Gold */
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Glow effect */
}

/* Responsive - Moved to bottom to override desktop styles correctly */
@media only screen and (max-width: 991px) {
    .building-section {
        height: auto;
        min-height: 800px; /* Keep minimum height */
        padding-bottom: 50px; /* Space for stacked content */
    }
    
    .building-main-title .text-en {
        font-size: 36px;
    }
    
    .building-main-title .text-cn {
        font-size: 20px;
    }
    
    .building-sub-title .text-en {
        font-size: 16px;
        line-height: 20px !important;
    }
    
    .building-sub-title .text-cn {
        font-size: 14px;
        line-height: 16px;
    }

    .building-disclaimer {
        font-size: 10px; /* Smaller text on mobile */
        bottom: 10px;
    }

    /* Mobile Tech Spec Panel */
    .tech-spec-panel {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 90%;
        min-width: 0 !important; /* Override desktop min-width */
        margin: 20px auto 10px; /* Adjusted margin */
        text-align: center;
        background: rgba(0, 20, 50, 0.7) !important;
        display: block !important; /* Stack vertically on mobile */
        padding: 20px !important;
        border-radius: 12px !important; /* More rounded rect on mobile */
    }
    
    .tech-spec-panel h3 {
        text-align: center !important;
        margin-bottom: 15px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        padding-bottom: 10px !important;
        white-space: normal !important; /* Allow wrapping */
        margin-right: 0 !important;
    }

    .tech-spec-panel ul {
        display: block !important;
        gap: 0 !important;
    }

    .tech-spec-panel ul li {
        text-align: center !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        white-space: normal !important; /* Allow wrapping */
        display: block !important;
    }

    /* Remove separators on mobile */
    .tech-spec-panel ul li:not(:last-child)::after {
        content: none !important;
    }
}
