:root{
  --bg:#0b0e14;
  --panel:#121826;
  --text:#e6e6eb;
  --muted:#9aa0b4;
  --accent:#6cf2c2;
}

body.light{
  --bg:#f4f6fb;
  --panel:#ffffff;
  --text:#121212;
  --muted:#555;
  --accent:#2563eb;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,system-ui,sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  transition:.4s;
  scroll-behavior: smooth;
}

a{
  color:inherit;
  text-decoration:none;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(108,242,194,.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(37,99,235,.08), transparent 40%);
  z-index:-1;
}

.navbar{
  position:fixed;
  top:0;
  width:100%;
  padding:20px 10vw;
  display:flex;
  justify-content:space-between;
  align-items:center;
  backdrop-filter:blur(12px);
  background:rgba(0,0,0,.4);
  z-index:1000;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
}

.brand img{
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid var(--accent);
}

.nav-links{
  display:flex;
  gap:24px;
}

.nav-links a{
  position:relative;
  color:var(--muted);
  font-weight:500;
  padding:6px 2px;
  transition:.3s;
}

.nav-links a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:.3s;
}

.nav-links a:hover{
  color:var(--text);
}

.nav-links a:hover::after{
  width:100%;
}

.theme-btn{
  margin-left:30px;
  border:none;
  background:var(--panel);
  color:var(--text);
  padding:10px 12px;
  border-radius:50%;
  cursor:pointer;
}

main{
  padding:140px 10vw 80px;
}

h1{font-size:3.6rem;margin-bottom:20px}
h2{font-size:2.4rem;margin-bottom:10px}
h3{font-size:1.6rem;margin-bottom:18px}

.subtitle{
  color:var(--muted);
  max-width:700px;
  margin-bottom:16px;
  opacity:.8;
}

section > .reveal{
  margin-bottom:16px;
}

.project-section{
  margin-top:24px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:2.5rem;
  margin-top:1.5rem;
}

.card{
  background:var(--panel);
  padding:30px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  transition:all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:0 4px 20px rgba(0,0,0,0.1);
}

.card:hover{
  transform:translateY(-8px);
  border-color:var(--accent);
  box-shadow:0 12px 40px rgba(0,0,0,0.2);
}

.hero-actions{
  margin-top:30px;
  display:flex;
  gap:20px;
}

.btn{
  padding:14px 28px;
  border-radius:14px;
  font-weight:600;
  transition:.3s;
}

.btn.primary{
  background:var(--accent);
  color:#000;
}

.btn.ghost{
  border:1px solid var(--accent);
  color:var(--accent);
}

.btn:hover{
  transform:translateY(-4px);
}

.contact-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  font-size:1.4rem;
  font-weight:600;
}

.contact-row i{
  font-size:1.8rem;
  color:var(--accent);
}

.icon-img{
  width:48px;
  height:48px;
}

.reveal{
  animation:revealUp 1s ease forwards;
}

@keyframes revealUp{
  from{opacity:0;transform:translateY(30px)}
  to{opacity:1;transform:translateY(0)}
}

footer{
  text-align:center;
  padding:40px;
  color:var(--muted);
}

.horizontal-scroll{
  display:flex;
  gap:2rem;
  overflow-x:auto;
  overflow-y:visible;
  padding:1.5rem 0.5rem;
  scroll-behavior:smooth;
}

.project-card{
  background:var(--panel);
  border-radius:16px;
  padding:1.6rem;
  min-width:260px;

  border:1.5px solid rgba(255,255,255,.12);
  box-shadow:0 10px 25px rgba(0,0,0,.18);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;

  will-change:transform;
}

.project-card:hover{
  transform:translateY(-10px);
  border-color:var(--accent);
  box-shadow:
    0 22px 50px rgba(0,0,0,.35),
    0 0 0 1px rgba(108,242,194,.35);
}

.project-card h4{
  margin-bottom:8px;
}

.project-card p{
  font-size:.95rem;
  opacity:.85;
}

.featured-projects{
  margin:2rem 0;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:2rem;
  margin-top:1.5rem;
}

.category-card{
  background:var(--panel);
  border-radius:18px;
  padding:2rem;
  text-align:center;
  border:1.5px solid rgba(255,255,255,.12);
  box-shadow:0 10px 25px rgba(0,0,0,.18);
  transition:all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor:pointer;
  display:block;
}

.category-card:hover{
  transform:translateY(-8px);
  border-color:var(--accent);
  box-shadow:0 12px 40px rgba(0,0,0,0.2);
}

.category-card i{
  font-size:3rem;
  color:var(--accent);
  margin-bottom:1rem;
}

.category-card h3{
  margin-bottom:0.5rem;
  font-size:1.5rem;
}

.category-card p{
  opacity:0.8;
  margin-bottom:1rem;
}

.count{
  display:inline-block;
  background:var(--accent);
  color:#000;
  padding:0.5rem 1rem;
  border-radius:20px;
  font-weight:600;
  font-size:1.2rem;
}

.grid-asymmetric{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.vertical-stack{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vertical-stack h3{
  margin-bottom: 1rem;
}

.tag{
  display:inline-block;
  padding:4px 10px;
  border-radius:20px;
  font-size:.75rem;
  font-weight:600;
  margin-bottom:10px;
}

.tag.active{background:#4ade80;color:#000}
.tag.dev{background:#facc15;color:#000}
.tag.closed{background:#f87171;color:#000}
.tag.paused{background:#a1a1aa;color:#000}

.hero{
  min-height:calc(100vh - 80px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:2rem;
  gap:1.5rem;
}

.title{
  font-size:3rem;
  font-weight:800;
}

.hero-text{
  max-width:800px;
  font-size:1.1rem;
  line-height:1.7;
  opacity:.9;
}

.animated-text{
  display:inline-block;
  animation:floatText 3s ease-in-out infinite;
}

.core-studios{
  position:relative;
  background:linear-gradient(135deg, var(--accent) 0%, rgba(108,242,194,0.1) 100%);
  border:2px solid var(--accent);
  box-shadow:0 0 30px rgba(108,242,194,0.3);
}

.core-studios::before{
  content:"⭐ Destacado";
  position:absolute;
  top:-10px;
  right:20px;
  background:var(--accent);
  color:#000;
  padding:4px 12px;
  border-radius:20px;
  font-size:0.8rem;
  font-weight:700;
  text-transform:uppercase;
}

.project-link{
  display:block;
}

.project-link:hover{
  text-decoration:none;
}

.project-link:hover .project-card{
  transform:translateY(-10px);
  border-color:var(--accent);
}

@keyframes floatText{
  0%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
  100%{transform:translateY(0)}
}

.core-studios-aside{
  display:flex;
  justify-content:center;
}

