/* ========================================
   VARIÁVEIS CSS - TEMA HACKER ROSA NEON ESCURO
======================================== */
:root {
    /* Cores principais - Tema mais escuro */
    --neon-pink: #ff2a6d;
    --neon-purple: #d16ba5;
    --neon-blue: #7a08fa;
    --neon-light-pink: #ff6b9d;
    --neon-dark-pink: #cc1f56;
    
    /* Efeitos de brilho */
    --neon-glow-pink: 0 0 10px rgba(255, 42, 109, 0.8), 0 0 20px rgba(255, 42, 109, 0.5);
    --neon-glow-purple: 0 0 10px rgba(209, 107, 165, 0.8), 0 0 20px rgba(209, 107, 165, 0.5);
    --neon-glow-intense: 0 0 20px rgba(255, 42, 109, 1), 0 0 40px rgba(255, 42, 109, 0.8);
    
    /* Texto */
    --text-primary: #ffffff;
    --text-secondary: #f1d4e5;
    --text-accent: #ff8db3;
    --text-muted: #b8a9c9;
    
    /* Backgrounds - Mais escuros */
    --glass: rgba(0, 0, 0, 0.4);
    --glass-hover: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(0, 0, 0, 0.7);
    --background: linear-gradient(135deg, #05010a 0%, #0f0515 30%, #0a0f1f 70%, #05010a 100%);
    
    /* Transições e animações */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(255, 42, 109, 0.3);
    
    /* Z-index layers */
    --z-background: -2;
    --z-content: 1;
    --z-overlay: 100;
    --z-modal: 1000;
    --z-toast: 2000;
}

/* ========================================
   RESET E BASE STYLES
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Forçar fundo escuro no iOS */
    background-color: #05010a;
}

/* Garantir que todos os elementos tenham fundo escuro */
body * {
    color-scheme: dark;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LOADING SCREEN - CORRIGIDO PARA MOBILE
======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: linear-gradient(135deg, #000 0%, #0a0515 50%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 300px;
    width: 90%;
    padding: 0 1rem;
}

.loading-logo {
    font-size: 3rem;
    color: var(--neon-pink);
    margin-bottom: 1.5rem;
    animation: loadingPulse 2s infinite;
}

.loading-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-light-pink);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: loadingText 3s infinite;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border-radius: 2px;
    animation: loadingProgress 3s ease-out;
}

/* ========================================
   MATRIX RAIN
======================================== */
#matrixRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    opacity: 0.6;
}

/* ========================================
   HACK ANIMATION - CORRIGIDO PARA MOBILE
======================================== */
.hack-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    overflow: hidden;
}

.hack-animation.active {
    opacity: 1;
    visibility: visible;
}

.hack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.hack-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.binary-digit {
    position: absolute;
    color: var(--neon-pink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    opacity: 0;
    animation: binaryFall 4s linear infinite;
    text-shadow: 0 0 10px currentColor;
}

.hack-terminal {
    position: relative;
    width: 95%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--neon-pink);
    border-radius: 12px;
    box-shadow: var(--neon-glow-pink), inset 0 0 50px rgba(255, 42, 109, 0.1);
    animation: terminalGlow 2s ease-out;
    margin: 1rem;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 42, 109, 0.1);
    border-bottom: 1px solid var(--neon-pink);
    border-radius: 10px 10px 0 0;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: controlPulse 2s infinite;
}

.control-dot.minimize { background: #ffbd2e; }
.control-dot.maximize { background: #28ca42; }
.control-dot.close { background: var(--neon-pink); }

.terminal-content {
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.hack-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.prompt {
    color: var(--neon-purple);
}

.command {
    color: var(--neon-pink);
    animation: typewriter 2s steps(20) infinite;
}

.progress-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.status {
    color: var(--text-accent);
    animation: statusBlink 1.5s infinite;
    font-size: 0.85rem;
}

/* ========================================
   LAYOUT - DESKTOP FIXO PARA MOBILE
======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2.5rem;
    min-height: 100vh;
    position: relative;
    z-index: var(--z-content);
}

/* ========================================
   PROFILE SECTION
======================================== */
.profile {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: slideInLeft 0.8s ease-out;
    position: sticky;
    top: 2.5rem;
}

.profile-image-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-pink);
    box-shadow: var(--neon-glow-pink);
    transition: var(--transition);
    animation: profileFloat 6s ease-in-out infinite;
    margin: 0 auto;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-glow-intense);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 42, 109, 0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
    animation: nameGlow 4s ease-in-out infinite;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.profile-company {
    color: var(--neon-light-pink);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 42, 109, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 42, 109, 0.2);
    transition: var(--transition);
}

.stat:hover {
    background: rgba(255, 42, 109, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-pink);
    text-shadow: var(--neon-glow-pink);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(255, 42, 109, 0.3);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 15px rgba(255, 42, 109, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-title i {
    font-size: 1.3rem;
    animation: iconPulse 3s infinite;
}

/* ========================================
   LINKS SECTION
======================================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

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

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 42, 109, 0.2);
}

.link-card:focus {
    outline: 2px solid var(--neon-pink);
    outline-offset: 3px;
}

.link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    background: rgba(255, 42, 109, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 1.5rem;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 42, 109, 0.2);
    box-shadow: var(--neon-glow-pink);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-text {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.link-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.link-arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--neon-pink);
}

/* Platform-specific colors */
.link-card.portfolio:hover .link-icon { color: #4CAF50; }
.link-card.youtube:hover .link-icon { color: #FF0000; }
.link-card.linkedin:hover .link-icon { color: #0077B5; }
.link-card.github:hover .link-icon { color: #333; }
.link-card.instagram:hover .link-icon { color: #E4405F; }
.link-card.whatsapp:hover .link-icon { color: #25D366; }

/* ========================================
   CONTACT SECTION
======================================== */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

.contact-item.copyable {
    cursor: pointer;
}

.contact-item.copyable::after {
    content: 'Clique para copiar';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition);
}

.contact-item.copyable:hover::after {
    opacity: 1;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-pink);
    transform: translateX(3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    background: rgba(255, 42, 109, 0.1);
    border-radius: 10px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

/* ========================================
   NFC BADGE
======================================== */
.nfc-badge {
    margin-top: 1.5rem;
    background: rgba(255, 42, 109, 0.1);
    border: 2px solid var(--neon-pink);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.nfc-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.nfc-icon {
    font-size: 1.3rem;
    color: var(--neon-pink);
    animation: nfcPulse 2s infinite;
}

.nfc-text {
    flex: 1;
}

.nfc-title {
    display: block;
    font-weight: 700;
    color: var(--neon-pink);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.nfc-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nfc-waves {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: nfcWaves 2s infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    animation-delay: 1s;
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--neon-pink);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg), var(--neon-glow-pink);
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    color: var(--neon-pink);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--neon-pink);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes loadingText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes terminalGlow {
    0% {
        box-shadow: 0 0 5px var(--neon-pink);
    }
    50% {
        box-shadow: 0 0 30px var(--neon-pink), 0 0 50px rgba(255, 42, 109, 0.3);
    }
    100% {
        box-shadow: var(--neon-glow-pink);
    }
}

@keyframes controlPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes typewriter {
    0%, 100% { border-right: 2px solid var(--neon-pink); }
    50% { border-right: 2px solid transparent; }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes nameGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 42, 109, 0.5); }
    50% { text-shadow: 0 0 30px rgba(255, 42, 109, 0.8), 0 0 40px rgba(209, 107, 165, 0.5); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes nfcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes nfcWaves {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   Ajustes específicos para mobile
======================================== */
@media (max-width: 767px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .profile {
        position: static;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .card-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .link-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .contact-grid {
        gap: 0.75rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Ajustes para textos longos em mobile */
    .contact-value {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .nfc-badge {
        padding: 1.25rem;
    }
    
    /* Melhorias de toque para mobile */
    .link-card, 
    .contact-item.copyable {
        min-height: 60px;
    }
    
    /* Ajuste no matrix rain para mobile */
    #matrixRain {
        opacity: 0.4;
    }
    
    /* CORREÇÕES ESPECÍFICAS PARA MOBILE - VIEWPORT HEIGHT */
    .loading-screen,
    .hack-animation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
    
    /* Toast ajustado para mobile */
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        width: 100%;
    }
    
    /* Terminal responsivo para mobile */
    .terminal-content {
        padding: 1rem 0.75rem;
    }
    
    .hack-text {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .status {
        font-size: 0.75rem;
    }
    
    .hack-terminal {
        width: 95%;
        margin: 1rem;
    }
}

/* ========================================
   TABLET (768px - 1023px)
   Mantém o layout desktop mas com ajustes
======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .profile {
        padding: 1.5rem;
    }
    
    .profile-img {
        width: 140px;
        height: 140px;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AJUSTES PARA TELAS MAIORES
======================================== */
@media (max-width: 1200px) {
    .container {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* ========================================
   ACCESSIBILITY & PREFERENCES
======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .profile-img,
    .nfc-icon,
    .status-dot {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    :root {
        --glass: rgba(0, 0, 0, 0.9);
        --glass-border: rgba(255, 255, 255, 0.8);
        --text-secondary: #ffffff;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    #matrixRain,
    .hack-animation,
    .loading-screen {
        display: none;
    }
    
    .profile,
    .card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .profile-name {
        color: black;
        text-shadow: none;
    }
    
    .link-card:hover {
        transform: none;
    }
}

/* ========================================
   CORREÇÃO DE CORES - GARANTIR TEMA ESCURO NO iOS
======================================== */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #05010a 0%, #0f0515 30%, #0a0f1f 70%, #05010a 100%) !important;
        color: #ffffff !important;
    }
    
    .profile,
    .card {
        background: rgba(0, 0, 0, 0.4) !important;
        color: #ffffff !important;
    }
}

/* Forçar tema escuro em todos os navegadores */
body {
    background-color: #05010a !important;
    color: #ffffff !important;
}

/* Garantir que inputs e outros elementos herdem o tema escuro */
input, textarea, select {
    color-scheme: dark;
}

/* ========================================
   CORREÇÕES ESPECÍFICAS PARA iOS SAFARI
======================================== */
@supports (-webkit-touch-callout: none) {
    .loading-screen,
    .hack-animation {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
    
    /* Garantir que overlays cubram toda a tela no iOS */
    .hack-animation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Prevenir scroll durante animação no iOS */
    body.no-scroll {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
}