/*
================================================
TABLE OF CONTENTS
================================================
1.  ROOT & VARIABLES
2.  BASE & RESET STYLES
3.  REUSABLE COMPONENTS & UTILITIES
    - Container
    - Buttons
    - Section Headers
    - Backgrounds & Canvas
    - Custom Cursor
4.  HEADER & NAVIGATION (MODIFIED)
5.  FOOTER
6.  HERO SECTION (INDEX)
7.  STATS SECTION (INDEX)
8.  SERVICES SECTION (INDEX)
9.  PROCESS SECTION (INDEX)
10. INDUSTRIES SECTION (INDEX)
11. TESTIMONIALS SECTION (INDEX)
12. CTA SECTION (INDEX)
13. PAGE-SPECIFIC STYLES
    - Legal Pages (Disclaimer, Privacy, Terms)
    - Contact Page
14. ANIMATIONS & KEYFRAMES
15. POPUPS & WIDGETS
16. RESPONSIVE MEDIA QUERIES
================================================
*/

/* 1. ROOT & VARIABLES
------------------------------------------------ */
:root {
    --primary-color: #00f7ff;
    /* Neon Teal */
    --secondary-color: #9747ff;
    /* Vivid Purple */
    --accent-color: #fdd835;
    /* Bright Yellow */
    --dark-bg: #0d0c1d;
    /* Deep Space Blue */
    --dark-bg-alt: #16152b;
    /* Slightly Lighter Blue */
    --light-bg: #1f1e38;
    /* Card Background */
    --text-color: #e0e0e0;
    /* Light Gray */
    --text-muted: #a0a0c0;
    /* Muted Purple-Gray */
    --heading-color: #ffffff;
    /* Pure White */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --section-padding: 100px 0;
}

/* 2. BASE & RESET STYLES
------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. REUSABLE COMPONENTS & UTILITIES
------------------------------------------------ */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    border-radius: 12px;
}

.btn-primary:hover {
    color: var(--dark-bg);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color), 0 0 25px rgba(0, 247, 255, 0.5);
}

.btn-primary i {
    transition: transform var(--transition-speed) ease;
}

.btn-primary:hover i {
    transform: rotate(15deg) scale(1.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}


/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Backgrounds & Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(12, 11, 28, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 11, 28, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: all 150ms ease-out;
}

.cursor-dot.hidden,
.cursor-outline.hidden {
    opacity: 0;
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(0, 247, 255, 0.1);
}

/* 4. HEADER & NAVIGATION (MODIFIED)
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.sticky {
    background-color: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
}

.nav__logo img {
    height: 80px;
    transition: transform var(--transition-speed) ease;
}

.nav__logo:hover img {
    transform: scale(1.05);
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 15px 0;
    /* Increased padding */
    text-transform: uppercase;
    transition: color var(--transition-speed) ease;
}

/* Hover/Active states */
.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

/* Top decorative line */
.nav__link::before {
    content: '·‗—‗·';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.nav__link:hover::before,
.nav__link.active::before {
    opacity: 1;
}

/* Bottom "glitch" text */
.nav__link::after {
    content: attr(data-text);
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
    text-align: center;
    /* Center the glitch text */
}

.nav__link:hover::after,
.nav__link.active::after {
    opacity: 1;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__toggle {
    display: none;
    cursor: none;
    z-index: 1001;
}

.nav__toggle-icon {
    width: 30px;
    height: 22px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.nav__toggle-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--heading-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.nav__toggle-icon span:nth-child(1) {
    top: 0px;
}

.nav__toggle-icon span:nth-child(2) {
    top: 9px;
}

.nav__toggle-icon span:nth-child(3) {
    top: 18px;
}

.nav__toggle.is-active .nav__toggle-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.nav__toggle.is-active .nav__toggle-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.nav__toggle.is-active .nav__toggle-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* 5. FOOTER
------------------------------------------------ */
.footer {
    background-color: var(--dark-bg-alt);
    padding: 5rem 0 2rem 0;
    border-top: 2px solid var(--light-bg);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__links h3,
.footer__contact h3 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer__links ul li {
    margin-bottom: 0.75rem;
}

.footer__links ul li a {
    color: var(--text-muted);
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer__links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer__contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 1.1rem;
}

.footer__contact a {
    color: var(--text-muted);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-bg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 6. HERO SECTION (INDEX)
------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero__content {
    max-width: 60%;
}

.hero__title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero__title span {
    display: block;
}

.hero__title .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.hero__subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.hero__cta {
    display: flex;
    gap: 1rem;
}

.hero__visuals {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero__cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.hero__cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(31, 30, 56, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--heading-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.hero__cube-face i {
    font-size: 3rem;
    color: var(--primary-color);
}

.hero__cube-face--front {
    transform: rotateY(0deg) translateZ(125px);
}

.hero__cube-face--back {
    transform: rotateY(180deg) translateZ(125px);
}

.hero__cube-face--right {
    transform: rotateY(90deg) translateZ(125px);
}

.hero__cube-face--left {
    transform: rotateY(-90deg) translateZ(125px);
}

.hero__cube-face--top {
    transform: rotateX(90deg) translateZ(125px);
}

.hero__cube-face--bottom {
    transform: rotateX(-90deg) translateZ(125px);
}


/* 7. STATS SECTION (INDEX)
------------------------------------------------ */
.stats {
    background-color: var(--dark-bg-alt);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--light-bg);
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, var(--dark-bg-alt), var(--dark-bg));
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-item__number {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 900;
}

.stat-item__label {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* 8. SERVICES SECTION (INDEX)
------------------------------------------------ */
.services {
    background-color: var(--dark-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px;
}

.service-card__front,
.service-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-bg);
}

.service-card__front {
    background: var(--light-bg);
    transform: rotateY(0deg);
}

.service-card__back {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: rotateY(-180deg);
    color: var(--dark-bg);
}

.service-card:hover .service-card__front {
    transform: rotateY(180deg);
}

.service-card:hover .service-card__back {
    transform: rotateY(0deg);
}

.service-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card__back .service-card__title {
    color: var(--heading-color);
}


.service-card__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-card__back ul {
    margin: 1rem 0;
    text-align: left;
    padding-left: 1rem;
}

.service-card__back ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-bg-alt);
    font-weight: 500;
}

.service-card__back .btn {
    margin-top: 1rem;
    background: var(--heading-color);
    color: var(--dark-bg);
    border-color: var(--heading-color);
}

.service-card__back .btn:hover {
    background: var(--dark-bg-alt);
    color: var(--heading-color);
}

/* 9. PROCESS SECTION (INDEX)
------------------------------------------------ */
.process {
    background-color: var(--dark-bg-alt);
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--light-bg);
    transform: translateX(-50%);
}

.process__item {
    padding: 2rem 3rem;
    position: relative;
    width: 50%;
}

.process__item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -14.5px;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    top: 32px;
    border-radius: 50%;
    z-index: 1;
}

.process__item--left {
    left: 0;
}

.process__item--right {
    left: 50%;
}

.process__item--right::after {
    left: -14.5px;
}

.process__content {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.process__item--right .process__content {
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}

.process__step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-secondary);
}

.process__title {
    margin-top: 0;
    color: var(--primary-color);
}

.process__item--right .process__title {
    color: var(--secondary-color);
}

/* 10. INDUSTRIES SECTION (INDEX)
------------------------------------------------ */
.industries__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.industry-item {
    padding: 2.5rem;
    background-color: var(--dark-bg-alt);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-bg);
    transition: all var(--transition-speed) ease;
}

.industry-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.1);
}

.industry-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.industry-item h3 {
    margin-bottom: 0.5rem;
}

/* 11. TESTIMONIALS SECTION (INDEX)
------------------------------------------------ */
.testimonials {
    background-color: var(--dark-bg-alt);
}

.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.testimonial-slide.active {
    opacity: 1;
    z-index: 2;
}

.testimonial__text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 90%;
}

.testimonial__text::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
    color: var(--heading-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
}

.testimonial-controls button {
    background: var(--light-bg);
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: none;
    transition: all var(--transition-speed) ease;
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* 12. CTA SECTION (INDEX)
------------------------------------------------ */
.cta-section {
    background-image: linear-gradient(rgba(13, 12, 29, 0.8), rgba(13, 12, 29, 0.8)), url('https://www.transparenttextures.com/patterns/subtle-prism.png');
    background-color: var(--dark-bg-alt);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* 13. PAGE-SPECIFIC STYLES
------------------------------------------------ */
.page-header {
    padding: 180px 0 100px 0;
    text-align: center;
    background: var(--dark-bg-alt);
}

.page-header__title {
    font-size: 3.5rem;
}

.page-header__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Legal Pages --- */
.legal-page {
    background-color: var(--dark-bg);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-bg-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-bg);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* --- Contact Page --- */
.contact-page__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--dark-bg-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-bg);
}

.contact-info__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-details-list {
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail-item .icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
}

.contact-detail-item p {
    margin: 0;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--light-bg);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed) ease, box-shadow 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, 247, 255, 0.2);
}

/* 14. ANIMATIONS & KEYFRAMES
------------------------------------------------ */
@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation].is-visible {
    opacity: 1;
    transform: none;
}

[data-animation="fade-in"] {
    opacity: 0;
}

[data-animation="fade-in"].is-visible {
    opacity: 1;
}

[data-animation="fade-in-up"] {
    transform: translateY(50px);
}

[data-animation="fade-in-right"] {
    transform: translateX(-50px);
}

[data-animation="fade-in-left"] {
    transform: translateX(50px);
}

/* 15. POPUPS & WIDGETS
------------------------------------------------ */
/* --- Success Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 12, 29, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-bg-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    border: 1px solid var(--light-bg);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: none;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* --- Live Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--heading-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(151, 71, 255, 0.3);
    cursor: none;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(151, 71, 255, 0.5);
}


/* 16. RESPONSIVE MEDIA QUERIES
------------------------------------------------ */

/* -- Tablets -- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .hero__content {
        max-width: 55%;
    }

    .hero__title {
        font-size: 4rem;
    }

    .hero__visuals {
        width: 45%;
    }

    .hero__cube,
    .hero__cube-face {
        width: 200px;
        height: 200px;
    }

    .hero__cube-face--front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .hero__cube-face--back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .hero__cube-face--right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .hero__cube-face--left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .hero__cube-face--top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .hero__cube-face--bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__line {
        left: 30px;
    }

    .process__item,
    .process__item--right {
        width: 100%;
        left: 0;
        padding-left: 5rem;
        padding-right: 1rem;
    }

    .process__item::after,
    .process__item--right::after {
        left: 17.5px;
    }

    .process__item--right .process__content {
        border-right: none;
        border-left: 4px solid var(--primary-color);
    }

    .process__item--right .process__title {
        color: var(--primary-color);
    }

    .contact-page__wrapper {
        grid-template-columns: 1fr;
    }
}


/* -- Mobile Phones -- */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .section-padding {
        padding: 80px 0;
    }

    /* --- Mobile Navigation --- */
    .nav__actions .btn {
        display: none;
    }

    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 12, 29, 0.9);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav__menu.is-active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: 2rem;
    }

    /* --- Page Layouts --- */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
        order: 2;
    }

    .hero__visuals {
        width: 100%;
        order: 1;
        margin-bottom: 3rem;
        min-height: 250px;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__contact ul li {
        justify-content: center;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-page__wrapper,
    .legal-content {
        padding: 1.5rem;
    }

    .testimonial-controls {
        display: none;
    }

    .testimonial-slider {
        height: auto;
    }

    .testimonial-slide.active {
        position: relative;
    }
}