/* --- PALETA DE CORES --- 
   UCLA Blue: #55768C (Principal)
   Maroon: #B83556 (Destaque)
   Lumber: #FADED2 (Footer/Acentos)
   Milk Chocolate: #845747 (Texto Suave)
---------------------------- */

html {
    scroll-behavior: smooth;
}

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

/* Correção para evitar o espaço branco lateral */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #faf9f8;
    color: #444;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #55768C;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #B83556;
    margin: 15px auto;
}

/* --- NAVEGAÇÃO --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #55768C;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s;
    font-weight: 400;
    padding-bottom: 4px;
}

nav ul li a.active, nav ul li a:hover {
    color: #B83556;
    border-bottom: 2px solid #B83556;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('assets/praia.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.hero-intro {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0px;
    font-weight: 300;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.hero-description {
    color: #eee;
    font-size: 1.1rem;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-contact-style {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Permite que ícones desçam se não houver espaço */
}

.hero-contact-style .contact-item {
    color: #fff;
    text-decoration: none;
}

.hero-contact-style .icon {
    border: 1px solid #fff;
    color: #fff;
}

.hero-contact-style .contact-item:hover .icon {
    background: #fff;
    color: #55768C;
}

/* --- SOBRE MIM --- */
.about {
    padding: 100px 8%;
    background: #faf9f8;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.about-img {
    flex: 1;
    max-width: 400px;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px #B83556;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

/* --- EDUCAÇÃO --- */
.education {
    padding: 120px 8%;
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid #f0f0f0;
    padding-left: 50px;
}

.edu-item {
    margin-bottom: 60px;
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -57px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #B83556;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #B83556;
}

.year {
    color: #B83556;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.edu-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.edu-item p {
    color: #777;
}

/* --- SKILLS --- */
.skills {
    padding: 100px 8%;
    background: #faf9f8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    border-top: 4px solid #55768C; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.skill-category:nth-child(even) {
    border-top-color: #B83556;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #55768C;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.skill-category h3 i {
    color: #B83556;
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #fdfdfd;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #eee;
    color: #555;
}

/* --- PROJETOS --- */
.projects {
    padding: 120px 8%;
    background: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(85, 118, 140, 0.12);
}

.card-img {
    height: 240px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-body {
    padding: 30px;
}

/* --- CONTATO --- */
.contact {
    padding: 100px 8%;
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    text-decoration: none;
    color: #4a4a4a;
    transition: all 0.3s;
    width: 120px;
}

.icon {
    width: 70px;
    height: 70px;
    border: 1px solid #55768C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.6rem;
    color: #55768C;
    transition: all 0.3s;
}

.contact-item:hover .icon {
    background: #55768C;
    color: white;
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    background: #FADED2;
    text-align: center;
    padding: 60px 20px;
    font-size: 0.85rem;
    color: #845747;
}

/* --- MODAL --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* --- ESTILOS ADICIONADOS DO MODAL --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #B83556;
}

#modal-title {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#modal-description {
    margin-bottom: 25px;
    color: #555;
}

.modal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #55768C;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.modal-btn:hover {
    background-color: #B83556;
    color: #fff;
    transform: translateY(-2px);
}

/* --- MEDIA QUERIES (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    nav ul { 
        display: none;
    }

    .hero-content h1 { 
        font-size: 2.5rem; 
    }

    .hero-contact-style {
        gap: 20px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-img {
        max-width: 280px;
    }

    .about-img img {
        box-shadow: 10px 10px 0px #B83556;
    }

    .about-text .section-title::after {
        margin: 15px auto;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .timeline { 
        padding-left: 30px; 
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 25px;
    }

    .modal-links {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        width: 100%;
    }
}