/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
    - Font Imports
    - CSS Variables (Colors, Fonts, Sizes)
    - Base & Reset Styles
2.  REUSABLE COMPONENTS
    - Container
    - Buttons
    - Section Headers
    - Forms & Inputs
3.  HEADER & NAVIGATION
    - Header Layout
    - Logo & Navigation Links
    - Header CTA
    - Mobile Toggle (Hamburger)
    - Mobile Navigation Panel
4.  FOOTER
    - Footer Layout & Styling
    - Footer Columns (About, Links, Contact)
    - Social Links
    - Footer Bottom & Copyright
5.  PAGE-SPECIFIC STYLES: INDEX
    - Hero Section (Title, Subtitle, Particles, Waveform)
    - Services Section (Grid, 3D Flip Cards)
    - About Section (Grid, 3D Cube Animation)
    - Process Section (Timeline Layout)
    - Testimonials Section (Slider Styling)
    - ROI Calculator Section (Sliders, Results Panel)
    - CTA Section
6.  PAGE-SPECIFIC STYLES: SUBPAGES
    - Page Header (Title, Breadcrumbs)
    - Content Wrapper (For legal pages)
    - Contact Page (Layout, Info Panel, Form)
7.  INTERACTIVE ELEMENTS & WIDGETS
    - Popup / Modal
    - Live Chat Widget
8.  ANIMATIONS & KEYFRAMES
    - Glow Pulse
    - 3D Cube Rotation
    - Waveform Flow
    - Fade-in / Slide-in Scroll Animations
9.  RESPONSIVE DESIGN (MEDIA QUERIES)
    - Large Desktops (1200px and up)
    - Tablets (approx. 768px - 1024px)
    - Mobile Phones (767px and below)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES */
/* ------------------------------------------- */

:root {
    --primary-color: #00ff9d;
    /* Lime Green LED */
    --secondary-color: #ff2a6d;
    /* Deep Red Accent */
    --bg-color: #0a0a0c;
    /* Matte Black */
    --surface-color: #141418;
    /* Darker Gray Surface */
    --surface-light-color: #1f1f25;
    --text-color: #e0e0e0;
    --text-muted-color: #888;
    --border-color: rgba(0, 255, 157, 0.2);

    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: #fff;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Scrollbar styles */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-color);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
    border: 2px solid var(--bg-color);
}

/* 2. REUSABLE COMPONENTS */
/* ------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform var(--transition-speed) ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 1;
}

.btn:hover::before {
    width: 250%;
    height: 250%;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.7);
    color: var(--bg-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-tertiary:hover {
    background: #fff;
    color: var(--bg-color);
}

.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-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    max-width: 600px;
    margin: 0 auto;
}


/* 3. HEADER & NAVIGATION */
/* ------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 60px;
    filter: brightness(0)invert(1);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.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::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    transition: all 0.4s ease;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-nav.open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-nav.open .bar-middle {
    opacity: 0;
}

.mobile-nav.open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface-color);
    z-index: 999;
    padding: 100px 40px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-color);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.mobile-nav li a {
    font-size: 1.2rem;
}

.mobile-nav li:last-child {
    margin-top: 20px;
}


/* 4. FOOTER */
/* ------------------------------------------- */

.footer {
    background-color: var(--bg-color);
    padding-top: 80px;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0)invert(1);

}

.footer-about-text {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    text-transform: capitalize;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted-color);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted-color);
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info a {
    color: var(--text-muted-color);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

/* 5. PAGE-SPECIFIC STYLES: INDEX */
/* ------------------------------------------- */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre-v2.png'), linear-gradient(135deg, var(--bg-color) 0%, #1a1a1e 100%);
    position: relative;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 1) 70%);
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-pulse 4s infinite alternate;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    max-width: 700px;
    margin: 20px auto 40px;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.waveform-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

#hero-waveform {
    width: 100%;
    height: 150px;
}

#hero-waveform path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

/* Services Section */
.services-section {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
}

.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;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-light-color);
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.service-card-back h3,
.service-card-back p {
    color: var(--bg-color);
}

.service-card-back p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-card-back .btn-tertiary {
    background: var(--bg-color);
    color: #fff;
    border-color: var(--bg-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-muted-color);
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    color: var(--text-muted-color);
    margin-bottom: 30px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.cube-container {
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Process Section */
.process-section {
    background-color: var(--surface-color);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.8rem;
    color: var(--bg-color);
    background-color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: 0 0 15px var(--primary-color);
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-content {
    padding: 20px 30px;
    background-color: var(--surface-light-color);
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--border-color);
}

.process-content p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin: 0;
}

/* Testimonials Section */
/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 40px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 157, 0.1);
}

.testimonial-content {
    flex-grow: 1;
    /* Allows content to take up available space */
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #fff;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

/* ROI Calculator Section */
.roi-calculator-section {
    background: var(--surface-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    background: var(--surface-light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.control-group label span {
    color: var(--primary-color);
    font-weight: bold;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    outline: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.results-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 40px;
    border-left: 1px solid var(--border-color);
}

.result-display {
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.result-display h4 {
    font-size: 1rem;
    color: var(--text-muted-color);
    margin-bottom: 5px;
}

.result-display p {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin: 0;
}

.result-display.primary p {
    color: var(--primary-color);
}

.results-panel small {
    font-size: 0.8rem;
    color: var(--text-muted-color);
    text-align: center;
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://www.transparenttextures.com/patterns/subtle-prism.png');
    background-attachment: fixed;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 6. PAGE-SPECIFIC STYLES: SUBPAGES */
/* ------------------------------------------- */
body.subpage {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    background: var(--surface-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-muted-color);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.page-header-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info-panel {
    padding: 40px;
    background: var(--surface-light-color);
}

.contact-info-panel h2 {
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: var(--text-muted-color);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.method-details p,
.method-details a {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted-color);
}

.method-details a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 20px;
}

.contact-form label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
}

.contact-form select {
    -webkit-appearance: none;
    appearance: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
}


/* 7. INTERACTIVE ELEMENTS & WIDGETS */
/* ------------------------------------------- */

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.4s;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted-color);
}

.popup-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-muted-color);
    margin-bottom: 30px;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4);
    transition: transform 0.3s;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon .fa-times {
    display: none;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.live-chat-widget.open .chat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-chat-widget.open .chat-icon .fa-comments {
    display: none;
}

.live-chat-widget.open .chat-icon .fa-times {
    display: block;
}

.chat-header {
    background: var(--surface-light-color);
    padding: 15px;
    text-align: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-header p {
    font-size: 0.8rem;
    color: var(--text-muted-color);
    margin: 0;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.agent-msg,
.user-msg-prompt {
    font-size: 0.9rem;
    background: var(--surface-light-color);
    padding: 10px;
    border-radius: var(--border-radius);
    max-width: 80%;
}

.agent-msg {
    margin-right: auto;
}

.user-msg-prompt {
    margin-left: auto;
    background: transparent;
    border: 1px dashed var(--border-color);
    text-align: right;
    color: var(--text-muted-color);
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px;
    color: #fff;
    outline: none;
}

.chat-footer button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 8. ANIMATIONS & KEYFRAMES */
/* ------------------------------------------- */

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px var(--primary-color);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--primary-color);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* 9. RESPONSIVE DESIGN (MEDIA QUERIES) */
/* ------------------------------------------- */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .nav-list {
        gap: 25px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        margin-top: 40px;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .results-panel {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: auto;
    }

    .service-card:hover .service-card-inner {
        transform: none;
    }

    .service-card-inner,
    .service-card-front,
    .service-card-back {
        position: static;
        transform: none;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }

    .service-card-back {
        display: none;
    }

    /* Simplified for mobile */

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .process-step:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .process-step:nth-child(odd) {
        text-align: left;
    }

    .process-icon {
        left: 0;
    }

    .process-step:nth-child(odd) .process-icon,
    .process-step:nth-child(even) .process-icon {
        left: 0;
    }

    .slider-controls {
        display: none;
    }

    /* Users can swipe on mobile */
    .contact-form .form-row {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info li {
        justify-content: center;
    }
}