/*
    styles.css
    Theme for David AG Insurance Digital Marketing
    Version: 1.0
*/

/* 1. VARIABLES & RESET
--------------------------------------------- */
:root {
    --primary-color: #00A99D;
    /* Bright Teal */
    --primary-hover-color: #00877d;
    --secondary-color: #0D1B2A;
    /* Dark Navy */
    --accent-color: #E0E1DD;
    /* Light Beige */
    --background-color: #ffffff;
    --light-bg-color: #f8f9fa;
    --dark-bg-color: #040f1a;
    --text-color: #444;
    --heading-color: #1b263b;
    --light-text-color: #f1f1f1;
    --border-color: #e0e1dd;
    --shadow-color: rgba(13, 27, 42, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --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);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-hover-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* 2. BUTTONS & FORMS
--------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 169, 157, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}


/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}


/* 3. HEADER & NAVIGATION
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: 0 4px 20px var(--shadow-color);
    border-bottom-color: var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 80px;
    transition: transform var(--transition-speed) ease;
}

.logo:hover img {
    transform: rotate(-10deg);
}

.logo span {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--secondary-color);
}

/* 4. HERO SECTION
--------------------------------------------- */
.hero-section {
    position: relative;
    padding: calc(var(--header-height) + 100px) 0 100px;
    background-color: var(--light-bg-color);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-bg-shape {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(100px);
    z-index: 0;
}

/* Hero 3D Visual */
.hero-3d-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-30deg);
    animation: rotateCube 30s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(13, 27, 42, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 169, 157, 0.5) inset;
}

.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);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}


/* 5. SERVICES SECTION
--------------------------------------------- */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(0, 169, 157, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background-color: var(--light-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(360deg);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.learn-more {
    font-weight: 600;
    font-family: var(--font-primary);
    margin-top: 1rem;
    display: inline-block;
}

.learn-more i {
    transition: transform var(--transition-speed) ease;
    margin-left: 5px;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* 6. ABOUT SECTION
--------------------------------------------- */
#about {
    background-color: var(--light-bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}


/* 7. ROI CALCULATOR
--------------------------------------------- */
.roi-calculator-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1b263b 100%);
    color: var(--light-text-color);
}

.roi-calculator-section .section-header h2,
.roi-calculator-section .section-header p {
    color: #fff;
}

.roi-calculator-section .subtitle {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-form label {
    color: var(--accent-color);
}

.calculator-form input,
.calculator-form select {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.calculator-form select option {
    background: var(--secondary-color);
}

.calculator-form input:focus,
.calculator-form select:focus {
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.5);
    border-color: var(--primary-color);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
}

.calculator-results {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.calculator-results h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item span {
    color: var(--accent-color);
}

.result-item strong {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.result-item.highlight strong {
    color: var(--primary-color);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 8. PRICING SECTION
--------------------------------------------- */
#pricing {
    background-color: var(--light-bg-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px var(--shadow-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.25rem;
}

.pricing-header p {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--heading-color);
    margin-bottom: 2rem;
}

.price sup {
    font-size: 1.5rem;
    font-weight: 500;
    top: -1.2rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    font-size: 1.2rem;
}

.pricing-features li .fa-check {
    color: #28a745;
}

.pricing-features li .fa-times {
    color: #dc3545;
}


/* 9. TESTIMONIALS SECTION
--------------------------------------------- */
.testimonials-section {
    position: relative;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.testimonials-section::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    line-height: 1;
}

.testimonials-section .section-header h2,
.testimonials-section .section-header p {
    color: #fff;
}

.testimonials-section .subtitle {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.testimonial-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-item {
    min-width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-item.active {
    opacity: 1;
    position: relative;
}

.testimonial-item p {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 650px;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--primary-color);
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    left: -20px;
    width: calc(100% + 40px);
}

.testimonial-nav button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.testimonial-nav button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 10. CTA SECTION
--------------------------------------------- */
.cta-section {
    background-color: var(--light-bg-color);
    padding: 60px 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 11. FOOTER
--------------------------------------------- */
.footer {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-col .logo {
    margin-bottom: 1.5rem;
}

.footer-col .logo span {
    color: #fff;
}

.footer-about-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--accent-color);
    transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--accent-color);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact span {
    color: var(--accent-color);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* 12. INNER PAGES (Contact, Legal)
--------------------------------------------- */
.page-header-section {
    position: relative;
    background-color: var(--secondary-color);
    color: #fff;
    padding: calc(var(--header-height) + 60px) 0 60px;
    text-align: center;
    overflow: hidden;
}

.page-header-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--accent-color);
}

.breadcrumbs {
    margin-top: 1rem;
}

.breadcrumbs a {
    color: var(--accent-color);
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

.breadcrumbs span {
    color: var(--primary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--light-bg-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 40px var(--shadow-color);
}

.contact-info-panel h3 {
    margin-bottom: 1rem;
}

.contact-details-list {
    margin-top: 2rem;
}

.contact-details-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: #555;
}

/* 13. POPUP & WIDGETS
--------------------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: all var(--transition-speed) ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 169, 157, 0.4);
    transition: all var(--transition-speed) ease;
}

.chat-bubble:hover {
    background-color: var(--primary-hover-color);
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    color: #fff;
    margin: 0;
}

#close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    flex-grow: 1;
    min-height: 250px;
    background-color: var(--light-bg-color);
}

.message {
    margin-bottom: 1rem;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    margin: 0;
}

.message.received p {
    background-color: #e9ecef;
    border-bottom-left-radius: 2px;
}

.chat-footer {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 8px;
    background: transparent;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* 14. ANIMATIONS
--------------------------------------------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.fade-in-left {
    transform: translateX(-30px);
}

.animate-in.fade-in-right {
    transform: translateX(30px);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* 15. RESPONSIVENESS
--------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -10px 0 30px var(--shadow-color);
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-speed) ease;
        z-index: 1001;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 1.5rem auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-3d-visual {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .face {
        width: 150px;
        height: 150px;
    }

    .face.front {
        transform: 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 {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 576px) {

    .section-padding,
    .footer {
        padding: 60px 0;
    }

    .hero-section {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .testimonial-nav {
        display: none;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}