/* ---------------------------------------------------------
   Global Reset & Base
--------------------------------------------------------- */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: #f5f6f7;
    color: #1a1a1a;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ---------------------------------------------------------
   Brand Pulse & Typography
--------------------------------------------------------- */

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #4DA3FF; /* Brand Blue */
    text-decoration: none;
}


.pulse {
    animation: pulse 4.2s ease-in-out infinite;
}

@keyframes pulse {
    0%   { color: #4DA3FF; }  /* Brand Blue */
    50%  { color: #5CCEFF; }  /* Glow Accent */
    100% { color: #4DA3FF; }  /* Brand Blue */
}

/* Pulse animation for the Zlix circle logo */
.zmark-circle {
    animation: zmarkPulse 4.2s ease-in-out infinite;
}

@keyframes zmarkPulse {
    0%   { fill: #004FCC; }  /* Deep Blue */
    50%  { fill: #1A6FE8; }  /* Medium-dark Blue (still high contrast) */
    100% { fill: #004FCC; }  /* Deep Blue */
}

/* ---------------------------------------------------------
   Header & Navigation
--------------------------------------------------------- */

.site-header {
    background: #0f0f0f;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: 0.75rem;
    color: #b5b5b5;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.nav a:hover {
    opacity: 0.7;
}

/* Desktop spacing */
@media (min-width: 1200px) {
    .site-header {
        padding: 20px 60px;
    }
}

/* ---------------------------------------------------------
   Hamburger Menu (Mobile)
--------------------------------------------------------- */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 650px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0f0f0f;
        padding: 15px 0;
        border-top: 1px solid #222;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px 20px;
        font-size: 1rem;
        border-bottom: 1px solid #222;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ---------------------------------------------------------
   Dropdown Menus
--------------------------------------------------------- */

.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #0f0f0f;
    border: 1px solid #222;
    min-width: 160px;
    top: 28px;
    z-index: 200;
    flex-direction: column;
}

.dropdown-content a {
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: #1a1a1a;
    color: #4DA3FF; /* Brand Blue */
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Mobile dropdown behavior */
@media (max-width: 650px) {
    .dropdown-content {
        position: static;
        border: none;
        background: #0f0f0f;
    }

    .dropbtn {
        padding: 12px 20px;
        text-align: left;
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Dark Mode
--------------------------------------------------------- */

body.dark {
    background: #0d0d0d;
    color: #e5e5e5;
}

body.dark .site-header,
body.dark .site-footer {
    background: #000;
}

body.dark .product-card {
    background: #1a1a1a;
    border-color: #333;
}

body.dark .hero {
    background: linear-gradient(135deg, #004C99, #003366);
}

body.dark .hamburger span {
    background: #fff;
}

/* ---------------------------------------------------------
   Hero Section
--------------------------------------------------------- */

.hero {
    background: linear-gradient(135deg, #4DA3FF, #0066DD);
    color: #ffffff;
    padding: 60px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease forwards;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #0066DD;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.button:hover {
    background: #004C99;
}

/* Desktop hero scaling */
@media (min-width: 800px) {
    .hero {
        padding: 80px 60px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1200px) {
    .hero {
        padding: 100px 80px;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.4rem;
        max-width: 800px;
    }
}

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */

.section {
    margin-top: 50px;
    animation: fadeIn 0.6s ease forwards;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* ---------------------------------------------------------
   Product Cards & Grids
--------------------------------------------------------- */

.product-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    animation: fadeIn 0.6s ease forwards;
}

.product-card h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* 2-column grid */
@media (min-width: 900px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* 3-column grid for ultrawide */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------
   List Formatting
--------------------------------------------------------- */

.content ul {
    margin: 12px 0 20px 25px; /* top, right, bottom, left */
    padding-left: 15px;
    list-style-type: disc;
}

.content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Footer (Compact Enterprise Layout)
--------------------------------------------------------- */

.site-footer {
    background: #0f0f0f;
    color: #ffffff;
    padding: 30px 20px;
    border-top: 1px solid #222;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.footer-column a:hover {
    color: #4DA3FF; /* Brand Blue */
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 10px;
}

/* Desktop footer layout */
@media (min-width: 800px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    .site-footer {
        padding: 40px 60px;
    }
}

/* ---------------------------------------------------------
   Animations
--------------------------------------------------------- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
