/* Dark Mode Colors */
:root {
    --bg: ##ffffff;
    --surface: #f4f6f9;
    --text: #1f1f1f;
    --text-muted: #aaa;
    --accent: #0077b6;
    --surface-hover: #2a2a2a;
    --border: #e5e5e5;
}

/* Base Styles & Smooth Scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    /*background: url("images/bg.png") center center / cover no-repeat fixed;
    */
    background: var(--surface);
    text-align: center;
    padding: 8rem 2rem 6rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    position: relative;
}

/* Content wrapper with dark box */
header .text-box {
    background: rgba(0, 0, 0, 0.1); /* Darker box */
    display: inline-block;
    padding: 2rem 3rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.logo {
    width: 250px;
    height: 250px;
}
.staff {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--accent);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
}
header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}
h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
h4 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Service Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.gridCenter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
}
.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.cardwide {
    background: var(--surface);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}
.cardwide:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

img {
    border-radius: 12px;
}

/* Links */
a {
    color: var(--accent);
}
a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--surface);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Neural networks that start after header */
.neural-network {
    position: absolute !important;
    width: 100px;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.neural-network.left {
    left: 0;
}

.neural-network.right {
    right: 0;
}

.node {
    fill: #0077b6 !important;
    opacity: 0.8;
    filter: drop-shadow(0 0 4px rgba(0, 119, 182, 0.3));
}

.link {
    stroke: #0077b6 !important;
    stroke-width: 1.5;
    opacity: 0.4;
    stroke-linecap: round;
    fill: none;
}

/* Simple animations */
@keyframes pulseNode {
    0%,
    100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes flowLine {
    0% {
        stroke-dasharray: 0, 10;
        opacity: 0.3;
    }
    50% {
        stroke-dasharray: 5, 5;
        opacity: 0.6;
    }
    100% {
        stroke-dasharray: 10, 0;
        opacity: 0.3;
    }
}

.node:nth-child(odd) {
    animation: pulseNode 3s ease-in-out infinite;
}

.node:nth-child(even) {
    animation: pulseNode 3s ease-in-out infinite;
    animation-delay: 1s;
}

.link:nth-child(odd) {
    animation: flowLine 3s linear infinite;
}

.link:nth-child(even) {
    animation: flowLine 3s linear infinite;
    animation-delay: 1s;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .neural-network {
        width: 60px;
    }

    .neural-network.left {
        left: -20px;
    }

    .neural-network.right {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .neural-network {
        display: none; /* Hide on very small screens */
    }
}
/* Nav Banner */
.nav-banner {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-banner {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition:
        color 0.3s ease,
        transform 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #64b5f6;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav-logo {
    height: 100px; /* Adjust height as needed */
    width: auto; /* Maintains aspect ratio */
    display: block;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }

    .logo-banner {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 8px 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: 4px;
        margin: 0.2rem 0;
        transition: background 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .logo-banner {
        font-size: 1.2rem;
    }

    .nav-links a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Mobile card fixes */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
    }

    .gridCenter {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
        text-align: center; /* Center all content */
    }

    .cardwide .container {
        text-align: center; /* Center content in cardwide containers */
    }

    .logo {
        width: 200px;
        height: 200px;
        margin: 0 auto; /* Center the image */
        display: block; /* Make it a block element */
    }

    .staff {
        width: 200px;
        height: 200px;
        margin: 0 auto; /* Center the image */
        display: block; /* Make it a block element */
    }

    .card {
        text-align: center; /* Center text in cards */
        padding: 1.5rem; /* Reduce padding on mobile */
    }

    .cardwide {
        margin: 1rem auto; /* Reduce margin on mobile */
        padding: 1.5rem; /* Reduce padding on mobile */
        text-align: center; /* Center all content */
    }
    .nav-logo {
        height: 65px; /* Slightly smaller on mobile */
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .logo {
        width: 150px;
        height: 150px;
    }

    .staff {
        width: 150px;
        height: 150px;
    }

    .card {
        padding: 1rem;
    }

    .cardwide {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .container {
        padding: 1rem; /* Reduce container padding on very small screens */
    }
    .nav-logo {
        height: 50px; /* Even smaller on very small screens */
    }
}
