@import url('https://cdn-uicons.flaticon.com/2.4.2/uicons-brands/css/uicons-brands.css');
@import url('https://cdn-uicons.flaticon.com/2.4.2/uicons-solid-straight/css/uicons-solid-straight.css');

:root {
    --bg-color: #121212;
    --primary-color: #1f1f1f;
    --text-color: #ffffff;
    --accent-color: #bb86fc;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
#main-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Header height */
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.hero h1:hover {
    color: var(--accent-color);
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #a0a0a0;
    margin: 1rem 0;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.8rem; /* Increased font size for icons */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 1rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

section h2:hover {
    color: var(--accent-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem; /* Add space between title and content */
}

.about-image {
    width: 300px; /* Define a fixed width */
    height: 300px; /* Define a fixed height */
    flex-shrink: 0; /* Prevents the image container from shrinking */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 15px; /* Rounds the corners of the image */
}

.about-text {
    flex: 1;
}

.education-content {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
}

.education-item h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.skills-content {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.skill-category ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Experience Section */
#experience {
    padding: 6rem 0;
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 15px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: block;
    font-weight: 300;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.timeline-content ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.timeline-item:hover {
    transform: scale(1.02);
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Adicionado para posicionamento absoluto dos filhos */
    padding-bottom: 4rem; /* Espaço para o botão ancorado */
}

.project-card:hover {
    animation: gentle-shake 0.4s ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-card i {
    display: block;
    text-align: center;
    font-size: 3rem;
    padding-top: 1.5rem;
    color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    text-align: center;
}

.project-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #a0a0a0;
}

.project-card a {
    position: absolute; /* Ancorar o botão */
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.project-card a:hover {
    background-color: #a764ff;
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 2rem 0;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #a764ff;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--primary-color);
    margin-top: 4rem;
    position: relative; /* Para posicionar o contador */
}

#view-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #a0a0a0;
}

#view-counter i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    #main-header .container {
        flex-direction: column;
    }
    nav ul li {
        margin: 0 0.5rem;
    }
}

/* Animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gentle-shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1.5deg);
  }
  75% {
    transform: rotate(-1.5deg);
  }
}
