:root {
  --primary-color: #b8a1f7;
  --bg-dark: #0f0c29;
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-white: #ffffff;
  --text-gray: #ccc;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Geologica", sans-serif;
  background-color: #050510; /* Deepest black/blue */
  color: var(--text-white);
  scroll-behavior: smooth;
}

/* --- Selection & Scrollbar --- */
::selection {
    background: var(--primary-color);
    color: #fff;
}

/* Webkit Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    background: #050510;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 0; /* Brutalist square */
    border: 1px solid #050510;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- Utilities (Brutalist Update) --- */
.glass-panel {
  background: rgba(0, 0, 0, 0.4); /* Solid semi-transparent dark */
  backdrop-filter: none; /* No blur */
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Sharper border */
  box-shadow: none; /* Flat */
  border-radius: 0 !important; /* Sharp corners everywhere */
}

/* --- Custom Cursor --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference; /* The magic inversion effect */
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

body:hover .custom-cursor {
    opacity: 1;
}

/* Grow effect on hoverable items */
body:has(a:hover) .custom-cursor,
body:has(button:hover) .custom-cursor,
body:has(.project-item:hover) .custom-cursor {
    transform: translate(-50%, -50%) scale(2.5);
}

/* --- Content Sections --- */
.conteudo-normal {
  position: relative;
  z-index: 10;
  padding: 60px 20px; /* Increased slightly from 20px */
  max-width: 1400px;
  margin: 0 auto;
}

/* ... (skipping unchanged) ... */

/* --- Formação / Experiences --- */
#formacao-foguete-container {
  position: relative;
  min-height: 60px; /* Specific request */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
  padding: 0; 
  margin-top: 20px; /* Slight breathing room */
}

#formacao-foguete-container canvas {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 300px !important; /* Explicitly taller than container */
  transform: translateY(-50%); /* Center vertically over the strip */
  z-index: 10; /* Bring forward to overlap adjacent sections */
  pointer-events: none;
  opacity: 1; /* Ensure full visibility */
}

#texto-fixo {
  font-size: 3rem; /* Compact size */
  font-weight: 900;
  letter-spacing: -2px;
  text-align: center;
  background: linear-gradient(to bottom, #fff, #444);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 10;
  position: relative;
  background-color: transparent !important;
  color: unset !important;
  margin: 0;
  padding: 0;
}

/* Timeline Re-design - Minimal List */
.formacao-container {
  max-width: 1200px;
  margin: 0 auto 150px;
  padding: 20px;
}

.titulo {
  text-align: left;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 80px;
  font-weight: 700;
  letter-spacing: -1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}

.linha-tempo {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px; /* Space for the line */
    border-left: 2px solid rgba(184, 161, 247, 0.3); /* The Bar */
}

/* Optional: Gradient overlay for the bar if desired, or simpler border */


/* Redefining items to be horizontal rows */
.item {
    display: flex;
    flex-direction: column; /* Stack vertically as requested */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
    padding-left: 30px; /* Space from line */
    position: relative; /* For dot positioning */
}

/* The Dot */
.item::before {
    content: '';
    position: absolute;
    left: -27px; /* Adjust to center on the 2px border (20px padding + border width offset) */
    top: 55px; /* Align with the text content start */
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    transition: all 0.3s ease;
}

.item:hover::before {
    transform: scale(1.5);
    background: #fff;
}

.item:hover {
    transform: translateX(10px);
    background: transparent;
    border-color: var(--primary-color);
}

.item .left-content {
    width: 100%; /* Full width */
}

.item .right-content {
    width: 100%; /* Full width */
    padding-left: 0; /* Remove side padding */
}

.instituicao {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.ano {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0;
  font-family: 'Geologica', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.descricao {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #999;
  max-width: 800px;
}

/* Hide old elements */
.linha-centro, .ponto, .lado-esquerdo, .lado-direito {
    /* Resetting these to work with new grid layout */
    position: static;
    transform: none;
    width: auto;
    background: none;
    display: contents; /* Flattens children */
}

.tags {
    margin-top: 15px;
}

.tag {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .titulo-centralizado {
      font-size: 2.2rem; /* Even smaller for better fit */
      margin-bottom: 0.5rem;
  }
  
  #texto-fixo {
      font-size: 2.2rem;
  }

  .sobre-container {
      flex-direction: column;
      gap: 30px;
  }

  /* Make the disk smaller on mobile */
  #vinil-container {
      width: 250px;
      height: 250px;
      margin: 0 auto;
  }

  .item {
      flex-direction: column;
      gap: 15px;
      padding: 30px 20px; /* Reduced padding */
      align-items: flex-start; /* Ensure left alignment */
  }
  
  .item .right-content {
      padding-left: 0;
  }
  
  /* Reset left border dot position for mobile if needed */
  .item::before {
      left: -27px; /* Keep consistent with desktop or adjust */
  }
}


.spacer {
  height: 150px; /* Gap between content sections */
}

.spacer-hero {
  height: 300vh; /* Dialed back slightly to balance speed */
}

/* --- Background Layers --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50; /* Top of background stack, below content */
    opacity: 0.07; /* Subtle grain */
}

/* Apply the SVG filter via CSS if supported, or fall back to an image if we had one. 
   Here we use the SVG defined in HTML as a data URI or ID reference approach 
   is tricky across browsers without an external file. 
   Actually, best scalable way: use a small repeating noise image or data URI. 
   Let's use a very common base64 noise pattern for reliability and performance. */

.noise-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    filter: contrast(150%) brightness(100%);
}

.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
                radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-size: 200% 200%;
    animation: aurora 15s ease infinite alternate;
    opacity: 0.6;
}

@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1; /* Above mesh, below content/noise */
  pointer-events: none;
  opacity: 0.3; /* Fade it out significantly */
}

#tv-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2; /* TV sits in the scene */
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1000;
}

.menu-btn {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0; /* Square / Brutalist */
  padding: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.menu-btn:hover img {
    /* Keep white or make black? White on Purple looks good */
    filter: brightness(0) invert(1); 
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0; /* Square */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5); /* Hard shadow on hover */
}

.social-icons img {
  width: 20px;
  filter: brightness(0) invert(1); /* Force White */
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0; /* Align to left edge */
  transform: translateX(-100%); /* Start hidden off-screen */
  width: 100vw;
  height: 100vh;
  background: #050510; /* Match body deep color */
  border-right: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother slide */
  z-index: 2000;
}

.sidebar.active {
  transform: translateX(0); /* Slide in */
  box-shadow: 100px 0 0 rgba(0,0,0,0.5); /* Massive shadow when open */
}

/* Close Button Position */
#fechar-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

#fechar-menu:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.2);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.sidebar ul li {
  margin: 30px 0;
}

.sidebar ul li a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 3rem;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
}

.sidebar ul li a:hover {
  color: var(--primary-color);
}

.sidebar ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.sidebar ul li a:hover::after {
  width: 100%;
  left: 0;
}

/* Close button update */
#fechar-menu {
  color: var(--text-white) !important;
  font-size: 40px !important;
  transition: transform 0.3s ease;
}
#fechar-menu:hover {
  transform: rotate(90deg);
  color: var(--primary-color) !important;
}

/* --- Content Sections --- */
.conteudo-normal {
  position: relative;
  z-index: 10;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
    .conteudo-normal {
        padding: 40px 15px; /* Tighter padding for mobile */
    }
}

/* Sobre Mim */
.titulo-sobre-wrapper {
  text-align: center;
  margin-bottom: 20px; /* Reduced from 60px */
}

.titulo-centralizado {
  font-size: 3.5rem;
  background: -webkit-linear-gradient(45deg, #fff, var(--primary-color));
  background-clip: text; /* Standard property */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sobre-container {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sobre-texto {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  border-radius: 0; /* Sharp */
  /* Reusing glass-panel class but ensuring specific overrides match */
  background: rgba(0,0,0,0.2);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.5); /* Hard shadow */
}

.sobre-texto p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .sobre-texto p {
      font-size: 1rem; /* Better readability on small screens */
      line-height: 1.6;
      margin-bottom: 15px;
  }
  
  .sobre-texto {
      padding: 25px; /* Less inner padding */
  }
}

#vinil-container {
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Formação / Experiences --- */


/* Timeline Re-design */
.formacao-container {
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 0 20px 20px 20px; /* Removed top padding */
}

.titulo {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 60px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(184, 161, 247, 0.3);
}

.linha-tempo {
  position: relative;
  display: flex;
  gap: 50px;
}

.linha-centro {
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  border-radius: 2px;
}

.ponto {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 15px var(--primary-color);
}

.ponto img {
  display: none; /* Simplify points for now */
}

/* Alternating layout override */
.lado-esquerdo,
.lado-direito {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.lado-esquerdo {
  align-items: flex-end;
  text-align: right;
  padding-right: 40px;
}

.lado-direito {
  align-items: flex-start;
  text-align: left;
  padding-left: 40px;
  padding-top: 50px; /* Offset for zig-zag effect */
}

.item {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 350px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.instituicao {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.ano {
  font-size: 1rem;
  color: #888;
  margin-bottom: 15px;
  font-family: monospace;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: inherit;
}

.tag {
  background: rgba(184, 161, 247, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.descricao {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .linha-tempo {
    padding-left: 10px; /* Adjust for mobile */
  }

  .item {
    max-width: 100%;
    padding-left: 20px; /* Reduced space */
  }
  
  .item::before {
      left: -16px; /* Adjust dot for narrower padding */
  }

  .titulo-centralizado {
    font-size: 2.5rem;
    width: auto;
  }

  #texto-fixo {
    font-size: 2rem;
  }
}

/* --- Print Button --- */
/* --- Print/Download Button --- */
.btn-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-color), #8e7cc3);
  color: #fff !important; /* White text for better contrast */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px; /* Larger click area */
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 30px;
  text-decoration: none; /* For <a> tag */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(132, 94, 247, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-print:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(132, 94, 247, 0.6);
  background: linear-gradient(135deg, #a18cd1, #bc95fd);
}

.btn-print .icon {
    font-size: 1.3rem;
}

/* --- Tech Stack Marquee --- */
.tech-marquee-container {
    padding: 40px 0;
    margin-top: 50px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    max-width: 100vw;
}

.tech-marquee {
    display: flex;
    white-space: nowrap;
}

.tech-track {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    padding-left: 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ccc;
    background: rgba(255,255,255,0.03);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.tech-item img {
    width: 24px;
    height: 24px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Shift by half because content is duplicated */
}

/* --- Footer --- */
.footer {
  position: relative;
  width: 100%;
  padding: 50px 20px;
  z-index: 10;
  margin-top: 100px;
}

/* --- Sidebar Staggered Animation --- */
.sidebar ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.sidebar.active ul li {
  opacity: 1;
  transform: translateY(0);
}

.sidebar.active ul li:nth-child(1) { transition-delay: 0.1s; }
.sidebar.active ul li:nth-child(2) { transition-delay: 0.2s; }
.sidebar.active ul li:nth-child(3) { transition-delay: 0.3s; }

/* --- Sidebar Staggered Animation --- */
.sidebar ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.sidebar.active ul li {
  opacity: 1;
  transform: translateY(0);
}

.sidebar.active ul li:nth-child(1) { transition-delay: 0.1s; }
.sidebar.active ul li:nth-child(2) { transition-delay: 0.2s; }
.sidebar.active ul li:nth-child(3) { transition-delay: 0.3s; }

/* --- Footer Refactored (Ram Maheshwari Style) --- */
.footer {
    background: #000; /* Pitch black matches reference */
    color: #fff;
    padding: 80px 0 40px; /* Top padding 80px, Bottom 40px */
    width: 100%;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* Left Column (Name + Desc) */
.footer-left {
    max-width: 50%;
}

.footer-left h3 {
    font-size: 1.4rem;
    font-weight: 800; /* Thick bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-family: 'Geologica', sans-serif;
}

.footer-left p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #eee;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
}

/* Right Column (Social) */
.footer-right {
    text-align: right; /* Align to right */
}

.footer-right h3 {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-family: 'Geologica', sans-serif;
}

.footer-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-end; /* Align right */
}

.footer-icons a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Pure white */
    transition: transform 0.2s ease;
}

.footer-icons a:hover img {
    transform: translateY(-3px);
}

/* Horizontal Line */
.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2); /* Faint line */
    margin-bottom: 30px;
}

/* Bottom (Copyright) */
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
    font-family: 'Geologica', sans-serif;
    letter-spacing: 0.5px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column-reverse; /* Put Name below Socials or vice versa? Reference usually stacks vertically normal */
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-left {
        max-width: 100%;
        text-align: left;
    }

    .footer-right {
        text-align: left; /* Realign left on mobile usually looks better */
        width: 100%;
    }
    
    .footer-icons {
        justify-content: flex-start;
    }
}


/* CSS Cleaned up */

/* --- Scroll Animations --- */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion) {
  .hidden {
      transition: none;
      opacity: 1;
      transform: none;
      filter: none;
  }
}

/* --- Projects Section (Minimalist List) --- */
/* --- Projects Section (Brutalist / Reference Style) --- */
.projects-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%; /* Go wide */
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-item {
    display: grid;
    grid-template-columns: 0.5fr 3fr 1fr;
    align-items: baseline; /* Align by text baseline */
    padding: 30px 10px; /* Tighter padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    z-index: 2;
    background: transparent !important; /* No glass */
    backdrop-filter: none !important;
    border-radius: 0 !important; /* Sharp edges */
}

/* Remove hover shift/padding to keep it raw */
.project-item:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.05) !important;
}

.project-item span {
    pointer-events: none;
}

.p-year {
    font-family: 'Helvetica', 'Arial', sans-serif; /* Standard font for contrast */
    font-size: 1rem;
    color: #666 !important;
    opacity: 0.7;
}

.p-name {
    font-size: 5vw !important; /* Massive responsive font */
    font-weight: 800;
    text-transform: uppercase;
    color: #fff !important;
    line-height: 0.9;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.project-item:hover .p-name {
    color: var(--primary-color) !important;
    font-style: italic; /* Reference style touch */
}

.p-type {
    text-align: right;
    font-family: 'Geologica', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    letter-spacing: 1px;
    color: #999;
}

.p-tech {
    display: none; /* Hide tech stack in list to keep it clean (like reference) */
}

/* Floating Preview Image - Larger and sharper */
#project-preview {
    position: fixed;
    width: 400px; /* Bigger */
    height: 300px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    border-radius: 0; /* Sharp corners */
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: translate(-30%, -30%) scale(0.8); /* Offset slightly differently */
    transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 20px 20px 0px rgba(0,0,0,0.5); /* Hard shadow */
    border: 1px solid #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }
    
    .p-name {
        font-size: 3rem !important;
    }
    
    .p-year, .p-type {
        font-size: 0.8rem !important;
    }
}

/* --- PRINT MEDIA QUERY --- */
@media print {
  /* Hide interactive/3D elements */
  #tv-container, 
  #particles-js, 
  #formacao-foguete-container,
  #vinil-container,
  .navbar,
  .sidebar,
  .menu-btn,
  #fechar-menu,
  .btn-print {
    display: none !important;
  }

  /* Reset Body for Print */
  body, html {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* Reset Containers */
  .conteudo-normal, .formacao-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Typography for Print */
  p, h1, h2, h3, span, div {
    color: #000 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: initial !important; /* Reset gradients */
    background: none !important; /* Reset backgrounds */
  }
  
  .titulo-centralizado, #texto-fixo {
      font-size: 24pt !important;
      text-align: left !important;
      margin-bottom: 1rem !important;
      border-bottom: 2px solid #000;
  }

  /* Timeline/CV Item Formatting */
  .linha-tempo {
    border-left: 2px solid #333 !important;
    padding-left: 20px !important;
    display: block !important;
  }

  .item {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    padding: 15px 0 !important;
    break-inside: avoid; /* Prevent cutting items across pages */
    display: block !important;
  }

  .item::before {
    background: #000 !important;
    box-shadow: none !important;
    left: -26px !important;
  }

  .instituicao {
    font-size: 14pt !important;
    color: #000 !important;
    font-weight: bold !important;
  }

  .ano {
    font-size: 10pt !important;
    color: #666 !important;
  }
  
  .descricao {
    font-size: 11pt !important;
    color: #333 !important;
  }

  .tags {
    display: none !important; /* Optional: hide tags on print if too messy, or style them simpler */
  }
}
.zoom-portal {
  position: relative;
  height: 300vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 20;
}

.sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.zooming-text {
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  transform-origin: center center;
  will-change: transform, opacity;
  margin: 0;
  background: -webkit-linear-gradient(45deg, #fff, var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-content-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-top: -50vh; 
}

.about-content-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
    .zooming-text {
        font-size: 3rem;
    }
}

#footer-fire-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%; /* Or specific height */
  pointer-events: none;
  z-index: 0;
}

.footer {
    position: relative; /* Ensure container is positioned relative to footer */
    overflow: hidden; /* optional, to clip if needed */
}

/* Ensure footer content is above the fire */
.footer-container {
    position: relative;
    z-index: 1;
}

/* Wyvern (Dragon) Container */
#wyvern-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    z-index: 5; /* Above background, below navbar? Navbar is 1000. */
    pointer-events: none; /* Let clicks pass through */
}

@media (max-width: 768px) {
    #wyvern-container {
        width: 250px;
        height: 250px;
    }
}

/* Civic 98 Container */
#civic-container {
    position: absolute;
    bottom: -50px; /* Slight offset */
    right: 0;
    width: 600px;
    height: 400px;
    z-index: 5; 
    pointer-events: none;
}

@media (max-width: 768px) {
    #civic-container {
        width: 300px;
        height: 200px;
        bottom: 0;
    }
}
/* === Civic 98 Multi-Location Styles === */

/* 1. Hero: Beside TV */
#civic-hero {
  position: absolute;
  bottom: -50px;
  left: 10%;
  width: 300px;
  height: 200px;
  z-index: 20;
  pointer-events: none;
}

/* 2. Fixed Bottom-Right */
#civic-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 250px;
  height: 150px;
  z-index: 1000; /* High z-index to sit on top */
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Helper to see outline */
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

/* 3. Marquee: Above Footer */
#civic-marquee {
  position: absolute;
  top: -150px; /* Above the marquee strip */
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  pointer-events: none;
  z-index: 10;
}

/* 4. Sidebar: Inside Menu */
#civic-sidebar {
  width: 200px;
  height: 150px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar Layout Update for Fantasy House */
.sidebar {
    /* Existing has display:flex, col, center */
    /* We want row for desktop */
    flex-direction: row !important; 
    justify-content: center !important; /* Bring them closer to center */
    align-items: center;
    padding: 0 5%;
    gap: 5%; /* Control distance between links and house */
    overflow: hidden !important; /* Prevent scroll inside sidebar or from sidebar */
}

.sidebar ul {
    text-align: left !important; /* Align links to left maybe? or Keep center but in a block */
    flex: 0 0 auto; /* Don't stretch indefinitely, just take needed space */
    z-index: 2002; /* Above house if overlap */
    min-width: 250px; /* Ensure links take space */
}

#house-container {
    flex: 1;
    max-width: 50vw; /* Prevent it from being wider than half screen */
    height: 60vh; /* Relative height */
    min-height: 400px;
    display: flex; /* Centering if needed */
    justify-content: center;
    align-items: center;
    z-index: 2001;
    position: relative;
    /* Optional: background: rgba(255,255,255,0.05); to see it */
}

#house-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Mobile: Hide house or stack? 97MB is heavy for mobile... maybe hide? */
@media (max-width: 900px) {
    .sidebar {
        flex-direction: column !important;
        justify-content: center !important;
    }
    #house-container {
        display: none; /* Hide on mobile/tablet to save data/perf */
    }
    .sidebar ul {
        text-align: center !important;
    }
}

/* --- Loading Screen (System Init Style) --- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #050510; /* Deepest black/blue */
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
  font-family: 'Geologica', monospace; /* Tech feel */
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  width: 300px;
  position: relative;
}

.loader-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 40px;
  color: #aaa;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

.loader-status {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: left;
  font-family: monospace;
  text-transform: uppercase;
}

#loader-percentage {
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums; /* Prevent jitter */
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.1s linear; /* Smooth fill */
}

.loader-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #555;
  font-family: monospace;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}
