/*
---
TABLE OF CONTENTS
---
1.  GLOBAL STYLES & VARIABLES
2.  HELPER CLASSES
3.  PRELOADER
4.  HEADER & NAVIGATION
5.  PAGE HEADER (FOR SUB-PAGES)
6.  HERO SECTION
7.  SECTION STYLES (COMMON)
8.  SERVICES SECTION
9.  INDUSTRY SECTION
10. TESTIMONIALS SECTION
11. CTA SECTION
12. CONTACT PAGE
13. LEGAL CONTENT PAGES
14. FOOTER
15. INTERACTIVE WIDGETS (BACK TO TOP, CHAT)
16. ANIMATIONS & KEYFRAMES
17. RESPONSIVE DESIGN (MEDIA QUERIES)
---
*/


/* 1. GLOBAL STYLES & VARIABLES
-------------------------------------------------- */
:root {
    --color-primary-start: #4F46E5;
    --color-primary-end: #A855F7;
    --color-bg-dark: #111827;
    --color-bg-light: #1F2937;
    --color-border: #374151;
    --color-text-primary: #F9FAFB;
    --color-text-secondary: #9CA3B0;
    --color-white: #FFFFFF;
    --color-success: #10B981;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition-smooth: all 0.3s ease;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-secondary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-primary-start);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-end);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* 2. HELPER CLASSES
-------------------------------------------------- */
.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.highlight-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-primary-start);
    border-color: var(--color-primary-start);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* 3. PRELOADER
-------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    text-align: center;
}

.loader-logo img {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 120px;
    height: 4px;
    background-color: var(--color-border);
    margin-top: 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    animation: loading 2s infinite linear;
}

/* 4. HEADER & NAVIGATION
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--color-border);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: rotate(15deg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-secondary);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-secondary);
    border-radius: 8px;
    font-size: 1rem;
}

.dropdown-menu li a:hover {
    background-color: var(--color-primary-start);
    color: var(--color-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: var(--color-white);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

.nav.open .hamburger {
    background-color: transparent;
}

.nav.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav.open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* 5. PAGE HEADER (FOR SUB-PAGES)
-------------------------------------------------- */
.page-header {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('https://i.imgur.com/example.jpg') no-repeat center center/cover;
    /* Placeholder - add a background image */
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumbs {
    font-family: var(--font-secondary);
    font-weight: 500;
}

.breadcrumbs span {
    color: var(--color-text-primary);
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
    color: var(--color-primary-start);
}

/* 6. HERO SECTION
-------------------------------------------------- */
.hero {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(100px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--color-primary-start);
    top: 10%;
    left: 10%;
    animation: move-blob 15s infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: var(--color-primary-end);
    bottom: 5%;
    right: 5%;
    animation: move-blob 20s infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background-color: #3b82f6;
    /* Another accent color */
    top: 20%;
    right: 20%;
    animation: move-blob 18s infinite alternate;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-primary-start);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* 7. SECTION STYLES (COMMON)
-------------------------------------------------- */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-primary-start);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 8. SERVICES SECTION
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1px;
    position: relative;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card-inner {
    background-color: var(--color-bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-text-primary);
}

.service-link i {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 9. INDUSTRY SECTION
-------------------------------------------------- */
.industry-section {
    background-color: var(--color-bg-light);
}

.industry-wrapper {
    display: flex;
    gap: 3rem;
    background-color: var(--color-bg-dark);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.industry-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    width: 220px;
}

.industry-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background-color: var(--color-bg-light);
    color: var(--color-text-secondary);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.industry-tab i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.industry-tab:hover {
    background-color: var(--color-primary-start);
    color: var(--color-white);
    border-color: var(--color-primary-start);
}

.industry-tab.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.industry-content {
    flex-grow: 1;
}

.industry-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.industry-pane.active {
    display: block;
}

.industry-title {
    margin-bottom: 1rem;
}

.industry-pane ul {
    margin-top: 1.5rem;
    list-style: none;
}

.industry-pane li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.industry-pane li i {
    color: var(--color-success);
}

/* 10. TESTIMONIALS SECTION
-------------------------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    /* CORRECT: This creates the viewport */
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* CORRECT: This animates the slide */
}

.testimonial-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    /* Good practice for flex items */
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--color-primary-start);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.author-name {
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-btn.prev {
    transform: translateX(-60px);
}

.slider-btn.next {
    transform: translateX(60px);
}

.slider-btn:hover {
    background: var(--color-primary-start);
    border-color: var(--color-primary-start);
}

/* 11. CTA SECTION
-------------------------------------------------- */
.cta-section {
    padding: 0;
}

.cta-wrapper {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-description {
    color: var(--color-text-primary);
    opacity: 0.9;
}

.cta-action .btn-primary {
    background: var(--color-white);
    color: var(--color-primary-start);
    box-shadow: none;
    width: 300px;
}

.cta-action .btn-primary:hover {
    background: var(--color-bg-dark);
    color: var(--color-white);
}

/* 12. CONTACT PAGE
-------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-form-container {
    background-color: var(--color-bg-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group:not(.checkbox-group) {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    padding-left: 45px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.form-group textarea {
    padding-left: 20px;
    resize: vertical;
}

.form-group select {
    padding-left: 20px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-start);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 45px;
    color: var(--color-text-secondary);
}

.form-group textarea~i {
    top: 15px;
    left: auto;
    right: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

/* 13. LEGAL CONTENT PAGES
-------------------------------------------------- */
.main-content {
    padding: 80px 0;
}

.legal-content {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content strong {
    color: var(--color-text-primary);
}

/* 14. FOOTER
-------------------------------------------------- */
.footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
}

.footer-socials a:hover {
    background: var(--color-primary-start);
    border-color: var(--color-primary-start);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 15px;
}

.footer-links ul a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.footer-links ul a:hover {
    padding-left: 20px;
    color: var(--color-text-primary);
}

.footer-links ul a:hover::before {
    color: var(--color-primary-start);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    margin-top: 5px;
    color: var(--color-primary-start);
}

.footer-contact a {
    color: var(--color-text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}


/* 15. INTERACTIVE WIDGETS
-------------------------------------------------- */
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    color: var(--color-white);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 998;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-toggle-btn .fa-times {
    display: none;
}

.chat-widget.open .fa-comments {
    display: none;
}

.chat-widget.open .fa-times {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-widget.open .chat-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 1.25rem;
    color: white;
}

.chat-header h3 {
    color: white;
}

.chat-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.chat-body {
    padding: 1rem;
    flex-grow: 1;
    height: 250px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.agent p {
    background: var(--color-bg-dark);
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 12px 12px 12px 0;
    max-width: 80%;
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--color-border);
    padding: 0.75rem;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--color-text-primary);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--color-primary-start);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
}


/* 16. ANIMATIONS & KEYFRAMES
-------------------------------------------------- */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes move-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-right {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-left {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 17. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-bg-light);
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown a i {
        transition: transform 0.3s ease;
    }

    .dropdown:hover a i {
        transform: rotate(180deg);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .industry-wrapper {
        flex-direction: column;
        padding: 2rem;
    }

    .industry-tabs {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 1rem;
    }

    .industry-tab {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .slider-btn.prev {
        transform: translateX(-20px);
    }

    .slider-btn.next {
        transform: translateX(20px);
    }

    .footer-top {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links ul a {
        padding-left: 0;
    }

    .footer-links ul a::before {
        display: none;
    }

    .footer-links ul a:hover {
        padding-left: 0;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}