/* 
 * Main CSS for dcroch Voice Bot
 * Using Tailwind CSS approach with custom color definitions
 */

/* Define custom primary color using CSS variables for Tailwind compatibility */
:root {
    --color-primary: #6366f1;
    /* indigo-500 as base primary color */
    --color-primary-dark: #4f46e5;
    /* indigo-600 for hover states */
    --color-primary-light: #818cf8;
    /* indigo-400 for lighter variants */
}

/* Custom primary color utilities to match the blue-purple gradient theme */
.text-primary {
    color: var(--color-primary);
}

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

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

/* Hover states use darker shade for better visual feedback */
.hover\:text-primary:hover {
    color: var(--color-primary-dark);
}

.hover\:border-primary:hover {
    border-color: var(--color-primary-dark);
}

/* Focus ring for form inputs */
.focus\:ring-primary:focus {
    --tw-ring-color: var(--color-primary);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.secondary-button {
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    display: block;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

.stat-sublabel {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    animation: float-visual 6s ease-in-out infinite;
}

@keyframes float-visual {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.phone-mockup {
    width: 100%;
    max-width: 400px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.phone-screen-animated {
    background: #0a0e27;
    height: 100%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    color: white;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    transition: opacity 0.3s ease;
}

.soundwave-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 30px;
}

.soundwave-bar {
    width: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    border-radius: 2px;
    animation: soundwave 1.2s ease-in-out infinite;
}

.soundwave-bar:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.soundwave-bar:nth-child(2) {
    height: 35px;
    animation-delay: 0.1s;
}

.soundwave-bar:nth-child(3) {
    height: 50px;
    animation-delay: 0.2s;
}

.soundwave-bar:nth-child(4) {
    height: 65px;
    animation-delay: 0.3s;
}

.soundwave-bar:nth-child(5) {
    height: 45px;
    animation-delay: 0.4s;
}

.soundwave-bar:nth-child(6) {
    height: 60px;
    animation-delay: 0.5s;
}

.soundwave-bar:nth-child(7) {
    height: 30px;
    animation-delay: 0.6s;
}

@keyframes soundwave {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.ai-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.ai-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    border-radius: 50%;
    opacity: 0.3;
    animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

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

.ai-icon {
    font-size: 40px;
    color: white;
}

.questions-carousel {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.question-item {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    padding: 0 10px;
}

.question-item.active {
    opacity: 1;
    transform: translateY(0);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.question-lang {
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 500;
}

.dashboard-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
    overflow: hidden;
}

.dashboard-preview.active {
    opacity: 1;
    transform: scale(1);
}

.dash-header {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    padding: 15px 20px;
    color: white;
}

.dash-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.dash-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.dash-stats {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 5px;
}

.dash-chart {
    padding: 0 20px 20px;
}

.mini-chart {
    height: 80px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px;
    gap: 5px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    border-radius: 3px;
    animation: growBar 1s ease forwards;
}

.chart-bar:nth-child(1) {
    height: 40%;
    animation-delay: 0.1s;
}

.chart-bar:nth-child(2) {
    height: 70%;
    animation-delay: 0.2s;
}

.chart-bar:nth-child(3) {
    height: 55%;
    animation-delay: 0.3s;
}

.chart-bar:nth-child(4) {
    height: 85%;
    animation-delay: 0.4s;
}

.chart-bar:nth-child(5) {
    height: 65%;
    animation-delay: 0.5s;
}

@keyframes growBar {
    from {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.action-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 280px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    color: white;
}

.action-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.call-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .phone-mockup {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 5%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .phone-mockup {
        max-width: 300px;
        height: 500px;
    }
}

/* ROI Calculator Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-float::before {
    animation: float 20s ease-in-out infinite;
}

.animate-pulse-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease;
}

.animate-slideIn {
    animation: slideIn 0.6s ease forwards;
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease;
}

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

.animate-rotate-slow::before {
    animation: rotate 20s linear infinite;
}

/* Calculate Button Ripple Effect */
.calculate-btn {
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.calculate-btn:hover::before {
    width: 400px;
    height: 400px;
}