/*
    Theme: Neon Genesis Terminal
    Colors:
    - Primary (Violet): #6C63FF
    - Accent (Mint): #A0FFE6
    - Background (Jet Black): #1E1E1E
    - Text (Light Gray): #E0E0E0
    - Text Darker (Gray): #b0b0b0
    Fonts:
    - Headers: 'Orbitron', sans-serif
    - Body: 'Roboto', sans-serif
*/

/* --- 1. Base & Reset --- */
:root {
    --primary-color: #6C63FF;
    --accent-color: #A0FFE6;
    --bg-color: #1E1E1E;
    --bg-color-light: #2a2a2e;
    --text-color: #E0E0E0;
    --text-color-darker: #b0b0b0;
    --border-color: rgba(160, 255, 230, 0.2);
    --header-height: 80px;
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --glow-color-primary: rgba(108, 99, 255, 0.7);
    --glow-color-accent: rgba(160, 255, 230, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 5px var(--glow-color-accent);
}

p {
    color: var(--text-color-darker);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--glow-color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color-darker);
}

/* --- 2. Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.preloader-logo {
    width: 100%;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    animation: glow-pulse 2s infinite ease-in-out;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-color);
    animation: loading-bar 2s ease-out forwards;
}

.preloader-text {
    font-family: var(--font-header);
    color: var(--accent-color);
    letter-spacing: 2px;
    animation: text-flicker 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes loading-bar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes text-flicker {

    0%,
    19.9%,
    22%,
    62.9%,
    64%,
    64.9%,
    70%,
    100% {
        opacity: 1;
    }

    20%,
    21.9%,
    63%,
    63.9%,
    65%,
    69.9% {
        opacity: 0.4;
    }
}

/* --- 3. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo-text {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-left: 10px;
    letter-spacing: 1px;
}

.nav-logo-link:hover .nav-logo {
    transform: rotate(15deg);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-header);
    font-size: 1rem;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

/* --- 4. Buttons & Interactive Elements --- */
.btn {
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-header);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow-color-accent);
}

.btn-thaw {
    position: relative;
    z-index: 1;
}

.btn-thaw .glimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glimmer-rect {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2px;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 0.6s ease;
}

.btn-thaw:hover .glimmer-rect {
    stroke-dashoffset: 0;
}

/* --- 5. Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-title .reveal-text {
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-title .reveal-text>span {
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-reactor {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color-primary), inset 0 0 10px var(--glow-color-primary);
}

.core-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.core-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    animation: rotate-reverse 15s linear infinite;
}

.core-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    animation: rotate 10s linear infinite;
}

.core-center {
    width: 150px;
    height: 150px;
    background: var(--bg-color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--glow-color-accent), inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-color);
}

.core-center i {
    font-size: 4rem;
    color: var(--accent-color);
    animation: core-icon-pulse 3s infinite ease-in-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes core-icon-pulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--glow-color-accent);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px var(--glow-color-accent);
    }
}

/* Waveform Animation */
.waveform {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 50px;
}

/* --- 6. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    perspective: 1000px;
    height: 320px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    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;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-front {
    background: var(--bg-color-light);
}

.service-card-back {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-card-back h3,
.service-card-back p {
    color: white;
    text-shadow: none;
}

.service-card-back a {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    margin-top: 20px;
}

.service-card-back a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- 7. About Section --- */
.about-section {
    background-color: var(--bg-color-light);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-3d-logo {
    width: 250px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 25px var(--glow-color-primary));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px) rotateY(15deg);
    }

    100% {
        transform: translateY(0px);
    }
}

.about-content {
    flex: 1.5;
}

.about-list {
    margin-top: 20px;
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--accent-color);
}


/* --- 8. Process Section --- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 25px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-color-accent);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- 9. Report & Testimonials Sections --- */
.report-section {
    background: var(--bg-color-light);
}

.report-simulator {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.report-tabs {
    display: flex;
    background: var(--bg-color-light);
}

.report-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-color-darker);
    font-family: var(--font-header);
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-tab-btn.active,
.report-tab-btn:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: rgba(160, 255, 230, 0.05);
}

.report-content {
    padding: 30px;
}

.report-pane {
    display: none;
}

.report-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: var(--bg-color-light);
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.metric-card h5 {
    font-size: 0.9rem;
    color: var(--text-color-darker);
    margin-bottom: 10px;
    text-shadow: none;
}

.metric-card p {
    font-size: 1.8rem;
    font-family: var(--font-header);
    color: var(--text-color);
    margin: 0;
}

.trend {
    font-size: 0.9rem;
    margin-left: 10px;
    font-family: var(--font-body);
}

.trend.up {
    color: #4CAF50;
}

.trend.down {
    color: #F44336;
}

.data-list {
    list-style: square;
    margin-left: 20px;
    color: var(--accent-color);
}

.data-list li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 20px;
    flex-shrink: 0;
    width: 100%;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.7s ease;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 0;
    text-shadow: none;
}

.testimonial-author span {
    color: var(--text-color-darker);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* --- 10. Calculator Section --- */
.calculator-section {
    background-color: var(--bg-color-light);
}

.calculator-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.calculator-content {
    flex: 1;
}

.calculator-form-wrapper {
    flex: 1.2;
    background: var(--bg-color);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.roi-result {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-color-light);
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.roi-result p {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-header);
}

/* --- 11. Contact & Legal Pages --- */
.page-header {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(30, 30, 30, 0.5), var(--bg-color)), url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.page-title {
    font-size: 3.5rem;
}

.page-subtitle,
.breadcrumbs {
    color: var(--text-color-darker);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-wrapper,
.contact-form-wrapper {
    background: var(--bg-color-light);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.contact-heading {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-subheading {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-text h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-shadow: none;
    margin-bottom: 5px;
}

.info-text p {
    margin: 0;
    color: var(--text-color-darker);
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-header);
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-color-accent);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A0FFE6' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.btn-full-width {
    width: 100%;
    justify-content: center;
}

/* Legal Content */
.legal-container {
    max-width: 800px;
}

.content-wrapper {
    background: var(--bg-color-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
}

/* --- 12. Footer --- */
.footer {
    background: var(--bg-color-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
}

.footer-logo-text {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-left: 10px;
    font-family: var(--font-header);
}

.footer-about p {
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--text-color-darker);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-shadow: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--text-color-darker);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color-darker);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal-links a {
    margin-left: 20px;
    color: var(--text-color-darker);
}

/* --- 13. Helper & Utility Classes --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--glow-color-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-bubble {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

.chat-bubble-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    z-index: -1;
    animation: chat-glow 2s infinite ease-out;
}

@keyframes chat-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-color-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.popup-content h3 {
    color: #4CAF50;
}

.popup-content button {
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.crack-reveal {
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    animation: crack-in 1s cubic-bezier(.77, 0, .18, 1) forwards;
}

@keyframes crack-in {
    to {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Terminal Text */
.terminal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url('https://i.imgur.com/E8o1s5V.png') repeat;
    background-size: 500px 500px;
    opacity: 0.03;
    z-index: -1;
    animation: scroll-terminal 60s linear infinite;
    transform: rotate(15deg);
}

@keyframes scroll-terminal {
    from {
        transform: rotate(15deg) translate(0, 0);
    }

    to {
        transform: rotate(15deg) translate(-500px, -500px);
    }
}

/* --- 14. Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--bg-color-light);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    .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);
    }

    .hero-container,
    .about-container,
    .calculator-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-visual {
        margin-bottom: 30px;
    }

    .calculator-container {
        gap: 30px;
    }

    .process-timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
    }

    .slider-nav button {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-title,
    .page-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-actions .btn {
        display: none;
    }

    .form-row,
    .calculator-form {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .footer-main,
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-legal-links a {
        margin: 0;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .chat-bubble {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
}