/* Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00d4ff;
    --accent-color: #667eea;
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.07);
    --text-light: #ffffff;
    --text-muted: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0f1419 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.text-muted {
    color: var(--text-muted) !important;
}

.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.profile-img:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: var(--gradient-secondary);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.card-custom {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    color: #ffffff;
}

.card-custom:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    color: #ffffff;
}

.skill-item p {
    color: #e2e8f0;
}

.skill-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.skill-item:hover p {
    color: #ffffff;
}

.skill-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
    color: #ffffff;
}

.tech-item:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: scale(1.05);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--dark-bg);
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #ffffff;
}

.project-card p {
    color: #e2e8f0;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.contact-item span,
.contact-item a {
    color: #ffffff !important;
}

.contact-item:hover {
    background: var(--gradient-primary);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 40px;
}

.footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.modal-content {
    background: rgba(10, 14, 39, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-body {
    color: #ffffff;
}

.modal-body p {
    color: #e2e8f0 !important;
}

.btn-close {
    filter: invert(1);
}

/* Modal de boas-vindas customizado com transparência */
.custom-welcome-modal {
    background: rgba(10, 14, 39, 0.85) !important;
    border: 1px solid var(--secondary-color) !important;
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

#particles-js {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

section, footer, nav, .container, .modal {
    position: relative;
    z-index: 1;
}

/* Liberação estrita do scroll e correção de backdrop do modal */
body:not(.modal-open) {
    overflow: auto !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

#welcomeModal {
    z-index: 1050 !important;
}


/* Complementos visuais para projetos e trilha de cloud */
.project-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(0, 102, 204, 0.12));
    color: var(--secondary-color);
    font-size: 1.6rem;
    box-shadow: inset 0 0 22px rgba(0, 212, 255, 0.06);
}
.project-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.project-card h3 { line-height: 1.25; }
.project-card .tech-item { margin: 0.25rem 0.2rem 0.25rem 0; padding: 0.45rem 0.7rem; font-size: 0.78rem; }
.project-card .btn { white-space: normal; }
@media (max-width: 576px) {
    .project-card .p-4 { padding: 1.25rem !important; }
    .project-symbol { flex-basis: 46px; width: 46px; height: 46px; border-radius: 13px; }
}
