/* ===================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------
   01. CSS Variables & Theme
   02. Global Styles & Resets
   03. Utility Classes
   04. Header & Navigation
   05. Footer
   06. Hero Section
   07. About Us Section
   08. Services Section
   09. Stats Counter Section
   10. Industry Expertise Section
   11. Testimonials Section
   12. Interactive Calculator Section
   13. Call to Action (CTA) Section
   14. Contact Page Styles
   15. Legal Page Styles
   16. Live Chat Widget
   17. Animations & Keyframes
   18. Responsive Design (Media Queries)
=================================================================== */


/* ===================================================================
   01. CSS Variables & Theme
=================================================================== */
:root {
    /* Primary Color Palette (Inspired by a hypothetical professional logo) */
    --primary-color: #0052cc;
    /* A strong, professional blue */
    --secondary-color: #042973;
    /* A deep, dark blue for backgrounds/accents */
    --accent-color: #ff8c00;
    /* A vibrant orange for CTAs and highlights */
    --light-accent-color: #ffc966;

    /* Neutral & Text Colors */
    --text-color: #333;
    --light-text-color: #6c757d;
    --white-color: #ffffff;
    --bg-color-light: #f8f9fa;
    --bg-color-dark: #0a1931;
    --border-color: #dee2e6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--light-accent-color));

    /* Font & Sizing */
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* ===================================================================
   02. Global Styles & Resets
=================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

/* ===================================================================
   03. Utility Classes
=================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--white-color);
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
    color: var(--white-color);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-text-color);
}

/* Fade-in animation for scroll effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   04. Header & Navigation
=================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 49, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: all var(--transition-speed);
    padding: 10px;
}

.header.scrolled {
    background-color: var(--bg-color-dark);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo img {
    height: 50px;
    margin-right: 10px;
   filter: brightness(1)invert(1);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: block;
    padding: 10px 25px;
    background: var(--gradient-accent);
    color: var(--white-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--white-color);
    border-radius: 2px;
}

/* ===================================================================
   05. Footer
=================================================================== */
.footer {
    background-color: var(--bg-color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo img {
   height: 50px;
    margin-right: 10px;
   filter: brightness(1)invert(1);
}

.footer-about-text {
    line-height: 1.8;
}

.footer-heading {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
}

.footer-contact strong {
    color: var(--white-color);
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===================================================================
   06. Hero Section
=================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white-color);
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite linear;
}

.hero-bg-animation .circle:nth-child(1) {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 5%;
    animation-duration: 25s;
}

.hero-bg-animation .circle:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 15%;
    right: 10%;
    animation-duration: 30s;
}

.hero-bg-animation .circle:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 30%;
    animation-duration: 18s;
}

.hero-bg-animation .circle:nth-child(4) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 35%;
    animation-duration: 22s;
}


.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 55%;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-title .highlight {
    color: var(--light-accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

/* 3D Element */
.hero-3d-element-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    animation: fadeInUp 1s 0.5s ease-out backwards;
}

.hero-3d-element {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

.hero-3d-element .face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.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);
}

/* ===================================================================
   07. About Us Section
=================================================================== */
.about-us-section {
    background-color: var(--bg-color-light);
}

.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background-image: url('https://source.unsplash.com/random/800x800/?business,meeting');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    top: -20px;
    left: -20px;
    z-index: 0;
}

.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-list {
    margin-top: 20px;
    list-style-type: none;
    padding-left: 0;
}

.about-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}

.about-list li::before {
    content: '\2713';
    /* Checkmark character */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 900;
}

/* ===================================================================
   08. Services Section
=================================================================== */
.services-section {
    background-color: var(--white-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    aspect-ratio: 1 / 1;
    perspective: 1500px;
}

.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);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card-front {
    background: var(--bg-color-light);
}

.service-card-back {
    background: var(--gradient-primary);
    color: var(--white-color);
    transform: rotateY(180deg);
}

.service-card-back h3 {
    color: var(--white-color);
}

.service-card-back p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0.1);
    transition: var(--transition-speed);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.service-icon {
    width: 40px;
    height: 40px;
    fill: var(--white-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-cta {
    margin-top: 15px;
    padding: 8px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--white-color);
    font-weight: 500;
}

.service-cta:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* ===================================================================
   09. Stats Counter Section
=================================================================== */
.stats-section {
    background-image: linear-gradient(rgba(4, 41, 115, 0.9), rgba(10, 25, 49, 0.9)), url('https://source.unsplash.com/random/1600x900/?data,analytics');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--white-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-left: 2px solid var(--accent-color);
}

.stat-item:first-child {
    border-left: none;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: inline-block;
}

.stat-unit {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 5px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ===================================================================
   10. Industry Expertise Section
=================================================================== */
.industry-section {
    background-color: var(--bg-color-light);
}

.industry-content {
    display: flex;
    gap: 40px;
}

.industry-tabs {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.tab-link {
    background: transparent;
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    border-left: 3px solid var(--border-color);
    transition: all var(--transition-speed);
}

.tab-link.active {
    background-color: var(--white-color);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-link:hover:not(.active) {
    background-color: rgba(0, 82, 204, 0.05);
}

.industry-tab-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 15px;
}

/* ===================================================================
   11. Testimonials Section
=================================================================== */
.testimonials-section {
    background-color: var(--white-color);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 20px;
    max-width: 90%;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: relative;
    top: 10px;
    margin-right: 5px;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--accent-color);
}

.prev-btn {
    margin-left: -50px;
}

.next-btn {
    margin-right: -50px;
}


/* ===================================================================
   12. Interactive Calculator Section
=================================================================== */
.calculator-section {
    background-color: var(--bg-color-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calculator-form .form-group {
    margin-bottom: 30px;
}

.calculator-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.calculator-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--border-color);
    outline: none;
    border-radius: 5px;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.calculator-form span {
    font-weight: 700;
    color: var(--accent-color);
    float: right;
}

.calculator-results {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.calculator-results h3 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.result-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.result-item span {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.result-item.highlight-result span {
    color: var(--light-accent-color);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}

/* ===================================================================
   13. Call to Action (CTA) Section
=================================================================== */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white-color);
    text-align: center;
}

.cta-content h2 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}


/* ===================================================================
   14. Contact Page Styles
=================================================================== */
.contact-page-section {
    padding-top: calc(var(--header-height) + 60px);
    background-color: var(--bg-color-light);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed);
}

.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(0, 82, 204, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .cta-button {
    width: 100%;
    padding: 15px;
}

.contact-info-container h3 {
    margin-bottom: 15px;
}

.contact-details-list {
    list-style: none;
    margin-top: 20px;
}

.contact-details-list li {
    margin-bottom: 15px;
}

.contact-details-list li strong {
    display: block;
    color: var(--secondary-color);
}

.map-placeholder {
    margin-top: 30px;
    height: 250px;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text-color);
}


/* ===================================================================
   15. Legal Page Styles
=================================================================== */
.legal-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-page p,
.legal-page li {
    line-height: 1.8;
    color: var(--text-color);
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}


/* ===================================================================
   16. Live Chat Widget
=================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble svg {
    width: 30px;
    height: 30px;
    fill: var(--white-color);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.chat-widget.open .chat-window {
    transform: scale(1);
}

.chat-header {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--white-color);
}

.close-chat {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
}

.message p {
    background-color: var(--bg-color-light);
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
    margin: 0;
}

.message.received p {
    border-bottom-left-radius: 5px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chat-footer button {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
}


/* ===================================================================
   17. Animations & Keyframes
=================================================================== */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===================================================================
   18. Responsive Design (Media Queries)
=================================================================== */

/* Tablets and below (max-width: 992px) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-color-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 20px;
    }

    .nav-link::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-3d-element-container {
        transform: scale(0.8);
    }

    .about-us-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-col,
    .contact-col {
        grid-column: 1 / -1;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        border-left: none;
    }

    .industry-content {
        flex-direction: column;
    }

    .industry-tabs {
        flex-direction: row;
        overflow-x: auto;
        min-width: auto;
    }

    .tab-link {
        border-left: none;
        border-bottom: 3px solid var(--border-color);
        white-space: nowrap;
    }

    .tab-link.active {
        border-bottom-color: var(--primary-color);
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-3d-element-container {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-item {
        padding-bottom: 20px;
        border-bottom: 2px solid var(--accent-color);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-slider-container {
        padding: 0;
    }

    .slider-controls {
        display: none;
    }

    .testimonial-slider {
        height: auto;
    }

    .testimonial-slide {
        position: relative;
        opacity: 1;
        margin-bottom: 30px;
    }

    .testimonial-slide:not(.active) {
        display: none;
    }

    /* Show only one at a time for manual JS control */

    .contact-form .form-group-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}