/* Features Showcase - Layout Alternado */

.features-showcase-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 5, 17, 0.3) 0%, transparent 100%);
    overflow: hidden;
}

/* Container para cada feature */
.feature-showcase {
    max-width: 1200px;
    margin: 0 auto var(--spacing-3xl);
    padding: 0 var(--spacing-lg);
}

/* Layout alternado */
.feature-showcase-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.feature-showcase-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alterna direção */
.feature-showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Coluna de Imagem */
.feature-image-showcase {
    flex: 0 0 45%;
    position: relative;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 0 0 12px #2a2a2a,
        0 0 0 14px #1a1a1a,
        0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s ease;
}

.feature-showcase-row:nth-child(even) .iphone-mockup {
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg);
}

.feature-showcase-row:hover .iphone-mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Notch do iPhone 
.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
} */

/* Tela do iPhone */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* Imagem dentro do mockup */
.feature-app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Badge de número */
.feature-number-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

/* Coluna de Conteúdo */
.feature-content-showcase {
    flex: 1;
    padding: var(--spacing-2xl) 0;
}

.feature-content-showcase h3 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text);
    line-height: 1.2;
}

/* Seções de conteúdo */
.feature-section {
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-lg);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-section:hover {
    border-left-color: var(--accent);
}

.feature-section h4 {
    color: var(--accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.feature-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.feature-section .code-example {
    background: rgba(30, 215, 96, 0.1);
    border: 1px solid rgba(30, 215, 96, 0.2);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: 'Courier New', monospace;
    color: var(--accent);
    margin: var(--spacing-sm) 0;
}

/* Highlight Box */
.feature-highlight-box {
    background: linear-gradient(135deg, rgba(11, 118, 239, 0.1) 0%, rgba(30, 215, 96, 0.05) 100%);
    border: 1px solid rgba(30, 215, 96, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-highlight-box strong {
    color: var(--accent);
    font-size: 1.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Tags de benefício */
.benefit-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.benefit-tag:hover {
    background: rgba(30, 215, 96, 0.1);
    border-color: rgba(30, 215, 96, 0.3);
}

.benefit-tag i {
    color: var(--accent);
}

/* Animação de floating para mockup */
@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) perspective(1000px) rotateY(-15deg) rotateX(5deg);
    }
    50% {
        transform: translateY(-20px) perspective(1000px) rotateY(-15deg) rotateX(5deg);
    }
}

.feature-showcase-row:nth-child(even) .iphone-mockup {
    animation: floatPhoneReverse 6s ease-in-out infinite;
}

@keyframes floatPhoneReverse {
    0%, 100% {
        transform: translateY(0) perspective(1000px) rotateY(15deg) rotateX(5deg);
    }
    50% {
        transform: translateY(-20px) perspective(1000px) rotateY(15deg) rotateX(5deg);
    }
}

.feature-showcase-row:nth-child(odd) .iphone-mockup {
    animation: floatPhone 6s ease-in-out infinite;
}

/* Responsividade */
@media (max-width: 968px) {
    .feature-showcase-row,
    .feature-showcase-row:nth-child(even) {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }
    
    .feature-image-showcase {
        flex: 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-content-showcase {
        text-align: center;
        padding: var(--spacing-lg) 0;
    }
    
    .feature-section {
        text-align: left;
    }
    
    .benefit-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .iphone-mockup {
        width: 280px;
        height: 570px;
        transform: none !important;
        animation: none !important;
    }
    
    .feature-showcase-row:nth-child(even) .iphone-mockup {
        transform: none !important;
    }
    
    .feature-content-showcase h3 {
        font-size: 1.75rem;
    }
    
    .feature-section p {
        font-size: 1rem;
    }
    
    .feature-number-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: -15px;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .iphone-mockup {
        width: 240px;
        height: 490px;
        padding: 10px;
        box-shadow: 
            0 0 0 8px #2a2a2a,
            0 0 0 10px #1a1a1a,
            0 30px 60px -20px rgba(0, 0, 0, 0.5);
    }
    
    /*.iphone-mockup::before {
        width: 120px;
        height: 20px;
        top: 10px;
    }*/
    
    .feature-content-showcase h3 {
        font-size: 1.5rem;
    }
    
    .feature-highlight-box strong {
        font-size: 1.25rem;
    }
}

/* Loading shimmer para imagens */
.iphone-screen.loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}