:root {
  --bg-color: #121212;
  --primary: #eeff00; /* Axis yellow */
  --text-muted: #888888;
  --text-light: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  z-index: 10;
}

.nav-left, .nav-center, .nav-right {
  flex: 1;
}

.nav-left p {
  line-height: 1.4;
  opacity: 0.8;
}

.nav-center {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

.btn-dot {
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-dot span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn-dot:hover span {
  background-color: #000;
}

.btn-lang {
  padding: 0.6rem 1rem;
}

.icons {
  font-weight: bold;
}

/* Main Layout */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  z-index: 1;
  padding: 2rem 1rem;
}

.brand-logo {
  max-width: 50vw;
  max-height: 25vh; /* Keep it contained above carousel */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(238, 255, 0, 0.15)); /* Soft glow matching brand */
  user-select: none;
  animation: float 6s ease-in-out infinite; /* subtle breathing effect */
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Dropdown Menus */
.dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 50;
  min-width: 120px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(238, 255, 0, 0.1);
  color: var(--primary);
}

/* Light Theme Overrides */
body.light-theme {
  --bg-color: #f5f5f5;
  --text-light: #121212;
  --text-muted: #666666;
}

body.light-theme .navbar {
  border-bottom: 1px solid rgba(0,0,0,0.05); /* very subtle */
}

body.light-theme .brand-logo {
  filter: brightness(0); /* Turn Logo Black */
}

body.light-theme .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.light-theme .btn {
  border-color: rgba(0,0,0,0.15);
}

body.light-theme .btn:hover {
  background: var(--text-light);
  color: #fff;
}

body.light-theme .btn-dot span {
  background-color: var(--text-light);
}

body.light-theme .dropdown-item:hover, 
body.light-theme .dropdown-item.active {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

body.light-theme .card-caption {
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

body.light-theme .card-image {
  background-color: #e0e0e0;
}

body.light-theme .skill-bar-bg {
  background-color: #e0e0e0;
}

body.light-theme .skill-bar-fill {
  background-color: var(--text-light);
}

/* Filter Switch */
.filter-switch {
  display: inline-flex;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 0.3rem;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 2rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--primary);
  color: #000;
}

body.light-theme .filter-switch {
  background: #e0e0e0;
  border-color: rgba(0,0,0,0.1);
}

body.light-theme .filter-btn {
  color: #666;
}

body.light-theme .filter-btn.active {
  background: var(--primary);
  color: #000;
}

/* Carousel Section */
.carousel-section {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  overflow-x: auto; /* Enable native horizontal scroll */
  overflow-y: hidden;
  padding: 2rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth momentum scrolling on iOS */
}

/* Hide scrollbar */
.carousel-section::-webkit-scrollbar {
  display: none;
}
.carousel-section {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.carousel-track {
  display: flex;
  align-items: flex-end; /* Align cards to bottom */
  gap: 2rem;
  padding: 0 5vw;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

/* Base Card */
.carousel-card {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.carousel-card:hover {
  transform: translateY(-15px);
}

.card-image {
  width: 400px;
  aspect-ratio: 16/9;
  height: auto;
  background-color: #222;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(100%) contrast(1.1) brightness(0.7);
}

.carousel-card:hover .card-image {
  filter: grayscale(0%) contrast(1) brightness(1);
  box-shadow: 0 20px 50px rgba(238, 255, 0, 0.15);
}

/* Captions */
.card-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s ease;
}

.carousel-card:hover .card-caption {
  border-bottom-color: rgba(238, 255, 0, 0.5);
}

.card-title {
  color: var(--text-light);
  font-weight: 600;
}

.card-id {
  color: rgba(255, 255, 255, 0.3);
}
.carousel-card:hover .card-id {
  color: var(--primary);
}

/* Placeholders */
.bg-abstract-1 { background-image: url('https://leonardoscherrer.com.br/wp-content/uploads/2025/11/logo-petsco-final.gif'); }
.bg-abstract-2 { background-image: url('https://leonardoscherrer.com.br/wp-content/uploads/2025/09/LOGO-ANIMADA-natuca.gif'); }
.bg-abstract-3 { background-image: url('https://leonardoscherrer.com.br/wp-content/uploads/2025/11/0ed26f237601509.6903a0e6afa71.gif'); }
.bg-abstract-4 { background-image: url('https://leonardoscherrer.com.br/wp-content/uploads/2025/09/wide-2.png'); }
.bg-abstract-5 { background-image: url('https://leonardoscherrer.com.br/wp-content/uploads/2025/04/hrthc.png'); }

/* Responsive tweaks */
@media (max-width: 1024px) {
  .big-text { font-size: 18vw; }
  .card-active-large .card-image { width: 450px; height: 300px; }
  .card-active .card-image { width: 300px; height: 220px; }
  .navbar { padding: 1.5rem; }
}

@media (max-width: 768px) {
  .brand-logo { max-width: 70%; max-height: 20vh; }
  .carousel-track { gap: 1rem; }
  .carousel-card .card-image { 
    width: 65vw; height: auto; aspect-ratio: 16/9; 
  }
  .contact-container { flex-direction: column; align-items: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .skill { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .skill-name { flex: none; }
  .skill-bar-bg { width: 100%; }
}

/* Contact Page Styles */
.contact-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 5vw;
}

.contact-container {
  display: flex;
  max-width: 1400px;
  width: 100%;
  gap: 5vw;
  align-items: flex-start;
}

.contact-photo-wrapper {
  flex: 1;
  max-width: 450px;
  width: 100%;
}

.contact-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  object-fit: cover;
}

.contact-photo:hover {
  box-shadow: 0 20px 50px rgba(238, 255, 0, 0.15);
  transform: translateY(-5px);
}

.contact-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-grid h2, .skills-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--primary);
}

.info-list {
  list-style: none;
  font-size: 1.1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}

.info-list .accent {
  color: var(--text-light);
  font-weight: 500;
}

.info-list .icon {
  color: var(--text-muted);
  margin-right: 0.5rem;
  font-weight: 600;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.skill-name {
  flex: 0 0 220px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.skill-bar-bg {
  flex: 1;
  background-color: #2a2a2a;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.4s ease;
}

.skill:hover .skill-bar-fill {
  background-color: var(--primary);
}
