/* ==========================================================================
   SWEETALERT2 CUSTOM STYLES
   ========================================================================== */

.swal2-popup {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

.swal2-title {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
}

.swal2-html-container {
    color: #94a3b8 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%) !important;
    transform: translateY(-2px) !important;
}

.swal2-cancel {
    background: #374151 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 8px !important;
    color: #d1d5db !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
}

.swal2-cancel:hover {
    background: #4b5563 !important;
}

.swal2-backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   CLASSES UTILITÁRIAS (substituem inline styles)
   ========================================================================== */

/* Hero text */
.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Cor amarelo para subtítulos e acentos tech */
.text-tech-yellow {
    color: var(--amarelo) !important;
}

.hover-text-yellow:hover {
    color: var(--amarelo) !important;
}

.bg-tech-yellow-glow {
    background-color: rgba(255, 225, 167, 0.1) !important;
}

.group:hover .group-hover-bg-yellow {
    background-color: rgba(255, 225, 167, 0.2) !important;
}

.group:hover .group-hover-text-yellow {
    color: var(--amarelo) !important;
}

/* Delays de animação para cards */
.delay-200 {
    transition-delay: 200ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Background images */
.bg-about {
    background-image: url('../img/about.webp');
}

.bg-contato {
    background-image: url('../img/contato.webp');
}

/* LinkedIn connect row */
.linkedin-connect {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.linkedin-connect p {
    margin-right: 10px;
    font-size: 1.1em;
    color: #fff;
}

.linkedin-connect a {
    color: #0077B5;
}

/* ==========================================================================
   LOGOTIPO EM TEXTO (DUNE RISE)
   ========================================================================== */

.logo-text {
    font-family: 'Dune Rise', sans-serif;
    color: #ffffff !important;
    font-size: 26px;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    white-space: nowrap;
    /* Garante que 'ARTCODEV' nunca quebre a linha */
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo-text:hover {
    color: var(--amarelo) !important;
    text-shadow: 0 0 15px var(--amarelo);
}

.logo-bold {
    font-weight: 800;
}

/* ==========================================================================
   HARMONIZAÇÃO VISUAL HERO (SENIOR LOOK)
   ========================================================================== */

/* Slogan superior sutil */
.hero-tag-slogan {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Container Glassmorphism (Caixa de Vidro do Hero) */
.hero-glass-card {
    background: rgba(19, 10, 36, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 3.5rem 5rem;
    max-width: 950px;
    width: 100%;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.hero-glass-card:hover {
    border-color: rgba(255, 225, 167, 0.15); /* Brilho amarelo sutil no hover */
}

/* Delays expandidos para animações rítmicas */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* Responsividade da Caixa */
@media (max-width: 768px) {
    .hero-glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        margin: 0 10px;
    }
}

/* Logo no Hero */
.hero-logo {
    font-size: clamp(28px, 6vw, 42px);
    /* Ligeiramente menor para elegância */
    letter-spacing: 4px;
    margin-bottom: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Título Principal do Hero */
.hero-main-title {
    font-size: clamp(32px, 10vw, 58px);
    /* Refinado */
    font-weight: 700 !important;
    line-height: 1.2;
    margin-top: 5px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

/* Oculta o glitch durante o scramble para evitar "visão dupla" */
.is-scrambling::before,
.is-scrambling::after {
    display: none !important;
}

/* Expansão do Logo no Header */
.header-expand-logo {
    display: flex;
    align-items: center;
}

.logo-rest {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s ease,
        margin-left 0.4s ease;
    margin-left: 0;
}

/* Estado Expandido após Scroll */
.scrolled .logo-rest {
    max-width: 300px;
    opacity: 1;
    margin-left: 4px;
}

/* Mobile: Logo sempre expandido conforme solicitado */
@media (max-width: 1024px) {
    .logo-rest {
        max-width: 300px;
        opacity: 1;
        margin-left: 4px;
    }
}

.mobile-logo {
    font-size: 20px;
    padding: 10px 0;
}

/* ==========================================================================
   ANIMAÇÃO AUTOMÁTICA ATIVA (AUTO-HOVER SEQUÊNCIAL)
   ========================================================================== */

@keyframes auto-hover-highlight {
    0%, 25%, 100% {
        border-color: rgba(139, 92, 246, 0.15);
        box-shadow: none;
        transform: translateY(0);
    }
    12.5% {
        border-color: var(--amarelo);
        box-shadow: 0 0 35px rgba(255, 225, 167, 0.3), 
                    inset 0 0 15px rgba(255, 225, 167, 0.1);
        transform: translateY(-10px);
    }
}

/* Aplicando a animação aos boxes de serviço */
.service-card {
    animation: auto-hover-highlight 8s infinite ease-in-out;
    will-change: transform, border-color, box-shadow;
}

/* Pausa a animação ao interagir manualmente (UX amigável) */
.service-card:hover {
    animation-play-state: paused !important;
}

/* Escalonamento dos tempos de início para cada um dos 4 cards */
.service-card:nth-of-type(1) { animation-delay: 0s; }
.service-card:nth-of-type(2) { animation-delay: 2s; }
.service-card:nth-of-type(3) { animation-delay: 4s; }
.service-card:nth-of-type(4) { animation-delay: 6s; }