/*
--- TABLE OF CONTENTS ---
1.  Global Styles & Variables
2.  Utility Classes
3.  Header & Navigation
4.  Footer
5.  Hero Section
6.  Section Styling (General)
7.  Services Section (3D Cards)
8.  About Us / Why Choose Us Section
9.  Interactive Report Section
10. ROI Calculator Section
11. Testimonials Section
12. CTA Section
13. Contact Page Specifics
14. Legal Pages Specifics
15. Animations & Keyframes
16. Live Chat Widget
17. Responsive Design
*/

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
    --primary-color: #0A74DA;
    /* A strong, professional blue */
    --secondary-color: #00C49A;
    /* A vibrant teal/green for accents */
    --dark-bg: #1A202C;
    /* A very dark blue/charcoal */
    --light-bg: #F7FAFC;
    --dark-card-bg: #2D3748;
    --light-text: #EDF2F7;
    --dark-text: #2D3748;
    --gray-text: #A0AEC0;
    --border-color: #4A5568;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-text);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* 2. Utility Classes
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 196, 154, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-center p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #6c757d;
}

/* For left aligned titles */
.section-title:not(.text-center) h2::after {
    left: 0;
    transform: translateX(0);
}


/* 3. Header & Navigation
-------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo:hover {
    color: #fff;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 2rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all var(--transition-speed) ease-in-out;
}

.page-header {
    background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8));
    background-size: cover;
    background-position: center;
    padding: 160px 0 80px;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}


/* 4. Footer
-------------------------------------------------- */
#main-footer {
    background-color: var(--dark-bg);
    color: var(--gray-text);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    font-family: var(--font-primary);
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-legal h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--gray-text);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}


/* 5. Hero Section
-------------------------------------------------- */
#hero {
    min-height: 100vh;
    background-color: var(--dark-bg);
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: move-blob 15s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 15%;
    right: 15%;
    animation: move-blob 20s infinite alternate-reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #ff6347;
    bottom: 40%;
    left: 20%;
    animation: move-blob 18s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
    color: var(--gray-text);
}

.hero-buttons .btn {
    margin-right: 1rem;
}

.hero-3d-element-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-element {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.hero-3d-element .face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--secondary-color);
    background: rgba(45, 55, 72, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.hero-3d-element .face p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}


/* 6. Section Styling (General)
-------------------------------------------------- */
/* Handled by utility classes and specific section styles */


/* 7. Services Section (3D Cards)
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
}

.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: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-front {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
}

.service-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: white;
    transform: rotateY(180deg);
}

.service-card-back h3 {
    color: #fff;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(10, 116, 218, 0.1), rgba(0, 196, 154, 0.1));
    border-radius: 50%;
}

.service-card-front h3 {
    margin-bottom: 1rem;
}

.service-card-front p {
    color: #6c757d;
}

.service-card-back ul {
    text-align: left;
    margin: 1rem 0;
}

.service-card-back ul li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card-back ul li::before {
    content: '\f00c';
    /* FontAwesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.service-card-back .btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    margin-top: 1rem;
}

.service-card-back .btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* 8. About Us / Why Choose Us Section
-------------------------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-content .subtitle {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: #fff;
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.25rem;
}

.feature-text p {
    margin: 0;
    color: #6c757d;
}

/* 9. Interactive Report Section
-------------------------------------------------- */
#interactive-report {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

#interactive-report .section-title h2,
#interactive-report .section-title p {
    color: #fff;
}

#interactive-report .section-title h2::after {
    background-color: var(--secondary-color);
}

.report-container {
    background-color: var(--dark-card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow-dark);
}

.report-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.report-header h3 {
    color: #fff;
}

.report-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.report-kpis {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kpi-card {
    background-color: #1A202C;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.kpi-card.active,
.kpi-card:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
    background-color: #374151;
}

.kpi-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.kpi-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.kpi-change {
    font-size: 0.9rem;
}

.kpi-change.positive {
    color: var(--secondary-color);
}

.kpi-change.negative {
    color: #f87171;
}

.report-chart h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.chart-area {
    height: 250px;
    background-color: #1A202C;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 1rem;
}

.chart-area .bar {
    width: 8%;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease-out;
}

/* 10. ROI Calculator Section
-------------------------------------------------- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.calculator-results {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h4 {
    color: #fff;
}

.result-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-of-type {
    border: none;
}

.roi-highlight {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 1rem;
}

#roi-form .form-group {
    margin-bottom: 1.5rem;
}

#roi-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#roi-form input[type="number"],
#roi-form input[type="range"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#roi-form input[type="range"] {
    padding: 0;
}

#investment-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* 11. Testimonials Section
-------------------------------------------------- */
#testimonials {
    background: linear-gradient(rgba(26, 32, 44, 0.9), rgba(26, 32, 44, 0.9));
    background-size: cover;
    background-attachment: fixed;
    color: var(--light-text);
}

#testimonials .section-title h2,
#testimonials .section-title p {
    color: #fff;
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: var(--dark-card-bg);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0 20px;
    border-style: solid;
    border-color: var(--dark-card-bg) transparent transparent transparent;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    margin-right: 1rem;
}

.author-info h4 {
    color: #fff;
}

.author-info span {
    color: var(--gray-text);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
}

/* 12. CTA Section
-------------------------------------------------- */
#cta {
    background-color: var(--primary-color);
}

.cta-container {
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-content .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background-color: var(--dark-bg);
    color: #fff;
    box-shadow: none;
}


/* 13. Contact Page Specifics
-------------------------------------------------- */
.contact-page-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
    color: #6c757d;
}

.contact-social-links a {
    color: var(--dark-text);
    border-color: #ccc;
}

.contact-social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-form-wrapper h3 {
    margin-bottom: 2rem;
}

#contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

#contact-form .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

#contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-speed);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e53e3e;
}

.form-group.error .error-message {
    display: block;
}

#form-status {
    margin-top: 1rem;
}

.success {
    color: var(--secondary-color);
}

.error {
    color: #e53e3e;
}

/* 14. Legal Pages Specifics
-------------------------------------------------- */
.legal-content {
    background-color: #fff;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.8rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* 15. Animations & Keyframes
-------------------------------------------------- */
@keyframes move-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 50px) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

.animate-on-scroll[data-animation="fade-in-up"].is-visible {
    animation: fade-in-up 0.8s forwards;
}

.animate-on-scroll[data-animation="fade-in-left"].is-visible {
    animation: fade-in-left 0.8s forwards;
}

.animate-on-scroll[data-animation="fade-in-right"].is-visible {
    animation: fade-in-right 0.8s forwards;
}

.animate-on-scroll[data-animation="zoom-in"].is-visible {
    animation: zoom-in 0.8s forwards;
}

.animate-on-scroll[data-animation="fade-in"].is-visible {
    animation: fade-in 0.8s forwards;
}

/* 17. Responsive Design
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Above nav-menu */
    }

    .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);
    }

    #main-header {
        background-color: var(--dark-bg);
        padding: 0.8rem 0;
    }

    .nav-cta {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-3d-element-container {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        text-align: center;
    }

    .report-body {
        grid-template-columns: 1fr;
    }

    .report-kpis {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .contact-page-container {
        grid-template-columns: 1fr;
    }

    #contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .logo,
    .footer-about .social-links {
        justify-content: center;
    }

    .footer-links h4::after,
    .footer-legal h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .hero-3d-element {
        width: 150px;
        height: 150px;
    }

    .hero-3d-element .face {
        width: 150px;
        height: 150px;
        font-size: 1rem;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .calculator-wrapper {
        padding: 2rem;
    }

    .slider-controls {
        padding: 0;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .testimonial-slide {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .report-kpis {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
}