:root {
    --primary-color: #0a2342;
    --secondary-color: #1f6fb2;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-gray: #f9f9f9;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Nav Bar Fixed Alignment */
.top-nav {
    background: #fff;
    height: 115px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 115px; /* Scaled to fit nav better, container can handle 200px/300px if space allows */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-left: 20px; /* bring menu closer to logo */
}

.nav-menu li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px 15px;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
}

/* Hide mobile hamburger on desktop and ensure it moves to the far right when visible on mobile */
.menu-toggle {
    display: none; /* hidden on desktop */
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: block; margin-left: auto; }
    .menu-toggle .bar { background: var(--primary-color); }
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Primary: Unsplash professional/team image (royalty-free); fallbacks to local files */
    background: linear-gradient(rgba(10,35,66,0.65), rgba(10,35,66,0.65)),
                url('assets/hero-professional.jpg'),
                url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80'),
                url('hero.jpg');
    background-size: cover, cover, cover;
    background-position: center center, center center, center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    color: #fff;
}

.hero-overlay h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-overlay p {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 30px;
}

.cta-button {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.hero-overlay h1 { text-shadow: 0 10px 30px rgba(2,8,20,0.6); }

/* Hover polish for hero CTA */
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(10,35,66,0.18); transition: transform 220ms var(--anim-easing); }
[data-anim] {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    will-change: opacity, transform;
    transition-property: opacity, transform;
    transition-duration: var(--anim-duration);
    transition-timing-function: var(--anim-easing);
    transition-delay: var(--delay, 0ms);
}

[data-anim="fade-up"] { transform: translateY(22px); }
[data-anim="slide-left"] { transform: translateX(-22px) rotateZ(-0.2deg); }
[data-anim="slide-right"] { transform: translateX(22px) rotateZ(0.2deg); }
[data-anim="zoom-in"] { transform: scale(.96); opacity: 0; }

[data-anim].is-visible {
    opacity: 1;
    transform: none;
}

/* Subtle hover interactions for interactive blocks */
.service-box, .grid-item, .step, .infra-list li, .software-card {
    transition: transform 240ms var(--anim-easing), box-shadow 240ms var(--anim-easing);
}
.service-box:hover, .grid-item:hover, .step:hover, .infra-list li:hover, .software-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 48px rgba(10,35,66,0.12);
    cursor: default;
}

/* When revealed, allow a smaller hover lift */
[data-anim].is-visible:hover { transform: translateY(-6px) scale(1.01); }

/* Section title accent animation */
.section-title { position: relative; }
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 4px;
    width: 36px;
    background: var(--secondary-color);
    border-radius: 3px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 520ms var(--anim-easing);
}
.section-title.is-visible::after { transform: scaleX(1); }

/* Content Sections */
.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
}

.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.gray-bg { background: var(--bg-gray); }
.navy-bg { background: var(--primary-color); }
.white-text { color: #fff; }

.text-block p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Ensure text is readable on dark/navy backgrounds */
.navy-bg, .navy-bg p, .navy-bg .grid-item p, .navy-bg .step p {
    color: var(--text-light);
}
.navy-bg .section-title { color: var(--text-light); border-bottom-color: rgba(255,255,255,0.12); }
.navy-bg .grid-item h3 { color: var(--text-light); }
.navy-bg .workflow-steps .step h4 { color: var(--text-light); }
.navy-bg .step span { background: var(--secondary-color); color: #fff; }

/* Services Boxes */
.service-box {
    background: #fff;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-box h3 { margin-bottom: 15px; color: var(--primary-color); }
.check-list { list-style: none; margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; }
.check-list li::before { content: "✓ "; color: var(--secondary-color); font-weight: bold; }

/* Grid Layouts */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item h3 { margin-bottom: 10px; color: var(--secondary-color); }

/* Workflow */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step { flex: 1; min-width: 180px; text-align: center; padding: 10px; }
.step span {
    display: block;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    margin: 0 auto 15px;
    border-radius: 50%;
    line-height: 50px;
    font-weight: bold;
}

/* Infrastructure */
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.infra-list li { margin-bottom: 10px; list-style-type: square; margin-left: 20px;}

/* Footer & Contact */
.footer { background: var(--primary-color); color: var(--text-light); padding: 60px 0; }
.footer .map-placeholder { background: rgba(255,255,255,0.04); color: var(--text-light); }
.footer a { color: var(--text-light); text-decoration: underline; }
.footer .social-links { display: flex; gap: 20px; margin-top: 15px; }
.footer .social-links span { display: flex; align-items: center; gap: 8px; font-size: 1.1em; }

.footer-content {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: stretch;
    justify-content: space-between;
}
.contact-details {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.map-area {
    flex: 1 1 420px;
    min-width: 320px;
    max-width: 600px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}
.map-placeholder, .map-area iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
}
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    .map-area, .contact-details {
        max-width: 100%;
        min-width: 0;
    }
    .map-placeholder, .map-area iframe {
        min-height: 220px;
    }
}

/* Software Logos Section */
.software-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}
.software-logo {
    height: 48px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(10,35,66,0.08);
    padding: 6px 12px;
    transition: transform 0.2s;
}
.software-logo:hover {
    transform: scale(1.08);
}

/* Software Cards Section */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 32px;
}
.software-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(10,35,66,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 12px 12px 12px;
    min-height: 200px;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
    cursor: pointer;
    position: relative;
}
.software-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 32px rgba(10,35,66,0.18);
    z-index: 2;
}
.software-logo {
    max-width: 150px;
    height: 150px;
    margin-bottom: 18px;
    object-fit: contain;
    display: block;
}
.software-name {
    font-size: 1.08em;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: auto;
    padding-top: 12px;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 100px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { margin: 20px 0; }
    .menu-toggle { cursor: pointer; display: block; }
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background: var(--primary-color);
    }
    .footer-content, .infra-grid, .check-list { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .software-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .software-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .software-grid { grid-template-columns: 1fr; }
}

/* Scroll-triggered animations (reusable) */
:root {
    --anim-duration: 620ms;
    --anim-easing: cubic-bezier(.2,.9,.2,1);
}

[data-anim] {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    will-change: opacity, transform;
    transition-property: opacity, transform;
    transition-duration: var(--anim-duration);
    transition-timing-function: var(--anim-easing);
    transition-delay: var(--delay, 0ms);
}

[data-anim="fade-up"] { transform: translateY(22px); }
[data-anim="slide-left"] { transform: translateX(-22px); }
[data-anim="slide-right"] { transform: translateX(22px); }
[data-anim="zoom-in"] { transform: scale(.98); }

[data-anim].is-visible {
    opacity: 1;
    transform: none;
}

/* Small utility to slightly elevate cards when revealed */
.reveal-elevate[data-anim].is-visible { box-shadow: 0 12px 36px rgba(10,35,66,0.12); transform: translateY(-6px) scale(1); }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-anim] { transition: none !important; transform: none !important; opacity: 1 !important; }
}