/**
 * Estilos de Cards
 * Sistema de cards para o site Alt tab Corp - Design moderno e elegante
 */

/* Card Base */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--card-background);
    background-clip: border-box;
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

/* Card com efeito de borda */
.card-border {
    border: 1px solid var(--border-color);
}

/* Card com efeito de gradiente na borda */
.card-gradient-border {
    position: relative;
    background: var(--card-background);
    z-index: 0;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--secondary), var(--accent), var(--secondary-light), var(--accent-secondary));
    background-size: 300% 300%;
    z-index: -1;
    border-radius: calc(var(--border-radius-xl) + 2px);
    opacity: 0;
    transition: opacity 0.4s ease, background-position 3s ease;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card-gradient-border:hover::before {
    opacity: 1;
}

.card-gradient-border .card-body {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    margin: 2px;
    z-index: 1;
}

/* Card Header */
.card-header {
    padding: 1.5rem 2rem;
    margin-bottom: 0;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header:first-child {
    border-radius: calc(var(--border-radius-xl) - 1px) calc(var(--border-radius-xl) - 1px) 0 0;
}

/* Card Body */
.card-body {
    flex: 1 1 auto;
    padding: 2rem;
}

/* Card Footer */
.card-footer {
    padding: 1.5rem 2rem;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-footer:last-child {
    border-radius: 0 0 calc(var(--border-radius-xl) - 1px) calc(var(--border-radius-xl) - 1px);
}

/* Card Título */
.card-title {
    margin-bottom: 1rem;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Card Subtítulo */
.card-subtitle {
    margin-top: -0.375rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Card Texto */
.card-text {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* Card Link */
.card-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    overflow: hidden;
}

.card-link:hover {
    color: var(--secondary-light);
    text-decoration: none;
}

.card-link i {
    font-size: 0.85em;
    margin-left: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-link:hover i {
    transform: translateX(6px);
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.card-link + .card-link {
    margin-left: 1.5rem;
}

/* Card Imagem */
.card-img-top {
    width: 100%;
    height: auto;
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-img-bottom {
    width: 100%;
    height: auto;
    border-bottom-right-radius: var(--border-radius-xl);
    border-bottom-left-radius: var(--border-radius-xl);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-img-bottom {
    transform: scale(1.08);
}

/* Card com imagem com efeito de zoom */
.card-img-zoom {
    overflow: hidden;
    position: relative;
}

.card-img-zoom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-img-zoom:hover::after {
    opacity: 1;
}

.card-img-zoom img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-img-zoom:hover img {
    transform: scale(1.12);
}

/* Card Overlay */
.card-img-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
    color: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--border-radius-xl);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.card:hover .card-img-overlay {
    opacity: 1;
}

.card-img-overlay .card-title {
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-img-overlay .card-text {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card Horizontal */
.card-horizontal {
    flex-direction: row;
}

.card-horizontal .card-img {
    width: 40%;
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--border-radius-xl);
    object-fit: cover;
}

.card-horizontal .card-body {
    width: 60%;
}

/* Card Grupo */
.card-group {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
}

.card-group > .card {
    flex: 1 0 0%;
    margin-bottom: 0;
}

/* Card Deck */
.card-deck {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
}

.card-deck .card {
    flex: 1 0 0%;
    min-width: 300px;
}

/* Card Columns */
@media (min-width: 576px) {
    .card-columns {
        column-count: 3;
        column-gap: 1.5rem;
        orphans: 1;
        widows: 1;
    }
    
    .card-columns .card {
        display: inline-block;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Card Variações de Cores */
.card-primary {
    background-color: var(--primary-light);
    color: var(--light);
}

.card-secondary {
    background-color: var(--secondary-light);
    color: var(--light);
}

/* Serviços Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    background-color: var(--card-background);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    font-size: 1.75rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover .service-icon {
    background-color: var(--secondary);
    color: var(--light);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    position: relative;
}

.service-card:hover h3 {
    color: var(--secondary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.btn-text {
    color: var(--secondary);
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.3s ease;
    overflow: hidden;
}

.btn-text i {
    margin-left: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-text:hover {
    color: var(--secondary-light);
}

.btn-text:hover i {
    transform: translateX(6px);
}

.btn-text:hover::after {
    transform: scaleX(1);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    background-color: var(--card-background);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--secondary);
    opacity: 0.15;
    line-height: 1;
    z-index: -1;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: var(--font-size-md);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid var(--light);
    box-shadow: var(--shadow-md);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.testimonial-rating {
    color: var(--warning);
    font-size: var(--font-size-md);
    margin-top: 0.5rem;
}

/* Team Card */
.team-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.team-card:hover .team-image::before {
    opacity: 1;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    z-index: 2;
    transition: bottom var(--transition-normal);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.team-social-link:hover {
    background-color: var(--secondary);
    color: var(--light);
    transform: translateY(-3px);
}

.team-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.team-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-position {
    color: var(--secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.team-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 300px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    opacity: 0.9;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    color: var(--secondary-light);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

.project-title {
    color: white;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-title {
    transform: translateY(-5px);
}

.project-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.project-link i {
    margin-left: var(--spacing-sm);
    transition: transform var(--transition-normal);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Feature Card */
.feature-card {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    background-color: var(--card-background);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: var(--gradient-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.feature-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Stat Card */
.stat-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
    z-index: -1;
    transition: height var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    height: 10px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

/* Pricing Card */
.pricing-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1), var(--shadow-lg);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--secondary);
    color: white;
    padding: 5px 30px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.pricing-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.pricing-price {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-currency {
    font-size: var(--font-size-lg);
    margin-right: 5px;
    align-self: flex-start;
    margin-top: 5px;
}

.pricing-duration {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-left: 5px;
    font-weight: var(--font-weight-medium);
    align-self: flex-end;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl);
    flex-grow: 1;
}

.pricing-feature {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-feature i {
    color: var(--success);
    margin-right: var(--spacing-sm);
}

.pricing-feature.disabled {
    color: var(--gray-400);
    text-decoration: line-through;
}

.pricing-feature.disabled i {
    color: var(--gray-400);
}

.pricing-action {
    margin-top: auto;
} 