/* Global Styles & Variables */
:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #25D366;
    /* WhatsApp Green */
    --accent-glow: rgba(37, 211, 102, 0.5);
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-overlay: linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 1) 100%);
    --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glow-text {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
}

h2 span,
h1 .highlight {
    background: none;
    -webkit-text-fill-color: var(--accent-color);
    text-shadow: 0 0 30px var(--accent-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 0.4s var(--transition-smooth), background 0.4s;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 75px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-cta {
    background: rgba(37, 211, 102, 0.15);
    color: var(--accent-color);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/hero-bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 80px;
    opacity: 0;
    /* JS Reveal */
    transform: translateY(30px);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* CTA Buttons */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent-color);
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform 0.2s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.cta-button:active {
    transform: scale(0.96);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Services */
.services {
    padding: 5rem 0;
    background: var(--bg-color);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    opacity: 0.05;
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card-gradient);
    border: 1px solid var(--glass-border);
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    opacity: 0;
    /* JS Reveal */
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Features/Why Us */
.features {
    padding: 5rem 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.05));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.1);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--surface-color);
    position: relative;
}

/* Carousel Layout */
/* Carousel Layout */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 10px;
    /* Position inside carefully */
}

.next-btn {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: flex;
        width: 32px;
        height: 48px;
        /* Taller, slim tab */
        font-size: 0.85rem;
        background: rgba(10, 10, 10, 0.8);
        /* Darker, uniform */
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 20;
        color: var(--accent-color);
    }

    .prev-btn {
        left: 0;
        border-radius: 0 16px 16px 0;
        /* Smooth tab shape */
        border-left: none;
        justify-content: center;
        padding-right: 2px;
    }

    .next-btn {
        right: 0;
        border-radius: 16px 0 0 16px;
        border-right: none;
        justify-content: center;
        padding-left: 2px;
    }

    .testimonials-grid {
        /* Padding to match the button width + spacing */
        padding: 20px 45px 40px 45px;

        /* Advanced Mask: Completely hides content under the buttons (0-40px) */
        mask-image: linear-gradient(to right,
                transparent 0px, transparent 35px,
                black 60px, black calc(100% - 60px),
                transparent calc(100% - 35px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
                transparent 0px, transparent 35px,
                black 60px, black calc(100% - 60px),
                transparent calc(100% - 35px), transparent 100%);
    }

    .testimonial-card {
        min-width: 75vw;
        max-width: 75vw;
    }
}

.testimonials-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* Large padding to center content and show more cards */
    padding: 20px 80px 40px 80px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    /* Fade Edge Effect */
    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);
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 320px;
    /* Fixed width for carousel */
    max-width: 320px;
    scroll-snap-align: center;
    /* Center snap feels more premium */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Ensure the first card isn't flush with the edge */
.testimonials-grid::before,
.testimonials-grid::after {
    content: '';
    display: block;
    min-width: 20px;
    /* Spacer */
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(37, 211, 102, 0.3);
    z-index: 2;
}

.client-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
    /* Soften AI Image sharpness for realism */
    filter: blur(0.4px) contrast(0.95) saturate(0.9);
}

.client-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #fff;
}

.stars {
    color: #FFD700;
    /* Gold */
    font-size: 0.9rem;
}

.client-review {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: #080808;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-3px);
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.powered-by:hover {
    opacity: 1;
}

.powered-by svg,
.powered-by span {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s;
}

.powered-by:hover svg,
.powered-by:hover span {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(0, 198, 255, 0.5));
}

.powered-by svg {
    margin-bottom: -2px;
}

.powered-by span {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Sticky WhatsApp */
.sticky-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 25px;
    background: var(--accent-color);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 4s ease-in-out infinite;
}

.sticky-maps {
    position: fixed;
    bottom: 30px;
    /* Aligned with WhatsApp */
    left: 25px;
    /* Opposite side (Left) */
    background: #4285F4;
    /* Google Blue */
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.6);
    z-index: 1000;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 4s ease-in-out 2s infinite;
}

.sticky-whatsapp:active,
.sticky-maps:active {
    transform: scale(0.9);
}

.sticky-whatsapp svg {
    width: 36px;
    height: 36px;
    fill: #000;
}



@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Optimizations (95% Traffic) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero {
        background-position: 60% center;
        /* Better center on mobile */
    }

    .hero-content {
        padding-top: 60px;
    }

    .nav-cta {
        display: none;
        /* Hide top CTA on mobile to save space, rely on sticky */
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: left;
    }

    /* Better Touch Targets */
    .cta-button {
        width: 100%;
        padding: 1.5rem;
        font-size: 1.2rem;
    }




    /* Mobile Sticky Buttons */
    .sticky-whatsapp {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 65px;
        z-index: 10000;
    }

    .sticky-maps {
        width: 60px;
        height: 60px;
        bottom: 20px;
        /* Slight adjustment for visual symmetry */
        right: auto;
        z-index: 10000;
        font-size: 1.4rem;
    }

    .sticky-whatsapp svg {
        width: 32px;
        height: 32px;
    }
}