/**
 * BIO INSTAGRAM - ESTILOS MODERNOS E PROFISSIONAIS
 * Design de alto nível com animações, glassmorphism e gradientes
 * Agência Digital Eyes - 2025
 * Mobile-First Responsive Design
 */

/* ============================================================================
   RESET E VARIÁVEIS CSS
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --color-primary: #172340;
    --color-primary-light: #1f3259;
    --color-primary-dark: #0f1a2d;
    --color-secondary: #bf9e3f;
    --color-secondary-light: #d4b35a;
    --color-secondary-dark: #9a7f32;
    
    /* Cores de Fundo */
    --color-background: #0a0a0a;
    --color-background-alt: #141414;
    --color-surface: rgba(23, 35, 64, 0.15);
    --color-surface-hover: rgba(23, 35, 64, 0.25);
    
    /* Cores de Texto */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Cores Sociais */
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;
    --color-instagram: #E4405F;
    --color-instagram-gradient: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045);
    --color-facebook: #1877F2;
    --color-youtube: #FF0000;
    --color-tiktok: #000000;
    --color-linkedin: #0A66C2;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #172340, #bf9e3f);
    --gradient-primary-reverse: linear-gradient(135deg, #bf9e3f, #172340);
    --gradient-gold: linear-gradient(135deg, #bf9e3f, #d4b35a, #9a7f32);
    --gradient-blue: linear-gradient(135deg, #172340, #1f3259);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.98));
    --gradient-glass: linear-gradient(135deg, rgba(23, 35, 64, 0.3), rgba(191, 158, 63, 0.15));
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(191, 158, 63, 0.3);
    --shadow-glow-blue: 0 0 20px rgba(23, 35, 64, 0.5);
    --shadow-glow-strong: 0 0 30px rgba(191, 158, 63, 0.5);
    
    /* Tipografia */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Tamanhos de Fonte */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-background);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(23, 35, 64, 0.4), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(191, 158, 63, 0.2), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================================
   PARTICLES BACKGROUND
   ============================================================================ */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.5;
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */

.main-container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================================
   PROFILE HEADER
   ============================================================================ */

.profile-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInDown 0.8s ease-out;
}

.profile-container {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border: 2px solid rgba(23, 35, 64, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    position: relative;
    overflow: hidden;
}

/* Glass Effect Overlay */
.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 35, 64, 0.3), rgba(191, 158, 63, 0.1));
    pointer-events: none;
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-glow), 0 0 0 8px rgba(23, 35, 64, 0.3);
    transition: transform var(--transition-spring);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-glow), 0 0 0 8px rgba(23, 35, 64, 0.3);
}

.avatar-placeholder i {
    font-size: var(--font-size-4xl);
    color: white;
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-primary);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.profile-avatar:hover .avatar-img {
    transform: scale(1.05);
}

/* Profile Info */
.profile-info {
    margin-bottom: var(--spacing-lg);
}

.profile-name {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.profile-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Social Icons Row */
.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 35, 64, 0.4);
    border: 2px solid rgba(23, 35, 64, 0.6);
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-blue);
    border-color: var(--color-secondary);
}

.social-icon:hover::before {
    opacity: 1;
}

/* Social Icon Colors */
.social-icon.instagram:hover::before {
    background: var(--color-instagram-gradient);
}

.social-icon.instagram:hover {
    border-color: var(--color-instagram);
}

.social-icon.facebook:hover::before {
    background: var(--color-facebook);
}

.social-icon.facebook:hover {
    border-color: var(--color-facebook);
}

.social-icon.youtube:hover::before {
    background: var(--color-youtube);
}

.social-icon.youtube:hover {
    border-color: var(--color-youtube);
}

.social-icon.tiktok:hover::before {
    background: var(--color-tiktok);
}

.social-icon.tiktok:hover {
    border-color: white;
}

.social-icon.linkedin:hover::before {
    background: var(--color-linkedin);
}

.social-icon.linkedin:hover {
    border-color: var(--color-linkedin);
}

/* ============================================================================
   LINKS SECTION
   ============================================================================ */

.links-section {
    flex: 1;
    margin-bottom: var(--spacing-2xl);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Link Buttons */
.link-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(23, 35, 64, 0.4), rgba(23, 35, 64, 0.2));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(23, 35, 64, 0.5);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Stagger animation delays */
.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }
.link-button:nth-child(6) { animation-delay: 0.6s; }

/* Button Hover Effect Overlay */
.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 158, 63, 0.2), transparent);
    transition: left var(--transition-slow);
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(23, 35, 64, 0.6);
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(23, 35, 64, 0.6), rgba(23, 35, 64, 0.4));
}

.link-button:active {
    transform: translateY(-2px);
}

/* Button Icon */
.button-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid rgba(191, 158, 63, 0.3);
}

.link-button:hover .button-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-secondary);
}

/* Button Content */
.button-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.button-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.3;
}

.button-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Button Arrow */
.button-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-full);
    background: rgba(23, 35, 64, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(191, 158, 63, 0.3);
}

.link-button:hover .button-arrow {
    background: var(--color-secondary);
    transform: translateX(4px);
    border-color: var(--color-secondary);
}

/* Primary Button (WhatsApp) */
.link-button.primary {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(23, 35, 64, 0.4));
    border-color: rgba(37, 211, 102, 0.4);
}

.link-button.primary .button-icon {
    background: var(--color-whatsapp);
    border-color: rgba(37, 211, 102, 0.5);
}

.link-button.primary:hover {
    border-color: var(--color-whatsapp);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), var(--shadow-glow-blue);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(23, 35, 64, 0.5));
}

/* Secondary Buttons with specific colors */
.link-button.instagram-btn:hover {
    border-color: var(--color-instagram);
}

.link-button.instagram-btn:hover .button-icon {
    background: var(--color-instagram-gradient);
}

.link-button.facebook-btn:hover {
    border-color: var(--color-facebook);
}

.link-button.facebook-btn:hover .button-icon {
    background: var(--color-facebook);
}

/* ============================================================================
   LOCATION SECTION
   ============================================================================ */

.location-section {
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.location-container {
    background: linear-gradient(135deg, rgba(23, 35, 64, 0.4), rgba(23, 35, 64, 0.2));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(23, 35, 64, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-secondary);
}

.section-title i {
    font-size: var(--font-size-2xl);
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    height: 350px;
    border: 2px solid rgba(23, 35, 64, 0.6);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    margin-top: auto;
    padding-top: var(--spacing-2xl);
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.footer-content {
    text-align: center;
    padding: var(--spacing-lg);
    border-top: 2px solid rgba(23, 35, 64, 0.5);
}

.footer-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.footer-powered {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.footer-powered a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-powered a:hover {
    color: var(--color-secondary-light);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablets */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 1.625rem;
        --font-size-2xl: 1.375rem;
        --spacing-2xl: 2rem;
        --spacing-xl: 1.5rem;
    }
    
    .main-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .link-button {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .button-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: var(--font-size-xl);
    }
    
    .map-wrapper {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
        --font-size-lg: 1rem;
        --spacing-xl: 1.25rem;
        --spacing-lg: 1rem;
    }
    
    .main-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .profile-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: var(--font-size-lg);
    }
    
    .link-button {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .button-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: var(--font-size-xl);
    }
    
    .button-title {
        font-size: var(--font-size-base);
    }
    
    .button-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .button-arrow {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .map-wrapper {
        height: 250px;
    }
    
    .location-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .profile-name {
        font-size: 1.375rem;
    }
    
    .profile-description {
        font-size: var(--font-size-sm);
    }
    
    .link-button {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ============================================================================
   ACCESSIBILITY & PRINT
   ============================================================================ */

/* Focus states for accessibility */
.link-button:focus,
.social-icon:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .profile-container,
    .link-button,
    .location-container {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    #particles-js {
        display: none;
    }
}