/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    font-family: Segoe UI, Arial, sans-serif;
    color: #1a1a2e;
    background: #f8f9fb;
    overflow-x: hidden;
    width: 100%
}

a { color: inherit; text-decoration: none }

/* ===== NAVBAR ===== */
.navbar {
    background: #000;
    padding: 18px 32px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo-link { text-decoration: none }

.logo { line-height: 1.25 }

.logo-top { display: flex; gap: 5px }

.logo-the {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px
}

.logo-cyber {
    color: #2196f3;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px
}

.logo-bottom {
    color: #ff4d4d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 5px;
    margin-top: 2px
}

.logo-tagline {
    color: #fff;
    font-size: 10px;
    margin-top: 3px;
    letter-spacing: 1px;
    font-weight: 500
}

.nav-toggle { display: none }

.nav-toggle-label {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    color: #fff;
    font-size: 14px;
    align-items: center
}

.nav-links a {
    color: #fff;
    transition: color 0.2s
}

.nav-links a:hover { color: #2196f3 }

/* Dropdown */
.service-item { position: relative }

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #0a0a0a;
    border: 1px solid #2196f3;
    border-top: 2px solid #2196f3;
    width: 250px;
    list-style: none;
    margin: 15px 0 0;
    box-shadow: 0 10px 40px rgba(33,150,243,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s
}

.service-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible
}

.dropdown-menu li {
    border-bottom: 1px solid #1a1a1a;
    list-style: none
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    font-size: 13px;
    transition: padding-left 0.15s, color 0.15s
}

.dropdown-menu a:hover {
    background: #111;
    color: #2196f3;
    padding-left: 26px
}

.has-submenu { position: relative }

.mega-menu {
    position: absolute;
    right: 100%;
    top: 0;
    background: #0a0a0a;
    border: 1px solid #333;
    border-right: 2px solid #2196f3;
    width: 680px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.6)
}

.has-submenu:hover .mega-menu {
    opacity: 1;
    visibility: visible
}

.mega-menu a {
    font-size: 11.5px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #ccc
}

.mega-menu a:hover {
    background: #1a1a1a;
    color: #2196f3
}

/* ===== HERO ===== */
.hero-home {
    /* Dark navy base + the circuit board bg image on top */
    background-color: #07091e;
    background-image: url("images/hero-bg.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 70px 50px;
    color: #fff;
    min-height: 86vh;
    display: flex;
    flex-direction: column;
    width: 100%
}

.hero-grid {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch
}

/* Left column */
.hero-left {
    display: flex;
    flex-direction: column
}

.hero-home h1 {
    font-family: Arial Black, Arial, sans-serif;
    font-size: clamp(30px, 3.5vw, 54px);
    line-height: 1.08;
    margin: 0 0 16px
}

.gradient-text {
    background: linear-gradient(90deg, #ffee58, #fdd835);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent
}

.lead {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 35px;
    flex: 1
}

.hero-card {
    background: rgba(3,8,22,0.75);
    border: 1.5px solid var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    min-height: 100px
}

/* Right column */
.hero-right {
    display: flex;
    flex-direction: column
}

/* ===== CAROUSEL ===== */
.carousel-container {
    flex: 1;
    min-height: 250px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #1e88e5;
    position: relative
}

.slides {
    display: flex;
    width: 600%;
    height: 100%;
    animation: slideShow 18s infinite
}

.slides img {
    width: 16.6667%;
    height: 100%;
    object-fit: cover;
    display: block
}

@keyframes slideShow {
    0%,  15% { transform: translateX(0%) }
    16%, 31% { transform: translateX(-16.6667%) }
    32%, 47% { transform: translateX(-33.3333%) }
    48%, 63% { transform: translateX(-50%) }
    64%, 79% { transform: translateX(-66.6667%) }
    80%, 95% { transform: translateX(-83.3333%) }
    100%      { transform: translateX(0%) }
}

/* ===== TRUST BOX ===== */
.trust-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(4,12,35,0.85);
    border: 1px solid #1e88e5;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    margin-top: 16px
}

.trust-label {
    color: #00e5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px
}

.trust-text {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    margin-top: 5px
}

/* ===== SECTIONS ===== */
.section { padding: 70px 24px; width: 100% }

.white { background: #fff }
.blue-bg { background: #e8f0fe }
.gray { background: #eef1f8 }

.container {
    max-width: 1200px;
    margin: 0 auto
}

.center { text-align: center }

.section-title {
    color: #0d47a1;
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 800;
    margin: 0 0 12px
}

.title-line {
    width: 44px;
    height: 4px;
    background: #0d47a1;
    border-radius: 2px;
    margin: 0 auto 40px
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: left
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1)
}

.card h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #1565c0;
    font-weight: 900
}

.card p {
    font-size: 14px;
    line-height: 1.7;
    color: #555
}

.btn {
    display: inline-flex;
    padding: 10px 22px;
    border-radius: 30px;
    background: #1565c0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-top: 14px;
    transition: background 0.2s
}

.btn:hover { background: #0d47a1 }

/* ===== OTHER PAGE ELEMENTS ===== */
.page-hero {
    background: linear-gradient(135deg, #0d1b3e 0%, #1565c0 100%);
    padding: 70px 24px;
    color: #fff
}

.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px }
.page-hero p { font-size: 18px; opacity: 0.9 }

.content-box {
    background: #fff;
    border-radius: 14px;
    padding: 42px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05)
}

.content-box p,
.content-box li {
    font-size: 15px;
    color: #555;
    line-height: 1.8
}

.two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.highlight {
    background: #e3f2fd;
    color: #1565c0;
    padding: 18px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center
}

.brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center
}

.brand-name {
    padding: 10px 16px;
    border: 1px solid #d9e4f7;
    border-radius: 999px;
    color: #1a5bb5;
    font-weight: 700;
    background: #fff
}

.cta {
    background: #0d1b3e;
    color: #fff;
    padding: 40px 24px
}

.cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.note {
    background: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 16px 20px;
    border-radius: 8px;
    color: #5d4b00
}

/* ===== FOOTER ===== */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 20px;
    border-top: 1px solid #333;
    width: 100%
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px
}

.footer h4 { margin: 0 0 20px; font-size: 16px; color: #fff }

.footer ul { list-style: none }

.footer li,
.footer p,
.footer a {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6
}

.footer a:hover { color: #2196f3 }
.footer li { margin-bottom: 12px }

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 13px
}

/* ===== RESPONSIVE: TABLET (≤980px) ===== */
@media (max-width: 980px) {
    .hero-home {
        padding: 50px 30px;
        min-height: auto;
        background-position: top right
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .hero-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%
    }

    .hero-right {
        min-height: 380px
    }

    .services-grid,
    .three-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .two-grid {
        grid-template-columns: 1fr
    }

    .trust-box {
        grid-template-columns: repeat(4, 1fr)
    }

    .mega-menu {
        position: static;
        width: auto;
        display: block;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        border-top: 1px solid #333
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* ===== RESPONSIVE: MOBILE (≤600px) ===== */
@media (max-width: 600px) {
    /* Navbar */
    .navbar { padding: 14px 20px }

    .navbar-inner { align-items: center; position: relative }

    .nav-toggle-label { display: block }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #000;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        border-bottom: 1px solid #333;
        gap: 16px;
        z-index: 999
    }

    .nav-toggle:checked ~ .nav-links { display: flex }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        width: 100%;
        margin: 6px 0 0;
        box-shadow: none
    }

    /* Hero */
    .hero-home {
        padding: 40px 20px;
        background-image: none;    /* hide bg image on small screens for clarity */
        background-color: #07091e
    }

    .hero-grid { gap: 28px }

    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .hero-card {
        font-size: 11px;
        padding: 16px 10px;
        min-height: 80px
    }

    .hero-right { min-height: 260px }

    .carousel-container { min-height: 220px }

    .trust-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 18px 14px
    }

    /* Sections */
    .section { padding: 50px 16px }

    .services-grid,
    .three-grid {
        grid-template-columns: 1fr
    }

    .card { padding: 22px 18px }

    /* Footer */
    .footer { padding: 40px 16px }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .footer-bottom { margin-top: 32px }

    /* CTA */
    .cta .container { flex-direction: column }

    .page-hero { padding: 50px 20px }

    .content-box { padding: 24px 18px }
}
