﻿/* Define root variables and base styles */
:root {
    --primary-green: #A1C44F;
    --primary-green-light: #B8D663;
    --primary-green-dark: #8FB347;
    --dark-bg: #2C3E50;
    --dark-bg-light: #34495e;
    --text-white: #FFFFFF;
    --text-gray: #6C757D;
    --light-gray: #F8F9FA;
    --border-light: #E9ECEF;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);

    /* Backward compatibility aliases */
    --primary-color: var(--dark-bg);
    --text-primary: var(--dark-bg);
    --text-secondary: var(--text-gray);
    --background: var(--text-white);
    --surface: var(--light-gray);
    --shadow: var(--shadow-light);
    --shadow-large: var(--shadow-medium);
    --transition: all 0.3s ease;
    --primary-green: #A1C44F;
    --dim-gray: #6A6A6B;
    --gray: #757576;
    --text-gray: #8E8E8E;
    --jet: #363634;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* Enhanced Global Styles */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-bg);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    color: #222;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

p {
    color: #666;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

svg, canvas, video {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

i[class^="fa"], i[class*=" fa-"] {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

button,
.cta-button {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/* Enhanced Header Styles */
header {
    background-color: white;
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

header.sticky {
    background: var(--background);
    box-shadow: var(--shadow-medium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: var(--primary-color);
}

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

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
    image-rendering: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
    color: var(--primary-green);
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 20px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
    opacity: 0.9;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--primary-green);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    opacity: 1;
    border-bottom: 2px solid var(--background);
    color: var(--primary-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 5000;
}

/* Sticky Navigation Bar */
nav.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav.sticky a {
    color: #333;
}

nav.sticky a.active {
    color: #007BFF;
    font-weight: bold;
}

nav.sticky~.header-container .logo h1,
nav.sticky .logo h1 {
    color: var(--primary-color);
    /* Green text on white sticky nav */
}

nav.sticky ul li a {
    color: #222 !important;
    /* Black links on white sticky nav */
}

nav.sticky ul li a.active {
    color: var(--primary-color) !important;
    /* Green for active link */
}

/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(21, 23, 16, 0.8), rgba(21, 23, 16, 0.8)), url('../images/generated/og-african-customer-support.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 120px 0;
    color: var(--background);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    -webkit-animation: fadeIn 1s ease-out;
    animation: fadeIn 1s ease-out;
    padding: 180px 0 100px;
    background-color: var(--dark-bg);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg-pattern.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-buttons a {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
}

.hero-buttons .cta-button {
    background-color: var(--accent-color);
    color: var(--background);
}

.hero-buttons .cta-button:hover {
    background-color: var(--primary-dark);
}

.hero-buttons .secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-buttons .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-svg-wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 0;
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 3000;
        background: #fff;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 4000;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        padding: 10px 20px;
    }

    nav ul li a {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 5000;
    }

    nav ul {
        background-color: var(--primary-color);
    }

    nav ul li a {
        color: #fff !important;
    }
}

/* Blog Section */
.blog {
    padding: 100px 0;
    background-color: var(--light-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-post h3 {
    font-size: 22px;
    margin: 15px;
    color: var(--primary-color);
}

.blog-post p {
    margin: 0 15px 15px;
    color: #666;
}

.blog-post .cta-button {
    margin: 15px;
    display: inline-block;
}

/* Highlight Active Section */
nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background: linear-gradient(145deg, var(--background), var(--secondary-lighter));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-small);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.service-item p {
    color: var(--gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-light);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Form input styling */
input,
textarea,
select {
    border: 1px solid var(--secondary-light);
    background-color: var(--background);
    color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 48, 84, 0.25);
}

/* Button styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Section backgrounds */
.section-light {
    background-color: var(--secondary-lighter);
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--background);
}

/* Banner Section */
.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.gallery-item p {
    padding: 15px;
    font-size: 16px;
    color: var(--secondary-color);
}

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

.team-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member {
    background: linear-gradient(145deg, var(--background), var(--accent-light));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-6px) scale(1.04);
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.team-member h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: var(--primary-color);
}

.team-member p {
    margin-bottom: 15px;
    color: #666;
}

.team-social {
    margin-top: 0.5rem;
}

.team-social a {
    color: var(--primary-color);
    opacity: 0.8;
    margin: 0 0.5rem;
    font-size: 1.3rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-social a:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--light-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(50, 205, 50, 0.2);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    margin-bottom: 10px;
}

.faq-answer {
    display: none;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background-color: var(--primary-light);
    text-align: center;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.2);
}

.newsletter-form button {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

/* Call to Action Section */
.call-to-action {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.call-to-action h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 18px;
    margin-bottom: 30px;
}

.call-to-action .cta-button {
    font-size: 18px;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--background);
}

.call-to-action .cta-button:hover {
    background-color: var(--primary-dark);
}

/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: #32CD32;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Enhanced Section Titles */
.section-title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Enhanced Grid Layouts */
.services-grid,
.team-grid,
.gallery-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Add subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply animations to sections */
section {
    animation: fadeInUp 1s ease-in-out;
}

.services-grid,
.team-grid,
.gallery-grid,
.faq-grid {
    animation: slideInUp 1.5s ease-in-out;
}

/* Enhanced Card Styles */
.card {
    background: linear-gradient(to bottom right, var(--background), var(--secondary-lighter));
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 100px;
    right: 40px;
    display: none;
    z-index: 1001;
}

/* Sticky Navigation Bar */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    /* Adjust as needed */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Active Section Highlight */
nav a.active {
    color: #007BFF;
    /* Highlight color */
    font-weight: bold;
    border-bottom: 2px solid #007BFF;
    /* Optional underline */
}

/* AI Art Section */
.ai-art {
    background: linear-gradient(120deg, var(--primary-light) 60%, #fff 100%);
    padding: 80px 0;
    animation: fadeIn 1.2s;
}

.ai-art-content img {
    border: 6px solid var(--primary-color);
    transition: box-shadow 0.4s, transform 0.4s;
}

.ai-art-content img:hover {
    box-shadow: 0 8px 32px rgba(50, 205, 50, 0.4);
    transform: scale(1.03) rotate(-2deg);
}

.ai-art-content button {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(50, 205, 50, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.ai-art-content button:hover {
    background: linear-gradient(90deg, var (--accent-color), var(--primary-color));
    transform: scale(1.07);
}

/* Motion Section */
.motion {
    background: linear-gradient(120deg, #fff 60%, var(--primary-light) 100%);
    padding: 80px 0;
    animation: fadeIn 1.2s;
}

.motion-content video {
    border: 6px solid var(--accent-color);
    transition: box-shadow 0.4s, transform 0.4s;
}

.motion-content video:hover {
    box-shadow: 0 8px 32px rgba(0, 100, 0, 0.3);
    transform: scale(1.03) rotate(2deg);
}

/* Remove the top-header-bar styles */
.top-header-bar {
    display: none !important;
}

/* Counters Section */
.counters-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.counter-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem;
    text-align: center;
    min-width: 160px;
    flex: 1 1 160px;
    transition: transform 0.2s;
}

.counter-item:hover {
    transform: translateY(-6px) scale(1.04);
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #32CD32;
    margin: 0.5rem 0;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 320px;
}

.testimonial-item {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    transition: opacity 0.5s;
}

.testimonial-item.active {
    display: flex;
    opacity: 1;
}

.testimonial-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #32CD32;
}

.testimonial-prev,
.testimonial-next {
    background: #fff;
    border: none;
    color: #32CD32;
    font-size: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: background 0.2s;
}

.whatsapp-float:hover {
    background: var(--primary-dark);
}

@media (max-width: 900px) {

    .counters-grid,
    .team-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-svg-wave {
        height: 40px;
    }

    .testimonial-photo,
    .team-member img {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        bottom: 16px;
        right: 16px;
    }
}

/* Header Scroll Behavior */
header.scroll-down {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

header.scroll-up {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Enhancements */
@media (max-width: 768px) {
    .mobile-menu-btn {
        z-index: 1001;
        color: white;
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    nav ul.show {
        transform: translateX(0);
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        color: white;
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}

/* Prevent Content Jump on Mobile Menu Toggle */
.page-wrapper {
    position: relative;
    overflow-x: hidden;
}

/* Fix Hero Section Spacing */
.hero {
    margin-top: -80px;
    padding-top: 120px;
}

/* Enhanced button styles */
.secondary-button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--background);
}

/* Update active states */
nav ul li a.active {
    color: var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
}

/* Form success/error states */
.form-success {
    background-color: var(--success);
}

.form-error {
    background-color: var(--error);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        color: var(--background);
        font-size: 24px;
    }

    nav ul {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }

    nav ul li a {
        color: var(--background);
        font-size: 16px;
        padding: 12px 20px;
        display: block;
        text-align: center;
    }

    nav ul li a:hover {
        background-color: var(--primary-dark);
    }

    nav ul li a.active {
        background-color: var(--accent-color);
        color: var (--background);
    }
}

/* Header Styles */
header {
    background: var(--primary-color);
    transition: background-color 0.3s ease;
}

header.sticky {
    background: var(--background);
    box-shadow: var(--shadow-medium);
}

.logo h1 {
    color: var(--background);
}

nav ul li a {
    color: var(--background);
    opacity: 0.9;
}

nav ul li a:hover {
    opacity: 1;
}

nav ul li a.active {
    opacity: 1;
    border-bottom: 2px solid var(--background);
}

/* Call to Action Colors */
.cta-button {
    background-color: var(--accent-color);
    color: var(--background);
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

/* Fix other 404 errors by providing fallbacks */
[src*="placeholder"] {
    background: #f0f0f0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Form validation states */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Browser Warning */
.browser-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
}

.browser-warning button {
    background-color: #856404;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Vendor prefixes for animations and transitions */
.hero {
    -webkit-animation: fadeIn 1s ease-out;
    animation: fadeIn 1s ease-out;
}

/* Mobile menu animation */
.mobile-menu {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.mobile-menu.show {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

/* Loading spinner */
.loading-spinner {
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Enhanced button states */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.3s, height 0.3s;
    transition: width 0.3s, height 0.3s;
}

.cta-button:active::after {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Enhanced button states */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Add to existing CSS */

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px;
    background-color: var(--accent-color);
    color: white;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Enhanced form validation styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary-lighter);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(162, 121, 54, 0.2);
}

.form-control.error {
    border-color: #dc3545;
}

.form-control.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive images with lazy loading */
.lazy-image {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

.image-container {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #f0f0f0;
}

.image-container::before {
    content: none;
    display: none;
}

.image-container img {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {

    .button,
    .nav-link,
    .social-link {
        forced-color-adjust: none;
    }
}

/* Enhanced button accessibility */
.button {
    position: relative;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: var(--accent-dark);
}

.button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.button:active {
    transform: translateY(1px);
}

/* ARIA support */
[aria-hidden="true"] {
    display: none !important;
}

[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced form validation indicators */
.form-field {
    position: relative;
}

.form-field.success input {
    border-color: #28a745;
    padding-right: 2.25rem;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") no-repeat center right 0.75rem/1rem 1rem;
}

.form-field.error input {
    border-color: #dc3545;
    padding-right: 2.25rem;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") no-repeat center right 0.75rem/1rem 1rem;
}

/* Enhanced mobile menu accessibility */
.mobile-menu-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
}

.mobile-menu-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.mobile-menu-btn .icon {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn .icon::before,
.mobile-menu-btn .icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
}

.mobile-menu-btn .icon::before {
    top: -6px;
}

.mobile-menu-btn .icon::after {
    bottom: -6px;
}

.mobile-menu-btn[aria-expanded="true"] .icon {
    background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .icon::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn[aria-expanded="true"] .icon::after {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Complementary color scheme for dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #151710;
        --text-primary: #ffffff;
        --text-secondary: #BABABB;
        --accent-color: #C4A26E;
    }

    body {
        background-color: var(--background);
        color: var(--text-primary);
    }

    .card,
    .form-control {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Form success/error states */
.form-success {
    display: none;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes formShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.form-error {
    animation: formShake 0.5s ease-in-out;
}

/* --- Animations & Transitions Inspired by CodeSandbox --- */

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Card hover effect */
.card,
.blog-post,
.service-card {
    transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
}

.card:hover,
.blog-post:hover,
.service-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-8px) scale(1.03);
}

/* Button animation */
.cta-button,
button {
    position: relative;
    overflow: hidden;
}

.cta-button::after,
button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(161, 196, 79, 0.15);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.cta-button:active::after,
button:active::after {
    width: 200px;
    height: 200px;
}

/* Glassmorphism effect for overlays/panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Section reveal on scroll (add .fade-in-up to sections in HTML) */
section.fade-in-up {
    will-change: opacity, transform;
}

/* Focus and active states for accessibility */
a:focus,
button:focus,
.cta-button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Subtle link underline animation */
a.animated-link {
    position: relative;
    color: var(--primary-color);
    transition: color 0.3s;
}

a.animated-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

a.animated-link:hover::after {
    width: 100%;
}

/* Technology Section Styles */
.technology-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-item {
    background: var(--text-white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-item:hover::before {
    transform: scaleX(1);
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.tech-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.tech-item:hover .tech-icon {
    transform: scale(1.1) rotateY(180deg);
}

.tech-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.tech-item p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-link {
    display: inline-block;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.tech-link:hover {
    color: var(--primary-green-dark);
    transform: translateX(5px);
}

.tech-link::after {
    content: '→';
    margin-left: 8px;
    transition: all 0.3s ease;
}

.tech-link:hover::after {
    margin-left: 12px;
}

/* Enhanced Skip Navigation */
.skip-nav {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    transition: top 0.3s ease;
}

.skip-nav:focus-within {
    top: 0;
}

.skip-link {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.skip-link:hover,
.skip-link:focus {
    color: var(--primary-green);
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-bg);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--text-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 80%;
        text-align: center;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .employee-login {
        margin-left: 0;
        margin-top: 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-item {
        padding: 30px 20px;
    }
}

