/* --- Dark Mode  --- */

body, html {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #1a1a1a;
  color: #f0f0f0;
  overflow: hidden; 
  transition: background-color 0.5s ease, color 0.5s ease;
}

section {
  border-bottom: 1px solid #484650;
  transition: border-bottom-color 0.5s ease;
}

h2, h3, .highlight, a {
  color: #FAE942;
  transition: color 0.5s ease;
}

/* --- Light Mode --- */

body.light-mode {
  background-color: #ffffff; 
  color: #1a1a1a;
}

body.light-mode section {
  border-bottom: 1px solid #ccc;
}

body.light-mode h2, 
body.light-mode h3, 
body.light-mode .highlight, 
body.light-mode a {
  color: #1a1a1a; 
}

/* --- Shared Styles --- */

.container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2em 4em;
  box-sizing: border-box;
}

h1, h2, h3 {
  text-transform: none;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
}

h2 {
  font-size: 2.5em;
  margin-top: 0;
}

h3 {
    font-size: 2em;
}

p, li {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
}

ul {
    text-align: left;
    list-style-position: inside;
}

a {
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.contact-links a {
    margin: 0 15px;
    font-size: 1.2em;
}

.project-link {
    margin-top: 10px;
    text-align: center;
}

.scrollable-content {
    height: 80vh;
    overflow-y: auto;
}

.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

section:last-child .scroll-arrow {
  display: none;
}

/* --- Intro Section --- */

.intro-section {
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

.intro-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-text {
  text-align: center;
  margin-top: 20px;
}

.intro-image img {
  border-radius: 50%;
  width: 250px; /* Increased size */
  height: 250px; /* Increased size */
  object-fit: cover;
  border: 5px solid #FAE942;
  transition: border-color 0.5s ease;
}

body.light-mode .intro-image img {
    border-color: #1a1a1a;
}

.intro-right {
    display: flex;
    flex-direction: column;
}

.nav-button {
    padding: 10px 40px;
    margin: 10px;
    border: 2px solid #FAE942;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #FAE942;
    color: #1a1a1a;
    text-decoration: none;
}

body.light-mode .nav-button {
    border-color: #1a1a1a;
}

body.light-mode .nav-button:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}



/* --- Theme Switch --- */

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-switch {
  display: inline-block;
  height: 25px; 
  position: relative;
  width: 45px;  
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 25px; 
}

.slider:before {
  background-color: #fff;
  bottom: 3px; 
  content: "";
  height: 19px; 
  left: 3px;  
  position: absolute;
  transition: .4s;
  width: 19px; 
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #FAE942; 
}

input:checked + .slider:before {
  transform: translateX(20px); 
}


/* --- Scrollbar --- */

/* browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #FAE942;
  border-radius: 5px;
}

body.light-mode ::-webkit-scrollbar-track {
  background: #ffffff; 
}

body:not(.light-mode) ::-webkit-scrollbar-track {
    background: #1a1a1a; 
}

/* Firefox */
html {
  scrollbar-width: thin;
}

html:not(.light-mode-firefox) {
    scrollbar-color: #FAE942 #1a1a1a; 
}

html.light-mode-firefox {
    scrollbar-color: #FAE942 #ffffff; 
}

/* --- Back to Top Button --- */
#backToTopBtn {
    display: none; /* Oculto por padrão */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #FAE942;
    color: #1a1a1a;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s, opacity 0.3s;
}

#backToTopBtn:hover {
    background-color: #e9d840; /* Amarelo um pouco mais escuro */
}

body.light-mode #backToTopBtn {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.light-mode #backToTopBtn:hover {
    background-color: #333;
}

/* --- Language Switch --- */

.language-switch-button {
  background-color: transparent;
  border: 1px solid #FAE942;
  color: #FAE942;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8em;
  transition: all 0.3s ease;
}

.language-switch-button:hover {
  background-color: #FAE942;
  color: #1a1a1a;
}

body.light-mode .language-switch-button {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

body.light-mode .language-switch-button:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

.padded-section {
  padding-bottom: 20vh;
}

/* --- PDF Section --- */
.pdf-container {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-viewer {
    width: 80%;
    height: 100%;
    border: none;
}

.sticky-header {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  background-color: #1a1a1a;
  padding: 1rem;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

body.light-mode .sticky-header {
  background-color: #ffffff;
}

