/* ============================================
   ASUSTOR ID - Main Stylesheet
   Modern, Clean & Premium Design
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --fg: #0f172a;
    --fg-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 15px;
}

/* Base Utility Classes */
.max-w-6xl { max-width: 1400px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-5 { padding-left: 1.5rem; padding-right: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-7 { gap: 2rem; }
.h-16 { height: 4.5rem; }

/* ====== HEADER ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.logo {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--accent); }

.nav-link {
    color: var(--fg-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}
.nav-link:hover { color: var(--accent); }

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

/* ====== BANNER ====== */
.banner {
    margin-top: 4.5rem;
    height: 500px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.banner-track { display: flex; height: 100%; }
.banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 100%);
    z-index: 1;
}
.banner-slide:not([style*="background-image"]) .banner-overlay {
    display: none;
}
.banner-content {
    position: relative;
    z-index: 2;
}
.banner-tag {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.banner-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--fg);
    line-height: 1.2;
}
.banner-title span { color: var(--accent); }
.banner-desc {
    color: var(--fg-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
    font-weight: 400;
}
.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.2s ease;
}
.banner-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ====== SECTIONS ====== */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.section-desc {
    font-size: 1rem;
    color: var(--fg-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ====== FILTER BAR ====== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.6rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fg-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* ====== PRODUCT GRID ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.product-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Image Container - Ready for product images */
.product-image {
    height: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px dashed var(--border);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-cat {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.product-name a { color: inherit; text-decoration: none; transition: color 0.2s; }
.product-name a:hover { color: var(--accent); }
.product-desc {
    font-size: 0.85rem;
    color: var(--fg-muted);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.spec-tag {
    font-size: 0.75rem;
    color: var(--fg-muted);
    background: var(--bg-alt);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}
.btn-detail {
    flex: 1;
    padding: 0.6rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}
.btn-detail:hover {
    border-color: var(--fg);
    background: var(--bg-alt);
}
.btn-order {
    flex: 1;
    padding: 0.6rem;
    background: var(--fg);
    border: 1px solid var(--fg);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}
.btn-order:hover {
    background: #000;
    border-color: #000;
}

/* ====== FEATURES ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.feature-card {
    padding: 2rem;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.feature-desc {
    font-size: 0.9rem;
    color: var(--fg-muted);
    font-weight: 400;
    line-height: 1.6;
}

/* ====== CTA ====== */
.cta-section {
    background: linear-gradient(135deg, var(--fg) 0%, #1e293b 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
}
.cta-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}
.cta-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #22c55e;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}
.cta-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* ====== FOOTER ====== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }
.footer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}
.footer-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}
.social-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: -3.5rem;
}
.footer-contact__title {
    margin-left: -3.5rem;
}
.footer-contact__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.footer-contact__icon {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}
.footer-contact__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.footer-contact__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.footer-contact__value {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}
.footer-contact__address {
    font-style: normal;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 320px;
}
.footer-contact__link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact__link:hover {
    color: white;
}
.footer-contact__schedule {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.footer-contact__schedule + .footer-contact__schedule {
    margin-top: 4px;
}
.footer-contact__schedule-time {
    color: #cbd5e1;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}
.footer-col-shift {
    margin-left: -3rem;
}
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .product-grid, .features-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        font-size: 1.1rem;
    }
    .product-grid, .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .banner { height: 400px; }
    .banner-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .product-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    .banner-slide { padding: 0 5%; text-align: center; }
    .banner-btn { margin: 0 auto; }
}