/*
==============================================
--- VELOCITY WHIRL THEME ---
==============================================
Table of Contents:
1.  Global Styles & Variables
2.  Preloader
3.  Header & Navigation
4.  Buttons & General UI Elements
5.  Hero Section
6.  Section Styling (General)
7.  Services Section
8.  About Section
9.  Process Section
10. Testimonials Section
11. CTA Section
12. Footer
13. Page-Specific Styles (Contact, Legal)
14. Interactive Elements (Back to Top, Chat)
15. Animations & Keyframes
16. Media Queries (Responsiveness)
==============================================
*/

/* 1. Global Styles & Variables */
:root {
    --primary-color: #00AEEF;
    /* Bright Blue */
    --secondary-color: #00F4E0;
    /* Teal/Cyan Accent */
    --dark-bg: #0D1117;
    /* Very Dark Blue/Black */
    --dark-bg-secondary: #161B22;
    /* Slightly Lighter Dark */
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    /* Light Grey for Text */
    --text-secondary: #8b949e;
    /* Muted Grey */
    --heading-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --motion-blur-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
    filter: brightness(1.1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: var(--text-primary);
}


/* 2. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    animation: pulse 2s infinite ease-in-out;
}

.preloader-logo img {
    width: 80px;
    filter: invert(1);
}

.preloader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.preloader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--border-color);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: preloader-slide 1.5s infinite linear;
}


/* 3. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    padding: 15px 0;
}

.header.sticky {
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.nav-logo img {
    height: 60px;
    filter: invert(1);
    transition: transform var(--transition-smooth);
}

.nav-logo:hover img {
    transform: rotate(360deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--heading-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.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(--heading-color);
    border-radius: 2px;
}


/* 4. Buttons & General UI Elements */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    box-shadow: var(--motion-blur-shadow);
}

.btn-primary:hover {
    color: var(--dark-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 174, 239, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width var(--transition-smooth);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--dark-bg);
}

.btn-secondary:hover::before {
    width: 100%;
}


/* 5. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.2) 0%, rgba(0, 174, 239, 0) 70%);
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 15%;
    animation-duration: 12s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 5%;
    left: 20%;
    background: radial-gradient(circle, rgba(0, 244, 224, 0.15) 0%, rgba(0, 244, 224, 0) 70%);
    animation-duration: 15s;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--heading-color), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-primary);
}

.hero-actions .btn {
    margin: 0 10px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.mouse span {
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    background: var(--text-primary);
    border-radius: 50%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}


/* 6. Section Styling (General) */
.page-header {
    background: var(--dark-bg-secondary);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}


/* 7. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--dark-bg-secondary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
    transform: scale(1.1);
}

.service-card:hover .card-border {
    opacity: 0.1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-10deg);
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
}

.learn-more i {
    margin-left: 5px;
    transition: transform var(--transition-fast);
}

.learn-more:hover i {
    transform: translateX(5px);
}


/* 8. About Section */
.about {
    background-color: var(--dark-bg-secondary);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image .image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    border-radius: var(--border-radius);
    display: block;
}

.image-accent-shape {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    transition: transform var(--transition-smooth);
}

.about-image:hover .image-accent-shape {
    transform: scale(1.2);
}

.about-content .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-content .section-header h2::after {
    left: 0;
    transform: none;
}

.about-features {
    margin-top: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--secondary-color);
}


/* 9. Process Section */
.process-wrapper {
    position: relative;
    margin-top: 50px;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 40px;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
    transition: all var(--transition-smooth);
}

.process-step:hover .process-icon {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.1);
}

.process-step:nth-child(odd) .process-icon {
    right: -31.5px;
}

.process-step:nth-child(even) .process-icon {
    left: -31.5px;
}

.process-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}


/* 10. Testimonials Section */
.testimonials {
    background-color: var(--dark-bg-secondary);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 300px;
    /* Adjust as needed */
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 30px;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.exit {
    transform: translateX(-100%);
}

.testimonial-content {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--border-color);
}

.testimonial-content::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
    color: var(--heading-color);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-controls button {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-controls button:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}


/* 11. CTA Section */
.cta {
    background: url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 17, 23, 0.9);
}

.cta-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}


/* 12. Footer */
.footer {
    background-color: var(--dark-bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    height: 60px;
    filter: invert(1);
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50%;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--heading-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-contact ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--heading-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    margin-left: 20px;
    color: var(--text-secondary);
}

.footer-legal a:hover {
    color: var(--heading-color);
}


/* 13. Page-Specific Styles (Contact, Legal) */

/* Contact Page */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--dark-bg-secondary);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(0, 174, 239, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p {
    margin: 0;
    color: var(--text-primary);
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
}

/* 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;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

/* Legal Pages */
.legal-content .content-wrapper {
    background: var(--dark-bg-secondary);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}


/* 14. Interactive Elements */
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    color: var(--dark-bg);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--motion-blur-shadow);
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1) rotate(-15deg);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: var(--dark-bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom left;
    transition: all 0.3s ease;
}

.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--dark-bg);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
}

.message p {
    background: var(--dark-bg);
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
    max-width: 80%;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.message.received p {
    border-bottom-left-radius: 2px;
}

.chat-footer {
    padding: 10px;
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 0 10px;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}


/* 15. Animations & Keyframes */
@keyframes preloader-slide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(0, 174, 239, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(15px, 20px);
    }

    100% {
        transform: translate(0, -0px);
    }
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

/* Scroll Animations */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-animation="swoosh-in-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animation="swoosh-in-up"] {
    transform: translateY(100px);
}

[data-animation="swoosh-in-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animation="swoosh-in-left"] {
    transform: translateX(-100px);
}

[data-animation="swoosh-in-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animation="swoosh-in-right"] {
    transform: translateX(100px);
}


/* 16. Media Queries (Responsiveness) */

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--dark-bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after {
        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-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .process-line {
        display: none;
    }

    .process-step,
    .process-step:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: center !important;
        padding: 20px 0;
    }

    .process-icon {
        position: static;
        transform: none !important;
        margin: 0 auto 20px;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .contact-page-wrapper {
        padding: 30px;
    }

    .legal-content .content-wrapper {
        padding: 30px;
    }

    .chat-widget {
        display: none;
    }

    /* Hide chat on small screens */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}