/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a0f23;
    --accent: #8b0000;
    --accent-hover: #a50000;
    --text-primary: #e0e0e0;
    --text-secondary: #b8b8b8;
    --highlight: #b8860b;
    --card-bg: #212121;
    --transition-slow: 0.5s;
    --transition-fast: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Grenze Gotisch', serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast) ease;
}

/* Cursor Personalizado */
.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(139, 0, 0, 0.7);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.cursor-trail {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(139, 0, 0, 0.2);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

/* Animação de Entrada */
/* Animação de Entrada com GIF */
.intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
    background-color: #000; /* Fundo preto para áreas não cobertas pelo GIF */
}

.gif-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-gif {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Garante que o GIF cubra toda a tela */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3); /* Overlay semi-transparente opcional */
}

.logo-reveal {
    opacity: 0;
    animation: revealLogo 2s ease forwards 1s;
}

.logo-text {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3rem;
    color: var(--text-primary);
    letter-spacing: 0.5rem;
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 2s;
}

/* Header e Navegação */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 900;
    text-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color var(--transition-fast) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--highlight);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: width var(--transition-fast) ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.cta-button {
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 0.7rem 1.5rem;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color var(--transition-fast) ease, transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(139, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Seções Principais */
section {
    min-height: 100vh;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.background-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 15, 35, 0.5) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.content-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
}

.highlight {
    color: var(--highlight);
    text-shadow: 0 0 5px rgba(184, 134, 11, 0.5);
}

.section-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

/* Home Section */
#home {
    background: url('https://images.unsplash.com/photo-1478760329108-5c97512f5764?ixlib=rb-4.0.3&auto=format&fit=crop&w=1974&q=80') no-repeat center center;
    background-size: cover;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: 0;
}

.scroll-btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--highlight);
    color: var(--highlight);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
}

.scroll-btn:hover {
    background-color: var(--highlight);
    color: var(--primary-bg);
}

.scroll-btn i {
    margin-left: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sobre Section */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.2);
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

.card:hover .card-front, .card:hover .card-back {
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.2);
    border: 1px solid rgba(184, 134, 11, 0.4);
}

.card-front {
    color: var(--text-primary);
}

.card-back {
    transform: rotateY(180deg);
    background-color: var(--secondary-bg);
}

.card-front i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.card-front h3 {
    font-size: 1.5rem;
}

.card-back p {
    font-size: 1.1rem;
    text-align: center;
}

/* Comunidade Section */
.social-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-card {
    display: flex;
    width: 400px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    background-color: var(--accent);
    color: var(--text-primary);
    font-size: 2.5rem;
    transition: background-color var(--transition-fast) ease;
}

.social-card:hover .social-icon {
    background-color: var(--accent-hover);
}

.social-info {
    padding: 1.5rem;
    flex: 1;
}

.social-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.social-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Habilidades Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skill-category {
    width: 100%;
}

.category-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--highlight);
}

.skill-bar {
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.skill-progress {
    position: relative;
    height: 40px;
    width: 100%;
}

.skill-name {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    z-index: 1;
    font-size: 1rem;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Will be set by JS */
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    transition: width 1.5s ease-out;
}

/* Footer */
footer {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 2rem 5%;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast) ease;
}

.footer-links a:hover {
    color: var(--highlight);
}

/* Responsividade */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .social-container {
        flex-direction: column;
        align-items: center;
    }
    
    .social-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-slow) ease;
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 2rem;
    }
    
    .card {
        width: 280px;
    }
    
    .section-description {
        font-size: 1rem;
    }
}