/* WhatsKing Modern Components - Inspired by wati.io */
/* ================================================= */

/* Button Components - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: var(--text-base);
    line-height: var(--leading-none);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    font-family: var(--font-sans);
    letter-spacing: 0.025em;
    min-width: 140px;
    text-align: center;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-2xl);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
    border-radius: var(--radius-2xl);
}

/* Button Variants - Elegant & Soft */
.btn-primary {
    background: var(--gradient-cta);
    color: var(--white) !important;

    border-color: var(--primary-500);
    box-shadow: var(--shadow-elegant);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--secondary-400) 100%);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    border-color: var(--secondary-500);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-500) 100%);
}

.btn-outline {
    background: transparent;
    color: var(--primary-500);
    border-color: var(--primary-500);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--gradient-soft);
    color: var(--primary-600) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-elegant);
    border-color: var(--primary-400);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta {
    background: var(--gradient-cta);
    color: var(--white) !important;
    border-color: var(--primary-500);
    box-shadow: var(--shadow-elegant);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--secondary-400) 100%);
    color: var(--white) !important;
}

/* Card Components */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-100);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-100);
}

.card-glass {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.card-feature {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.card-feature:hover::before {
    transform: scaleX(1);
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.card-pricing {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    border: 2px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.card-pricing.featured {
    border-color: var(--primary-500);
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(145deg, var(--white) 0%, var(--primary-50) 100%);
}

.card-pricing.featured::before {
    content: 'Most Popular';
    position: absolute;
    /*top: var(--space-6);
    right: calc(var(--space-6) * -1);*/
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-2) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);

    top: 30px;
    right: -80px;
    width: 250px;

}

.card-pricing:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

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

/* Icon Components */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl);
    transition: var(--transition-normal);
    position: relative;
}

.icon-sm {
    width: var(--space-8);
    height: var(--space-8);
    font-size: var(--text-lg);
}

.icon-md {
    width: var(--space-12);
    height: var(--space-12);
    font-size: var(--text-2xl);
}

.icon-lg {
    width: var(--space-16);
    height: var(--space-16);
    font-size: var(--text-3xl);
}

.icon-xl {
    width: var(--space-20);
    height: var(--space-20);
    font-size: var(--text-4xl);
}

.icon-2xl {
    width: var(--space-24);
    height: var(--space-24);
    font-size: var(--text-5xl);
}

.icon-gradient {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.icon-gradient::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.icon-gradient:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: var(--shadow-xl);
}

/* Navigation Components */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-50);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.navbar-brand {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    font-family: var(--font-display);
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--primary-500);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base);
    transition: var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-500);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--gray-700);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.navbar-toggle:hover {
    background: var(--gray-100);
    color: var(--primary-500);
}

@media (max-width: 1023px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        gap: var(--space-4);
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav a {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
        width: 100%;
        text-align: center;
    }

    .navbar-nav a:hover {
        background: var(--primary-50);
    }
}

/* Hero Section Components */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: var(--space-20);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%2325d366" stop-opacity="0.1"/><stop offset="100%" stop-color="%2325d366" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>');
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: var(--z-10);
}

.hero-title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    font-family: var(--font-display);
    line-height: var(--leading-tight);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Components */
@keyframes float {

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

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

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

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

@keyframes fadeInDown {
    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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

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

    50% {
        transform: scale(1.05);
    }

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

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

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

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

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

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

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scroll-animate-scale.animate {
    opacity: 1;
    transform: scale(1);
}

/* Testimonial Components */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition-normal);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-size: var(--text-6xl);
    color: var(--primary-100);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.testimonial-content {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: var(--z-10);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: var(--space-12);
    height: var(--space-12);
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-100);
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.testimonial-info p {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* Stats Counter Components */
.stats-counter {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--primary-500);
    font-family: var(--font-display);
    line-height: var(--leading-none);
}

.stats-label {
    color: var(--gray-600);
    font-weight: 500;
    margin-top: var(--space-2);
}

/* Feature Timeline Components */
.timeline {
    position: relative;
    padding: var(--space-8) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-12);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    margin: 0 var(--space-8);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.timeline-icon {
    width: var(--space-16);
    height: var(--space-16);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: var(--z-10);
}

@media (max-width: 768px) {
    .timeline::before {
        left: var(--space-8);
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        margin-left: var(--space-16);
        margin-right: 0;
    }

    .timeline-icon {
        position: absolute;
        left: 0;
    }
}

/* Form Components */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    transition: var(--transition-normal);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Badge Components */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-secondary {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

.badge-success {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}