/*
==============================================
BrandBot Land - Digital Marketing Agency Theme
==============================================
*/

/* ===== TABLE OF CONTENTS =====
1.  VARIABLES & GLOBAL RESETS
2.  BASE TYPOGRAPHY & LAYOUT
3.  REUSABLE COMPONENTS (Buttons, Forms)
4.  HEADER & NAVIGATION
5.  MOBILE NAVIGATION
6.  FOOTER
7.  HERO SECTION
8.  SERVICES SECTION
9.  ABOUT SECTION
10. INTERACTIVE REPORT SECTION
11. TESTIMONIALS SECTION
12. CTA SECTION
13. PAGE-SPECIFIC STYLES (Contact, Legal)
14. INTERACTIVE WIDGETS (Chat, Popup)
15. ANIMATIONS & KEYFRAMES
16. RESPONSIVE MEDIA QUERIES
==============================================
*/

/* 
==============================================
1. VARIABLES & GLOBAL RESETS
==============================================
*/

:root {
    --primary-color: #2196F3;
    /* Blue */
    --secondary-color: #FF9800;
    /* Orange */
    --dark-color: #1E1E1E;
    /* Dark Grey */
    --light-color: #FFFFFF;
    --grey-light: #f4f7fc;
    --grey-medium: #e0e0e0;
    --grey-dark: #333333;
    --text-color: #4a4a4a;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --mono-font: 'Roboto Mono', monospace;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* 
==============================================
2. BASE TYPOGRAPHY & LAYOUT
==============================================
*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--grey-dark);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #6c757d;
}

/* 
==============================================
3. REUSABLE COMPONENTS (Buttons, Forms)
==============================================
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
    z-index: 1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--grey-dark);
    border-color: var(--grey-medium);
}

.btn-secondary::before {
    background-color: var(--dark-color);
}

.btn-secondary:hover {
    color: var(--light-color);
    border-color: var(--dark-color);
}

.btn i {
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px);
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    flex: 1;
}

.contact-form .full-width {
    flex-basis: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--grey-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* 
==============================================
4. HEADER & NAVIGATION
==============================================
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--light-color);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    height: 70px;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    filter: invert(1);
    transition: var(--transition-medium);
}


.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--grey-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--grey-dark);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-nav-open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-nav-open .bar-middle {
    opacity: 0;
}

.mobile-nav-open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* 
==============================================
5. MOBILE NAVIGATION
==============================================
*/
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav nav ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-nav.open nav ul li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.mobile-nav.open nav ul li:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-nav.open nav ul li:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-nav.open nav ul li:nth-child(3) {
    transition-delay: 0.4s;
}

.mobile-nav.open nav ul li:nth-child(4) {
    transition-delay: 0.5s;
}

.mobile-nav.open nav ul li:nth-child(5) {
    transition-delay: 0.6s;
}


.mobile-nav nav a {
    color: var(--light-color);
    font-size: 2rem;
    font-weight: 700;
}

.mobile-nav .btn {
    margin-top: 1rem;
}

body.mobile-nav-open {
    overflow: hidden;
}

/* 
==============================================
6. FOOTER
==============================================
*/
.footer {
    background-color: var(--dark-color);
    color: var(--grey-medium);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    bottom: -150px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    top: -100px;
    right: -80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition-medium);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) rotate(360deg);
}

.footer-col-title {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--grey-medium);
    transition: var(--transition-fast);
}

.footer-links ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info a {
    color: var(--grey-medium);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 
==============================================
7. HERO SECTION
==============================================
*/
.hero {
    background-color: var(--grey-light);
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex-basis: 55%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-color);
}

#typewriter {
    display: inline-block;
    color: var(--secondary-color);
    border-right: 3px solid var(--secondary-color);
    animation: blinkCursor 0.7s infinite;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.bot-container {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.bot-body {
    width: 250px;
    height: 350px;
    position: relative;
}

.bot-head {
    width: 150px;
    height: 120px;
    background: #e0e0e0;
    border-radius: 50% 50% 40% 40%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #c0c0c0;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2);
}

.bot-eye-container {
    position: absolute;
    top: 35%;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.bot-eye {
    width: 40px;
    height: 40px;
    background: var(--dark-color);
    border-radius: 50%;
    border: 3px solid var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pupil {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.bot-mouth {
    width: 50px;
    height: 5px;
    background: var(--dark-color);
    border-radius: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.bot-torso {
    width: 200px;
    height: 200px;
    background: #e0e0e0;
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    border: 5px solid #c0c0c0;
}

.bot-chest-light {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--secondary-color);
    animation: pulse 2s infinite;
}

.bot-arm {
    width: 30px;
    height: 120px;
    background: #d0d0d0;
    position: absolute;
    top: 140px;
    border-radius: 15px;
}

.bot-arm.left {
    left: 0;
    transform-origin: top center;
    animation: wave 4s infinite ease-in-out 1s;
}

.bot-arm.right {
    right: 0;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-bubble {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    animation: float-icon 8s infinite ease-in-out;
    animation-delay: calc(var(--i) * -2s);
}

.icon-bubble:nth-child(1) {
    top: 10%;
    left: -20%;
}

.icon-bubble:nth-child(2) {
    top: 30%;
    right: -25%;
}

.icon-bubble:nth-child(3) {
    bottom: 20%;
    left: -10%;
}

.icon-bubble:nth-child(4) {
    bottom: 0%;
    right: 0%;
}

.hero-shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape-divider .shape-fill {
    fill: var(--light-color);
}

/* 
==============================================
8. SERVICES SECTION
==============================================
*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--grey-light);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1), transparent 40%);
    transform: scale(0);
    transition: transform 0.8s ease;
    z-index: 0;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.2);
    color: var(--secondary-color);
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    color: var(--primary-color);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 
==============================================
9. ABOUT SECTION
==============================================
*/
.about-section {
    background-color: var(--grey-light);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-visual {
    flex-basis: 40%;
    perspective: 800px;
}

.about-bot {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    transform: rotateY(20deg);
    animation: hover-bot 5s infinite ease-in-out;
}

.about-bot-head {
    width: 100px;
    height: 100px;
    background: #dcdcdc;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-bot-body {
    width: 150px;
    height: 120px;
    background: #dcdcdc;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 10px 10px;
}

.about-bot-eye {
    width: 15px;
    height: 25px;
    background: var(--dark-color);
    border-radius: 50%;
    position: absolute;
    top: 40px;
}

.about-bot-eye.left {
    left: 25px;
}

.about-bot-eye.right {
    right: 25px;
}

.about-bot-antenna {
    width: 4px;
    height: 40px;
    background: var(--dark-color);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.about-bot-antenna::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 1.5s infinite;
}

.about-content {
    flex-basis: 60%;
}

.about-content .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 
==============================================
10. INTERACTIVE REPORT SECTION
==============================================
*/
.interactive-report-section {
    background-color: var(--light-color);
}

.dashboard-mockup {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--grey-medium);
    overflow: hidden;
}

.dashboard-header {
    background: #e8e8e8;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.dashboard-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.dashboard-body {
    display: flex;
}

.dashboard-sidebar {
    flex-basis: 200px;
    background: var(--grey-light);
    padding: 20px;
}

.dashboard-sidebar ul li {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-sidebar ul li:hover,
.dashboard-sidebar ul li.active {
    background: var(--primary-color);
    color: var(--light-color);
}

.dashboard-main {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card,
.chart-card {
    background: var(--grey-light);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
}

.stat-card h4,
.chart-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.trend {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 10px;
}

.trend.up {
    color: #28c840;
}

.trend.down {
    color: #ff5f57;
}

.report-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    pointer-events: none;
}

.report-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

.stat-card:hover .report-tooltip,
.chart-card:hover .report-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

.chart-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

.chart-card h4 {
    margin-bottom: auto;
}

.chart-card div:not(.report-tooltip) {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    margin-top: 20px;
}

.chart-bar {
    width: 10%;
    background: linear-gradient(to top, var(--primary-color), #64b5f6);
    border-radius: 5px 5px 0 0;
    animation: grow-bar 1s ease-out forwards;
    transform-origin: bottom;
}

/* 
==============================================
11. TESTIMONIALS SECTION
==============================================
*/
.testimonials-section {
    background-color: var(--dark-color);
    position: relative;
}

.testimonials-section .section-title,
.testimonials-section .section-description {
    color: var(--light-color);
}

.testimonials-shape-divider {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.testimonials-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.testimonials-shape-divider .shape-fill {
    fill: var(--light-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    background-color: var(--grey-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--grey-medium);
    text-align: center;
    position: relative;
}

.testimonial-bot-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.author-name {
    color: var(--light-color);
}

.author-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 0.9rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

/* 
==============================================
12. CTA SECTION
==============================================
*/
.cta-section {
    background-color: var(--grey-light);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-description {
    margin-bottom: 2rem;
}

/* 
==============================================
13. PAGE-SPECIFIC STYLES (Contact, Legal)
==============================================
*/
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .section-description {
    color: var(--grey-medium);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--grey-medium);
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}

/* Contact Page Specifics */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.contact-info-panel {
    flex-basis: 40%;
}

.contact-form-wrapper {
    flex-basis: 60%;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--grey-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.contact-method:hover .method-icon {
    background: var(--primary-color);
    color: var(--light-color);
    transform: scale(1.1) rotate(20deg);
}

.method-details h3 {
    margin-bottom: 0.25rem;
}

.method-details p {
    margin: 0;
}

/* 
==============================================
14. INTERACTIVE WIDGETS (Chat, Popup)
==============================================
*/
/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

#chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#chat-window.hidden {
    transform: scale(0);
    opacity: 0;
}

.chat-header {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: var(--light-color);
    font-size: 1.1rem;
    margin: 0;
}

#close-chat {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message p {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    margin: 0;
    line-height: 1.5;
}

.chat-message.bot p {
    background: var(--grey-light);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.user p {
    background: var(--primary-color);
    color: var(--light-color);
    border-bottom-right-radius: 4px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--grey-medium);
}

#chat-input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

#send-chat {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 400px;
    transform: scale(0.7);
    transition: var(--transition-medium);
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup .fas.fa-check-circle {
    font-size: 4rem;
    color: #28c840;
    margin-bottom: 1rem;
}

.popup-close,
.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--grey-dark);
}

.popup-close-btn {
    position: static;
    margin-top: 1.5rem;
    display: inline-block;
}

/* 
==============================================
15. ANIMATIONS & KEYFRAMES
==============================================
*/
.animate-in {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.fade-in-up {
    transform: translateY(30px);
}

.animate-in.fade-in-left {
    transform: translateX(-30px);
}

.animate-in.fade-in-right {
    transform: translateX(30px);
}

.animate-in.zoom-in {
    transform: scale(0.9);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--secondary-color);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px var(--secondary-color);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--secondary-color);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

@keyframes hover-bot {

    0%,
    100% {
        transform: translateY(0) rotateY(20deg);
    }

    50% {
        transform: translateY(-15px) rotateY(15deg);
    }
}

@keyframes grow-bar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* 
==============================================
16. RESPONSIVE MEDIA QUERIES
==============================================
*/

/* Tablets and larger */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex-basis: 100%;
        margin-bottom: 3rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-content .section-header {
        text-align: center;
    }

    .about-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-visual {
        margin-bottom: 2rem;
    }

    .dashboard-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-card {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero {
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    /* Hide complex animation on mobile for performance */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .dashboard-body {
        flex-direction: column;
    }

    .dashboard-sidebar {
        flex-basis: auto;
        width: 100%;
        border-bottom: 1px solid var(--grey-medium);
    }

    .dashboard-sidebar ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    #chat-window {
        width: 90vw;
        height: 70vh;
    }
}

@media (max-width: 576px) {
    .header-cta {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
    }
}