/* Custom CSS for Botsify Landing Page */

/* Custom color variables */
:root {
    --primary-text: #3c3c3c;
    --secondary-text: #6b7280;
    --accent-color: #3b82f6;
    --cta-bg: #6D3ADB;
    --shadow-up-left: #82E1EB;
    --shadow-down-right: #F877C5;
    --font-family: 'Lexend', sans-serif;
}

body {
    font-family: var(--font-family);
}

/* Custom conic gradient background for hero section */
.agentic .hero-main {
    position: relative;
}

.agentic .hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 180deg, #ff0080, #7928ca, #2afadf, #7928ca, #ff0080);
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0;
}

/* Custom fonts */
.hero-heading, h1, h2, h3 {
    font-family: 'Yrsa', serif;
}

/* CTA Button with custom shadows */
.cta-button {
    background-color: var(--cta-bg);
    box-shadow:
        -2px -2px 0px rgba(130, 225, 235, 0.5),
        2px 2px 0px rgba(248, 119, 197, 0.5);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #5a2db8;
    transform: translateY(-2px);
    box-shadow:
        -4px -4px 0px rgba(130, 225, 235, 0.6),
        4px 4px 0px rgba(248, 119, 197, 0.6);
}

/* Dual shadow text effect for capital words in headings */
.dual-shadow-text {
    text-shadow:
        -4px -4px 0px rgba(130, 225, 235, 0.5),
        4px 4px 0px rgba(248, 119, 197, 0.5);
    transition: all 0.3s ease;
    font-style: italic;
}

.dual-shadow-text:hover {
    text-shadow:
        -7px -7px 0px rgba(130, 225, 235, 0.6),
        7px 7px 0px rgba(248, 119, 197, 0.6);
    transform: translateY(-1px);
}

/* Background wrapper for hero textarea */
#background-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Animated circles background */
.animated-circles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(130, 225, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(248, 119, 197, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(151, 131, 228, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Noise overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    animation: noise 8s linear infinite;
}

/* Carousel Styles */
.carousel-track {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    transition: all 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px);
}

/* Hide scrollbar for webkit browsers */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 14-Column Grid System */
.md\:grid-cols-14 {
    grid-template-columns: repeat(14, minmax(0, 1fr));
}

.md\:col-start-3 {
    grid-column-start: 3 !important;
}

.md\:col-start-8 {
    grid-column-start: 8 !important;
}

.md\:col-span-4 {
    grid-column: span 4 / span 4;
}

.md\:col-span-6 {
    grid-column: span 6 / span 6;
}

/* Capsule Carousel Styles */
.capsule-carousel-track {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.capsule-carousel-track::-webkit-scrollbar {
    display: none;
}

.capsule-btn {
    transition: all 0.3s ease;
}

.capsule-btn:hover {
    transform: scale(1.05);
}

.capsule-nav-btn {
    transition: all 0.3s ease;
}

.capsule-nav-btn:hover {
    transform: scale(1.1);
}

@keyframes noise {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 10%); }
    80% { transform: translate(3%, 15%); }
    90% { transform: translate(-10%, 10%); }
    100% { transform: translate(0%, 0%); }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Custom button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Custom form focus effects */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Custom card hover effects */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

/* Custom loading animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Custom modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

.notification.info {
    background-color: #3b82f6;
}

/* Custom progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Custom toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Custom accordion styles */
.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: #f9fafb;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f3f4f6;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 200px;
}

/* Custom table styles */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-table th,
.custom-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.custom-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.custom-table tr:hover {
    background-color: #f9fafb;
}

/* Custom badge styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Animated gradient badge */
.animated-gradient-badge {
    background: linear-gradient(90deg, #6D3ADB, #82E1EB, #F877C5, #6D3ADB);
    background-size: 300% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Testimonial Avatar Styles */
.testimonial-avatar {
    transition: all 0.3s ease;
    z-index: 1;
}

.testimonial-avatar:hover {
    z-index: 10;
}

.testimonial-avatar.selected {
    border-color: #6D3ADB !important;
    transform: scale(1.1);
    z-index: 5;
}

/* Ensure proper layering for overlapping avatars */
.testimonial-avatar:nth-child(1) { z-index: 4; }
.testimonial-avatar:nth-child(2) { z-index: 3; }
.testimonial-avatar:nth-child(3) { z-index: 2; }
.testimonial-avatar:nth-child(4) { z-index: 1; }

/* Custom breadcrumb styles */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #9ca3af;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #374151;
}

.breadcrumb-link.active {
    color: #374151;
    font-weight: 500;
}

/* Parallax Section Styles */
.sections {
    position: relative;
    width: 100%;
}

.agentic .section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agentic .section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.agentic .section h2 {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* Parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .agentic .section img {
        transform: translate(-50%, -50%) translateZ(0);
    }
}

.platform-btn {
    overflow: visible !important;
}

.client-logo:hover {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    opacity: 1;
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}
.client-logo {
    display: block;
     -webkit-filter: grayscale(1);
     filter: grayscale(1);
     opacity: .6;
    -webkit-transition: all .3s;
    transition: all .3s;
    margin: 0 auto;
}

a:focus-visible {
    outline: none !important;
}
