/* HERO FLEX LAYOUT */
.hero-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.hero-text {
  flex: 1 1 0;
  max-width: 540px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}
.hero-image-section {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}


/* Logo in nav */
.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-right: auto;
}

.profile-img {
  width: 360px;
  height: 450px;
  object-fit: cover;
  border-radius: 5px;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 12px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 5px;
  background: var(--nav-bg); /* Dark mode background of social media icons */
  color: var(--link);
  transition: all 0.2s ease;
}


.social-icons a:hover { /* Hover effect for social media icons dark mode*/
  background: rgba(1, 103, 255, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
}

/* cool color rgba(29, 78, 216, 0.15) */
:root[data-theme="light"] .social-icons a {
  background: var(--nav-bg); /* Light mode background of social media icons */
  color: var(--link); /* Icon color in light mode */
}

:root[data-theme="light"] .social-icons a:hover {
  background: var(--accent)
}


.exp-header {
  display: flex;
  align-items: center;
  margin-left:10px;
}

.exp-card {
  background-color: var(--exp-card-bg);
  border-radius: 5px; /* Rounded corners */
  padding: 16px; /* The space between border and content */
  margin-bottom: 20px;
}

.exp-desc {
  font-size: 14px;
}

.exp-desc.two-cols {
  column-count: 2;
  break-inside: avoid;
  column-gap: 40px;

}

.social-icon {
  width: 24px;
  height: 24px;
}

:root {
  --bg: #0f141f; /* Background */
  --text: #e3e9f7; /* Normal text "p" color */
  --muted: #8295b0; 
  --border: transparent; /* Invisible border */
  --link: #647FBC;
  --max: 950px;
  --nav-bg: #141c2c; 
  --nav-active: transparent; /* Color of active nav box */
  --nav-hover: transparent; /* Color of nav box on hover */
  --accent: #829ede; /* Color when you hover links */
  --font-main: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  --font-fancy: 'Montserrat', 'Poppins', 'Segoe UI', 'Arial', sans-serif;
  --card-bg: #1a2130;
  --exp-card-bg: #141c2c;
  --font-size: 16px;
}

/* LIGHT THEME OVERRIDES */
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #192031;
  --muted: #8797ad;
  --border: transparent;
  --link: rgb(108, 145, 178);
  --nav-bg: #e5eef8; 
  --nav-active: transparent;
  --nav-hover: transparent;
  --accent: rgb(135, 180, 218);
  --card-bg: #cbd8ea; /* Light mode project card background */
  --exp-card-bg: #f0f7ff; /* Light mode experience card background */
  --shadow: 0 10px 30px rgba(2,6,23,0.08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body {
  font-family: var(--font-main);
  /* Project Cards */
  .project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between cards */
    margin-top: 15px; /* Space above the cards */
    margin-bottom: 32px;
    justify-content: flex-start;
  }
  .project-card {
    background: var(--card-bg);
    border-radius: 18px;
    /*box-shadow: 0 2px 12px rgba(30,52,100,0.10); */
    /* 3 cards per row */
    width: calc(100%/3); /* 60px = 2 * 30px gap */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
  }
  .project-card:hover {
    transform: translateY(-6px) scale(1.03);
  }
  .project-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--nav-bg);
  }
  .project-info {
    padding: 18px 18px 14px 18px;
  }
  .project-info h2 {
    font-size: 1.10rem;
    color: var(--text);
    margin: 0 0 8px 0;
  }
  .project-info p {
    color: var(--text);
    font-size: 1.0rem;
    margin: 0;
  }
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color:var(--link); text-decoration:none; }
/*a:hover{ text-decoration:underline; }*/


.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
  min-height: 60px;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--link);
  margin-right: auto;
}

.menu-toggle-input {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-fancy);
  font-size: 1.075rem; /* size of nav text */
  font-weight: 600;
  letter-spacing: 0.02em;
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .menu-toggle-input:checked ~ .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .menu-toggle-input:not(:checked) ~ .nav {
    display: none;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  
  .links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .nav a {
    width: 100%;
    text-align: left;
  }
}

.nav a {
  padding: 10px 22px;
  border-radius: 5px; 
  color: var(--link);
  background: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  outline: none;
  font-family: var(--font-fancy);
}

.nav a.active, .nav a:focus {
  color: #fff; /* text color of active nav in dark mode */
}

:root[data-theme="light"] .nav a.active, .nav a:focus{
  color: var(--text); /* text color of active nav in light mode */
}


.nav a:hover:not(.active) {
  color: var(--accent);
}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:100px 0px 0px; /* top right bottom left */
}


header.fa-bars{
  font-size:3rem;
  color: #333;
  border-radius: .5rem;
  padding: .5rem 1.5rem;
  cursor: pointer;
  border: .1rem solid rgba(0,0,0,.1); 

}


h1 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-family: var(--font-fancy);
  color: var(--link);
}
h2 {
  font-size: 20px;
  margin: 0px 0px 0px; /* Margins for top, bottom, left, right */
  font-family: var(--font-fancy);
}
p {
  font-size: var(--font-size);
  margin: 0 0 12px;
  color: var(--text);
}
.muted {
  color: var(--muted);
}

.exp-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 5px;
  margin-right: 16px;
}

.exp-role {
  font-size: var(--font-size);
  font-weight: 600;
}


.exp-corp {
  font-size: calc(var(--font-size) - 1px)
}

.exp-locdate {
  font-size: calc(var(--font-size) - 1px);
  color: var(--muted);
}


.exp-date {
  font-size: calc(var(--font-size) - 1px);
  color: var(--muted);
}

.card1 {
  border:1px solid var(--border);
  border-radius:5px;
  background-color: var(--exp-card-bg);
}

.card1 p:hover {
  color: #0140B1; /* Escolha o tom que quiser para o texto */
  cursor: pointer; /* Opcional, só para indicar que é interativo */
  transition: background 0.2s, color 0.2s; /* Suaviza a transição */
}

.card2 {
  border:1px solid var(--border);
  border-radius:5px;
  background-color: transparent;
}

.card2 p:hover {
  color: #0140B1; /* Escolha o tom que quiser para o texto */
  cursor: pointer; /* Opcional, só para indicar que é interativo */
  transition: background 0.2s, color 0.2s; /* Suaviza a transição */
}

/* THEME TOGGLE */
.theme-toggle{
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
}

.toggle-track{
  margin-top: 5px;
  position: relative;
  width: 60px;
  height: 35px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

:root[data-theme="light"] .toggle-track{
  background: rgba(15,23,42,0.04);
}

/* Toggle Labels 
.toggle-label{
  position: absolute;
  font-family: var(--font-fancy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  user-select: none;
  opacity: 0.85;
}

.toggle-label-day{ left: 56px; }
.toggle-label-night{ right: 44px; }
*/
.toggle-thumb{
  position: absolute;
  left: 4px;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform 0.25s ease;
}

:root[data-theme="light"] .toggle-thumb{
  background: var(--bg); /* Light mode circle background */
}

.icon{
  position:absolute;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* default dark => show moon, thumb on right */
:root:not([data-theme="light"]) .toggle-thumb{
  transform: translateX(20px); /* Right position the icon will be */
}
:root:not([data-theme="light"]) .icon-moon{ opacity: 1; }

/* light => show sun, thumb on left */
:root[data-theme="light"] .toggle-thumb{
  transform: translateX(0); /* Left position the icon is */
}
:root[data-theme="light"] .icon-sun{ opacity: 1; }


.list{ padding-left:18px; margin:8px 0 0; }
.footer{
  margin-top:38px;
  padding-top:18px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}

/* TOPICS GRID */
.topics-grid {
  display: grid;
  grid-template-columns: 0.4fr;
  /* grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); */
  gap: 15px; /* Space between topic cards */
  margin-top: 15px; 
}

.topic-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 10px; /* Padding inside each card */
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10px;
}

.topic-card:hover {
  transform: translateY(-4px);
  background: var(--exp-card-bg);
}

.topic-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-family: var(--font-fancy);
  font-weight: 500;
}

/* TOPIC PAGE LAYOUT */
.topic-page-container {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.topic-sidebar {
  flex: 0 0 250px;
  background: var(--nav-bg);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.topic-sidebar h4 {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: var(--link);
  font-family: var(--font-fancy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.topic-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-sidebar li {
  margin-bottom: 12px;
}

.topic-sidebar a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.topic-sidebar a:hover {
  background: rgba(100, 127, 188, 0.1);
  border-left-color: var(--link);
  color: var(--link);
}

.topic-sidebar a.active {
  background: rgba(100, 127, 188, 0.15);
  border-left-color: var(--link);
  color: var(--link);
  font-weight: 600;
}

.topic-content {
  flex: 1 1 0;
  min-width: 0;
}

.topic-content h2 {
  color: var(--link);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.topic-content p, .topic-content li {
  line-height: 1.8;
}

.topic-content ul {
  padding-left: 24px;
}

.topic-content li {
  margin-bottom: 10px;
}

/* Mobile adjustments for topic pages */
@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

  .topic-page-container {
    flex-direction: column;
    gap: 20px;
  }

  .topic-sidebar {
    flex: 0 0 auto;
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* RESUME TABS */
.resume-tabs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 0px;
  flex-wrap: wrap;
  /*border-bottom: 1px solid var(--border);*/
  padding-bottom: 0cm;
}

.resume-tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  font-family: var(--font-fancy);
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  /*border-bottom: 3px solid transparent;*/
  position: relative;
}

.resume-tab-btn:hover {
  color: var(--link);
  background: rgba(100, 127, 188, 0.08);
}

.resume-tab-btn.active {
  color: var(--text);
  /*border-bottom-color: var(--link);*/
}

.resume-category {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}