/*
========================================
--- TABLE OF CONTENTS ---
========================================
1.  GLOBAL & ROOT VARIABLES
2.  RESET & BASIC STYLING
3.  REUSABLE COMPONENTS (Buttons, Containers)
4.  PRELOADER
5.  HEADER & NAVIGATION
6.  FOOTER
7.  HERO SECTION (INDEX)
8.  SERVICES SECTION (INDEX)
9.  STATS (POWER LEVELS) SECTION (INDEX)
10. PROCESS SECTION (INDEX)
11. TESTIMONIALS SECTION (INDEX)
12. CTA SECTION (INDEX)
13. PAGE HEADER (LEGAL/CONTACT PAGES)
14. LEGAL CONTENT PAGE STYLING
15. CONTACT PAGE STYLING
16. HELPER & UTILITY CLASSES
17. ANIMATIONS & KEYFRAMES
18. RESPONSIVE DESIGN (MEDIA QUERIES)
========================================
*/

/* 1. GLOBAL & ROOT VARIABLES */
:root {
    --hero-blue: #1565C0;
    --action-red: #E53935;
    --highlight-yellow: #FFF200;

    --bg-dark: #0A0F1F;
    --bg-dark-accent: #101832;
    --bg-light: #F0F2F5;
    --border-color: rgba(23, 85, 151, 0.5);

    --text-light: #E0E5F3;
    --text-dark: #121212;
    --text-muted: #9badcc;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* 2. RESET & BASIC STYLING */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.2;
    font-weight: 700;
}

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-muted);
}

a {
    color: var(--hero-blue);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--highlight-yellow);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. REUSABLE COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--hero-blue);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-header h2 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--action-red);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out, border-color 0.4s ease-in-out;
}

.btn span {
    margin-right: 10px;
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background-color: var(--hero-blue);
    color: #fff;
    border-color: var(--hero-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--highlight-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-dark);
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--hero-blue);
}

.btn-secondary:hover {
    background-color: var(--hero-blue);
    color: #fff;
}

/* 4. PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-terminal {
    width: 300px;
    text-align: center;
}

.preloader-logo img {
    width: 80px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.preloader-terminal p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--hero-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.preloader-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-dark-accent);
    border: 1px solid var(--border-color);
    margin: 15px 0;
    overflow: hidden;
}

.preloader-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--hero-blue), var(--action-red));
    animation: loading-bar 2s ease-out forwards;
}

/* 5. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    display: flex;
    align-items: center;
    transition: var(--transition-speed);
}

.header.scrolled {
    background-color: rgba(10, 15, 31, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-speed);
}

.header.scrolled .nav-logo {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--hero-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--highlight-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* 6. FOOTER */
.footer {
    background-color: var(--bg-dark-accent);
    padding: 80px 0 30px;
    border-top: 2px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--highlight-yellow);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--hero-blue);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--hero-blue);
    border-color: var(--hero-blue);
    color: #fff;
    transform: translateY(-5px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--hero-blue);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    margin: 0 10px;
}

.footer-legal span {
    color: var(--border-color);
}

/* 7. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    background-color: var(--hero-blue);
    top: -10%;
    right: -15%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: var(--action-red);
    bottom: -10%;
    left: -10%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background-color: var(--highlight-yellow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--highlight-yellow), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-flicker 3s linear infinite;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--hero-blue);
    border-radius: 20px;
    position: relative;
}

.mouse span {
    position: absolute;
    display: block;
    top: 29%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--hero-blue);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-ani 2s infinite;
}

/* 8. SERVICES SECTION */
.services-section {
    background: var(--bg-dark-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    border-radius: var(--border-radius);
    min-height: 280px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    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;
    padding: 30px;
    background-color: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card-back {
    transform: rotateY(180deg);
    background-color: var(--hero-blue);
    border-color: var(--hero-blue);
}

.service-card-back h3,
.service-card-back p {
    color: #fff;
}

.service-icon {
    font-size: 3rem;
    color: var(--hero-blue);
    margin-bottom: 20px;
    transition: var(--transition-speed);
}

.service-card:hover .service-icon {
    color: var(--highlight-yellow);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* 9. STATS (POWER LEVELS) SECTION */
.stats-section {
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" id="grid" fill="%231565C0" fill-opacity="0.1"/></svg>'), var(--bg-dark);
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.stat-item {
    background-color: var(--bg-dark-accent);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--hero-blue), transparent 30%);
    animation: rotate-border 4s linear infinite;
}

.stat-item .stat-content {
    background-color: var(--bg-dark-accent);
    position: relative;
    z-index: 1;
    border-radius: 6px;
    padding: 20px 0;
}

.stat-number-wrapper {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--highlight-yellow);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.power-bar-container {
    height: 10px;
    background-color: var(--bg-dark);
    border-radius: 5px;
    overflow: hidden;
}

.power-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--hero-blue), var(--action-red));
    border-radius: 5px;
    transition: width 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 10. PROCESS SECTION */
.process-section {
    background-color: var(--bg-dark-accent);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.process-step {
    padding: 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 80px;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 80px;
}

.process-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--action-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    border: 4px solid var(--bg-dark-accent);
    z-index: 1;
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-content h3 {
    color: var(--highlight-yellow);
    margin-bottom: 10px;
}

/* 11. TESTIMONIALS SECTION */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-dark-accent);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    transition: var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--hero-blue);
    box-shadow: 0 10px 40px rgba(21, 101, 192, 0.2);
}

.testimonial-quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 3rem;
    color: var(--hero-blue);
    opacity: 0.2;
}

.testimonial-text {
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-info h4 {
    color: var(--text-light);
    margin-bottom: 0;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 12. CTA SECTION */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 15, 31, 0.8), rgba(10, 15, 31, 0.8)), url("https://www.transparenttextures.com/patterns/az-subtle.png") fixed center center;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 13. PAGE HEADER (LEGAL/CONTACT PAGES) */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--bg-dark-accent);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, var(--hero-blue) 25%, transparent 25%) -50px 0,
        linear-gradient(225deg, var(--hero-blue) 25%, transparent 25%) -50px 0,
        linear-gradient(315deg, var(--hero-blue) 25%, transparent 25%),
        linear-gradient(45deg, var(--hero-blue) 25%, transparent 25%);
    background-size: 100px 100px;
    opacity: 0.05;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* GLITCH EFFECT */
.glitch {
    position: relative;
    color: var(--text-light);
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-accent);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--action-red);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--hero-blue), 2px 2px var(--action-red);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* 14. LEGAL CONTENT PAGE STYLING */
.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark-accent);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--highlight-yellow);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 15. CONTACT PAGE STYLING */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 60px;
}

.contact-info-block,
.contact-form-block {
    background-color: var(--bg-dark-accent);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.contact-info-header h3 {
    color: var(--highlight-yellow);
    margin-bottom: 10px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--hero-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p,
.info-text a {
    color: var(--text-muted);
    margin: 0;
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hero-blue);
    box-shadow: 0 0 15px rgba(21, 101, 192, 0.5);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0 5px;
    background-color: var(--bg-dark-accent);
    color: var(--hero-blue);
}

.contact-form button {
    width: 100%;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-dark-accent);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: all 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--hero-blue);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--highlight-yellow);
}

#popup-close-btn {
    margin-top: 20px;
}


/* 16. HELPER & UTILITY CLASSES */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--hero-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-speed);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--action-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    animation: chat-pulse 2s infinite;
}

/* 17. ANIMATIONS & KEYFRAMES */
@keyframes loading-bar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes text-flicker {
    0% {
        opacity: 0.1;
    }

    2% {
        opacity: 1;
    }

    8% {
        opacity: 0.1;
    }

    9% {
        opacity: 1;
    }

    12% {
        opacity: 0.1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 0.7;
    }

    72% {
        opacity: 0.2;
    }

    77% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes scroll-ani {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    80% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes chat-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(229, 57, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

/* Glitch Animations */
@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(-2deg);
    }

    20% {
        transform: skew(0deg);
    }

    30% {
        transform: skew(1deg);
    }

    40% {
        transform: skew(0deg);
    }

    50% {
        transform: skew(3deg);
    }

    60% {
        transform: skew(0deg);
    }

    70% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(0deg);
    }

    90% {
        transform: skew(0.5deg);
    }

    100% {
        transform: skew(0deg);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(13px, 9999px, 83px, 0);
    }

    5% {
        clip: rect(41px, 9999px, 84px, 0);
    }

    10% {
        clip: rect(27px, 9999px, 73px, 0);
    }

    15% {
        clip: rect(8px, 9999px, 49px, 0);
    }

    20% {
        clip: rect(48px, 9999px, 98px, 0);
    }

    25% {
        clip: rect(71px, 9999px, 3px, 0);
    }

    30% {
        clip: rect(18px, 9999px, 57px, 0);
    }

    35% {
        clip: rect(98px, 9999px, 3px, 0);
    }

    40% {
        clip: rect(40px, 9999px, 45px, 0);
    }

    45% {
        clip: rect(3px, 9999px, 69px, 0);
    }

    50% {
        clip: rect(19px, 9999px, 30px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(83px, 9999px, 12px, 0);
    }

    5% {
        clip: rect(45px, 9999px, 59px, 0);
    }

    10% {
        clip: rect(9px, 9999px, 60px, 0);
    }

    15% {
        clip: rect(15px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(89px, 9999px, 95px, 0);
    }

    25% {
        clip: rect(99px, 9999px, 62px, 0);
    }

    30% {
        clip: rect(74px, 9999px, 53px, 0);
    }

    35% {
        clip: rect(3px, 9999px, 72px, 0);
    }

    40% {
        clip: rect(95px, 9999px, 47px, 0);
    }

    45% {
        clip: rect(16px, 9999px, 52px, 0);
    }

    50% {
        clip: rect(96px, 9999px, 92px, 0);
    }
}

/* 18. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-dark-accent);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        gap: 50px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-actions .btn {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .process-step {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding: 40px 20px 40px 80px !important;
    }

    .process-timeline {
        max-width: 100%;
    }

    .timeline-line {
        left: 30px;
    }

    .process-icon {
        left: 0 !important;
    }

    .process-step:nth-child(odd) .process-icon,
    .process-step:nth-child(even) .process-icon {
        left: 0 !important;
    }
}

@media (max-width: 480px) {

    h1,
    .page-header h1,
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .live-chat-widget {
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}