/* Reset Básico e Fontes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: #121212;
    color: #e0e0e0;
}

/* Header e Navegação */
header {
    background-color: rgba(18, 18, 18, 0.85);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #121212;
    background-color: #00aaff;
}

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

/* Seções Gerais */
main > section {
    padding: 80px 20px;
}

main > section:nth-of-type(even) {
    background-color: #1a1a1a;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #00aaff;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* SEÇÃO 1: INÍCIO (HERO) */
.hero {
    padding-top: 120px;
    padding-bottom: 100px;
}

.home-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.home-image {
    flex-shrink: 0;
}

.foto-perfil {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #00aaff;
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.5);
}

.home-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #c0c0c0;
    max-width: 650px;
}

/* SEÇÃO 2: SERVIÇOS */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #00aaff;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #00aaff;
}

/* SEÇÃO 3: GALERIA DE CLIENTES */
.client-showcase {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

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

.client-header h3 {
    font-size: 2rem;
    color: #00aaff;
}

.client-source {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 5px;
}

.client-source img {
    height: 24px;
    width: auto;
}

.star-rating {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.star-rating .fas { /* Estrelas preenchidas */
    color: #ffc107; /* Cor dourada/amarela */
}

.star-rating .far { /* Estrelas vazias */
    color: #4a4a4a;
}

.client-feedback {
    background-color: #1e1e1e;
    border-left: 5px solid #00aaff;
    padding: 20px;
    margin: 0 0 30px 0;
    position: relative;
    font-style: italic;
}

.client-feedback::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: #00aaff;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 5px;
}

.client-feedback p {
    font-size: 1.1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.image-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* SEÇÃO 4: PROJETOS DE CÓDIGO */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project:hover {
    transform: translateY(-5px);
}

.project h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #00aaff;
}

.project p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn {
    background: linear-gradient(45deg, #00aaff, #0077cc);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
}

/* SEÇÃO 5: CONTATO */
.contact-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}
.social-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}
.social-icon:hover {
    transform: scale(1.2);
}
.social-icon.github-icon {
    filter: invert(1);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}
.back-to-top {
    display: inline-block;
    margin-bottom: 20px;
    color: #00aaff;
    text-decoration: none;
    font-weight: 600;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .home-container { flex-direction: column; text-align: center; }
    .home-text h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .image-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    nav ul { gap: 0; }
    nav ul li a { font-size: 1rem; padding: 0.5rem 0.6rem;}
    .home-text h1 { font-size: 2rem; }
    .foto-perfil { width: 150px; height: 150px; }
    .image-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Estilo para data do feedback */
.client-feedback footer {
    margin-top: 15px;
    text-align: right;
    font-size: 0.9rem;
    font-style: normal;
    color: #888;
}

.client-feedback footer i {
    margin-right: 8px;
}
