/* Table of Contents
--------------------------------
1.  Global Styles & Variables
2.  Keyframe Animations
3.  Utility Classes
4.  Header & Navigation
5.  Footer
6.  Hero Section
7.  Why Choose Us / Features
8.  Services Section (3D Flip Cards)
9.  ROI Calculator
10. Process Timeline
11. Sample Report Section & Modal
12. Testimonials Section
13. CTA Section
14. Contact Page
15. Legal Pages
16. Live Chat Widget
17. Scroll Animations
18. Responsive Design
-------------------------------- */

/* 1. Global Styles & Variables
-------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-dark: #0A192F;
    --primary-blue: #007BFF;
    --accent-color: #FF6B6B;
    --light-gray: #112240;
    --text-light: #CCD6F6;
    --text-medium: #8892b0;
    --text-dark: #333333;
    --white: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-dark);
    color: var(--text-medium);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--light-gray);
    border-top: 1px solid #1d2d50;
    border-bottom: 1px solid #1d2d50;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* 2. Keyframe Animations
-------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0);
    }
}

@keyframes rotate3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 20px rgba(255, 107, 107, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* 3. Utility Classes
-------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.highlight {
    color: var(--accent-color);
}

/* 4. Header & Navigation
-------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
    padding: 20px 0;
}

#main-header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

#main-header .logo img {
    height: 50px;
    margin-right: 10px;
    transition: height var(--transition-speed);
    filter: brightness(0) invert(1);
}

#main-header.scrolled .logo img {
    height: 45px;
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav ul li a {
    color: var(--text-light);
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

#main-nav ul li a:hover::after,
#main-nav ul li a.active::after {
    width: 100%;
}

.header-cta {
    font-size: 0.9rem;
    padding: 10px 20px;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

#menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 5. Footer
-------------------------------- */
#main-footer {
    background-color: #06101f;
    padding: 80px 0 0;
    color: var(--text-medium);
    border-top: 2px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col .logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col .logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-right: 10px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-medium);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--light-gray);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}


/* 6. Hero Section
-------------------------------- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../hero-bg.jpg') no-repeat center center/cover;
    filter: brightness(0.4);
    z-index: -1;
}

#hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 60%;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-3d-element {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3D 30s infinite linear;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
    backdrop-filter: blur(5px);
}

.front {
    transform: rotateY(0deg) translateZ(150px);
}

.back {
    transform: rotateY(180deg) translateZ(150px);
}

.right {
    transform: rotateY(90deg) translateZ(150px);
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.top {
    transform: rotateX(90deg) translateZ(150px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* 7. Why Choose Us / Features
-------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #1d2d50;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--white);
}

/* 8. Services Section (3D Flip Cards)
-------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-blue);
    background-color: var(--primary-dark);
}

.service-card-back {
    transform: rotateY(180deg);
    background-color: var(--primary-blue);
    color: var(--white);
}

.service-card-back h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.service-card-back ul {
    text-align: left;
}

.service-card-back ul li {
    margin-bottom: 8px;
    list-style-type: '✓ ';
    padding-left: 10px;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}


/* 9. ROI Calculator
-------------------------------- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-dark);
    border: 1px solid #1d2d50;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
}

.calculator-results {
    background-color: var(--primary-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h3 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--accent-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1.1rem;
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    color: var(--text-medium);
}

.result-value {
    color: var(--text-light);
    font-weight: 700;
}

.total-roi .result-value {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
    color: var(--text-medium);
}

/* 10. Process Timeline
-------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #1d2d50;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 35px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    border: 4px solid var(--accent-color);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: var(--primary-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-step {
    position: absolute;
    top: -20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-step {
    right: 20px;
}

.timeline-item:nth-child(even) .timeline-step {
    left: 20px;
}

/* 11. Sample Report Section & Modal
-------------------------------- */
.report-viewer {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.report-viewer img {
    display: block;
    transition: transform 0.5s ease;
}

.report-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.report-viewer:hover .report-overlay {
    opacity: 1;
}

.report-viewer:hover img {
    transform: scale(1.05);
}

#view-report-btn {
    animation: pulse 2s infinite;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: 5% auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

/* 12. Testimonials Section
-------------------------------- */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 350px;
}

.testimonial-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-slide img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.testimonial-slide blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
    max-width: 90%;
}

.testimonial-slide cite {
    font-weight: 600;
    color: var(--text-medium);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--accent-color);
}

/* 13. CTA Section
-------------------------------- */
#cta {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('../hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

#cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

#cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* 14. Contact Page
-------------------------------- */
#contact-page h1 {
    font-size: 3.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form-wrapper {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
}

#contact-form .form-row {
    display: flex;
    gap: 20px;
}

#contact-form .form-row .form-group {
    width: 100%;
}

#contact-form .form-group label {
    color: var(--text-light);
    font-weight: 400;
}

#contact-form .form-group input,
#contact-form .form-group select,
#contact-form .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-dark);
    border: 1px solid #1d2d50;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 8px;
    font-family: var(--font-family);
}

#contact-form .form-group input:focus,
#contact-form .form-group select:focus,
#contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

#contact-form button {
    width: 100%;
    margin-top: 20px;
}

.contact-info ul {
    margin-top: 20px;
}

.contact-info ul li {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-info ul li strong {
    color: var(--text-light);
    margin-bottom: 5px;
}

.map-placeholder {
    margin-top: 40px;
    height: 250px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed var(--text-medium);
}

.map-placeholder p {
    margin: 0;
}

/* 15. Legal Pages
-------------------------------- */
.legal-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    min-height: 80vh;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.legal-page p,
.legal-page li {
    font-size: 1.1rem;
    color: var(--text-light);
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

/* 16. Live Chat Widget
-------------------------------- */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed);
}

#chat-toggle:hover {
    transform: scale(1.1);
}

#chat-toggle svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

#chat-window.open {
    transform: scale(1);
}

.chat-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: var(--white);
    font-size: 1.1rem;
}

#close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    background-color: #f4f7f9;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    color: var(--text-dark);
    margin: 0;
}

.message.received {
    align-self: flex-start;
}

.message.received p {
    background-color: #e5e5ea;
    border-bottom-left-radius: 5px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.chat-footer button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0 15px;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
}

/* 17. Scroll Animations
-------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(50px);
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) .slide-in-left {
    /* Correcting for timeline */
    transform: translateX(50px);
}

.timeline-item:nth-child(even) .slide-in-left.is-visible {
    transform: translateX(0);
}


.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.timeline-item:nth-child(odd) .slide-in-right {
    /* Correcting for timeline */
    transform: translateX(-50px);
}

.timeline-item:nth-child(odd) .slide-in-right.is-visible {
    transform: translateX(0);
}

[data-animation="flip-in"].is-visible {
    animation: flipIn 0.8s ease forwards;
}

/* 18. Responsive Design
-------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    #hero .container {
        flex-direction: column;
        justify-content: center;
    }

    .hero-3d-element {
        display: none;
    }

    /* Hide 3D element on smaller screens */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--light-gray);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    #main-nav ul li a {
        font-size: 1.5rem;
    }

    .header-cta {
        display: none;
    }

    #menu-toggle {
        display: block;
    }

    .section-padding {
        padding: 60px 0;
    }

    h1,
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .process-timeline {
        padding: 0 20px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    #contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .calculator-wrapper,
    .contact-form-wrapper {
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    #chat-window {
        width: 100%;
        right: -20px;
        bottom: 0;
        height: 100vh;
        border-radius: 0;
    }

    #chat-toggle {
        bottom: 10px;
        right: 10px;
    }
}