:root {
    --primary-color: #7F5AF0;
    --text-color: #E2E2E2;
    --text-secondary: #94A1B2;
    --dark-bg: #16161A;
    --darker-bg: #0F0F12;
    --card-bg: #242629;
    --accent: #7F5AF0;
    --accent-light: #A78BFA;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== */
/* HEADER STYLES */
/* ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(22, 22, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a:hover,
nav a:focus {
    color: var(--text-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ==================== */
/* MAIN CONTENT STYLES */
/* ==================== */
section {
    padding: 80px 0;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-color);
    letter-spacing: -1px;
    line-height: 1.2;
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.highlight {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 10px;
}

.styled-list {
    list-style: none;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.styled-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.styled-list i {
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--primary-color);
    font-size: 0.6rem;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

.profile-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.photo-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    z-index: 1;
    transition: all 0.3s ease;
}

.photo-wrapper:hover .photo-decoration {
    top: -15px;
    right: -15px;
}

.hobby-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.hobby-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(127, 90, 240, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card,
.hobby-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover,
.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(127, 90, 240, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: white;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(127, 90, 240, 0.1);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

/* ==================== */
/* CERTIFICATIONS STYLES */
/* ==================== */
#certifications {
    padding-bottom: 60px;
}

.certifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.certifications-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 10px 0;
    will-change: transform;
    /* Melhora performance da animação */
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-prev,
.carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(127, 90, 240, 0.1);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.certification-card {
    width: 260px;
    height: 320px;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    flex-shrink: 0;
    position: relative;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(127, 90, 240, 0.2);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-image {
    height: 150px;
    padding: 20px;
    background: rgba(127, 90, 240, 0.05);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certification-card:hover .certification-image img {
    transform: scale(1.05);
}

.certification-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certification-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
    /* Altura mínima para 2 linhas */
}

.certification-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.certification-date {
    margin-top: auto;
    /* Empurra para baixo */
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==================== */
/* FOOTER STYLES */
/* ==================== */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 30px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 80px;
}

.social-links a i {
    font-size: 1.8rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-links a span {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.social-links a:hover i {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* ==================== */
/* JS ELEMENTS */
/* ==================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

#about .about-text {
    transition-delay: 0.2s;
}

#about .about-photo {
    transition-delay: 0.4s;
}

.social-links a {
    transition-delay: calc(0.1s * var(--i));
}

.social-links a {
    --i: 0;
}

.social-links a:nth-child(1) {
    --i: 1;
}

.social-links a:nth-child(2) {
    --i: 2;
}

.social-links a:nth-child(3) {
    --i: 3;
}

.social-links a:nth-child(4) {
    --i: 4;
}

/* ==================== */
/* RESPONSIVE STYLES */
/* ==================== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    nav ul {
        gap: 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-wrapper {
        margin: 0 auto;
        max-width: 350px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    section {
        padding: 60px 0;
    }

    .carousel-nav {
        display: none;
        /* Esconde setas em mobile */
    }

    .carousel-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .certification-card {
        min-width: 85%;
        scroll-snap-align: start;
    }

    .certification-image img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 15px;
    }

    .social-links {
        gap: 20px;
    }

    .social-links a {
        width: 70px;
    }

    .certification-card {
        min-width: 90%;
    }
}