/* Cards - Стилі карток */

/* Simple Feature Cards with Gemini Style */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Простий hover ефект */
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Enhanced Pricing Cards with 3D Effects */
.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6, #ec4899);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s ease;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1);
    background: linear-gradient(135deg,
            var(--bg-card) 0%,
            rgba(99, 102, 241, 0.08) 100%);
}

.pricing-card.featured::before {
    content: 'ВИБІР КЛІЄНТІВ';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    padding: 0.3rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pricing-card:hover {
    transform: translateY(-10px) rotateX(2deg) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 50px var(--shadow),
        0 8px 25px rgba(99, 102, 241, 0.3);
}

.pricing-card:hover::after {
    opacity: 0.7;
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-10px) rotateX(2deg);
}

.pricing-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-period {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.7rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.8rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Enhanced About Cards with Smooth Animations */
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            var(--accent) 0%,
            rgba(139, 92, 246, 0.8) 50%,
            var(--success) 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.5s ease;
}

.about-card:hover::before {
    opacity: 0.08;
}

.about-card:hover::after {
    opacity: 0.5;
}

.about-card:hover {
    transform: translateY(-10px) rotateX(2deg) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 45px var(--shadow),
        0 8px 20px rgba(99, 102, 241, 0.3);
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.about-card:hover .about-icon {
    transform: scale(1.3) rotate(8deg) translateZ(15px);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.about-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced Team Cards with Elegant Animations */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.05),
            rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.5s ease;
}

.team-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--shadow),
        0 6px 20px rgba(99, 102, 241, 0.3);
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover::after {
    opacity: 0.5;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--success));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.team-card:hover .team-avatar {
    transform: scale(1.1) translateZ(10px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Enhanced Stat Cards with Smooth Effects */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.08),
            rgba(139, 92, 246, 0.08));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--shadow),
        0 6px 20px rgba(99, 102, 241, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    opacity: 0.5;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Enhanced Help Cards with Elegant Transitions */
.help-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.help-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.05),
            rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.help-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.help-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--shadow),
        0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
}

.help-card:hover::before {
    opacity: 1;
}

.help-card:hover::after {
    opacity: 0.6;
}

.help-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.help-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-card ul {
    list-style: none;
    padding-left: 0;
}

.help-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.help-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Enhanced Input/Preview Sections */
.input-section,
.preview-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.input-section::before,
.preview-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6, #ec4899);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.input-section:hover,
.preview-section:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--shadow),
        0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.input-section:hover::before,
.preview-section:hover::before {
    opacity: 0.5;
}

.input-section h2,
.preview-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Enhanced Generated Result */
.generated-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.generated-result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.05),
            rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.generated-result:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.generated-result:hover::before {
    opacity: 1;
}

.generated-result h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.generated-result .website-preview {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.generated-result .website-preview h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.generated-result .website-preview p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Light theme card overrides */
[data-theme="light"] .feature-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .about-card,
[data-theme="light"] .team-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .help-card,
[data-theme="light"] .input-section,
[data-theme="light"] .preview-section,
[data-theme="light"] .generated-result {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Responsive */
@media (max-width: 968px) {
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .input-section,
    .preview-section {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .stat-number {
        font-size: 2rem;
    }
}