
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fa;
    color: #222;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #0d1b2a;
    color: white;
}

nav a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    display: flex;
    height: 300px;
    text-align: center;
    position: relative;
}

.stream {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left {
    background: linear-gradient(to right, #1b263b, transparent);
    color: white;
}

.right {
    background: linear-gradient(to left, #1b263b, transparent);
    color: white;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.cards {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.card {
    background: #e0e5ec;
    margin: 0 20px;
    padding: 30px 40px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.card:hover {
    background: #b9c2d1;
}

footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 20px;
}

:root {
    --primary-blue: #0a3d62;
    --accent-orange: #f39c12;
}

header {
    background: var(--primary-blue);
}

nav a:hover {
    color: var(--accent-orange);
}

.left {
    background: linear-gradient(to right, var(--accent-orange), transparent);
}

.right {
    background: linear-gradient(to left, var(--primary-blue), transparent);
}

.card {
    border-left: 5px solid var(--accent-orange);
}

.page-header {
    background: var(--primary-blue);
    color: white;
    padding: 40px;
    text-align: center;
}

.social-links a {
    color: var(--accent-orange);
    margin: 0 10px;
}

/* Hero Stream Animation */
.stream {
    background-size: 200% 100%;
    animation: flow 6s linear infinite;
}

@keyframes flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.social-links a:hover {
    text-decoration: underline;
}

/* Network & Security section styling */
.network .service-card {
    border-left: 5px solid var(--accent-orange);
    transition: 0.3s;
}

.network .service-card:hover {
    background: #ffd699; /* light orange hover */
}

/* Network & Security full orange theme */
.network-hero {
    background: var(--accent-orange);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.network-hero h1, .network-hero p {
    color: white;
}

/* Homepage hero streams animation */
.hero .stream {
    background-size: 200% 100%;
    animation: flow 8s linear infinite;
}

@keyframes flow {
    0% { background-position: 200% 0; }
    50% { background-position: 0 0; }
    100% { background-position: 200% 0; }
}

/* Ensure streams have correct colors */
.hero .left {
    background: linear-gradient(to right, var(--accent-orange), transparent);
}

.hero .right {
    background: linear-gradient(to left, var(--primary-blue), transparent);
}

/* Center logo styling */
.hero .center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


.hero .center-logo:hover {
    box-shadow: 0 0 50px rgba(243,156,18,0.9);
}


/* Subtle data flow effect on hero streams */
.hero .left, .hero .right {
    position: relative;
    overflow: hidden;
}

/* Create moving dots for left and right streams */
.hero .left::after, .hero .right::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: dataFlow 6s linear infinite;
}

.hero .right::after {
    animation-direction: reverse;
}

@keyframes dataFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Responsive / Mobile styles */
:root {
    --text-dark: #0d1b2a;
    --background-light: #ffffff;
}

/* Desktop nav uses inline links; menu-list hidden by default on desktop */
nav {
    position: relative;
}

/* Hide menu toggle on desktop */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Menu list defaults (desktop: horizontal using existing links) */
nav .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
nav .menu-list li {
    margin-left: 20px;
}
/* Remove default anchor margin on li links */
nav .menu-list li a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

/* Slide-out menu styles for mobile */
@media (max-width: 768px) {
    header {
        padding: 12px 18px;
    }
    /* show hamburger */
    .menu-toggle {
        display: block;
        color: white;
    }
    /* hide the inline horizontal list and use slide-out */
    nav .menu-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 240px;
        background: var(--background-light);
        color: var(--text-dark);
        flex-direction: column;
        padding-top: 70px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -4px 0 12px rgba(0,0,0,0.12);
        z-index: 1000;
    }
    nav .menu-list.show-menu {
        transform: translateX(0);
    }
    nav .menu-list li {
        margin: 16px 20px;
    }
    nav .menu-list li a {
        color: var(--text-dark);
        font-size: 16px;
    }
    header {
        justify-content: space-between;
    }

    /* Hero stacks vertically on mobile */
    .hero {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 0;
    }
    .hero .left, .hero .right {
        width: 100%;
        height: 140px;
    }
    .hero .center-logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        max-width: 380px;
        margin: 20px auto;
        padding: 24px 20px;
        text-align: center;
        background: rgba(255,255,255,0.95);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    .hero .center-logo h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .hero .center-logo p {
        font-size: 15px;
        line-height: 1.3;
    }

    /* Cards stack vertically */
    .cards {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }
    .card {
        margin: 10px 0;
        width: auto;
    }

    /* Improve footer spacing */
    footer {
        padding: 24px 12px;
        font-size: 14px;
    }
}

/* Dim background overlay */
.menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 900;
    }
    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}
