:root {
    --primary-color: #6f42c1;
    --primary-color-darker: #5a32a3;
    --dark-bg: #121212;
    --light-dark-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: #2a2a2a;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-placeholder {
    width: 100%;
    height: 250px; /* Mesma altura que você usava no placeholder.com */
    display: flex;
    align-items: center;     /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    background: linear-gradient(45deg, var(--primary-color-darker), var(--primary-color)); /* Gradiente roxo do seu tema */
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.navbar {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.4s ease-in-out;
}

.navbar.scrolled {
    background-color: var(--light-dark-bg);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

section {
    padding-top: 100px;
    padding-bottom: 100px;
}

section h2 {
    margin-bottom: 20px;
}

section h2 + hr {
    width: 100px;
    height: 4px;
    border: 0;
    opacity: 1;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.bg-light-dark {
    background-color: var(--light-dark-bg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 80px; /* Garante que o conteúdo não fique sob a navbar */
}

.hero h1 {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    animation: fadeInSlideUp 1s ease-out 0.2s forwards;
    opacity: 0; /* Inicia oculto para animação */
}

.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #8e44ad);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(111, 66, 193, 0.3);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

.social-links {
    animation: fadeInSlideUp 1.2s ease-out 0.4s forwards;
    opacity: 0; /* Inicia oculto para animação */
}

.social-links .social-icon {
    font-size: 2rem;
    color: #fff;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links .social-icon:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Skills Section */
.skill-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(111, 66, 193, 0.4);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* Projects Section */
.project-card {
    background-color: var(--card-bg);
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(111, 66, 193, 0.3);
}

.project-card .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card .card-title {
    color: #fff;
    font-weight: 600;
}

.project-card .card-text {
    color: var(--text-muted);
    flex-grow: 1;
}

.project-card .btn {
    margin-top: auto;
    width: fit-content;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.5);
}

/* Contact Section */
#contact .lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #0c0c0c;
}
footer p {
    margin: 0;
    color: var(--text-muted);
}