/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    min-height: 85px;
    padding: 1rem 0;
    background-color: #fff !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-logo {
    height: 45px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.brand-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a4a5c;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

.language-flag {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

.inquiry-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.inquiry-btn:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .inquiry-btn {
        margin-top: 1rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 74, 92, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    max-width: 700px;
    margin: 0 auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.hero-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* Feature Cards */
.feature-card {
    padding: 3rem 2rem;
    background: white;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 3.5rem;
    color: #333;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.feature-divider {
    width: 60px;
    height: 3px;
    background-color: #333;
    margin: 0 auto 1.5rem auto;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
    padding: 0 1rem;
    flex-grow: 1;
}

/* About Section */
#about {
    position: relative;
    overflow: hidden;
}

.about-content {
    padding-left: 2rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-stats {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .about-content {
        padding-left: 0;
        text-align: center;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-stats {
        margin: 1.5rem 0;
    }
}

/* Section General Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.section-subtitle {
    color: #666;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Advantages Section */
#advantages {
    background-color: #f8f9fa;
}

.advantage-image {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advantage-image:hover {
    transform: scale(1.02);
}

.advantage-content {
    padding: 2rem;
}

.advantage-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.advantage-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-features li {
    padding: 0.5rem 0;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.advantage-features i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .advantage-content {
        padding: 1rem;
        text-align: center;
    }
    
    .advantage-title {
        font-size: 1.5rem;
    }
    
    .advantage-image {
        height: 300px;
        margin-bottom: 1rem;
    }
    
    .advantage-features {
        text-align: left;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .advantage-image {
        height: 250px;
    }
    
    .advantage-title {
        font-size: 1.3rem;
    }
    
    .advantage-description {
        font-size: 0.95rem;
    }
}

/* Product Pages Styles */
.product-hero {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.product-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.product-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-actions .btn {
    margin-bottom: 1rem;
}

/* Product Category Cards */
.product-category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.product-category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-content {
    padding: 1.5rem;
}

.category-content h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.category-features li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.category-features li:before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Application Steps */
.step-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

/* Quality Cards */
.quality-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #004d99);
}

/* Product Section */
.product-section {
    padding: 3rem 0;
}

.product-features .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
    
    .product-hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .category-image {
        height: 150px;
    }
    
    .step-card, .quality-card {
        margin-bottom: 1rem;
    }
}

/* Factory Location Section */
#location {
    background-color: var(--light-color);
}

.location-content {
    padding: 2rem;
}

.location-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item i {
    margin-top: 0.25rem;
    font-size: 1.2rem;
}

.location-item div {
    flex: 1;
}

.location-item strong {
    color: #333;
    font-weight: 600;
}

.location-actions {
    margin-top: 2rem;
}

.location-actions .btn {
    margin-bottom: 1rem;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-placeholder iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Factory Features */
.factory-feature {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.factory-feature:hover {
    transform: translateY(-5px);
}

.factory-feature h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.factory-feature p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .location-content {
        padding: 1rem;
        text-align: center;
    }
    
    .location-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .location-item i {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    
    .map-container {
        margin-top: 2rem;
    }
    
    .location-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .map-placeholder iframe {
        height: 300px;
    }
    
    .location-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .factory-feature {
        margin-bottom: 1rem;
    }
}

/* Technical Specifications Styles */
.spec-section {
    padding: 2rem 0;
}

.spec-image-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.spec-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.spec-image:hover {
    transform: scale(1.02);
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.spec-content {
    padding: 0 2rem;
}

.spec-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-table-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.spec-table {
    margin-bottom: 0;
}

.spec-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.spec-table tbody tr:last-child {
    border-bottom: none;
}

.spec-label {
    width: 35%;
    padding: 1rem 0.75rem;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e9ecef;
    vertical-align: top;
}

.spec-value {
    padding: 1rem 0.75rem;
    color: #555;
    line-height: 1.6;
    vertical-align: top;
}

.spec-value .text-muted {
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d !important;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Design for Specifications */
@media (max-width: 991.98px) {
    .spec-content {
        padding: 0;
        margin-top: 1rem;
    }
    
    .spec-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .spec-image-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .spec-table-container {
        padding: 1rem;
    }
    
    .spec-label {
        width: 40%;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .spec-value {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .spec-value .text-muted {
        font-size: 0.8rem;
    }
    
    .spec-image-container {
        height: 200px;
        margin-bottom: 1rem;
    }
}

/* Hero Image Styles */
.product-hero img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-hero img:hover {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-description {
        text-align: center;
        padding: 0;
    }
    
    .advantage-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
.btn {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Image Styles */
.img-fluid {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Modal Styles */
.contact-modal {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-modal .modal-header {
    background: linear-gradient(135deg, #0066cc, #004d99);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.contact-modal .modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.contact-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.contact-modal .btn-close:hover {
    opacity: 1;
}

.contact-form {
    background-color: #fff;
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-form .form-check-input {
    margin-top: 0.25rem;
}

.contact-form .form-check-label {
    font-size: 0.9rem;
    color: #666;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #0066cc, #004d99);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0052a3, #003d7a);
}

/* Form Validation Styles */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form .form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    font-size: 0.875rem;
    color: #28a745;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Form Alert Styles */
.form-alert {
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Loading Button Animation */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Form Validation */
.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .contact-modal .modal-dialog {
        margin: 1rem;
    }
    
    .contact-modal .modal-body {
        padding: 1.5rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 1rem;
    }
    
    .form-alert {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}
