/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a3a6b;
    --secondary-blue: #2c5282;
    --accent-orange: #ed8936;
    --dark-gray: #333333;
    --light-gray: #f7f7f7;
    --text-color: #555555;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-blue);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, #1a4a8a 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 22px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #dd6b20;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(237, 137, 54, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-full {
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-color);
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 36px;
}

.feature-item h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-color);
}

/* Product Tag Label */
.product-tag-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(26, 58, 107, 0.3);
    letter-spacing: 0.5px;
}

/* Product Categories */
.product-category {
    margin-bottom: 80px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-orange);
    display: inline-block;
}

.subcategory-title {
    font-size: 20px;
    color: var(--secondary-blue);
    margin: 25px 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid var(--accent-orange);
}

.product-subcategory {
    margin-bottom: 20px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-spec {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.5;
}

.product-desc {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 12px;
    line-height: 1.6;
}

.product-features {
    margin-top: 15px;
    padding-left: 20px;
}

.product-features li {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* 4 Column Products Grid */
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.products-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .products-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-main-grid {
        grid-template-columns: 1fr;
    }
}

.products-grid-4 .product-card {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid-4 {
        grid-template-columns: 1fr;
    }
}

.specs-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 15px;
    text-align: right;
}

.specs-note-card {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 10px;
    text-align: left;
}

/* Specifications Table */
.specs-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

thead {
    background: var(--primary-blue);
    color: var(--white);
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ZYBW Series Specifications Table */
.specs-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
}

.specs-table-v2 {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.specs-table-v2 th {
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    border: none;
}

.specs-table-v2 td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.specs-table-v2 tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.specs-table-v2 tbody tr:hover {
    background: #e8f4fc;
}

/* Specification Toggle (Hidden by default) */
.specs-hidden {
    display: none;
}

.specs-visible {
    display: block;
}

/* Specification Toggle Button */
.btn-spec-toggle {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.btn-spec-toggle:hover {
    background: var(--secondary-blue);
}

/* Product Gallery */
.product-gallery {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-item p {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
}

/* Form Status Message */
.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 28px;
    color: var(--white);
    letter-spacing: 2px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 15px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content,
    .products-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 0;
    }
}
