:root {
    --primary-color: #0b3d91;
    --secondary-color: #fce300;
    --accent-color: #c8102e;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f4f6f9;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
}

/* Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.brand-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.back-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: rgba(11, 61, 145, 0.05);
}

.back-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-3px);
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

.page-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.system-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-color);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Staggered animation delays */
.system-card:nth-child(1) {
    animation-delay: 0.1s;
}

.system-card:nth-child(2) {
    animation-delay: 0.2s;
}

.system-card:nth-child(3) {
    animation-delay: 0.3s;
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.system-card:hover .icon-wrapper {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1) rotate(5deg);
}

.card-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.system-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-footer {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.system-card:hover .card-footer {
    gap: 12px;
}

/* SVG Icons */
.icon {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 25px;
    margin-top: auto;
    border-top: 3px solid var(--accent-color);
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 2.2rem;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 3rem 5%;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 520px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .back-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 10px 14px;
    }

    main {
        padding: 2.25rem 5%;
    }

    .page-header {
        margin-bottom: 2.25rem;
    }

    .page-header h2 {
        font-size: 1.85rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .systems-grid {
        gap: 18px;
    }

    .card-body {
        padding: 26px 18px;
    }

    .icon-wrapper {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .system-card h3 {
        font-size: 1.2rem;
    }

    .system-card p {
        font-size: 0.98rem;
        margin-bottom: 22px;
    }
}