* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

/* Animated background */
.hero-section {
    position: relative;
    background-color: #05102b;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.hero-network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(120% 100% at 32% 34%, #10306e 0%, #0a1c48 36%, #05102b 68%, #02060f 100%);
    box-shadow: 0 0 90px #000 inset;
}

.hero-network-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(60, 160, 255, .05) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(90deg, rgba(60, 160, 255, .05) 0 1px, transparent 1px 48px);
    -webkit-mask-image: radial-gradient(78% 78% at 50% 50%, #000 25%, transparent 100%);
            mask-image: radial-gradient(78% 78% at 50% 50%, #000 25%, transparent 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(2, 6, 15, 0.55);
    pointer-events: none;
}

.hero-network-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-network-bg .trace { fill: none; stroke: #1d4f8f; stroke-width: 2.2; opacity: .55; }
.hero-network-bg .trace-thin { fill: none; stroke: #2a63a8; stroke-width: 1.2; opacity: .4; }
.hero-network-bg .pad { fill: #2a6fbb; opacity: .6; }
.hero-network-bg .arc { fill: none; stroke: #4fd8ff; stroke-width: 1.4; opacity: .26; filter: url(#hn-soft); }
.hero-network-bg .land-fill { fill: url(#hn-landGrad); fill-rule: evenodd; }
.hero-network-bg .land-stroke { fill: none; stroke: #22d3ff; stroke-width: 3.2; stroke-linejoin: round; filter: url(#hn-glow); }
.hero-network-bg .islet { fill: #0d4d86; fill-opacity: .7; stroke: #4fe0ff; stroke-width: 2; filter: url(#hn-glow); }
.hero-network-bg .mesh { stroke: #5fe6ff; stroke-width: .75; opacity: .42; fill: none; }
.hero-network-bg .node { fill: #9df6ff; }
.hero-network-bg .ray { stroke: #3fd0ff; stroke-width: .9; opacity: .45; }
.hero-network-bg .out-node { fill: #7ce9ff; filter: url(#hn-soft); }
.hero-network-bg .spark { fill: #bff6ff; }

.binary-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #FCD116;
    overflow: hidden;
    z-index: 1;
}

.binary-line {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes heroNetworkTwinkle {
    0%, 100% { opacity: .2; }
    50% { opacity: .85; }
}

.hero-network-bg .twinkle {
    animation: heroNetworkTwinkle 4s ease-in-out infinite;
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(252, 209, 22, 0.2);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
    flex: 0 0 auto;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mission Section */
.mission-section {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-image {
    height: 300px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(252, 209, 22, 0.4));
    transition: all 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(252, 209, 22, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(252, 209, 22, 0.6));
        transform: scale(1.02);
    }
}

.mission-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FCD116, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #FCD116, #0057B8);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(252, 209, 22, 0.3);
}

/* Services Section */
.services-section {
    background: #111111;
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #FCD116;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(252, 209, 22, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 209, 22, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(252, 209, 22, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FCD116;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-description {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.service-button {
    background: transparent;
    color: #FCD116;
    border: 2px solid #FCD116;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-button:hover {
    background: #FCD116;
    color: #000000;
}

/* Alerts Section */
.alerts-section {
    background: #0d0d0d;
    padding: 4rem 2rem;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.alert-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #ff5722;
    transition: all 0.3s ease;
}

.alert-card.advisory {
    border-left-color: #ffc107;
}

.alert-card:hover {
    transform: translateX(10px);
}

.alert-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.alert-card .alert-icon {
    color: #ff5722;
}

.alert-card.advisory .alert-icon {
    color: #ffc107;
}

/* Contact Section */
.contact-section {
    background: #111111;
    padding: 4rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #FCD116;
    margin-bottom: 1rem;
}

.contact-form {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(252, 209, 22, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #FCD116;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FCD116;
}

.contact-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(252, 209, 22, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(252, 209, 22, 0.35);
    box-shadow: 0 10px 30px rgba(252, 209, 22, 0.1);
    transform: translateY(-3px);
}

.contact-card h3 {
    color: #FCD116;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(252, 209, 22, 0.2);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-row-icon {
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-row-text strong {
    display: block;
    color: #FCD116;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-row-text span {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Footer */
.footer {
    background: #000000;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #FCD116;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links li a::before {
    content: '›';
    color: #FCD116;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.footer-links li a:hover {
    color: #FCD116;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FCD116;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FCD116;
    color: #000000;
    transform: translateY(-3px);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Nav */
    .nav-container {
        padding: 0 1.5rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
    }

    .hamburger {
        display: flex;
        flex: 0 0 auto;
        margin-left: auto;
    }

    nav {
        position: static;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(252, 209, 22, 0.2);
        padding: 1rem 0;
        z-index: 99;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-item {
        display: block;
        padding: 0.85rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease;
    }

    .nav-menu .nav-item:hover,
    .nav-menu .nav-item.active {
        background: rgba(252, 209, 22, 0.15);
        color: #FCD116;
        transform: none;
    }

    .header {
        position: relative;
    }

    /* Mission */
    .mission-title {
        font-size: 2rem;
    }

    .mission-section {
        padding: 2rem 1rem;
    }

    .mission-text {
        font-size: 1rem;
    }

    .hero-logo-image {
        height: 160px;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
