/* ========================================
   AUDICOM TELECOM - LINKTREE PAGE
   Premium Design - CSS Independente
   ======================================== */

/* Variáveis de Cores - Paleta Oficial */
:root {
    --azul-conexao: #00249C;
    --azul-conexao-rgb: 0, 36, 156;
    --azul-estrutura: #081535;
    --azul-estrutura-rgb: 8, 21, 53;
    --cinza-operacional: #8F99A8;
    --grafite-infra: #2A2F36;
    --branco-tecnico: #F4F6F9;
    --branco-tecnico-rgb: 244, 246, 249;
    
    /* Cores Especiais */
    --whatsapp: #25D366;
    --whatsapp-rgb: 37, 211, 102;
    --support: #00D4FF;
    --support-rgb: 0, 212, 255;
    --speed: #FF6B35;
    --speed-rgb: 255, 107, 53;
    --site: #7B68EE;
    --site-rgb: 123, 104, 238;
}

/* Reset Completo */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--azul-estrutura);
    color: var(--branco-tecnico);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ========================================
   BACKGROUND LAYERS
   ======================================== */

.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--azul-conexao-rgb), 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(var(--azul-conexao-rgb), 0.15) 0%, transparent 40%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(var(--support-rgb), 0.1) 0%, transparent 40%),
        linear-gradient(180deg, var(--azul-estrutura) 0%, #040c1f 100%);
    z-index: 0;
}

#fiber-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* ========================================
   ORBS DECORATIVOS ANIMADOS
   ======================================== */

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--azul-conexao-rgb), 0.6) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--support-rgb), 0.4) 0%, transparent 70%);
    bottom: 20%;
    left: -15%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--whatsapp-rgb), 0.3) 0%, transparent 70%);
    bottom: -10%;
    right: 20%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}



/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.container {
    position: relative;
    z-index: 10;
    max-width: 440px;
    margin: 0 auto;
    padding: 50px 24px 40px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   HEADER / LOGO
   ======================================== */

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(var(--azul-conexao-rgb), 0.4) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.8;
    animation: logoGlowPulse 3s ease-in-out infinite;
}

@keyframes logoGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.logo-image {
    position: relative;
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 30px rgba(var(--azul-conexao-rgb), 0.4));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tagline-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.tagline-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cinza-operacional) 100%);
    opacity: 0.5;
}

.tagline-line:last-child {
    background: linear-gradient(90deg, var(--cinza-operacional) 0%, transparent 100%);
}

.tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--cinza-operacional);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, scrollBounce 2s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at center, rgba(0, 36, 156, 0.7) 0%, rgba(0, 36, 156, 0.4) 50%, transparent 70%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
    border-radius: 50%;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.scroll-indicator span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--branco-tecnico);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--branco-tecnico);
    opacity: 0.8;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ========================================
   LINKS / CARDS
   ======================================== */

.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--branco-tecnico);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Card Background */
.card-bg {
    position: absolute;
    inset: 0;
    background: rgba(var(--branco-tecnico-rgb), 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: inherit;
}

/* Card Shine Effect */
.card-shine {
    display: none;
}

/* Card Border Glow */
.card-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(var(--branco-tecnico-rgb), 0.1) 0%,
        rgba(var(--branco-tecnico-rgb), 0.05) 50%,
        rgba(var(--branco-tecnico-rgb), 0.1) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}



/* Link Icon */
.link-icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--azul-conexao-rgb), 0.15);
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 2;
}

.link-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: inherit;
}

.link-icon svg {
    position: relative;
    width: 24px;
    height: 24px;
    color: var(--azul-conexao);
    filter: drop-shadow(0 0 8px rgba(var(--azul-conexao-rgb), 0.3));
}

/* Link Content */
.link-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.link-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--branco-tecnico);
}

.link-desc {
    font-size: 0.85rem;
    color: var(--cinza-operacional);
}

/* Link Arrow */
.link-arrow {
    position: relative;
    flex-shrink: 0;
    opacity: 0.5;
    z-index: 2;
}

.link-arrow svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   SOCIAL LINKS (Botões Redondos)
   ======================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

.social-btn {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--branco-tecnico-rgb), 0.05);
    border: 1px solid rgba(var(--branco-tecnico-rgb), 0.1);
    color: var(--branco-tecnico);
    text-decoration: none;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Facebook */
[data-social="facebook"] {
    background: #1877F2;
    border-color: #1877F2;
}

/* Instagram */
[data-social="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

/* ========================================
   CARD TYPE SPECIFIC STYLES
   ======================================== */

/* Site Card */
[data-type="site"] .link-icon {
    background: rgba(var(--site-rgb), 0.15);
}

[data-type="site"] .link-icon svg {
    color: var(--site);
    filter: drop-shadow(0 0 8px rgba(var(--site-rgb), 0.4));
}

/* WhatsApp Card */
[data-type="whatsapp"] .link-icon {
    background: rgba(var(--whatsapp-rgb), 0.15);
}

[data-type="whatsapp"] .link-icon svg {
    color: var(--whatsapp);
    filter: drop-shadow(0 0 8px rgba(var(--whatsapp-rgb), 0.4));
}

/* Support Card */
[data-type="support"] .link-icon {
    background: rgba(var(--support-rgb), 0.15);
}

[data-type="support"] .link-icon svg {
    color: var(--support);
    filter: drop-shadow(0 0 8px rgba(var(--support-rgb), 0.4));
}

/* Speed Card */
[data-type="speed"] .link-icon {
    background: rgba(var(--speed-rgb), 0.15);
}

[data-type="speed"] .link-icon svg {
    color: var(--speed);
    filter: drop-shadow(0 0 8px rgba(var(--speed-rgb), 0.4));
}

/* ========================================
   CARD ENTRY ANIMATIONS
   ======================================== */

.link-card {
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.25s; }
.link-card:nth-child(3) { animation-delay: 0.35s; }
.link-card:nth-child(4) { animation-delay: 0.45s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    position: relative;
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--azul-conexao-rgb), 0.5) 50%, transparent 100%);
}

.footer p {
    font-size: 0.8rem;
    color: var(--cinza-operacional);
    opacity: 0.7;
}

.footer-dot {
    color: var(--azul-conexao);
    opacity: 0.5;
}

.footer-policy {
    width: 100%;
    margin-top: 12px;
}

.policy-link {
    font-size: 0.7rem;
    color: var(--cinza-operacional);
    opacity: 0.6;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.policy-link:hover {
    opacity: 1;
    color: var(--branco-tecnico);
    background: rgba(var(--azul-conexao-rgb), 0.2);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 40px 20px 30px;
    }
    
    .logo-image {
        max-width: 240px;
    }
    
    .tagline {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .tagline-line {
        width: 25px;
    }
    
    .link-card {
        padding: 18px 20px;
        gap: 14px;
    }
    
    .link-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .link-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .link-title {
        font-size: 1rem;
    }
    
    .link-desc {
        font-size: 0.8rem;
    }
    
    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 150px; height: 150px; }
}

@media (max-width: 360px) {
    .logo-image {
        max-width: 200px;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .header {
        margin-bottom: 35px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #fiber-canvas,
    .scan-line,
    .orb {
        display: none !important;
    }
}

@media (prefers-contrast: high) {
    .link-card {
        border: 2px solid var(--branco-tecnico);
    }
    
    .card-bg {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .link-desc {
        color: var(--branco-tecnico);
    }
}

/* Focus States */
.link-card:focus-visible {
    outline: 2px solid var(--azul-conexao);
    outline-offset: 4px;
}
