/*
=================================================================
Table of Contents
=================================================================
1.  Global Styles & Variables
2.  Keyframes & Animations
3.  Layout & Container
4.  Custom Cursor & Page Transition
5.  Header & Navigation
6.  Mobile Navigation
7.  Footer
8.  Buttons & Form Elements
9.  Hero Section
10. Services Section
11. About Section & 3D Cube
12. Interactive Report Section
13. Testimonials Section
14. CTA Section
15. Legal Pages (Terminal Style)
16. Contact Page
17. Popups & Widgets (Live Chat)
18. Responsive Design
=================================================================
*/

/* 1. Global Styles & Variables
-------------------------------------------------------------- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #10102a;
    --bg-tertiary: #1a1a3a;
    --accent-primary: #00d1ff;
    --accent-secondary: #ff00c1;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --border-color: rgba(0, 209, 255, 0.2);
    --shadow-color: rgba(0, 209, 255, 0.1);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Keyframes & Animations
-------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--accent-primary);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 209, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 209, 255, 0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(-8px);
        opacity: 1;
    }

    100% {
        transform: translateY(8px);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 3. Layout & Container
-------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* 4. Custom Cursor & Page Transition
-------------------------------------------------------------- */
#cursor,
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

#cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

body.link-hover #cursor-follower,
body.button-hover #cursor-follower {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(0, 209, 255, 0.2);
}

.page-transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 10000;
    transform: translateY(0);
}

/* 5. Header & Navigation
-------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
}

.header.hidden {
    transform: translateY(-100%);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    margin-right: 15px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active .bar-middle {
    opacity: 0;
}

.mobile-toggle.active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* 6. Mobile Navigation
-------------------------------------------------------------- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 30px 0;
}

.mobile-nav nav a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
}

.mobile-nav .btn {
    margin-top: 30px;
}

/* 7. Footer
-------------------------------------------------------------- */
.footer {
    background-color: var(--bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column .logo-text {
    font-size: 2rem;
}

.footer-about-text {
    color: var(--text-secondary);
    margin: 20px 0;
}

.footer-social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--text-secondary);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--accent-primary);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info a {
    color: var(--text-secondary);
}

.contact-info a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 8. Buttons & Form Elements
-------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn span {
    margin-right: 10px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 193, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    padding: 8px 16px;
}

.btn-tertiary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* 9. Hero Section
-------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta-group .btn {
    margin: 10px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 3px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

/* 10. Services Section
-------------------------------------------------------------- */
.services-section {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 300px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.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: 30px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.service-card-back {
    transform: rotateY(180deg);
    justify-content: space-around;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--accent-primary);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

.service-card-back ul {
    text-align: left;
    margin: 15px 0;
}

.service-card-back li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.service-card-back li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}


/* 11. About Section & 3D Cube
-------------------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    display: block;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-weight: 700;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    min-height: 400px;
}

.image-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--accent-primary);
    background: rgba(0, 209, 255, 0.1);
    box-shadow: inset 0 0 20px var(--shadow-color);
}

.front {
    transform: rotateY(0deg) translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}


/* 12. Interactive Report Section
-------------------------------------------------------------- */
.interactive-report-section {
    background-color: var(--bg-secondary);
}

.report-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.report-card {
    background-color: var(--bg-tertiary);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.report-card h4 {
    margin-bottom: 25px;
    text-align: center;
}

.kpi-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.kpi-item i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    display: block;
}

.kpi-label {
    color: var(--text-secondary);
}

.chart-container {
    width: 100%;
    height: 200px;
}

.traffic-chart .chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}


/* 13. Testimonials Section
-------------------------------------------------------------- */
/* === UPDATED AND CORRECTED SECTION === */
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    /* This is the viewport */
}

.testimonial-slider {
    display: flex;
    /* This makes slides align horizontally */
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 1 0 100%;
    /* CRITICAL: Each slide takes exactly 100% width and doesn't shrink/grow */
    box-sizing: border-box;
    /* Ensures padding is inside the 100% width */
    padding: 40px;
    text-align: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

/* === END OF UPDATED SECTION === */

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    position: relative;
    padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    font-family: serif;
    color: var(--accent-primary);
    position: absolute;
    opacity: 0.2;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.author-name {
    display: block;
    font-weight: 700;
    color: #fff;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* 14. CTA Section
-------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cta-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--bg-primary);
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: var(--bg-primary);
    color: #fff;
    border-color: #fff;
    box-shadow: none;
}

/* 15. Legal Pages (Terminal Style)
-------------------------------------------------------------- */
.page-header-section {
    text-align: center;
    padding: 150px 0 50px;
    background-color: var(--bg-secondary);
}

.page-title {
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.terminal-title,
.terminal-subtitle {
    font-family: var(--font-mono);
}

.legal-content-section {
    padding: 80px 0;
}

.terminal-window {
    background-color: rgba(16, 16, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background-color: var(--bg-tertiary);
    padding: 10px 15px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.close {
    background: #ff5f56;
}

.min {
    background: #ffbd2e;
}

.max {
    background: #27c93f;
}

.terminal-title-text {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 0 auto;
    transform: translateX(-24px);
    /* to center it correctly */
}

.terminal-content {
    padding: 30px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    line-height: 1.8;
}

.terminal-content h2 {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin: 30px 0 15px;
}

.terminal-prompt {
    color: var(--accent-primary);
    margin-right: 10px;
}

.terminal-content ul {
    list-style-type: '» ';
    padding-left: 30px;
    margin: 15px 0;
}

.terminal-content ul li {
    padding-left: 10px;
    margin-bottom: 5px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent-primary);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}


/* 16. Contact Page
-------------------------------------------------------------- */
.contact-page-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info-panel {
    padding: 50px;
}

.contact-info-panel h2 {
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    width: 50px;
    text-align: center;
    margin-right: 20px;
}

.contact-method h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-method a,
.contact-method p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form-wrapper {
    background-color: var(--bg-tertiary);
    padding: 50px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--shadow-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--bg-tertiary);
    padding: 0 5px;
    color: var(--accent-primary);
}

/* Select specific styling */
.select-group select {
    appearance: none;
    -webkit-appearance: none;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--accent-primary);
    pointer-events: none;
}

.form-group select:required:invalid {
    color: var(--text-secondary);
}

.form-group select option {
    background-color: var(--bg-tertiary);
    color: #fff;
}

/* 17. Popups & Widgets (Live Chat)
-------------------------------------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-secondary);
}

.popup-content i {
    font-size: 4rem;
    color: #27c93f;
    margin-bottom: 20px;
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--bg-primary);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.chat-tooltip {
    position: absolute;
    bottom: 15px;
    right: 75px;
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.live-chat-widget:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 18. Responsive Design
-------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        padding: 40px;
    }

    .contact-form-wrapper {
        padding: 40px;
    }

    .slider-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta-group .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .kpi-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .terminal-title-text {
        display: none;
    }

    .terminal-header {
        justify-content: flex-start;
    }
}