/* Think Digital - Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
    --brand: 358 79% 53%;
    --brand-dark: 358 72% 44%;
    --ink: 220 12% 8%;
    --charcoal: 220 10% 14%;
    --background: 0 0% 100%;
    --foreground: 220 10% 9%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 8% 46%;
    --border: 220 13% 91%;
    --radius: 1rem;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Sora', sans-serif;
}

/* Background utilities */
.ink {
    background-color: hsl(var(--ink));
    color: #ffffff;
}

.bg-brand {
    background-color: hsl(var(--brand));
}

.text-brand {
    color: hsl(var(--brand));
}

.border-brand {
    border-color: hsl(var(--brand));
}

.brand-underline {
    background-image: linear-gradient(transparent 62%, hsl(var(--brand) / 0.28) 62%);
    display: inline;
}

.brand-shadow {
    box-shadow: 0 10px 30px -12px hsl(var(--brand) / 0.8);
}

.brand-shadow-lg {
    box-shadow: 0 20px 40px -15px hsl(var(--brand) / 0.5);
}

.card-shadow {
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.08);
}

/* Common container */
.container-custom {
    width: 100%;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Navbar */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    color: hsl(var(--charcoal));
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--brand));
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: hsl(var(--brand));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 30px -12px hsl(var(--brand) / 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -10px hsl(var(--brand) / 0.9);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: hsl(var(--ink));
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--ink));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-dark:hover {
    transform: translateY(-2px);
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #1faa54;
    color: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: hsl(var(--ink));
    color: #ffffff;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, hsl(var(--ink)) 0%, hsl(var(--ink) / 0.92) 50%, hsl(var(--ink) / 0.6) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.85);
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: hsl(var(--brand));
}

/* Service Card */
.service-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--brand));
    box-shadow: 0 30px 60px -40px hsl(var(--brand) / 0.6);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background-color: hsl(var(--brand) / 0.1);
    color: hsl(var(--brand));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Pricing Card */
.pricing-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular {
    background-color: hsl(var(--ink));
    color: #ffffff;
    border-color: hsl(var(--brand));
    box-shadow: 0 40px 90px -50px hsl(var(--brand) / 0.9);
}

@media (min-width: 1024px) {
    .pricing-card.popular {
        margin-top: -1rem;
        margin-bottom: -1rem;
    }
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    background-color: hsl(var(--brand));
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
}

/* Case Study Card */
.case-card {
    background-color: #ffffff;
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-3px);
}

/* Form Styles */
.form-input, .form-textarea, .form-select {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    background-color: #ffffff;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: hsl(var(--brand));
}

/* Marquee ticker */
.ticker-wrap {
    overflow: hidden;
    background-color: hsl(var(--brand));
    color: #ffffff;
    padding: 0.75rem 0;
    white-space: nowrap;
}

.ticker-move {
    display: inline-flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* Responsive grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Modern 2026 UI & Advanced Functionality Styles
   ========================================================================== */

/* Modern Hero Mesh & Ambient Glows */
.hero-glow-container {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #171d2b 0%, #090d16 80%, #05070b 100%);
    overflow: hidden;
}

.hero-mesh-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.45;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-orb-red {
    top: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ef233c 0%, rgba(239, 35, 60, 0) 70%);
}

.glow-orb-amber {
    bottom: 5%;
    left: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ff6b35 0%, rgba(255, 107, 53, 0) 70%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Tab Panel Transition */
.tab-content-panel {
    animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Segmented Pill Tabs */
.advantage-tab-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 0.375rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    gap: 0.375rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.advantage-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

/* Inactive button hover only */
.advantage-tab-btn:not(.active):hover {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Active button - ALWAYS solid vibrant red even on hover, active, or focus */
.advantage-tab-btn.active,
.advantage-tab-btn.active:hover,
.advantage-tab-btn.active:focus {
    background: #ef233c !important;
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(239, 35, 60, 0.45) !important;
}

.advantage-tab-btn.active span,
.advantage-tab-btn.active:hover span {
    color: #ffffff !important;
}

.advantage-tab-btn svg {
    transition: all 0.2s ease;
    opacity: 0.85;
}

.advantage-tab-btn.active svg,
.advantage-tab-btn.active:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
}

/* Glassmorphism Components */
.glass-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 0 1px 1px rgba(0, 0, 0, 0.03);
}

.glass-card-dark {
    background: rgba(18, 24, 38, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Interactive Calculator Range Slider */
.calc-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    transition: background 0.2s;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef233c;
    border: 3px solid #ffffff;
    box-shadow: 0 0 14px rgba(239, 35, 60, 0.7);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 0 20px rgba(239, 35, 60, 0.9);
}

.calc-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef233c;
    border: 3px solid #ffffff;
    box-shadow: 0 0 14px rgba(239, 35, 60, 0.7);
    cursor: pointer;
}

/* Gradient Animated Headline */
.gradient-text-animated {
    background: linear-gradient(135deg, #ffffff 0%, #ff8a9b 40%, #ffffff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 6s linear infinite;
}

@keyframes shineText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Interactive Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-box {
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content-box {
    transform: translateY(0) scale(1);
}

/* 100% Fullscreen Modal Variant */
.modal-backdrop.fullscreen-modal {
    padding: 0 !important;
    backdrop-filter: none;
}
.modal-backdrop.fullscreen-modal .modal-content-box {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
}
.otp-box-digit:focus {
    border-color: #ef233c !important;
    box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.25) !important;
}

/* Live Activity Toast */
.live-pulse-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.live-pulse-badge::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    left: 10px;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mega Menu Dropdowns & Modern Header */
.nav-item-dropdown {
    position: static;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e293b;
    border-radius: 9999px;
    transition: all 0.18s ease;
    background: transparent;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.nav-item-btn:hover,
.nav-item-dropdown:hover .nav-item-btn,
.nav-item-btn.active {
    color: #ef233c;
    background: rgba(239, 35, 60, 0.06);
}

.nav-dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 60;
    padding-top: 0.5rem;
    max-width: calc(100vw - 2.5rem);
}

.nav-item-dropdown:hover .nav-dropdown-wrapper,
.nav-item-dropdown:focus-within .nav-dropdown-wrapper,
.nav-item-dropdown.active-open .nav-dropdown-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 1px 1px rgba(15, 23, 42, 0.05);
}

.megamenu-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.megamenu-item-card:hover {
    border-color: #ef233c;
    box-shadow: 0 12px 28px -6px rgba(239, 35, 60, 0.12);
    transform: translateY(-2px);
}

.megamenu-item-card:hover .card-arrow {
    transform: translateX(4px);
    color: #ef233c;
}

/* ========================================================
   Modern Custom Scrollbar Styling (Global & Dark Aware)
   ======================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #ef233c;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

/* Dark Container Scrollbars */
.dark ::-webkit-scrollbar-thumb,
#think-ai-modal ::-webkit-scrollbar-thumb,
.ink ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark ::-webkit-scrollbar-thumb:hover,
#think-ai-modal ::-webkit-scrollbar-thumb:hover,
.ink ::-webkit-scrollbar-thumb:hover {
    background: #ef233c;
}

/* Hidden Scrollbars for Horizontal Chips & Tabs */
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.scrollbar-none,
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

