:root {
    --primary-color: #0054a6;
    --primary-color-dark: #003d7a;
    --secondary-color: #00a0e9;
    --accent-color: #ff9e1b;
    --text-color: #1a1a2e;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --black: #000000;
    --whatsapp-color: #25D366;
    --whatsapp-color-dark: #1CA652;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.5rem;
    --border-radius-full: 9999px;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
    font-weight: 400;
    font-size: 1rem;
}

/* Typography - Updated with Montserrat */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, select, label, li {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.04em;
    font-weight: 800;
    line-height: 1;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.font-montserrat {
    font-family: var(--font-family);
}

.font-inter {
    font-family: var(--font-family);
}

/* Section Header Styling with Glow Effect */
.section-heading {
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    background: rgba(0, 84, 166, 0.05);
    border-radius: var(--border-radius-full);
    box-shadow: 0 0 10px rgba(0, 84, 166, 0.2);
    transition: var(--transition-base);
}

.section-heading:hover {
    box-shadow: 0 0 15px rgba(0, 84, 166, 0.3);
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.heading-with-line {
    position: relative;
    padding-bottom: 0.5rem;
}

.heading-with-line:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Updated section title with glow effect */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: none;
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 84, 166, 0.1);
    transition: var(--transition-base);
}

.section-title:hover {
    text-shadow: 0 0 15px rgba(0, 84, 166, 0.2);
}

.section-title.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    box-shadow: 0 5px 15px rgba(0, 84, 166, 0.05);
}

.section-title.gradient-text:hover {
    box-shadow: 0 5px 25px rgba(0, 84, 166, 0.1);
}

/* Spoon-inspired subtle effects */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Gradient animation for buttons on hover */
.btn-glossy:hover {
    background-position: right center;
}

.btn-glossy {
    background-size: 200% auto;
    transition: 0.5s;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.small-caps {
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

/* Navigation */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* WhatsApp & Scroll to Top Buttons */
.whatsapp-button, .scroll-to-top {
    position: fixed;
    bottom: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 3.75rem;
    height: 3.75rem;
    overflow: hidden; /* Contain shine effect */
}

.whatsapp-button {
    right: 6.5rem;
    background: linear-gradient(135deg, var(--whatsapp-color), var(--whatsapp-color-dark));
    color: white;
    box-shadow: 
        0 10px 20px rgba(37, 211, 102, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.whatsapp-button i {
    font-size: 1.75rem; /* Slightly larger icon */
    position: relative; /* Ensure proper positioning */
    z-index: 2; /* Place above the shine effect */
}

.scroll-to-top {
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    opacity: 0;
    visibility: hidden;
    overflow: hidden; /* Contain shine effect */
    box-shadow: 
        0 10px 20px rgba(0, 84, 166, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scroll-to-top i {
    font-size: 1.25rem;
    position: relative;
    z-index: 2; /* Place above the shine effect */
}

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

.whatsapp-button:hover, .scroll-to-top:hover {
    transform: translateY(-5px) scale(1.05);
}

.whatsapp-button:hover {
    box-shadow: 
        0 15px 30px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-to-top:hover {
    box-shadow: 
        0 15px 30px rgba(0, 84, 166, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Shared shine effect */
.whatsapp-button:before, .scroll-to-top:before {
    content: '';
    position: absolute;
    top: -10%; /* Offset slightly to create angled shine */
    left: -100%;
    width: 60%;
    height: 250%; /* Taller to ensure full coverage during animation */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: rotate(35deg); /* Angled shine effect */
    pointer-events: none;
    transition: 0.6s ease-in-out;
    z-index: 1; /* Ensure it's below the icon */
}

.whatsapp-button:hover:before, .scroll-to-top:hover:before {
    left: 200%; /* Move completely past the button */
}

.whatsapp-button:active, .scroll-to-top:active {
    transform: translateY(1px);
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.1s;
}

/* Hero Section */
#home {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
}

.swiper-container {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease;
}

/* Add navigation buttons styling */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
}

/* Glass Morphism Effects */
.glass-morphism {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Section Spacing */
section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

section:first-of-type {
    padding-top: 0;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.6)
    );
}

/* Text backdrop styling for hero slides */
.text-backdrop {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.5s ease;
}

.text-backdrop::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 70%
    );
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 0;
}

.text-backdrop:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.text-backdrop > * {
    position: relative;
    z-index: 1;
}

/* Updated slider text styling */
.swiper-slide h1, 
.swiper-slide h2, 
.swiper-slide p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Improved slider background styling */
.swiper-slide .bg-cover {
    filter: contrast(1.1) saturate(0.9);
    transition: opacity 0.8s ease;
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: opacity, transform;
}

.swiper-slide .bg-gradient-to-r {
    transition: all 0.8s ease;
    backface-visibility: hidden;
    will-change: opacity;
}

.swiper-slide-active .bg-cover {
    opacity: 0.8 !important;
}

/* Enhanced overlay for better text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 84, 166, 0.35), rgba(0, 160, 233, 0.15));
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Animations */
.floating {
    animation: floating 4s ease-in-out infinite;
}

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

/* Button Styles */
.btn-glossy {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 15px rgba(0, 84, 166, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    transform: translateY(0);
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glossy:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.6s;
}

.btn-glossy:hover:before {
    left: 100%;
}

.btn-glossy:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.btn-glossy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(0, 84, 166, 0.5);
}

.btn-glossy:active {
    transform: translateY(1px);
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.1s;
}

.btn-glossy span, .btn-glossy svg {
    position: relative;
    z-index: 2;
}

/* Text Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

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

/* Service Cards */
.service-card {
    transition: var(--transition-base);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    transition: var(--transition-base);
    background: rgba(0, 84, 166, 0.1);
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(0, 84, 166, 0.15);
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transform: translateY(-2px);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--white);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .glass-card {
        margin: 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 84, 166, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 84, 166, 0.5);
}

/* Navigation button styling */
.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    letter-spacing: 0.01em;
}

.nav-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.6s;
}

.nav-button:hover:before {
    left: 100%;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-button.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Adjusted Hero Section */
.hero-section {
    height: 80vh;
    min-height: 450px;
    max-height: 650px;
}

/* Enhanced About Section */
.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 79, 139, 0.1), rgba(45, 125, 210, 0.1));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.about-card:hover::before {
    transform: translateX(0);
}

/* Testimonial Styles */
.testimonial-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(0) rotate(0);
}

.testimonial-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 15px rgba(0, 84, 166, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 84, 166, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 84, 166, 0.03) 0%,
        rgba(0, 160, 233, 0.03) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card * {
    position: relative;
    z-index: 2;
}

.testimonial-quote {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 120px;
    font-family: var(--font-family);
    color: rgba(0, 84, 166, 0.08);
    line-height: 1;
    pointer-events: none;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-quote {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(0, 84, 166, 0.12);
}

.testimonial-card p {
    position: relative;
    padding: 0 0.5rem;
    font-style: italic;
    color: #4B5563;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-card .client-info {
    position: relative;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card .client-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), rgba(0, 84, 166, 0.1));
    transition: width 0.3s ease;
}

.testimonial-card:hover .client-info::before {
    width: 7rem;
}

.testimonial-card .client-info h4 {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .client-info h4 {
    transform: translateX(5px);
}

.testimonial-card .client-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.testimonial-card img {
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Testimonial Animation Delay for Staggered Effect */
.testimonial-card:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Testimonials Section Background */
#testimonials {
    background-image: 
        radial-gradient(circle at 20% 90%, rgba(0, 84, 166, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(0, 160, 233, 0.05) 0%, transparent 20%),
        linear-gradient(to bottom right, from-gray-50, to-blue-50);
    background-attachment: fixed;
}

/* Rating stars for testimonials */
.rating {
    display: flex;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Subtle Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.7s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.7s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.7s ease forwards;
}

/* Enhanced Header */
.enhanced-header {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
    z-index: 1000;
    padding: 0.75rem 0;
}

.enhanced-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 79, 139, 0.1), rgba(45, 125, 210, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* Additional Glass Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* FAQ Accordion Styling */
.faq-item {
    transition: var(--transition-base);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-button {
    border-radius: var(--border-radius-md);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.faq-button i {
    transition: transform 0.3s ease;
}

.faq-answer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 31, 63, 0.08);
}

/* Additional styling for inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(0, 84, 166, 0.1), 
        inset 0 1px 2px rgba(0, 0, 0, 0);
    outline: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .glass-card {
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .btn-glossy {
        padding: 0.75rem 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero-section {
        height: 60vh;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* Growth Chart Styling */
.chart-container {
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2));
}

.chart-line-primary {
    stroke: var(--primary-color);
}

.chart-line-secondary {
    stroke: var(--secondary-color);
}

.chart-line-accent {
    stroke: var(--accent-color);
}

.chart-point {
    fill: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chart-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* Bar Chart Styling */
.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 150px;
}

.bar-item {
    flex: 1;
    margin: 0 4px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bar-item-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.6);
}

/* Pie Chart Styling */
.pie-chart {
    position: relative;
    width: 120px;
    height: 120px;
}

.pie-circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.pie-circle-bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.pie-circle-value {
    transition: all 1s ease;
}

.pie-circle-value.positive {
    stroke: #10b981;
}

.pie-circle-value.negative {
    stroke: #ef4444;
}

.pie-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Enhanced chart transitions */
.chart-animate .chart-line,
.chart-animate .bar-item,
.chart-animate .pie-circle-value {
    animation: chartReveal 1.5s ease-out forwards;
}

@keyframes chartReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glossy chart containers */
.glass-chart {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.glass-chart:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Dark glass chart for hero sections */
.dark-glass-chart {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.dark-glass-chart .chart-label {
    color: rgba(255, 255, 255, 0.8);
}

.dark-glass-chart .chart-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Chart tooltip styling */
.chart-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    transform: translateY(-5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-tooltip.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Chart dot styling */
.chart-dot {
    fill: var(--accent-color);
    r: 3.5;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

.chart-dot:hover {
    r: 5;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.chart-dot:hover::after {
    content: attr(data-value);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Video Pro-inspired floating data points */
.floating-data-point {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 5s ease-in-out infinite;
}

.floating-data-point:nth-child(even) {
    animation-delay: -2.5s;
}

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

/* Section header styling with expanded width for single-line titles */
.section-header {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.section-header.active {
    transform: translateY(-5px);
}

.section-header .section-title {
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 84, 166, 0.2));
    text-transform: none;
    display: inline-block;
    font-weight: 800;
    padding-bottom: 0.5rem;
    white-space: nowrap; /* Ensure title stays on a single line */
}

/* Add animated underline effect */
.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    border-radius: 3px;
    display: block;
}

.section-header .section-title:hover::after,
.section-header.active .section-title::after {
    width: 60%;
    box-shadow: 0 0 8px rgba(0, 160, 233, 0.4);
}

/* Remove background SVG elements */
.section-heading-background {
    display: none; /* Hide the wavy background SVG */
}

/* Media queries for responsive headers */
@media (max-width: 768px) {
    .section-header .section-title {
        font-size: 2.5rem;
        white-space: normal; /* Allow wrapping on mobile */
    }
    
    .section-header .section-title::after {
        height: 2px;
    }
}

@media (max-width: 640px) {
    .section-header .section-title {
        font-size: 2rem;
    }
}

/* Navigation dropdown styling */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.9);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 84, 166, 0.1);
    color: var(--primary-color);
}

.dropdown-menu a .icon {
    margin-right: 10px;
    opacity: 0.7;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle svg {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Active nav link */
.nav-button.active {
    background: rgba(0, 84, 166, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

/* Mobile menu dropdown */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 1.5rem;
}

.mobile-dropdown-content.open {
    max-height: 500px;
}

/* Dark button styling */
.dark-button {
    background: rgba(26, 26, 46, 0.9) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.dark-button:hover {
    background: rgba(26, 26, 46, 1) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.dark-button:before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    ) !important;
}

/* Primary button styling in nav */
.nav-button.btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.nav-button.btn-primary:hover {
    background: var(--primary-color-dark) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.nav-button.btn-primary:before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    ) !important;
}

/* Client Logos Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 30s linear infinite;
}

.clients-marquee, .clients-marquee-reverse {
    width: fit-content;
}

/* Client logo hover effect */
.client-logo {
    transition: all 0.3s ease;
    filter: grayscale(1) opacity(0.7);
}

.client-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* Tax Calculator Button */
.tax-calculator-button {
    position: fixed;
    top: 120px;
    left: -10px;
    z-index: 900;
    background: linear-gradient(to right, #0054a6, #0072c6);
    color: white;
    padding: 12px 20px 12px 30px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(0, 84, 166, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out forwards, pulse 2s infinite 0.5s;
    transform: translateX(-5px);
}

.tax-calculator-button:hover {
    transform: translateX(5px);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 84, 166, 0.8);
    background: linear-gradient(to right, #004a92, #0068b7);
}

@keyframes slideIn {
    from { transform: translateX(-100px); }
    to { transform: translateX(-5px); }
}

@media (max-width: 768px) {
    .tax-calculator-button {
        top: 140px;
        bottom: auto;
        left: -5px;
        font-size: 13px;
        padding: 10px 15px 10px 20px;
        display: flex;
        align-items: center;
        z-index: 1001;
    }
    
    .tax-calculator-button i {
        margin-right: 8px;
        font-size: 16px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.25),
            0 0 0 0 rgba(0, 84, 166, 0.7);
    }
    70% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.25),
            0 0 0 10px rgba(0, 84, 166, 0);
    }
    100% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.25),
            0 0 0 0 rgba(0, 84, 166, 0);
    }
}