/* ======================================================
   Global Styles
====================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #08111f;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ======================================================
   Animated Background
====================================================== */

#background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.18), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.18), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(34, 211, 238, 0.15), transparent 30%),
        linear-gradient(180deg, #08111f 0%, #0b1220 100%);

    animation: backgroundFloat 16s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-40px);
    }
}

/* ======================================================
   Navigation
====================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 8%;

    background: rgba(8, 17, 31, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #e5eefc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

nav a:hover {
    color: #4fd5ff;
}

#menuButton {
    display: none;

    background: transparent;
    border: none;
    color: white;

    font-size: 1.8rem;
    cursor: pointer;
}

/* ======================================================
   Hero Section
====================================================== */

.hero {
    min-height: 92vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8%;
    text-align: center;
}

.hero-content {
    max-width: 920px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;

    background: linear-gradient(90deg, #ffffff, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: #c7d2e6;
    max-width: 760px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* ======================================================
   Buttons
====================================================== */

.primaryButton,
.secondaryButton {
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.primaryButton {
    background: linear-gradient(135deg, #00c3ff, #2563eb);
    border: none;
    color: white;

    box-shadow: 0 10px 30px rgba(0, 195, 255, 0.28);
}

.primaryButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 195, 255, 0.38);
}

.secondaryButton {
    background: transparent;
    border: 2px solid rgba(79, 213, 255, 0.6);
    color: white;
}

.secondaryButton:hover {
    background: rgba(79, 213, 255, 0.12);
    transform: translateY(-3px);
}

/* ======================================================
   Shared Section Styling
====================================================== */

section {
    padding: 110px 8%;
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 56px;
    font-weight: 800;
}

/* ======================================================
   Services Section
====================================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.service-card {
    padding: 32px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);

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

.service-card:hover {
    transform: translateY(-10px);

    border-color: rgba(79, 213, 255, 0.45);

    box-shadow: 0 20px 40px rgba(0, 195, 255, 0.18);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.service-card p {
    color: #c7d2e6;
}

.service-card .card-meta {
    margin-top: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #8fa3c0;
}

/* ===========================
   About Section
=========================== */

.about {

    padding: 100px 10%;
    display: flex;
    justify-content: center;

}

.about-text {

    max-width: 900px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 20px;

    padding: 40px;

    backdrop-filter: blur(15px);

}

.about h2 {

    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #4fd5ff;

}

.about p {

    line-height: 1.8;
    color: #d7d7d7;
    margin-bottom: 25px;

}

.about ul {

    list-style: none;

}

.about li {

    margin-bottom: 15px;
    font-size: 1.05rem;

}


/* ===========================
   Statistics
=========================== */

.stats {

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    padding: 100px 10%;

}

.stat-card {

    text-align: center;

    background: rgba(255,255,255,.05);

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,.08);

    padding: 35px;

    transition: .3s;

}

.stat-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 0 25px rgba(79,213,255,.25);

}

.stat-card h2 {

    font-size: 3rem;
    color: #4fd5ff;
    margin-bottom: 10px;

}

.stat-card p {

    color: #cccccc;

}


/* ===========================
   FAQ
=========================== */

.faq {

    padding: 100px 10%;

}

.faq h2 {

    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;

}

.faq-item {

    background: rgba(255,255,255,.05);

    margin-bottom: 20px;

    border-radius: 15px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);

}

.faq-question {

    width: 100%;

    padding: 20px;

    text-align: left;

    font-size: 1rem;

    color: white;

    background: transparent;

    border: none;

    cursor: pointer;

}

.faq-answer {

    max-height: 0;

    overflow: hidden;

    transition: max-height .4s ease;

    padding: 0 20px;

}

.faq-answer p {

    padding-bottom: 20px;

    color: #cfcfcf;

}


/* ===========================
   Contact
=========================== */

.contact {

    padding: 100px 10%;
    text-align: center;

}

.contact h2 {

    font-size: 2.5rem;
    margin-bottom: 40px;

}

.contact form {

    max-width: 700px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 20px;

}

.contact input,
.contact textarea {

    padding: 15px;

    border-radius: 10px;

    border: 1px solid rgba(255,255,255,.15);

    background: rgba(255,255,255,.05);

    color: white;

    font-size: 1rem;

}

.contact input::placeholder,
.contact textarea::placeholder {

    color: #aaaaaa;

}

.contact textarea {

    resize: vertical;

}


/* ===========================
   Footer
=========================== */

footer {

    padding: 35px;

    text-align: center;

    color: #999999;

    border-top: 1px solid rgba(255,255,255,.08);

}


/* ===========================
   Scroll To Top Button
=========================== */

#scrollTopButton {

    position: fixed;

    bottom: 30px;

    right: 30px;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: #4fd5ff;

    color: white;

    border: none;

    cursor: pointer;

    display: none;

    font-size: 20px;

    transition: .3s;

}

#scrollTopButton:hover {

    transform: scale(1.1);

    box-shadow: 0 0 20px #4fd5ff;

}


/* ===========================
   Fade Animation
=========================== */

.fade-in {

    opacity: 0;

    transform: translateY(40px);

    transition: all .8s ease;

}

.fade-in.show {

    opacity: 1;

    transform: translateY(0);

}


/* ===========================
   Mobile Responsive
=========================== */

@media (max-width: 900px) {

    nav {

        display: none;

    }

    #menuButton {

        display: block;

    }

    .hero h1 {

        font-size: 3rem;

    }

    .hero p {

        font-size: 1rem;

    }

    .service-grid {

        grid-template-columns: 1fr;

    }

    .stats {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 650px) {

    .stats {

        grid-template-columns: 1fr;

    }

    .hero-buttons {

        flex-direction: column;

        align-items: center;

    }

    .hero h1 {

        font-size: 2.4rem;

    }

    .contact form {

        width: 100%;

    }

}

@media (max-width: 450px) {

    .hero {

        padding: 60px 20px;

    }

    .services,
    .about,
    .stats,
    .faq,
    .contact {

        padding: 70px 25px;

    }

}

#menuButton {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   Animated Background Canvas
=========================== */

#backgroundCanvas {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: -1;

    background: linear-gradient(
        135deg,
        #08111f,
        #0d1c34,
        #08111f
    );

}

.service-card i {

    color: #4fd5ff;

    font-size: 2rem;

    margin-bottom: 15px;

    display: block;

    transition: 0.3s ease;

}

.service-card:hover i {

    transform: scale(1.15);

    text-shadow: 0 0 15px #4fd5ff;

}

.logo i {

    color: #4fd5ff;
    margin-right: 8px;

}

.shield-card {

    width: 420px;

    padding: 35px;

    border-radius: 30px;

    background: rgba(255,255,255,.04);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(79,213,255,.15);

    display: flex;

    justify-content: center;

    align-items: center;

    box-shadow:
        0 0 40px rgba(79,213,255,.15);

    animation: shieldFloat 5s ease-in-out infinite;

}


.shield-card svg {

    width: 300px;

    filter:
        drop-shadow(0 0 25px rgba(79,213,255,.5));

}



@keyframes shieldFloat {

    0% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-15px);

    }

    100% {

        transform: translateY(0);

    }

}

/* ======================================================
   Serenitix v1 additions (links styled as buttons, notes)
====================================================== */

a.primaryButton,
a.secondaryButton {
    display: inline-block;
    text-decoration: none;
}

.section-note {
    text-align: center;
    margin-top: 40px;
    color: #c9d6e8;
}

.section-note a,
.contact p a {
    color: #4fd5ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 213, 255, 0.5);
}

.contact p {
    font-size: 1.2rem;
    color: #c9d6e8;
}

.about p + p {
    margin-top: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    height: 40px;
    width: 40px;
    /* the mark is navy line art on transparent; flip it light for the dark theme */
    filter: invert(1) hue-rotate(180deg) brightness(1.15);
}

.hero .hero-sub {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 600;
    color: #e6f0ff;
    max-width: 900px;
    margin: 0 auto 22px;
    line-height: 1.35;
}
