:root {
--primary-color: #FFD700;
--secondary-color: #FF0000;
--background-color: #000000;
--text-color: #FFFFFF;
--card-bg-color: rgba(255, 255, 255, 0.1);
--whatsapp-color: #25D366;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Poppins', sans-serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
}

a {
text-decoration: none;
color: var(--primary-color);
}

header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 1rem 2rem;
background-color: rgba(0, 0, 0, 0.8);
z-index: 1000;
border-bottom: 2px solid var(--secondary-color);
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
font-size: 2rem;
font-weight: bold;
color: var(--primary-color);
}

.logo:hover{
box-shadow: 4.5px 3.5px 2.5px var(--secondary-color);
transition: 1s;
}

.nav-links {
display: flex;
list-style: none;
}

.nav-links li {
margin-left: 2rem;
}

.nav-links li a {
color: var(--text-color);
transition: color 0.3s ease;
}

.nav-links li a:hover {
color: var(--primary-color);
}

.hamburger {
display: none;
background: none;
border: none;
cursor: pointer;
}

.hamburger span {
display: block;
width: 25px;
height: 3px;
background-color: var(--text-color);
margin: 5px 0;
transition: all 0.3s ease;
}

.parallax {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

/* Configuração para o Conteúdo do #home */
#home {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1)), 
url('img/a-minimalistic-logo-design-for-eme-techecon-in-gol-McC4OZgSTRe7ECdwK4CQlg-5SlXpR12QACy640jXvNFSQ.jpeg?height=400&width=1024');
background-attachment: fixed;
background-size: cover;
background-position: center;
}

/* Responsividade para Conteúdos de Texto */
#home .content {
max-width: 800px;
padding: 0 1rem;
}

h1, h2, h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}

.cta-button {
display: inline-block;
padding: 0.8rem 1.5rem;
margin-top: 3rem;
margin-bottom: 3rem;
background-color: var(--secondary-color);
color: var(--text-color);
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}

.cta-button:hover {
background-color: #CC0000;
}

section {
padding: 4rem 2rem;
}

h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
text-align: center;
color: var(--primary-color);
}

.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.service-card {
background-color: var(--card-bg-color);
padding: 2rem;
border-radius: 10px;
text-align: center;
transition: transform  0.3s ease;
}

.service-card:hover {
transform: translateY(-5px);
box-shadow: 9px 7px 5px var(--secondary-color);
}

.service-card i {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 1rem;
}

#about {
background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/dev.png?height=1080&width=1920');
}

.skills {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}

.skill {
background-color: var(--primary-color);
color: var(--background-color);
padding: 0.5rem 1rem;
border-radius: 20px;
font-weight: bold;
}

.resume-content {
max-width: 800px;
margin: 0 auto;
}

.collapse-item {
margin-bottom: 1rem;
}

.collapse-button {
width: 100%;
padding: 1rem;
background-color: var(--card-bg-color);
color: var(--text-color);
border: none;
border-radius: 5px;
font-size: 1rem;
text-align: left;
cursor: pointer;
transition: background-color 0.3s ease;
display: flex;
justify-content: space-between;
align-items: center;
}

.collapse-button:hover {
background-color: var(--primary-color);
color: var(--background-color);
}

.collapse-button i {
transition: transform 0.3s ease;
}

.collapse-button[aria-expanded="true"] i {
transform: rotate(180deg);
}

.collapse-content {
display: none;
padding: 1rem;
background-color: var(--card-bg-color);
border-radius: 0 0 5px 5px;
}

.collapse-content.active {
display: block;
}

.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.portfolio-item {
position: relative;
overflow: hidden;
border-radius: 10px;
}

.zoom-image {
width: 100%;
height: auto;
transition: transform 0.4s ease;
}

.portfolio-item:hover .zoom-image {
transform: scale(1.1);
}

.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
opacity: 1;
}

.overlay h3 {
color: var(--primary-color);
margin-bottom: 0.5rem;
}

.overlay p {
color: var(--text-color);
}

.card {
background-color: var(--card-bg-color);
border-radius: 10px;
overflow: hidden;
max-width: 600px;
margin: 0 auto;
}

.card-image {
width: 100%;
height: auto;
}

.card-content {
padding: 2rem;
}

#contact-form {
display: grid;
gap: 1rem;
max-width: 600px;
margin: 0 auto;
}

#contact-form label {
display: block;
margin-bottom: 0.5rem;
}

#contact-form input,
#contact-form textarea {
width: 100%;
padding: 0.8rem;
border: none;
border-radius: 5px;
background-color: var(--card-bg-color);
color: var(--text-color);
}

#contact-form textarea {
resize: vertical;
min-height: 150px;
}

footer {
background-color: rgba(0, 0, 0, 0.8);
border-top: 2px solid var(--secondary-color);
padding: 2rem;
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}

.social-links a {
font-size: 1.5rem;
margin-left: 1rem;
color: var(--text-color);
transition: color 0.3s ease;
}

.social-links a:hover {
color: var(--primary-color);
}

.whatsapp-button {
position: fixed;
bottom: 20px;
left: 20px;
background-color: var(--whatsapp-color);
color: #FFFFFF;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 2rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease;
z-index: 1000;
}

.whatsapp-button:hover {
transform: scale(1.1);
}

.toast {
position: fixed;
bottom: 20px;
right: 20px;
background-color: var(--primary-color);
color: var(--background-color);
padding: 1rem;
border-radius: 5px;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1000;
}

.toast.show {
opacity: 1;
}

@media screen and (max-width: 768px) {
.parallax {
background-attachment: scroll; /* Desativa parallax em dispositivos móveis */
background-size: contain; /* Ajusta para que a imagem se adapte à tela */
background-position: center;
}

#about {
background-size: contain; /* Muda para 'contain' para mostrar toda a imagem sem cortes */
background-attachment: scroll; /* Desativa o efeito fixed em telas pequenas */
}

#home {
background-attachment: scroll;
background-size: contain;
background-position: center;
}

.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: var(--background-color);
flex-direction: column;
align-items: center;
padding: 1rem 0;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    margin: 1rem 0;
}

.hamburger {
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.footer-content {
    flex-direction: column;
    gap: 1rem;
}

footer {
text-align: center;
}

}

@media screen and (max-width: 480px) {
.logo {
    font-size: 1.5rem;
}

h1 {
    font-size: 1.2rem;
}

h2 {
    font-size: 1.8rem;
}


.cta-button {
    margin: 1rem 0.5rem;
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service-grid {
    grid-template-columns: 1fr;
}

.portfolio-grid {
    grid-template-columns: 1fr;
}
.footer-content {
    flex-direction: column;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}
}