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

/* Body and overall styling */
body {
    font-family: 'Dangrek', sans-serif;
    background-color: #000000;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    margin-top: 5vh;
    animation: fadeIn 3s ease-out forwards; /* 3s é o tempo que a animação leva para terminar */
    opacity: 1; /* Inicialmente invisível */
}

/* Main container for centering content */
.main-container {
    width: 50%; /* 50% width of the page */
    margin: 0 auto; /* Center the container */
    padding: 20px;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 5vh;
}

/* Profile Section */
.profile-section {
    margin-top: 10%;
    text-align: center;
    margin-bottom: 10vh;
    height: 100%;
}

@keyframes bounce {
    0%{
        transform: translateY(0);
    }
    20%{
        transform: translateY(-4%);
    }
    70%{
        transform: translateY(+4%);
    }
    100%{
        transform: translateY(0);
    }
}

.gallery-container{
    margin-top: 30vh;
    width: 50%;
    height: 70%;
    margin-left: auto;
    margin-right: auto;
}

.gallery{
 
    margin-top: 30vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 3vh;
}

.gallery img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2%; 
}

.gallery-item{
    width: 100%;
    height: 45vh;
    padding: 10px;
        display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:hover img {
    transform: scale(1.1);
   border-radius: 4.4%;
}



.profile-picture {
    width: 30vh;
    height: 30vh;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    animation: bounce 1.2s ease;
}

.profile-section h1 {
    font-size: 3rem;
    color: #ffffff;
}

.backPNG{
    width: 5vh; /* Set image width */
    height: auto; /* Keep the aspect ratio */
    margin-left: 5vh;
    border-radius: 10px; /* Round corners of the image */
    transition: transform 0.3s ease; /* Add smooth transition on hover */
    cursor: pointer;
  max-width: 10vh;
}

  a:hover .backPNG {
    transform: scale(1.1); /* Enlarge image when hovering over the link */
}

.backPNG:hover{ 
transform: scale(1.1); /* Enlarge image when hovering over the link */
}

/* Email Icon and Popup */
.email-link {
    position: relative;
    display: inline-block;
}

.email-link img {
    width: 5vh;
    height: 5vh;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.email-link img:hover {
    transform: scale(1.1);
}

/* Popup Notification for Email */
.email-popup {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #9f9f9f; /* Light background for better contrast */
    color: #000; /* Dark text for readability */
    padding: 10px;
    border-radius: 5px;
    top: -60px; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%); /* Center the popup horizontally */
    width: max-content;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1; /* Ensure it's above the icon */
}

.email-popup:hover {
    transition: transform 0.3s ease;
}

/* The Copy button */
.copy-btn {
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 5px;
    font-size: 14px;
}

.copy-btn:hover {
    transition: transform 0.3s ease-out;

}

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


/* Show the popup when hovering over the email icon */
.email-link:hover .email-popup {
    display: block;
    transition: transform 0.3s ease;
}



.profile-section p {
    font-size: 1.8rem;
    color: #777;
}

/* About Content */
.about-content {
    padding: 20px;
    margin-top: 25vh;
    text-align: center;
}

.about-content h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-top: 5vh;
    margin-bottom: 10vh;

}
.about-content p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
    gap: 3vh;
}

.about-content a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-content a:hover {
    color: #522c79;
}

/* Skills Section */
.skills-container {
    margin-top: 30vh;
    width: 50%;
    height: 70%;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    margin-top: 30vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns side by side */
    gap: 1vh;
    border-bottom: 3px solid rgba(255, 255, 255);
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
padding-bottom: 15px;
}

.skills-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4%; /* Optional: adds rounded corners */
}

.skill-item {
    width: 100%;
    height: 30vh;
    padding: 20px;
        display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 5vh;

}


.skill-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
}

.skill-item:hover img {
    transform: scale(1.1);
   border-radius: 4.4%;
}
.footer {
    text-align: center;
    padding: 10px;
    background-color: #000000;
    color: #fff;
    position: relative;
    width: 100%;
    left: 0;
    margin-top: auto;
    bottom: 0;
  }
  
  .footer p {
    margin: 0;
  }
  

/* Contact Section */
.contact-section {
    text-align: center;
    margin-top: 20vh;
    margin-right: auto;
    margin-left: auto;
    max-width: 50%;
}
.links-container{
    grid-template-rows: repeat(3, 1fr);
}

.contact-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-top: 20vh;
    margin-bottom: 4vh;
    margin-left: auto;
    margin-right: auto;
}

.contact-section p {
    margin-top: 10vh;
    font-size: 1.2rem;
    color: #555;
}

.contact-section a {
    margin-top: 10vh;
    color: #ffffff;
    text-decoration: none;
}

.contact-section a:hover {
    color: #3a00a2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        width: 80%; /* Adjust width for smaller screens */
    }

    .profile-section h1 {
        font-size: 2rem;
    }

    .gallery{
        grid-template-columns: repeat(2, 1fr); 
    }


    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content p, .contact-section p {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr; /* Two items per row */
    }

    .skill-item {
        height: 150px;
        padding: 15px;
        border-radius: 10vh;
    }
}

@media (max-width: 480px) {
    .main-container {
        width: 95%; /* Adjust width for smaller screens */
    }

    .skills-grid {
        grid-template-columns: 1fr; /* One item per row */
    }

    .gallery{
        grid-template-columns: repeat(2, 1fr); 
    }

    .skill-item {
        height: 120px;
        padding: 10px;
        border-radius: 7%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0; /* Começa invisível */
    }
    100% {
        opacity: 1; /* Finaliza totalmente visível */
    }
}
