﻿/* ==========================================================
   1. DESIGN TOKENS AND GLOBAL STYLES
   ========================================================== */

:root {
    --navy: #0b1f35;
    --navy-dark: #071727;
    --navy-deep: #030916;
    --navy2: #123454;

    --blue: #1687e8;
    --blue-hover: #0874cc;
    --ice: #edf5fc;
    --ink: #172b40;
    --muted: #627386;

    --white: #ffffff;
    --border: #e1eaf2;

    --navbar-height: 76px;
    --section-padding: 90px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

a {
    transition: color 0.2s ease;
}

section[id],
header[id] {
    scroll-margin-top: 85px;
}


/* ==========================================================
   2. NAVIGATION BAR
   ========================================================== */

/* .site-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;

    min-height: var(--navbar-height);
    padding: 0.7rem 0;

    background: rgba(7, 24, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    visibility: visible;
    opacity: 1;
} */


.site-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;

    min-height: var(--navbar-height);
    padding: 0.7rem 0;

    /* Reuse the hero's night-sky background */
    background:
        radial-gradient(
            ellipse at 78% 24%,
            rgba(39, 79, 151, 0.38),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 12% 90%,
            rgba(22, 89, 150, 0.3),
            transparent 43%
        ),
        linear-gradient(
            135deg,
            #030916 0%,
            #07152d 48%,
            #10284b 100%
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    visibility: visible;
    opacity: 1;
}


.site-navbar {
    isolation: isolate;
    overflow: hidden;
}

.site-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        radial-gradient(
            1px 1px at 8% 18%,
            rgba(255, 255, 255, 0.95) 98%,
            transparent 100%
        ),
        radial-gradient(
            2px 2px at 18% 62%,
            rgba(255, 255, 255, 0.95) 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 39% 78%,
            #ffffff 98%,
            transparent 100%
        ),
        radial-gradient(
            2px 2px at 65% 49%,
            #dbeafe 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 88% 28%,
            #ffffff 98%,
            transparent 100%
        );

    background-size: 310px 100px;
    opacity: 0.85;
}


.site-navbar .navbar-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.site-navbar .navbar-brand:hover,
.footer-brand:hover {
    color: var(--white);
}

.site-navbar .brand-period {
    margin-left: -0.45rem;
    color: #29a5ff;
}

.site-navbar .navbar-nav {
    gap: 0.25rem;
}

.site-navbar .nav-link {
    padding: 0.65rem 0.85rem;

    color: #edf5fc;
    font-size: 0.95rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: #75ceff !important;
}

.site-navbar .navbar-toggler {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(117, 206, 255, 0.35);
}

.site-navbar .navbar-toggler-icon {
    filter: none;
}


/* ==========================================================
   3. HERO SECTION AND NIGHT SKY
   ========================================================== */

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 100vh;
    min-height: 720px;

    color: var(--white);

    /*
       No external background photograph is required.
       The night sky is generated entirely with CSS.
    */
    background:
        radial-gradient(
            ellipse at 78% 24%,
            rgba(39, 79, 151, 0.38),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 12% 90%,
            rgba(22, 89, 150, 0.3),
            transparent 43%
        ),
        linear-gradient(
            135deg,
            #030916 0%,
            #07152d 48%,
            #10284b 100%
        );
}

/* Decorative stars and subtle atmospheric glow. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    background-image:
        radial-gradient(
            1px 1px at 8% 18%,
            rgba(255, 255, 255, 0.95) 98%,
            transparent 100%
        ),
        radial-gradient(
            2px 2px at 18% 62%,
            rgba(255, 255, 255, 0.95) 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 28% 30%,
            #dbeafe 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 39% 78%,
            #ffffff 98%,
            transparent 100%
        ),
        radial-gradient(
            2px 2px at 53% 17%,
            #ffffff 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 65% 49%,
            #dbeafe 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 76% 72%,
            #ffffff 98%,
            transparent 100%
        ),
        radial-gradient(
            2px 2px at 88% 28%,
            #ffffff 98%,
            transparent 100%
        ),
        radial-gradient(
            1px 1px at 94% 61%,
            #dbeafe 98%,
            transparent 100%
        );

    background-size: 310px 250px;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .min-vh-100 {
    min-height: 100vh !important;
    min-height: 720px !important;
}

.hero-section h1 {
    max-width: 800px;
    margin-bottom: 0;

    color: var(--white);
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-lead {
    max-width: 650px;

    color: #e7f2fc;
    font-size: 1.2rem;
    line-height: 1.8;
}

.eyebrow {
    margin-bottom: 0.75rem;

    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-section .eyebrow {
    color: #75ceff;
}

/* Keep hero buttons readable against the dark background. */
.hero-section .btn-outline-light {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.75);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-border-color: #ffffff;
}


/* ==========================================================
   4. SHOOTING STAR ANIMATION
   ========================================================== */

/*
   The existing HTML already contains:
   <div class="shooting-star" aria-hidden="true"></div>

   Animation starts automatically. JavaScript does not need
   to add an .animate class.
*/

.shooting-star {
    position: absolute;
    z-index: 1;

    /*
       Start near the lower-left corner of the hero.
       The star's trail extends behind its glowing head.
    */
    left: 0;
    bottom: 0;

    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 8px 3px rgba(255, 255, 255, 0.95),
        0 0 22px 7px rgba(112, 199, 255, 0.85),
        0 0 42px 12px rgba(22, 135, 232, 0.3);

    pointer-events: none;
    opacity: 0;

    will-change: transform, opacity;

    /*
       The animation repeats so the shooting star remains
       a visible feature of the hero section.
    */
    animation: shootAcross 5s ease-in-out 0.8s infinite;
}

/* Glowing tail extending behind the star's head. */
.shooting-star::before {
    content: "";

    position: absolute;
    top: 50%;
    right: 3px;

    width: clamp(110px, 19vw, 250px);
    height: 3px;

    transform: translateY(-50%);
    transform-origin: right center;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(48, 135, 255, 0.12) 35%,
        rgba(117, 206, 255, 0.7) 78%,
        #ffffff 100%
    );

    filter: drop-shadow(0 0 5px rgba(89, 174, 255, 0.9));
}

/* Bright head of the shooting star. */
.shooting-star::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 0;

    width: 8px;
    height: 8px;
    border-radius: 50%;

    transform: translateY(-50%);

    background: #ffffff;

    box-shadow:
        0 0 10px 4px rgba(255, 255, 255, 0.9),
        0 0 20px 7px rgba(117, 206, 255, 0.75);
}

/*
   The star travels diagonally from the lower-left to the
   upper-right. The hero section clips the animation at its
   boundaries so it doesn't create horizontal page scrolling.
*/
@keyframes shootAcross {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-45deg);
    }

    8% {
        opacity: 1;
    }

    65% {
        opacity: 1;
        transform: translate3d(65vw, -65vh, 0) rotate(-45deg);
    }

    78% {
        opacity: 0;
        transform: translate3d(75vw, -75vh, 0) rotate(-45deg);
    }

    100% {
        opacity: 0;
        transform: translate3d(75vw, -75vh, 0) rotate(-45deg);
    }
}


/* ==========================================================
   5. BUTTONS
   ========================================================== */

.btn {
    padding: 0.8rem 1.2rem;
    border-radius: 0.65rem;

    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-hover);
    --bs-btn-hover-border-color: var(--blue-hover);
    --bs-btn-active-bg: var(--blue-hover);
    --bs-btn-active-border-color: var(--blue-hover);
}


/* ==========================================================
   6. GENERAL SECTIONS AND HEADINGS
   ========================================================== */

.section-space {
    padding: var(--section-padding) 0;
}

.section-heading {
    color: var(--navy);
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading span {
    color: var(--blue);
}

.intro-copy {
    max-width: 850px;

    color: var(--navy2);
    font-size: 1.2rem;
}

.services-section,
.contact-section {
    background: linear-gradient(
        180deg,
        #f3f8fc 0%,
        #eaf3fb 100%
    );
}

.section-intro {
    max-width: 720px;
}

.section-intro > p:last-child {
    color: var(--muted);
}


/* ==========================================================
   7. SERVICE CARDS
   ========================================================== */

.service-card {
    height: 100%;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 1rem;

    background: #ffffff;

    box-shadow: 0 8px 26px rgba(11, 31, 53, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 42px rgba(11, 31, 53, 0.09);
}

.service-card > img {
    display: block;

    width: 100%;
    height: 200px;

    object-fit: cover;
}

.service-card-body {
    padding: 1.5rem;
}

.service-card h3 {
    color: var(--navy);
    font-size: 1.13rem;
    font-weight: 800;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.service-link {
    color: #0878ce;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.service-link:hover,
.service-link:focus {
    color: #064f8c;
    text-decoration: underline;
}


/* ==========================================================
   8. PROCESS / APPROACH SECTION
   ========================================================== */

.process-step {
    margin: 1rem 0;
    padding: 1rem;

    border-left: 3px solid #b7ddfa;
}

.process-step h3 {
    color: var(--navy);
    font-weight: 800;
}


/* ==========================================================
   9. TESTIMONIALS
   ========================================================== */

.testimonials-section {
    color: #ffffff;
    background: var(--navy);
}

.testimonials-section .section-heading {
    color: #ffffff;
}

.testimonials-section .section-heading span {
    color: #75ceff;
}

.testimonials-section .section-intro > p:last-child {
    color: #c1d0de;
}

.testimonial-card {
    height: 100%;
    margin: 0;
    padding: 2rem;

    color: var(--ink);
    background: #ffffff;

    border-radius: 1rem;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.quote-mark {
    color: var(--blue);
    font: 1rem Georgia, serif;
    line-height: 0.8;
}

.testimonial-card blockquote {
    margin: 1rem 0 1.5rem;
    color: #40566a;
}

.testimonial-card figcaption {
    padding-top: 1rem;
    border-top: 1px solid #e4edf4;
}

.testimonial-card figcaption strong,
.testimonial-card figcaption small {
    display: block;
}

.testimonial-card figcaption small {
    color: var(--muted);
    font-size: 0.8rem;
}


/* ==========================================================
   10. CONTACT SECTION
   ========================================================== */

.contact-panel {
    padding: clamp(2rem, 5vw, 4rem);

    color: #ffffff;

    background: linear-gradient(
        115deg,
        #0d2a47,
        #13558b
    );

    border-radius: 1.4rem;
}

.contact-panel h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.contact-panel > p:not(.eyebrow, .contact-note) {
    color: #e2edf7;
}

.contact-panel .eyebrow {
    color: #78d0ff;
}

.contact-note {
    color: #d0e2f1;
    font-size: 0.8rem;
}


/* ==========================================================
   11. FOOTER
   ========================================================== */

.site-footer {
    padding: 65px 0 24px;

    color: #c5d0db;
    background: #071727;
}

.footer-brand {
    gap: 0.5rem;
}

.footer-summary {
    max-width: 350px;
    color: #9daebf;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0.45rem 0;
}

.footer-links a,
.back-to-top {
    color: #bdcad7;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus,
.back-to-top:hover,
.back-to-top:focus {
    color: #71caff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}


/* ==========================================================
   12. SKIP LINK / ACCESSIBILITY
   ========================================================== */

.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;

    z-index: 2000;

    padding: 1rem;

    color: var(--navy);
    background: #ffffff;
    border: 2px solid var(--blue);
    border-radius: 0.4rem;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
}


/* ==========================================================
   13. RESPONSIVE LAYOUT
   ========================================================== */

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 1rem;

        background: #081729;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.75rem;
    }

    .site-navbar .navbar-nav {
        gap: 0;
    }

    .site-navbar .nav-link {
        padding: 0.7rem 0.5rem;
    }

    .hero-section {
        min-height: 670px;
    }

    .hero-content .min-vh-100 {
        min-height: 670px !important;
    }

    .hero-content .row {
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }

    .section-space {
        padding: 70px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.6rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .section-space {
        padding: 60px 0;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .shooting-star::before {
        width: 110px;
    }
}


/* ==========================================================
   14. REDUCED MOTION PREFERENCE
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .shooting-star {
        animation: none;
        opacity: 0;
    }
}

.mt-10 {
  margin-top: 200px !important;
}