/* ========================================
   ESTILOS DA HOME - ALIENS PASTEIS
======================================== */

/* Header e Logo */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00FF88, #FFB800);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: 3px;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 184, 0, 0.8));
    }
}

.logo-image {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.main-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.8));
    animation: float 3s ease-in-out infinite;
}

.logo-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon {
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    animation: float 3s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Grid de Cards */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* Portal Cards */
.portal-card {
    position: relative;
    background: rgba(0, 20, 10, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portal-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 255, 136, 0.8);
    box-shadow: 
        0 20px 60px rgba(0, 255, 136, 0.4),
        inset 0 0 30px rgba(0, 255, 136, 0.1);
}

.portal-card:hover .card-glow {
    opacity: 1;
}

/* Cores específicas para cada card */
.portal-card[data-type="site"] {
    border-color: rgba(0, 255, 136, 0.3);
}

.portal-card[data-type="site"]:hover {
    border-color: rgba(0, 255, 136, 0.8);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.5);
}

.portal-card[data-type="app"] {
    border-color: rgba(0, 204, 106, 0.3);
}

.portal-card[data-type="app"]:hover {
    border-color: rgba(0, 204, 106, 0.8);
    box-shadow: 0 20px 60px rgba(0, 204, 106, 0.5);
}

.portal-card[data-type="dashboard"] {
    border-color: rgba(0, 255, 136, 0.3);
}

.portal-card[data-type="dashboard"]:hover {
    border-color: rgba(0, 255, 136, 0.8);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.5);
}

.portal-card[data-type="ia"] {
    border-color: rgba(255, 184, 0, 0.3);
}

.portal-card[data-type="ia"]:hover {
    border-color: rgba(255, 184, 0, 0.8);
    box-shadow: 0 20px 60px rgba(255, 184, 0, 0.5);
}

/* Conteúdo dos Cards */
.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
}

.portal-card:hover .card-icon {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.8);
    transform: scale(1.1) translateY(-5px);
}

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

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botões dos Portais */
.portal-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00FF88, #00CC6A);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.portal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.portal-button:hover::before {
    left: 100%;
}

.portal-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6);
}

.portal-button:active {
    transform: scale(0.98);
}

.button-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.portal-button:hover .button-icon {
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

/* Responsividade */
@media (max-width: 1024px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .main-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .alien-icon {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .portal-card {
        min-height: 280px;
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .alien-icon {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .portal-card {
        min-height: 260px;
        padding: 25px 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .portal-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

