/*
================================================
// TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
2.  REUSABLE COMPONENTS (Buttons, Containers)
3.  ANIMATIONS & KEYFRAMES
4.  LOADER STYLES
5.  HEADER & NAVIGATION
6.  MOBILE MENU
7.  FOOTER
8.  HERO SECTION
9.  PAGE HEADER (For inner pages)
10. SERVICES SECTION
11. PROCESS SECTION (Timeline)
12. DATA STREAM SECTION (Terminal)
13. TESTIMONIALS SECTION
14. CTA SECTION
15. CONTACT PAGE STYLES
16. LEGAL PAGES STYLES
17. INTERACTIVE WIDGETS (Live Chat)
18. POPUP STYLES
19. RESPONSIVE DESIGN (Media Queries)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES
------------------------------------------------ */
:root {
    --primary-color: #00e5ff;
    /* Bright Cyan */
    --secondary-color: #ff00c1;
    /* Magenta for contrast */
    --background-dark: #07090F;
    /* Very dark blue-black */
    --background-light: #121828;
    /* Lighter panel blue-black */
    --text-light: #d0d8e8;
    /* Light grey-blue */
    --text-dark: #808a9f;
    /* Muted grey-blue */
    --border-color: rgba(0, 229, 255, 0.2);
    --glow-color: rgba(0, 229, 255, 0.5);

    --font-primary: 'Rajdhani', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;

    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.text-highlight {
    color: var(--primary-color);
}

.text-success {
    color: #00ff84;
}

.text-warning {
    color: #ffd900;
}

/* 2. REUSABLE COMPONENTS
------------------------------------------------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1;
}

.btn span {
    margin-right: 10px;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--background-dark);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
}

/* 3. ANIMATIONS & KEYFRAMES
------------------------------------------------ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- ANIMATION FIX STARTS HERE --- */

/* Initial state for all animated elements */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
}

/* When the 'is-visible' class is added, the CSS applies the correct animation */
.is-visible[data-animation="fade-up"] {
    animation: fadeUp 0.8s ease-out forwards;
}

.is-visible[data-animation="fade-right"] {
    animation: fadeRight 0.8s ease-out forwards;
}

.is-visible[data-animation="fade-left"] {
    animation: fadeLeft 0.8s ease-out forwards;
}

.is-visible[data-animation="zoom-in"] {
    animation: zoomIn 0.8s ease-out forwards;
}

.is-visible[data-animation="fade-in"] {
    animation: fadeIn 0.8s ease-out forwards;
}

/* --- ANIMATION FIX ENDS HERE --- */


@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

@keyframes glitch-top {

    2%,
    64% {
        transform: translate(2px, -2px);
    }

    4%,
    60% {
        transform: translate(-2px, 2px);
    }

    62% {
        transform: translate(13px, -1px) skew(-13deg);
    }
}

@keyframes glitch-bottom {

    2%,
    64% {
        transform: translate(-2px, 0);
    }

    4%,
    60% {
        transform: translate(-2px, 0);
    }

    62% {
        transform: translate(-22px, 5px) skew(21deg);
    }
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-top 1s linear infinite reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-bottom 1.5s linear infinite reverse;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes grid-loader {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes bar-anim {
    from {
        width: 0;
    }

    to {
        /* Set dynamically */
    }
}

/* 4. LOADER STYLES
------------------------------------------------ */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    position: relative;
}

.loader-text::after {
    content: '_';
    animation: cursorBlink 1s infinite;
}

.loader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 60px;
    height: 60px;
}

.loader-grid div {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    animation: grid-loader 1.3s infinite ease-in-out;
}

.loader-grid div:nth-child(1) {
    animation-delay: 0.2s;
}

.loader-grid div:nth-child(2) {
    animation-delay: 0.3s;
}

.loader-grid div:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-grid div:nth-child(4) {
    animation-delay: 0.1s;
}

.loader-grid div:nth-child(5) {
    animation-delay: 0.2s;
}

.loader-grid div:nth-child(6) {
    animation-delay: 0.3s;
}

.loader-grid div:nth-child(7) {
    animation-delay: 0.0s;
}

.loader-grid div:nth-child(8) {
    animation-delay: 0.1s;
}

.loader-grid div:nth-child(9) {
    animation-delay: 0.2s;
}


/* 5. HEADER & NAVIGATION
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--background-dark);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 120px;
    filter: invert(1);
    transition: all 0.3s ease;
}


.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    display: block;
}

.hamburger-box {
    width: 28px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    width: 28px;
    height: 2px;
    background-color: #fff;
    border-radius: var(--border-radius);
    position: absolute;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background-color: #fff;
    border-radius: var(--border-radius);
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Active (X) state */
.mobile-menu-toggle.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* 6. MOBILE MENU
------------------------------------------------ */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--background-dark);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.is-active {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
}

.mobile-nav-link.active {
    color: var(--primary-color);
}

/* 7. FOOTER
------------------------------------------------ */
.footer {
    background-color: #04060B;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.about-col .footer-logo img {
    height: 120px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.about-col p {
    color: var(--text-dark);
    max-width: 300px;
}

.links-col ul li {
    margin-bottom: 0.8rem;
}

.links-col ul li a {
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.links-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-legal-links a {
    color: var(--text-dark);
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}


/* 8. HERO SECTION
------------------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M1 1h98v98H1z" fill="none" stroke="%23121828" stroke-width="0.5"/><path d="M1 1h2v2H1zM4 1h2v2H4zM7 1h2v2H7z" fill="%2300e5ff"/></svg>');
    background-size: 100px 100px;
    overflow: hidden;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--background-dark) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.typing-container {
    font-family: var(--font-secondary);
    color: var(--text-light);
    font-size: 1.5rem;
    margin-top: 1rem;
    min-height: 2.2rem;
}

.cursor {
    animation: cursorBlink 1s infinite;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* 9. PAGE HEADER
------------------------------------------------ */
.page-header-section {
    padding: 12rem 0 6rem 0;
    text-align: center;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M1 1h98v98H1z" fill="none" stroke="%23121828" stroke-width="0.5"/><path d="M1 1h2v2H1zM4 1h2v2H4zM7 1h2v2H7z" fill="%2300e5ff"/></svg>');
    background-size: 100px 100px;
    overflow: hidden;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 10. SERVICES SECTION
------------------------------------------------ */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    min-height: 280px;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
}

.service-card-back {
    transform: rotateY(180deg);
    background: var(--background-light);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card-back h3 {
    color: var(--primary-color);
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-left: 1rem;
}

.service-card-back ul li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-card-back ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* 11. PROCESS SECTION (Timeline)
------------------------------------------------ */
.process-section {
    padding: 6rem 0;
    background: var(--background-light);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    background-color: var(--background-dark);
    border: 3px solid var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-item.is-visible .timeline-icon {
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-50%) scale(1.1);
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--background-dark);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.timeline-step {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-content h3 {
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

/* 12. DATA STREAM SECTION (Terminal)
------------------------------------------------ */
.data-stream-section {
    padding: 6rem 0;
}

.data-stream-section .section-header p {
    max-width: 700px;
    margin: 1rem auto 0 auto;
}

.data-terminal {
    background: #0D1018;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: #1A202E;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-term {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-term.close {
    background: #ff5f56;
}

.btn-term.min {
    background: #ffbd2e;
}

.btn-term.max {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-dark);
    font-family: var(--font-secondary);
    margin: 0 auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-secondary);
    color: var(--text-light);
    font-size: 0.9rem;
    height: 450px;
    overflow-y: auto;
}

.terminal-body p {
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 1.5rem 0;
}

.kpi-item {
    text-align: center;
}

.kpi-label {
    display: block;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.kpi-value {
    display: block;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.kpi-change {
    font-size: 0.9rem;
}

.chart-container {
    margin: 2rem 0;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bar-label {
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.bar {
    background-color: var(--primary-color);
    height: 20px;
    border-radius: var(--border-radius);
    text-align: right;
    padding-right: 10px;
    color: var(--background-dark);
    font-weight: 700;
    animation-name: bar-anim;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* 13. TESTIMONIALS SECTION
------------------------------------------------ */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-header .fa-quote-left {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-rating .fas {
    color: #ffd900;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-title {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.9rem;
}


/* 14. CTA SECTION
------------------------------------------------ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(7, 9, 15, 0.9), rgba(7, 9, 15, 0.9)), url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M1 1h98v98H1z" fill="none" stroke="%23121828" stroke-width="0.5"/><path d="M1 1h2v2H1zM4 1h2v2H4zM7 1h2v2H7z" fill="%2300e5ff"/></svg>') center/100px fixed;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    margin-bottom: 2.5rem;
}


/* 15. CONTACT PAGE STYLES
------------------------------------------------ */
.contact-section-standalone {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info .section-header {
    text-align: left;
}

.contact-info .section-header h2 {
    font-size: 2rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-text h3 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-dark);
}


.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* 16. LEGAL PAGES STYLES
------------------------------------------------ */
.legal-content {
    padding: 4rem 0 6rem 0;
}

.legal-content .container {
    max-width: 800px;
    background: var(--background-light);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section p,
.legal-section strong {
    line-height: 1.8;
    color: var(--text-light);
}

.legal-section strong {
    color: #fff;
    font-weight: 600;
}


/* 17. INTERACTIVE WIDGETS (Live Chat)
------------------------------------------------ */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--glow-color);
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon .fa-times {
    display: none;
}

.live-chat-widget.open .fa-comment-dots {
    display: none;
}

.live-chat-widget.open .fa-times {
    display: block;
}


.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.live-chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--background-dark);
    padding: 1rem;
    display: flex;
    align-items: center;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 1rem;
}

.chat-name {
    font-weight: 700;
    color: #fff;
}

.chat-status {
    font-size: 0.8rem;
    color: #00ff84;
}

.chat-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

.message {
    max-width: 80%;
    margin-bottom: 1rem;
}

.message p {
    padding: 0.7rem 1rem;
    border-radius: 15px;
    margin: 0;
}

.message.received {
    align-self: flex-start;
}

.message.received p {
    background: var(--background-dark);
    border-bottom-left-radius: 3px;
}

.message.sent {
    margin-left: auto;
}

.message.sent p {
    background: var(--primary-color);
    color: var(--background-dark);
    border-bottom-right-radius: 3px;
}

.chat-footer {
    padding: 1rem;
    background: var(--background-dark);
    text-align: center;
}

.chat-footer a {
    font-family: var(--font-secondary);
}

/* 18. POPUP STYLES
------------------------------------------------ */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 15, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* 19. RESPONSIVE DESIGN
------------------------------------------------ */
/* Tablets and small desktops */
@media (min-width: 768px) {

    .main-nav,
    .header-actions {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .typing-container {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-bottom p {
        margin-bottom: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large desktops */
@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    .timeline-item {
        padding: 1rem 4rem;
    }

    .timeline-icon {
        width: 70px;
        height: 70px;
        right: -35px;
        font-size: 2rem;
    }

    .timeline-item:nth-child(even) .timeline-icon {
        left: -35px;
    }
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    .process-timeline::after {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        left: 0;
        text-align: left;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
    }
}