/*
================================================
THE CTR CHRONICLES - STYLESHEET
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  GLOBAL & ROOT VARIABLES
2.  RESET & BASIC STYLING
3.  UTILITY CLASSES
4.  ANIMATIONS & KEYFRAMES
5.  PRELOADER
6.  HEADER & NAVIGATION
7.  HERO SECTION
8.  GENERAL SECTION STYLING
9.  ABOUT SECTION
10. SERVICES SECTION (JOYSTICK CARDS)
11. PROCESS SECTION (SCROLL STORY)
12. INTERACTIVE ROI CALCULATOR
13. TESTIMONIALS SECTION
14. CTA SECTION
15. FOOTER
16. SUB-PAGES (LEGAL, CONTACT)
17. CONTACT PAGE & FORM
18. INTERACTIVE ELEMENTS (CHAT, POPUP, BACK-TO-TOP)
19. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. GLOBAL & ROOT VARIABLES */
:root {
    --color-primary: #FF2E63;
    --color-secondary: #00FFF7;
    --color-dark: #101010;
    --color-dark-alt: #1a1a1a;
    --color-light: #EAEAEA;
    --color-grey: #888;
    --font-heading: 'Press Start 2P', cursive;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s ease;
}

/* 2. RESET & BASIC STYLING */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-light);
    line-height: 1.3;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. UTILITY CLASSES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px solid;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
}

/* 4. ANIMATIONS & KEYFRAMES */


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cube-rotate {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* 5. PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.preloader-logo img {
    animation: fadeIn 1.5s ease-in-out infinite alternate;
}

.preloader-text {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--color-dark-alt);
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    animation: preloader-fill 2s ease-out forwards;
}

@keyframes preloader-fill {
    to {
        width: 100%;
    }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 6. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(16, 16, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--color-dark);
    border-bottom-color: var(--color-dark-alt);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 60px;
    filter: invert(1);
    transition: var(--transition-speed);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-light);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-light);
    transition: all var(--transition-speed);
}

/* 7. HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(16, 16, 16, 0.95), rgba(16, 16, 16, 0.95)),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(0, 255, 247, 0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 60%;
}

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--color-primary);
}

.hero-title .line1 {
    color: var(--color-primary);
}

.hero-title .line2 {
    color: var(--color-secondary);
    padding-left: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    color: var(--color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-3d-object {
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-secondary);
    background: rgba(0, 255, 247, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(0, 255, 247, 0.3);
}

.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);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-down-indicator a {
    font-size: 0.7rem;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-down-indicator span {
    display: block;
    width: 2px;
    height: 30px;
    background: var(--color-grey);
    margin: 10px auto 0;
    position: relative;
}

.scroll-down-indicator span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 10px;
    background: var(--color-secondary);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* 8. GENERAL SECTION STYLING */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--color-grey);
    max-width: 600px;
    margin: 0 auto;
}

.about-section,
.testimonials-section {
    background-color: var(--color-dark-alt);
}

/* 9. ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.comic-panel {
    border: 4px solid var(--color-light);
    padding: 15px;
    background: var(--color-dark);
    transform: rotate(-3deg);
    transition: var(--transition-speed);
}

.comic-panel:hover {
    transform: rotate(0) scale(1.05);
}

.comic-panel img {
    filter: grayscale(0.5) contrast(1.2);
}

.comic-caption {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 15px;
    color: var(--color-light);
}

.about-text h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-grey);
}

.about-text .btn {
    margin-top: 1rem;
}

/* 10. SERVICES SECTION (JOYSTICK CARDS) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    aspect-ratio: 1 / 1.2;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid var(--color-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.service-card-front {
    background: linear-gradient(135deg, var(--color-dark), var(--color-dark-alt));
}

.service-card-back {
    background: linear-gradient(135deg, var(--color-dark-alt), var(--color-primary));
    transform: rotateY(180deg);
    color: var(--color-dark);
}

.service-card-back h4,
.service-card-back p {
    color: var(--color-dark);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--color-light);
    margin-bottom: 1rem;
}

.service-card-back h4 {
    margin-bottom: 1rem;
}

.joystick-prompt {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--color-grey);
    margin-top: auto;
    opacity: 0.7;
}

.service-link {
    margin-top: 1.5rem;
    color: var(--color-dark);
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.service-link:hover {
    color: var(--color-light);
}

/* 11. PROCESS SECTION (SCROLL STORY) */
.process-section {
    background-color: var(--color-dark);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-dark-alt);
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    /* Added margin for spacing */
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-icon {
    position: absolute;
    top: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-dark);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-step {
    position: absolute;
    bottom: -25px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-secondary);
    width: 60px;
    /* Center under icon */
    text-align: center;
    /* Center under icon */
}

.speech-bubble {
    position: relative;
    background: var(--color-dark-alt);
    border: 2px solid var(--color-secondary);
    padding: 1.5rem;
}

/* Left side bubble pointer */
.timeline-item:nth-child(odd) .speech-bubble::after {
    content: " ";
    position: absolute;
    top: 28px;
    right: -22px;
    /* Adjusted for border */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 20px solid var(--color-secondary);
}

/* Right side bubble pointer */
.timeline-item:nth-child(even) .speech-bubble::after {
    content: " ";
    position: absolute;
    top: 28px;
    left: -22px;
    /* Adjusted for border */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 20px solid var(--color-secondary);
}

.speech-bubble h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.speech-bubble p {
    color: var(--color-grey);
}

/* 12. INTERACTIVE ROI CALCULATOR */
.interactive-section {
    background-color: var(--color-dark-alt);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--color-dark);
    padding: 3rem;
    border: 2px solid var(--color-dark-alt);
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 12px;
    background: var(--color-dark-alt);
    border: 1px solid var(--color-grey);
    color: var(--color-light);
    font-family: var(--font-body);
}

.calculator-form input:focus,
.calculator-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.calculator-form button {
    width: 100%;
}

.result-screen {
    height: 100%;
    border: 2px dashed var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.result-placeholder {
    color: var(--color-grey);
}

.result-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-content {
    color: var(--color-light);
}

.result-content.hidden {
    display: none;
}

.result-content h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.result-content small {
    color: var(--color-grey);
    font-size: 0.8rem;
}

/* 13. TESTIMONIALS SECTION */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    /* Max width for the entire component */
    margin: 0 auto;
    overflow: hidden;
    /* This is the viewport that hides other slides */
}

.testimonial-slider {
    display: flex;
    /* This makes all slides sit in a row */
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px 80px;
    /* Provides space so content doesn't hit the buttons */
}

.testimonial-panel {
    background: var(--color-dark);
    padding: 2rem;
    border: 3px solid var(--color-primary);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 4rem;
    position: absolute;
    opacity: 0.2;
}

.testimonial-quote::before {
    content: '“';
    top: -1.5rem;
    left: -1rem;
}

.testimonial-quote::after {
    content: '”';
    bottom: -3.5rem;
    right: -1rem;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    color: var(--color-secondary);
    font-size: 1rem;
}

.author-info span {
    color: var(--color-grey);
    font-size: 0.9rem;
}

/* --- REVISED BUTTON STYLES --- */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-speed);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button.prev {
    left: 15px;
    /* Position button inside the wrapper */
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
}

.slider-controls button.next {
    right: 15px;
    /* Position button inside the wrapper */
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-light);
}

.slider-controls button.prev:hover {
    background: var(--color-secondary);
}

.slider-controls button.next:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

/* 14. CTA SECTION */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=1740&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 46, 99, 0.7), rgba(0, 255, 247, 0.7));
    mix-blend-mode: multiply;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--color-dark);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.cta-section p {
    color: var(--color-dark);
    font-size: 1.2rem;
    margin: 1rem auto 2rem;
    max-width: 600px;
}

.cta-section .btn {
    transform: scale(1.1);
}

/* 15. FOOTER */
.footer {
    background-color: var(--color-dark-alt);
    padding: 80px 0 0;
    border-top: 4px solid var(--color-primary);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-about .footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--color-grey);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-grey);
    color: var(--color-grey);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    text-transform: capitalize;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--color-grey);
}

.footer-links ul li a:hover {
    color: var(--color-light);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--color-grey);
}

.footer-contact ul li i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--color-grey);
}

.footer-bottom {
    border-top: 1px solid var(--color-dark);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--color-grey);
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--color-grey);
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

/* 16. SUB-PAGES (LEGAL, CONTACT) */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(16, 16, 16, 0.8), var(--color-dark)), url(https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=1740&auto=format&fit=crop) center/cover no-repeat;
    text-align: center;
}

.breadcrumbs {
    margin: 1rem 0;
    color: var(--color-grey);
}

.breadcrumbs a {
    color: var(--color-secondary);
}

.page-header-desc {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--color-light);
}

.legal-content .container {
    max-width: 800px;
}

.legal-container .content-wrapper {
    background-color: var(--color-dark-alt);
    padding: 2rem;
}

.legal-content h2 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--color-grey);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* 17. CONTACT PAGE & FORM */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--color-dark-alt);
    padding: 3rem;
}

.contact-info-block h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.contact-info-block p {
    color: var(--color-grey);
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.info-text h4 {
    font-size: 1rem;
    text-transform: capitalize;
}

.info-text p,
.info-text a {
    color: var(--color-light);
}

.contact-social-links {
    margin-top: 2rem;
}

.contact-social-links h4 {
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--color-dark);
    padding: 2.5rem;
}

.contact-form h3 {
    margin-bottom: 0.5rem;
}

.contact-form p {
    margin-bottom: 2rem;
    color: var(--color-grey);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--color-grey);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-dark-alt);
    border: 1px solid var(--color-grey);
    color: var(--color-light);
    transition: var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.5);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}


/* 18. INTERACTIVE ELEMENTS (CHAT, POPUP, BACK-TO-TOP) */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

.chat-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-secondary);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-speed);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background: var(--color-dark-alt);
    border: 1px solid var(--color-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.chat-bubble.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--color-dark);
}

.chat-header h4 {
    font-size: 0.8rem;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    min-height: 100px;
}

.chat-footer {
    display: flex;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: var(--color-dark);
    padding: 10px;
    color: var(--color-light);
}

.chat-footer button {
    width: 50px;
    background: var(--color-secondary);
    border: none;
    cursor: pointer;
}

.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: var(--transition-speed);
}

.popup.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-dark);
    text-align: center;
    padding: 3rem;
    border: 2px solid var(--color-primary);
    position: relative;
    transform: scale(0.8);
    transition: var(--transition-speed);
}

.popup.visible .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: var(--color-grey);
}

.popup-content button {
    margin-top: 1.5rem;
}

/* 19. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 1.5rem;
        padding: 2rem 0;
        border-top: 1px solid var(--color-dark-alt);
    }

    .nav-menu.active {
        left: 0;
    }

    .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 {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 100px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-3d-object {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .comic-panel {
        transform: rotate(0);
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-icon {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        right: auto;
        left: 0;
    }

    .speech-bubble::after {
        left: -20px !important;
        right: auto !important;
        border-right: 20px solid var(--color-secondary) !important;
        border-left: 0 !important;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .header-actions .btn {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-main {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-legal {
        margin-top: 1rem;
    }

    .footer-legal a {
        margin: 0 0.5rem;
    }

    .slider-controls {
        padding: 0;
    }

    .slider-controls button {
        width: 35px;
        height: 35px;
    }

    .chat-bubble {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-title .line2 {
        padding-left: 0;
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .contact-page-wrapper,
    .contact-form,
    .calculator-wrapper {
        padding: 1.5rem;
    }
}