@font-face {
    font-family: 'Cooper Md BT';
    src: url('../fonts/Cooper_Md_BT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --primary-color: #25D366;
    /* WhatsApp Green */
    --primary-dark: #00A884;
    --primary-glow: rgba(37, 211, 102, 0.5);

    --secondary-color: #075E54;
    --accent-pink: #FF1493;
    /* Kavini Pink */
    --accent-glow: rgba(255, 20, 147, 0.4);

    /* Text Colors */
    --text-dark: #1F2937;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;

    /* Backgrounds */
    --bg-light: #F3F4F6;
    --white: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --backdrop-blur: blur(12px);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --gradient-text: linear-gradient(to right, #111827, #FF1493);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
}

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

body {
    font-family: 'Anek Tamil', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 211, 102, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 20, 147, 0.1) 0px, transparent 50%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.font-bold {
    font-weight: 700;
}

.hidden {
    display: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Noto Serif Tamil', serif;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    gap: 0.5rem;
}

.btn-whatsapp {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

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

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Header / Hero */
header {
    background: var(--white);
    padding: 1rem 0 2rem 0;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    body {
        padding-top: 85px;
    }

    .hero-headline {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    header {
        padding: 1rem 0 2rem 0;
        min-height: auto;
    }
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-in-up 0.8s ease-out;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Sections */
.section {
    padding: 4rem 0;
}

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

/* Pain Points */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pain-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #EF4444;
    border-radius: 4px 0 0 4px;
}

.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.pain-card h3 {
    color: #991B1B;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Solutions */
.solution-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #10B981;
    border-radius: 4px 0 0 4px;
}

.solution-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.solution-card h3 {
    color: #065F46;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.5), rgba(255, 20, 147, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(8deg);
    animation: float 3s ease-in-out infinite;
}

/* Mission & Generic Cards Class */
.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    transition: all 0.4s ease !important;
    border-radius: 1.5rem !important;
}

.glass-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.15);
}

/* Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #E5E7EB;
    border-left: 2px dashed #CBD5E1;
    z-index: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.step-number {
    background: var(--gradient-primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

/* FAQ */
.faq-item {
    background: var(--white);
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-item:hover {
    background-color: #F9FAFB;
}

.faq-question {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '▾';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

/* Floating CTA - Personalized & Modern */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px) scale(0.9);
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 8px 16px 8px 8px;
    border-radius: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(37, 211, 102, 0.1);
    gap: 12px;
    max-width: 290px;
}

.floating-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.25);
    border-color: var(--primary-color);
}

.cta-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.cta-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #10B981;
    border: 2px solid var(--white);
    border-radius: 50%;
    animation: indicator-pulse 2s infinite;
}

@keyframes indicator-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.cta-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.cta-agent-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
}

.cta-online-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-main-text {
    font-family: 'Anek Tamil', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap;
}

.cta-whatsapp-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-left: 2px;
    box-shadow: 0 3px 6px rgba(37, 211, 102, 0.2);
    flex-shrink: 0;
}

.cta-whatsapp-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    opacity: 0.8;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: #111827;
    color: #D1D5DB;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 4rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 1.75rem;
    }

    .steps-container {
        gap: 1rem;
    }
}

.kavini-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.kavini-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.logo-text {
    font-family: 'Cooper Md BT', 'Cooper Black', serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #E30048;
    text-shadow: 0 2px 4px rgba(227, 0, 72, 0.1);
}

.logo-suffix {
    font-family: 'Anek Tamil', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    opacity: 0.6;
    margin-left: 2px;
    letter-spacing: normal;
}

.logo-wrapper {
    display: flex;
    align-items: baseline;
}

/* Animated Background Blobs */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(37, 211, 102, 0.2);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 20, 147, 0.15);
    animation-duration: 30s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.1);
    animation-duration: 22s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Scroll Reveal Animation */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
    content-visibility: auto;
}

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

/* Premium Typography Tweaks */
h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-text);
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

.service-time {
    display: inline-block;
    background: rgba(37, 211, 102, 0.1);
    color: var(--secondary-color);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 211, 102, 0.2);
}
