/* ==============================================
        VARIÁVEIS E RESET
        ============================================== */
:root {
    --primary-color: #8a2be2;
    --secondary-color: #00ccff;
    --dark-color: #0a0a1a;
    --darker-color: #050510;
    --light-color: #f0f0ff;
    --accent-color: #ff2a6d;
    --gradient-1: linear-gradient(135deg, #8a2be2, #00ccff);
    --gradient-2: linear-gradient(135deg, #ff2a6d, #ffcc00);
    --gradient-3: linear-gradient(135deg, #00ccff, #8a2be2);
    --gradient-dark: linear-gradient(135deg, #050510, #0a0a1a);
    --shadow-glow: 0 0 20px rgba(138, 43, 226, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(0, 204, 255, 0.5);
    --shadow-glow-pink: 0 0 20px rgba(255, 42, 109, 0.5);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==============================================
        UTILITÁRIOS
        ============================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* ==============================================
        ANIMAÇÕES
        ============================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ==============================================
        PRELOADER (APERFEIÇOADO)
        ============================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preload-content {
    text-align: center;
}

.loader {
    width: 70px;
    height: 70px;
    position: relative;
    margin: 0 auto 20px;
}

.loader-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--secondary-color);
    font-size: 1.2rem;
    text-align: center;
    animation: pulse 1.5s infinite;
}

/* ==============================================
        HEADER E NAVEGAÇÃO (ATUALIZADO)
        ============================================== */
.main-header {
    background: rgba(10, 10, 26, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

/* Menu Desktop */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.desktop-nav a:hover {
    background: rgba(138, 43, 226, 0.2);
    color: var(--secondary-color);
}

/* Botões de Ação do Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    position: relative;
    color: var(--light-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
}

.social-link .tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.social-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Botão Menu Mobile */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==============================================
        MENU MOBILE (SIDEBAR)
        ============================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--darker-color);
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 10px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--light-color);
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: rgba(138, 43, 226, 0.2);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.mobile-nav i {
    width: 20px;
    text-align: center;
}

.mobile-social {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-social .social-icon {
    color: var(--light-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-social .social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ==============================================
        HERO AREA
        ============================================== */
.hero-area {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 70px;
}

.hero-thumbnail {
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(240, 240, 255, 0.9);
    margin-bottom: 20px;
}

.line {
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin-bottom: 30px;
    border-radius: 2px;
}

/* ==============================================
        GALERIA DE BOSSES
        ============================================== */
.descronic_-projects-area {
    padding: 80px 0;
    background: rgba(14, 207, 185, 0.1);
}

.descronic_-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.single_gallery_item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 3/4;
}

.single_gallery_item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(138, 43, 226, 0.3);
}

.gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single_gallery_item:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.gallery-content a {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Botões */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.descronic_-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 40px;
}

.portfolio-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

/* ==============================================
        MODAL DE DETALHES DO BOSS
        ============================================== */
.boss-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boss-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.boss-modal {
    background: var(--darker-color);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.boss-modal.active {
    transform: scale(1);
}

.modal-image-section {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.modal-content-section {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.modal-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.modal-title p {
    color: rgba(240, 240, 255, 0.7);
    font-size: 1.1rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--light-color);
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(240, 240, 255, 0.7);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--secondary-color);
    background: rgba(138, 43, 226, 0.1);
}

.tab-btn.active {
    color: var(--secondary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: rgba(138, 43, 226, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-item p, .info-item ul {
    color: rgba(240, 240, 255, 0.9);
    line-height: 1.6;
}

.info-item ul {
    padding-left: 20px;
    list-style-type: disc;
}

.info-item li {
    margin-bottom: 5px;
}

.stat-box {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: rgba(240, 240, 255, 0.8);
    font-weight: 600;
}

.stat-value {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-bar {
    height: 8px;
    background: rgba(240, 240, 255, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    width: 0%;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==============================================
        RESPONSIVIDADE
        ============================================== */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .boss-modal {
        flex-direction: column;
        max-height: 85vh;
    }
    
    .modal-image-section {
        height: 300px;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-area {
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 30px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .boss-modal {
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-content-section {
        padding: 20px;
    }
    
    .modal-title h2 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        width: 100%;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .modal-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .descronic_-portfolio {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Classes utilitárias adicionais */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.equalize {
    flex: 1;
}

.bg-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
