/*
================================================
//  TABLE OF CONTENTS
================================================
//  1.  VARIABLES & RESET
//  2.  GLOBAL STYLES & TYPOGRAPHY
//  3.  BACKGROUND & THEME EFFECTS
//  4.  REUSABLE COMPONENTS (Buttons, Containers)
//  5.  HEADER & NAVIGATION
//  6.  FOOTER
//  7.  HERO SECTION
//  8.  SERVICES SECTION
//  9.  METRICS SECTION
//  10. PROCESS SECTION
//  11. TESTIMONIALS SECTION
//  12. CTA SECTION
//  13. LEGAL & CONTACT PAGES
//  14. POPUP & UTILITIES
//  15. ANIMATIONS & KEYFRAMES
//  16. RESPONSIVE DESIGN (Media Queries)
================================================
*/

/* 1. VARIABLES & RESET */
:root {
    --bg-dark-navy: #0a192f;
    --text-light-slate: #ccd6f6;
    --text-slate: #8892b0;
    --accent-cyan: #64ffda;
    --accent-purple: #8860d0;
    --highlight-navy: #112240;
    --highlight-light-navy: #233554;
    --white: #e6f1ff;
    --font-primary: 'Fira Code', monospace;
    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-dark-navy);
}

body {
    background-color: var(--bg-dark-navy);
    color: var(--text-slate);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-navy);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-cyan);
    border-radius: 10px;
    border: 2px solid var(--bg-dark-navy);
}


/* 2. GLOBAL STYLES & TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-light-slate);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--white);
    text-shadow: 0 0 5px var(--accent-cyan);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 100px 0;
}

.subtitle {
    display: inline-block;
    color: var(--accent-cyan);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    margin-left: auto;
    margin-right: auto;
}

/* 3. BACKGROUND & THEME EFFECTS */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(18, 28, 58, 0.5),
            rgba(18, 28, 58, 0.5) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 9999;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    animation: noise 0.2s linear infinite;
}

/* 4. REUSABLE COMPONENTS */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--accent-cyan);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-cyan);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light-slate);
    border-color: var(--text-light-slate);
}

.btn-secondary:hover {
    background-color: rgba(204, 214, 246, 0.1);
    color: var(--white);
    border-color: var(--white);
}

/* 5. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s ease-in-out;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header.hidden {
    top: -100px;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 40px;
    filter: invert(1);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light-slate);
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-slate);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-cyan);
}

/* 6. FOOTER */
.footer {
    background-color: var(--highlight-navy);
    padding: 60px 0 20px;
    border-top: 1px solid var(--highlight-light-navy);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-light-slate);
    font-weight: 700;
}

.footer-about .footer-logo img {
    height: 40px;
    filter: invert(1);
}

.footer-about p {
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--text-slate);
    font-size: 1.25rem;
}

.footer-social a:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.1rem;
    color: var(--text-light-slate);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-slate);
    font-size: 0.9rem;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent-cyan);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--text-slate);
}

.footer-contact a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--highlight-light-navy);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
}

.footer-legal a {
    color: var(--text-slate);
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--accent-cyan);
}

.footer-legal span {
    color: var(--text-slate);
}

/* 7. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-description {
    font-size: 1.1rem;
    margin: 2rem 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.radar-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    margin-left: -75vmax;
    margin-top: -75vmax;
    background-image: conic-gradient(from 0deg,
            transparent 0%,
            transparent 70%,
            rgba(100, 255, 218, 0.2) 99.5%,
            var(--accent-cyan) 100%);
    animation: spin 8s linear infinite;
    opacity: 0.5;
}

.hologram-container {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    opacity: 0.3;
}

/* 8. SERVICES SECTION */
.services-section {
    background-color: var(--highlight-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--highlight-light-navy);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--accent-cyan);
}

.service-card .service-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 9. METRICS SECTION */
.metrics-section {
    background-color: var(--bg-dark-navy);
}

.metrics-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-item {
    background-color: var(--highlight-navy);
    padding: 2rem;
    border: 1px solid var(--highlight-light-navy);
    border-radius: var(--border-radius);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-light-slate);
    font-size: 1rem;
}

.metric-graph {
    height: 5px;
    width: 0;
    background-color: var(--accent-purple);
    margin-top: 1rem;
    border-radius: 5px;
}

/* 10. PROCESS SECTION */
.process-section {
    background-color: var(--highlight-navy);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--highlight-light-navy);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-connector {
    position: absolute;
    left: 0;
    top: 5px;
    width: 40px;
    height: 100%;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    background-color: var(--highlight-navy);
    transition: background-color 0.3s ease;
}

.timeline-item.in-view .timeline-dot {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-content .timeline-step {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* 11. TESTIMONIALS SECTION */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--highlight-navy);
    border: 1px solid var(--highlight-light-navy);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 2rem;
    color: var(--accent-cyan);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--text-light-slate);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

/* 12. CTA SECTION */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: transparent;
    border-top: 1px solid var(--highlight-light-navy);
    border-bottom: 1px solid var(--highlight-light-navy);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
}


/* 13. LEGAL & CONTACT PAGES */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background-color: var(--highlight-navy);
    border-bottom: 1px solid var(--highlight-light-navy);
}

.page-header p {
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.legal-content .content-wrapper,
.contact-page-section .section-header {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--highlight-light-navy);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 1rem 0;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 60px;
}

.contact-info-block,
.contact-form-block {
    background-color: var(--highlight-navy);
    padding: 2rem;
    border: 1px solid var(--highlight-light-navy);
    border-radius: var(--border-radius);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--highlight-light-navy);
    color: var(--accent-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-text h4 {
    margin-bottom: 0.25rem;
}

.info-text p,
.info-text a {
    margin: 0;
    color: var(--text-slate);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light-slate);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-dark-navy);
    border: 1px solid var(--highlight-light-navy);
    border-radius: var(--border-radius);
    color: var(--text-light-slate);
    font-family: var(--font-primary);
    transition: var(--transition-speed);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-slate);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364ffda' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
}


/* 14. POPUP & UTILITIES */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--highlight-navy);
    padding: 3rem;
    border: 1px solid var(--accent-cyan);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-slate);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}


/* 15. ANIMATIONS & KEYFRAMES */
@keyframes noise {

    0%,
    100% {
        background-position: 0 0;
    }

    10% {
        background-position: -5% -10%;
    }

    20% {
        background-position: -15% 5%;
    }

    30% {
        background-position: 7% -25%;
    }

    40% {
        background-position: 20% 25%;
    }

    50% {
        background-position: -25% 10%;
    }

    60% {
        background-position: 15% 5%;
    }

    70% {
        background-position: 0% 15%;
    }

    80% {
        background-position: 25% 35%;
    }

    90% {
        background-position: -10% 10%;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.glitch {
    position: relative;
    color: var(--accent-cyan);
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch:hover::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-purple);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.glitch:hover::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-cyan), 1px 0 blue;
    animation: glitch-anim-2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    25% {
        clip: rect(8px, 9999px, 92px, 0);
    }

    50% {
        clip: rect(65px, 9999px, 20px, 0);
    }

    75% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(12px, 9999px, 100px, 0);
    }

    25% {
        clip: rect(90px, 9999px, 2px, 0);
    }

    50% {
        clip: rect(35px, 9999px, 70px, 0);
    }

    75% {
        clip: rect(85px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 80px, 0);
    }
}

/* 16. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--highlight-navy);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-actions .btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hologram-container {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .header {
        padding: 0 1rem;
    }

    .metrics-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 1px;
    }
}