* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; overflow: hidden; }

.container { display: flex; flex-direction: column; overflow-y: auto; }

.page { 
    height: 100vh; 
    width: 100vw; 
    background: black; 
    display: flex; 
    flex-direction: column;  
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 3rem; 
    text-align: center;
    padding: 20px;
    position: relative;
}

.page:nth-child(1) { 
    background: url('images/fundo.jpg') no-repeat center center/cover;
}

.page:nth-child(2) { 
    background: url('images/fundo2.jpg') no-repeat center center/cover;
}

.ftext-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    
    width: 100%;
    color: #4CAF50; 
    text-shadow: 2px 2px 4px rgb(255, 255, 255);
}
.ftext {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%); 
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.9rem;
    color: white;
    text-shadow: 2px 2px 4px black;
    min-height: 800px;
    max-width: 600px; 
    text-align: right;
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.1);
}

.search-bar {
    position: absolute;
    top: 500px;
    left: 450px;
    width: 180px; 
    height: 40px;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px 0 0 5px; 
    border: none;
}
.search-button {
    position: absolute;
    top: 500px;
    left: 630px; 
    width: 100px;
    height: 40px;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 0 5px 5px 0; 
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background-color: #45a049;
}

.button {
    margin-top: auto;  
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    background-color: black;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background-color: gray;
}

.social-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    margin-left: -110px;
}

.social-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.social-icon img {
    width: 30px;
    height: 30px;
    z-index: 2;
}

.tooltip {
    position: absolute;
    left: 56px;
    background-color: white;
    color: black;
    font-size: 14px;
    border-radius: 25px;
    padding: 5px 15px;
    white-space: nowrap;
    opacity: 0;
    transform: scaleX(0);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 1;
}





.marquee {
  position: fixed;
  bottom: 100px;            
  left: 20px;
  
  width: 1150px;              
  overflow: hidden;
  background: rgba(0,0,0,0.6); 
  color: #fff;
  padding: 10px 5px;
  box-sizing: border-box;
  white-space: nowrap;
  border-radius: 5px; 
}

.marquee__inner {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 130s linear infinite;
}

.marquee__inner span {
  display: inline-block;
  margin-right: 60px;
}


@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.social-icon:hover {
    width: auto;
    border-radius: 25px;
    padding-right: 160px; 
}

.social-icon:hover .tooltip {
    opacity: 1;
    transform: scaleX(1);
}


.skill-container {
    position: relative;
    width: 100%;
    height: 100%; 
  
}


.skill {

    width: 350px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.744); 

    transition: transform 0.3s ease, height 0.3s ease, width 0.3s ease;
    overflow: hidden;
    position: absolute;
}

.skill-1 {
    top: 25px;
    left: 250px;

}

.skill-2 {
    bottom: 50px;
    left: 250px;
}

.skill-3 {
    top: 25px;
    right: 250px;
}

.skill-4 {
    bottom: 50px;
    right: 250px;
}

.skill-title {
    font-size: 2.2rem;
    transition: all 0.3s ease;
    position: absolute;
}

.skill-content {
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: justify;
    color:#ffffffad;

    overflow-y: auto;
    max-height: 200px;
    width: 100%;
    pointer-events: auto;
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.6;
    overscroll-behavior: contain;
    touch-action: pan-y;
    overflow-y: auto !important; 
    pointer-events: auto !important;
    overscroll-behavior: contain; 
}


.skill-content::-webkit-scrollbar {
width: 1px;
}

.skill-content::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}

.skill-content::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.4);
border-radius: 3px;
}

.skill-content::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.6);
}


.skill:hover .skill-title {
    opacity: 0;
    transform: scale(0.8);

}


.skill:hover .skill-content {
    opacity: 1;
    transform: scale(1);

}


.skill:hover {
    transform: scale(1.7);
    height: 300px;
    width: 300px;
   
}


.skill.highlighted {
transform: scale(1.7);
height: 300px;
width: 300px;
}

.skill.highlighted .skill-title {
opacity: 0;
transform: scale(0.8);
}

.skill.highlighted .skill-content {
opacity: 1;
transform: scale(1);
}


.highlight-text {
    color: rgb(75, 221, 92) !important; 
    font-weight: bold;
    background: none !important;
    padding: 0;
    transition: color 0.3s;
}

.search-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

#languageToggle {
    position: fixed;
    top: 10px;
    right: 1830px;
    z-index: 1000;
}

#languageToggle button {
    padding: 8px 15px;
    border-radius: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

#languageToggle button:hover {
    background: #45a049;
    transform: scale(1.05);
}


.icon-below-text {
    width: 100px;
    height: 100px;
    margin-top: 20px;
    border-radius: 50%;
    object-fit: cover; 
    transform-origin: center center;
    transition: transform 0.6s ease;
}



h1[data-i18n] {
    font-size: 2.5rem;
    line-height: 1.2;
    max-width: 90%;
    margin: 0 auto 20px;
    word-wrap: break-word;
}
.main-title {
    font-size: clamp(2rem, 5vw, 3rem); 
}


.page:first-child .main-title {
    margin-right: auto;
    padding-left: 10%;
    text-align: left; 
    width: 80%;
}


.page:first-child .social-icons {
    margin-right: auto;
    padding-left: 35%; 
    align-items: flex-start;
}




@media (max-width: 1800px), (max-height: 900px) {
    body::before {
        content: "Este site funciona melhor em notebooks e computadores!";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.95);
        color: white;
        font-size: 1.5em;
        padding: 20px;
        z-index: 9999;
        pointer-events: none; 
}


body {
    position: relative;
    z-index: 1;
}
}
