/* ADVANCED FEATURES CSS */

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: transform 0.3s;
    text-decoration: none;
}

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

.whatsapp-float .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* LANGUAGE TOGGLE */
.lang-toggle {
    background: linear-gradient(135deg, #C4B454, #FFD700);
    color: #632148;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-left: 1rem;
}

.lang-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(196, 180, 84, 0.4);
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(99, 33, 72, 0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(99, 33, 72, 0.2);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: #C4B454;
    opacity: 0.3;
    font-family: 'Cinzel', serif;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #632148, #C4B454);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    color: #632148;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.stars {
    color: #C4B454;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* DARK MODE TESTIMONIALS */
[data-theme="dark"] .testimonial-card {
    background: #1f1f1f;
}

[data-theme="dark"] .testimonial-text {
    color: #9ca3af;
}

[data-theme="dark"] .author-info h4 {
    color: #a855f7;
}

[data-theme="dark"] .author-info p {
    color: #9ca3af;
}

[data-theme="dark"] .stars {
    color: #fbbf24;
}

/* GLOBAL DYNAMIC FEATURES */

/* Location Indicator */
.location-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(99, 33, 72, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    z-index: 9997;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-indicator span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-indicator .change-btn {
    background: #C4B454;
    color: #632148;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.location-indicator .change-btn:hover {
    transform: scale(1.05);
}

/* Currency Selector Modal */
.currency-selector {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 300px;
}

[data-theme="dark"] .currency-selector {
    background: #1f1f1f;
    color: white;
}

.currency-selector label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #632148;
}

[data-theme="dark"] .currency-selector label {
    color: #a855f7;
}

.currency-selector button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

[data-theme="dark"] .currency-selector button {
    background: #2a2a2a;
    color: white;
}

.currency-selector button:hover {
    border-color: #C4B454;
    transform: translateX(5px);
}

.currency-selector button.active {
    background: linear-gradient(135deg, #632148, #4a1835);
    color: white;
    border-color: #C4B454;
}

/* ═══════════════════════════════════════════════════════════════
   UNIVERSAL RESPONSIVENESS PATCHES (Device Lab)
   ═══════════════════════════════════════════════════════════════ */

/* 1. GALAXY FOLD / ULTRA-NARROW (Max-width: 320px) */
@media (max-width: 320px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 70px;
        /* Move up to avoid bottom-bar collision */
        right: 15px;
        font-size: 24px;
    }

    /* Hide Location Toast on tiny screens to prevent overlap */
    .privacy-toast {
        display: none !important;
    }

    /* Make Hero Text smaller */
    .hero-title {
        font-size: 2rem !important;
    }
}

/* 2. 4K TV / ULTRA-WIDE (Min-width: 1600px) */
@media (min-width: 1600px) {
    html {
        font-size: 20px;
        /* Scale up base size (usually 16px) */
    }

    .section-container {
        max-width: 1400px;
        /* Look better on wide screens */
    }
}

/* 3. ALIGNMENT & TEXT REPAIRS (Emergency Fix) */
.section-header {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.section-title,
.section-subtitle {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Table Header Centering */
.comparison-container th {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 1.5rem !important;
}

/* Fix Hero CTA if it looks weird */
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 4. SMART SCROLLBAR (No Shift + Hover Effect) */
html {
    overflow-y: scroll;
    /* Force track to exist (Prevent Layout Jumps) */
}

/* Chrome/Edge/Safari */
::-webkit-scrollbar {
    width: 8px;
    /* Thin and elegant */
    background: transparent;
    /* No ugly white gap */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
    /* Invisible by default */
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Show Gold Thumb ONLY when hovering near right edge or scrolling */
body:hover::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    /* Turn Gold */
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    /* Hidden */
}

html:hover {
    scrollbar-color: var(--accent) transparent;
    /* Gold on Hover */
}

@keyframes premium-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 180, 84, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(196, 180, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(196, 180, 84, 0);
    }
}

.btn-primary {
    animation: premium-pulse 3s infinite;
}

.whatsapp-float {
    animation: premium-pulse 3s infinite 1.5s;
    /* Offset for aesthetic rhythm */
}

/* MICRO-INTERACTION: Hover Lift */
.pricing-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(99, 33, 72, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .location-indicator {
        top: auto;
        bottom: 70px;
        /* Above WhatsApp button */
        right: 20px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .currency-selector {
        width: 90%;
        max-width: 350px;
    }
}

/* LEGAL TEAM: Privacy Toast */
.privacy-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 13, 13, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.5s ease-out;
}

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

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

/* 5. INTERACTIVITY FIX (CEO ORDER) */
.location-indicator {
    z-index: 20000 !important;
    /* Above everything */
    pointer-events: auto !important;
}

.currency-selector {
    z-index: 20001 !important;
    /* Above indicator */
}

/* HIDE MANUAL TOGGLE (Babel Active) */
#langToggle {
    display: none !important;
}

/* 6. VISUAL AUDIT FIXES (CEO MEETING) */
/* A. Flashbang Fix - Table */
.comparison-container,
.comparison-table-wrapper {
    background: var(--card-bg) !important;
    border-radius: 16px;
    padding: 10px;
}

/* B. Alignment - Professional Readability (UX Best Practice) */
/* Headers/Taglines: Center for impact */
.section-subtitle {
    text-align: center !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Body Text: Left for readability & scanning (F-pattern) */
.section-container p,
.about-content p {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    /* Extra breathing room */
}

/* C. Dark Mode Button Contrast (Gold needs Black Text) */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .hero-cta {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}

/* 7. EXPERTISE GRID (8 Services Implementation) */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto 5rem;
}

.expertise-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(99, 33, 72, 0.1);
    cursor: default;
}

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

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    color: var(--primary);
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}