/* ==========================================
   Gigalink Technologies — Public Site Styles
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 0 18px;
    line-height: 70px;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: #0066cc; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #0a1628;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 40px 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
}
.hero-overlay h2 {
    font-size: 32px;
    font-weight: 700;
    max-width: 700px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hero-dots .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.hero-dots .dot.active { background: #0066cc; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 48px; height: 48px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.hero-arrow:hover { background: rgba(0,102,204,0.8); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* --- Section Headings --- */
.section-heading {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0066cc;
    border-radius: 2px;
}

/* --- Product Cards Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 15px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #0066cc;
}
.product-card .card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding: 10px;
    background: #fafafa;
    border-radius: 3px;
}
.product-card .card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .card-name a { color: #333; }
.product-card .card-name a:hover { color: #0066cc; }
.product-card .card-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.product-card .card-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #0066cc;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 10px;
}

/* --- Recommended Section --- */
.section-recommended { padding: 60px 0; }

/* --- About Section --- */
.section-about {
    background: #f7f7f7;
    padding: 60px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: center;
}
.about-label {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.about-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}
.about-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}
.about-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Stat boxes */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.stat-box {
    text-align: center;
    padding: 20px 25px;
    background: #fff;
    border-radius: 6px;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    line-height: 1.2;
}
.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* CTA Button */
.btn-primary {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #0052a3; }

/* --- New Products Section --- */
.section-new-products {
    position: relative;
    background: url('https://gigalinksecurity.com/wp-content/uploads/2025/12/index_newPro_bg.webp') center/cover no-repeat;
    padding: 80px 0;
}
.section-new-products::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,0.85);
}
.new-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.new-products-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.new-products-content { color: #fff; }
.new-products-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 15px;
}
.new-products-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0066cc;
}
.new-products-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}
.cta-links { display: flex; flex-direction: column; gap: 0; }
.cta-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    color: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #2a2a3e;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.cta-link:hover { background: #0066cc; }
.cta-link::after { content: '→'; font-size: 18px; }

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(135deg, #0a1628 0%, #132039 100%);
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}
.page-banner .breadcrumb {
    color: #8a9ab0;
    font-size: 13px;
    margin-top: 10px;
}
.page-banner .breadcrumb a { color: #8a9ab0; }
.page-banner .breadcrumb a:hover { color: #fff; }

/* --- Category Filter Tabs --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}
.filter-tab {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* --- Product Detail --- */
.product-detail { padding: 50px 0; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.detail-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}
.detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.detail-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 2px solid #eee;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.detail-thumbs img:hover,
.detail-thumbs img.active { border-color: #0066cc; }
.detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}
.detail-info .card-badge { margin-bottom: 16px; }
.detail-info .desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.specs-table tr:nth-child(odd) { background: #f7f9fc; }
.specs-table td {
    padding: 10px 15px;
    border: 1px solid #eee;
    font-size: 13px;
}
.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
    background: #f0f4f8;
}

/* Related Products */
.section-related {
    padding: 60px 0;
    background: #f7f7f7;
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0 60px;
}
.news-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.news-card .card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card-body { padding: 20px; }
.news-card .card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.news-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card .card-title a { color: #222; }
.news-card .card-title a:hover { color: #0066cc; }
.news-card .card-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
}
.news-card .read-more {
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
}
.news-card .read-more:hover { text-decoration: underline; }

/* --- Article Detail --- */
.article-detail { padding: 50px 0; max-width: 800px; margin: 0 auto; }
.article-detail h1 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}
.article-detail .article-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
}
.article-detail .article-thumb {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 25px;
}
.article-detail .article-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.article-detail .article-body p { margin-bottom: 16px; }
.back-link {
    display: inline-block;
    color: #0066cc;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
}
.back-link:hover { text-decoration: underline; }

/* --- About Page --- */
.section-about-full { padding: 60px 0; }
.about-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.about-full-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}
.about-full-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 16px;
}

/* --- Contact Page --- */
.section-contact { padding: 60px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #dde1e7;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}
.contact-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}
.contact-info strong { color: #333; }

/* Success / Error alerts */
.alert {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 0 50px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #555;
    transition: all 0.2s;
}
.pagination a:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}
.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a2e;
    padding: 30px 0 20px;
    text-align: center;
}
.footer-links { margin-bottom: 12px; }
.footer-links a {
    color: #aaa;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-links .sep {
    color: #444;
    margin: 0 10px;
    font-size: 13px;
}
.footer-copy {
    color: #666;
    font-size: 12px;
}

/* --- Fade-in animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-full-grid { grid-template-columns: 1fr; }
    .new-products-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        line-height: normal;
        padding: 14px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider { height: 300px; }
    .hero-overlay { padding: 20px 25px; }
    .hero-overlay h2 { font-size: 20px; }
    .stats-row { flex-direction: column; gap: 10px; }
    .stat-number { font-size: 28px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .filter-tabs { flex-direction: column; align-items: center; }
}
