/* Base Reset and Variables */
:root {
    --bg-color: #0f1115;
    --card-bg: #1a1d24;
    --card-bg-hover: #22262f;
    --primary-color: #f35532;
    --primary-hover: #d94121;
    --text-main: #ffffff;
    --text-muted: #a0aab2;
    --border-color: #2a2e39;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.subtitle {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Faint background grid */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.orange-circle {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
}

.laptop-img {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.laptop-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.floating-element {
    position: absolute;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.floating-element i {
    font-size: 1.5rem;
    color: var(--text-main);
}

.el-1 {
    top: -20px;
    left: 20px;
    animation-delay: 0s;
}

.el-1 i { color: #fff; }

.el-2 {
    bottom: 20px;
    right: -30px;
    animation-delay: 1s;
}

.el-3 {
    bottom: -40px;
    left: 40px;
    background-color: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    animation-delay: 2s;
}
.el-3 i { color: var(--primary-color); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Services */
.services {
    padding: 100px 0;
}

.section-desc {
    max-width: 600px;
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background-color: var(--card-bg-hover);
    border-color: var(--border-color);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(243, 85, 50, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.learn-more:hover {
    color: var(--primary-color);
}

/* About */
.about {
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.office-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.overlay-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    padding: 20px 40px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.overlay-logo h3 {
    margin: 0;
    font-size: 2rem;
}
.overlay-logo h3 span { color: var(--primary-color); }

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.quote-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 30px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    width: 20px;
    border-radius: 5px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: flex;
    gap: 60px;
    background-color: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-info {
    flex: 1;
}

.contact-icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}
.contact-icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form-wrapper {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255,255,255,0.05);
}

input.input-error, textarea.input-error {
    border: 1px solid #ff4d4d !important;
    background-color: rgba(255, 77, 77, 0.05) !important;
}

.field-error-msg {
    color: #ff4d4d;
    font-size: 0.82rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left p {
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Hero Canvas Background */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

/* Clients Marquee */
.clients {
    padding: 60px 0;
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-container {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
    position: relative;
    /* gradient fade edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.client-logo-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap;
}

.client-logo-item img, 
.client-logo-item svg,
.client-logo-img {
    height: 32px; /* Standardize max logo height */
    width: auto;
    object-fit: contain;
    filter: opacity(0.5) grayscale(100%) brightness(1.8);
    transition: all 0.3s ease-in-out;
}

.client-logo-item:hover img, 
.client-logo-item:hover svg,
.client-logo-item:hover .client-logo-img {
    filter: opacity(1) grayscale(0%) brightness(1);
    transform: translateY(-2px);
}

.client-brand-name {
    font-size: 14px;
    color: #a1a1aa;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease-in-out;
}

.client-logo-item:hover .client-brand-name {
    color: #ffffff;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.team-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.slider-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.team-slider-container {
    flex: 1;
    overflow: hidden;
}

.team-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.team-card {
    min-width: calc(25% - 22.5px); /* 4 cards visible */
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.team-social a:hover {
    color: var(--text-main);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: rgba(26, 29, 36, 0.4);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.pricing-card.popular {
    background-color: #1f232b;
    border-color: var(--primary-color);
    padding: 50px 30px;
    box-shadow: 0 10px 40px rgba(243, 85, 50, 0.1);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.price {
    font-size: 3rem;
    color: var(--text-main);
    margin: 15px 0 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

/* Blog Teaser */
.blog-teaser {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 50px 0;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Global Support Widgets --- */
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border: none;
    outline: none;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- WhatsApp On-Page Floating Chat Widget --- */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: #12181f;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-family);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chat-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-chat-avatar {
    width: 42px;
    height: 42px;
    background: #ffffff;
    color: #075e54;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wa-chat-avatar .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border: 2px solid #075e54;
    border-radius: 50%;
}

.wa-chat-header-text h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.wa-chat-header-text p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 5px;
}

.wa-chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.wa-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wa-chat-body {
    padding: 18px 18px 12px;
    background: #0b1014;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 16px 16px;
    max-height: 300px;
    overflow-y: auto;
}

.wa-message-bubble {
    background: #1e2830;
    border-radius: 12px;
    border-top-left-radius: 2px;
    padding: 12px 14px;
    color: #e1e8ed;
    font-size: 0.88rem;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 12px;
}

.wa-message-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    text-align: right;
    margin-top: 4px;
}

.wa-chat-footer {
    padding: 14px 18px 18px;
    background: #12181f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-chat-form input,
.wa-chat-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.86rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.wa-chat-form input:focus,
.wa-chat-form textarea:focus {
    outline: none;
    border-color: #25d366;
    background: rgba(255, 255, 255, 0.07);
}

.wa-chat-submit-btn {
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.wa-chat-submit-btn:hover {
    background: #20ba5a;
}

.wa-chat-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wa-chat-success-bubble {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}


/* Live Chat Widget */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(243, 85, 50, 0.4);
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.chat-panel.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, rgba(243, 85, 50, 0.1), transparent);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(243, 85, 50, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #25D366;
    border: 2px solid var(--card-bg);
    border-radius: 50%;
}

.chat-header-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.chat-header-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.received {
    align-self: flex-start;
}

.chat-message.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message.received .msg-bubble {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}

.chat-message.sent .msg-bubble {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    padding: 0 5px;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 20px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.quick-replies {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-reply-btn {
    white-space: nowrap;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply-btn:hover {
    background: var(--primary-color);
    color: white;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 5px 15px;
}

.chat-attach-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 0;
    outline: none;
    font-size: 0.95rem;
}

.chat-send-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid, .pricing-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card {
        min-width: calc(33.333% - 20px);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 860px) {
    .nav-menu, .header-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-container, .about-container, .contact-container {
        flex-direction: column;
    }
    
    .team-card {
        min-width: calc(50% - 15px);
    }
    
    .contact-container {
        padding: 40px 30px;
    }
    
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-grid, .testimonials-grid, .pricing-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        min-width: 100%;
    }
    
    .team-slider-wrapper {
        position: relative;
    }
    
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }
    
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive Solutions Spotlight Card */
@media (max-width: 768px) {
    .solution-slide-card {
        padding: 35px 20px !important;
        gap: 30px !important;
    }
    .solution-slide-card h2 {
        font-size: 2.2rem !important;
    }
}
