/**
 * Home Page Styles
 * Inputly.AI Website
 *
 * This file contains all custom styles for the home page including:
 * - Popup animations
 * - Industry tab styles
 * - Button styles
 * - Floating shapes animations
 * - Hero content animations
 */

/* ============================================ */
/* POPUP ANIMATION */
/* ============================================ */
@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ============================================ */
/* INDUSTRY TABS STYLING */
/* ============================================ */
.industry-tab {
    color: #6b7280;
    background: transparent;
}

.industry-tab.active {
    background: linear-gradient(135deg, #40E0D0 0%, #0891B2 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(64, 224, 208, 0.3);
}

.industry-tab:hover:not(.active) {
    background: #f3f4f6;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* PREMIUM BUTTON STYLES */
/* ============================================ */
.btn-premium {
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-premium:active {
    transform: translateY(0);
}

/* Magnetic Button Effect */
.btn-magnetic {
    transition: transform 0.2s ease;
}

/* Gradient Button - Teal to Cyan Theme */
.btn-gradient {
    background: linear-gradient(135deg, #40E0D0 0%, #0891B2 100%);
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #3DD5C3 0%, #0782A0 100%);
    box-shadow: 0 10px 25px -5px rgba(64, 224, 208, 0.4);
}

/* ============================================ */
/* HEADING DISPLAY STYLES */
/* ============================================ */
.heading-display {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ============================================ */
/* TESTIMONIAL CAROUSEL - EQUAL HEIGHT CARDS */
/* ============================================ */
.testimonial-slide .grid {
    display: grid;
    grid-auto-rows: 1fr; /* Make all rows equal height */
}

.testimonial-slide .grid > div {
    min-height: 100%; /* Ensure cards fill the grid cell */
}

/* ============================================ */
/* FLOATING SHAPES ANIMATION */
/* ============================================ */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(63, 220, 187, 0.1));
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

.floating-shape:nth-child(4) {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 50%;
    animation-delay: 1s;
}

.floating-shape:nth-child(5) {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 30%;
    animation-delay: 3s;
}

.floating-shape:nth-child(6) {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 40%;
    animation-delay: 5s;
}

.floating-shape:nth-child(7) {
    width: 280px;
    height: 280px;
    top: 20%;
    left: 60%;
    animation-delay: 2.5s;
}

.floating-shape:nth-child(8) {
    width: 190px;
    height: 190px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ============================================ */
/* FLOAT ELEMENT FOR PHONE MOCKUP */
/* ============================================ */
.float-element {
    animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================ */
/* HERO CONTENT ANIMATIONS */
/* ============================================ */
.hero-content > * {
    animation: slideInLeft 0.8s ease-out backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

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