:root {
    --tech-primary: #00f0ff;
    --tech-secondary: #0066ff;
    --tech-dark: #0a0a1a;
    --tech-darker: #050510;
    --tech-light: rgba(255, 255, 255, 0.9);
    --tech-accent: #ff00f0;
    --tech-border: rgba(0, 240, 255, 0.3);
    --tech-highlight: rgba(0, 240, 255, 0.1);
    --tech-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    --tech-text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    --border-radius-tech: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--tech-darker);
    color: var(--tech-light);
    overflow-x: hidden;
    position: relative;
}

.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(var(--tech-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-dark) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -2;
}

.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--tech-darker) 100%);
    z-index: -1;
    opacity: 0.5;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tech-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.holographic-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.holographic-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--tech-primary) 20%,
        transparent 40%,
        transparent 60%,
        var(--tech-secondary) 80%,
        transparent 100%
    );
    animation: rotate 4s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-container i {
    font-size: 1.5rem;
    color: var(--tech-primary);
    position: relative;
    z-index: 2;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--tech-primary), var(--tech-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--tech-text-shadow);
    letter-spacing: 2px;
}

.tech-version {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--tech-accent);
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-divider {
    width: 1px;
    height: 30px;
    background: var(--tech-border);
}

.tech-btn {
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--tech-border);
    border-radius: var(--border-radius-tech);
    background: rgba(0, 102, 255, 0.1);
    color: var(--tech-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: var(--tech-shadow);
    transform: translateY(-2px);
}

.tech-btn i {
    font-size: 1rem;
}

.tech-btn.primary {
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-secondary));
    color: var(--tech-darker);
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    width: 100%;
    max-width: 400px;
    background: rgba(10, 10, 26, 0.7);
    border-radius: var(--border-radius-tech);
    border: 1px solid var(--tech-border);
    box-shadow: var(--tech-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
    border-color: var(--tech-primary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: help;
}

.tech-emoji {
    font-size: 1.5rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tech-primary);
    letter-spacing: 1px;
}

.tech-underline {
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--tech-primary), transparent);
    margin-left: 1rem;
    opacity: 0.5;
}

.section-header[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: var(--tech-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-tech);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    left: 0;
    bottom: -40px;
    border: 1px solid var(--tech-border);
    font-family: 'Roboto', sans-serif;
}

.section-header:hover[data-tooltip]::after {
    opacity: 1;
}

.tech-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--tech-border);
    border-radius: var(--border-radius-tech);
    background: rgba(0, 0, 0, 0.3);
    color: var(--tech-light);
    resize: vertical;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.tech-input:focus {
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.tech-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.tech-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--tech-primary);
    margin-top: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.tech-optional {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tech-optional.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tech-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-secondary));
    color: var(--tech-darker);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-floating-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.6);
}

.tech-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.tech-modal-content {
    background: var(--tech-dark);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius-tech);
    border: 1px solid var(--tech-border);
    max-width: 500px;
    position: relative;
    box-shadow: var(--tech-shadow);
}

.tech-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tech-modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--tech-primary);
    letter-spacing: 1px;
}

.tech-close-modal {
    color: var(--tech-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-close-modal:hover {
    transform: rotate(90deg);
    color: var(--tech-accent);
}

.tech-input-group {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tech-modal-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--tech-border);
    border-radius: var(--border-radius-tech);
    background: rgba(0, 0, 0, 0.3);
    color: var(--tech-light);
    font-family: 'Roboto', sans-serif;
}

.tech-modal-btn {
    width: 50px;
    border: 1px solid var(--tech-border);
    border-radius: var(--border-radius-tech);
    background: rgba(0, 102, 255, 0.2);
    color: var(--tech-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-modal-btn:hover {
    background: rgba(0, 240, 255, 0.3);
}

.tech-social-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.tech-social-btn:hover {
    transform: scale(1.1);
}

.tech-social-btn.whatsapp {
    background: #25D366;
}

.tech-social-btn.email {
    background: #D44638;
}

.tech-social-btn.teams {
    background: #6264A7;
}

/* Responsividade */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .tech-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .section {
        max-width: 100%;
    }
    
    .tech-floating-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Modo Clean */
body.clean-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

body.clean-mode .tech-overlay {
    display: none;
}

body.clean-mode .section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #333;
}

body.clean-mode .section-header h2 {
    color: #4361ee;
    text-shadow: none;
}

body.clean-mode .tech-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: #333;
}

body.clean-mode .tech-counter {
    color: #666;
}

body.clean-mode .tech-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

body.clean-mode .tech-btn.primary {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: white;
    animation: none;
}

body.clean-mode .app-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eee;
}

body.clean-mode .holographic-effect {
    display: none;
}

body.clean-mode .logo-container i {
    color: #4361ee;
}

body.clean-mode .tech-divider {
    background: #eee;
}

body, .section, .tech-input, .app-header, .tech-btn {
    transition: all 0.5s ease;
}

.holographic-icon, .holographic-effect {
    transition: all 0.5s ease;
}

/* =============== RESPONSIVIDADE MOBILE =============== */
@media (max-width: 768px) {
    /* Ajustes gerais */
    body {
        font-size: 14px;
    }
    
    /* Header */
    .app-header {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tech-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }
    
    .tech-divider {
        display: none;
    }
    
    /* Container principal */
    .container {
        padding: 0.5rem;
        gap: 0.8rem;
    }
    
    /* Seções */
    .section {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tech-underline {
        width: 100%;
        margin-left: 0;
    }
    
    /* Textareas */
    .tech-input {
        min-height: 100px;
    }
    
    /* Botão flutuante */
    .tech-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
    
    /* Modal */
    .tech-modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 1rem;
    }
    
    /* Anúncios (se adicionados) */
    .ad-middle {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
    
    /* Ajustes específicos para telas muito pequenas */
    @media (max-width: 480px) {
        .tech-btn {
            min-width: 45%;
        }
        
        .section-header h2 {
            font-size: 1rem;
        }
        
        .tech-input {
            padding: 0.8rem;
        }
    }
}