/* ========================= */
/* GLOBAL */
/* ========================= */

:root {

  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;

  --bg: #050816;

  --card: rgba(15, 23, 42, 0.78);

  --text: #ffffff;

  --text-secondary: #e8ecf1;
/* --text-secondary: #94a3b8; */
  --border: rgba(59,130,246,0.18);

} 

/* :root{
  --primary:#00ffff;
  --primary-light:#5df2ff;
  --primary-dark:#00bcd4;

  --bg:#050816;

  --card:rgba(10,18,28,.78);

  --text:#ffffff;
  --text-secondary:#8fa3b8;

  --border:rgba(0,255,255,.18);
} */

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

  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}


/* ========================= */
/* FUTURISTIC BACKGROUND */
/* ========================= */

body::before {
  content: '';

  position: fixed;
  inset: 0;

  background:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);

  background-size: 60px 60px;

  z-index: 0;

  animation: gridMove 18s linear infinite;

  pointer-events: none;
}

body::after {

  content: '';

  position: fixed;

  width: 1200px;
  height: 1200px;

  background:
    radial-gradient(circle,
    rgba(59,130,246,0.10),
    transparent 65%);

  top: -400px;
  right: -300px;

  z-index: 0;

  filter: blur(40px);

  animation: pulseGlow 8s ease-in-out infinite;

  pointer-events: none;
}

.background-glow {

  position: fixed;

  width: 900px;
  height: 900px;

  background:
    radial-gradient(circle,
    rgba(59,130,246,0.14),
    transparent 70%);

  top: -250px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 0;

  pointer-events: none;

  filter: blur(30px);

  animation: floatingGlow 10s ease-in-out infinite;
}


/* ========================= */
/* ANIMATIONS */
/* ========================= */

@keyframes gridMove {

  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(60px);
  }

}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }

}

@keyframes floatingGlow {

  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }

  50% {
    transform: translateX(-50%) translateY(30px);
  }

}


/* ========================= */
/* CONTAINER */
/* ========================= */

.container {

  width: 90%;
  max-width: 1300px;

  margin: auto;

  position: relative;

  z-index: 1;
}


/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  padding: 20px 8%;

  display: flex;

  justify-content: space-between;
  align-items: center;

  backdrop-filter: blur(18px);

  background: rgba(5,8,22,0.72);

  border-bottom: 1px solid rgba(255,255,255,0.04);

  z-index: 999;
}

.logo {

  font-size: 24px;

  font-weight: 800;

  color: var(--primary);
}

.nav-links {

  display: flex;

  gap: 30px;

  list-style: none;
}

.nav-links a {

  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.nav-links a:hover {

  color: var(--primary-light);
}


/* ========================= */
/* HERO */
/* ========================= */

header {

  min-height: 100vh;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 60px;

  flex-wrap: wrap;
}

.hero-text,
.hero-card {

  flex: 1;

  min-width: 320px;
}

.badge {

  display: inline-block;

  padding: 10px 20px;

  border-radius: 999px;

  background: rgba(59,130,246,0.08);

  border: 1px solid rgba(59,130,246,0.15);

  color: var(--primary-light);

  margin-bottom: 30px;

  font-size: 14px;
}

h1 {

  font-size: 60px;

  line-height: 1.05;

  margin-bottom: 30px;

  letter-spacing: -2px;
}

h1 span {

  color: var(--primary);

  display: block;
}

.description {

  color: var(--text-secondary);

  font-size: 18px;

  line-height: 1.9;

  max-width: 650px;

  margin-bottom: 40px;
}


/* ========================= */
/* BUTTONS */
/* ========================= */

.buttons {

  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.center {
  justify-content: center;
}

.btn {

  padding: 15px 28px;

  border-radius: 16px;

  text-decoration: none;

  transition: 0.3s ease;

  font-size: 15px;
}

.btn-primary {

  background: var(--primary);

  color: white;

  font-weight: 600;

  box-shadow:
    0 0 20px rgba(59,130,246,0.25);
}

.btn-primary:hover {

  transform: translateY(-4px);

  background: var(--primary-light);
}

.btn-secondary {

  border: 1px solid rgba(255,255,255,0.08);

  color: white;

  background: rgba(255,255,255,0.02);
}

.btn-secondary:hover {

  border-color: var(--primary);
}


/* ========================= */
/* CARDS */
/* ========================= */

.hero-card,
.skill-card,
.timeline-content,
.contact-box,
.dashboard-card {

  background: var(--card);

  border: 1px solid rgba(255,255,255,0.04);

  border-radius: 30px;

  backdrop-filter: blur(20px);

  transition: 0.3s ease;
}

.hero-card {

  padding: 40px;

  box-shadow:
    0 0 50px rgba(59,130,246,0.08);
}
.featured-project:hover,
.skill-card:hover,
.timeline-content:hover,
.dashboard-card:hover,
.hero-card:hover {

  transform: translateY(-5px);

  border-color: rgba(59,130,246,0.25);
}


/* ========================= */
/* GRID */
/* ========================= */

.stats-grid,
.skills-grid,
.dashboard-grid {

  display: grid;

  gap: 25px;
}

.stats-grid {

  grid-template-columns: repeat(2, 1fr);
}

.skills-grid {

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-grid {

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));
}


/* ========================= */
/* STATS */
/* ========================= */

.stat-box,
.dashboard-card {

  background: rgba(0,0,0,0.18);

  border: 1px solid rgba(255,255,255,0.04);

  border-radius: 24px;

  padding: 30px;
}

.stat-box h2,
.dashboard-card span {

  color: var(--primary);

  font-size: 38px;

  font-weight: 700;
}

.stat-box p {

  color: var(--text-secondary);

  margin-top: 10px;
}


/* ========================= */
/* SECTIONS */
/* ========================= */

.section {

  padding: 120px 0;
}

.section-title {

  font-size: 54px;

  margin-bottom: 20px;

  letter-spacing: -1px;
}

.section-subtitle,
.about-text,
.timeline-content p,
.project-info p,
.contact-box p {

  color: var(--text-secondary);

  line-height: 1.9;
}

.about-text {

  max-width: 900px;

  font-size: 18px;
}


/* ========================= */
/* STACK */
/* ========================= */

.skill-card {

  padding: 35px;
}

.skill-icon {

  font-size: 36px;

  margin-bottom: 20px;
}

.skill-card h3 {

  color: var(--primary);

  margin-bottom: 20px;
}

.tag {

  display: inline-block;

  padding: 10px 14px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.08);

  margin: 5px;

  font-size: 14px;

  color: var(--text-secondary);

  background: rgba(255,255,255,0.02);
}


/* ========================= */
/* TIMELINE */
/* ========================= */

.timeline {

  border-left: 2px solid rgba(59,130,246,0.25);

  padding-left: 40px;
}

.timeline-item {

  position: relative;

  margin-bottom: 10px;
}

.timeline-item::before {

  content: '';

  position: absolute;

  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: var(--primary);

  left: -50px;
  top: 1px;

  box-shadow:
    0 0 20px rgba(59,130,246,0.45);
}

.timeline-date {

  color: var(--primary);

  margin-bottom: 10px;

  font-weight: 700;
}

.timeline-content {

  padding: 15px;
}


/* ========================= */
/* PROJECTS */
/* ========================= */

.featured-project {

  display: flex;

  align-items: center;

  gap: 60px;

  margin-bottom: 120px;

  flex-wrap: wrap;

   background: var(--card);

  border: 1px solid rgba(255,255,255,0.04);

  border-radius: 30px;

  backdrop-filter: blur(20px);

  transition: 0.3s ease;

}

.reverse {

  flex-direction: row-reverse;
}

.project-image,
.project-info {

  flex: 1;

  min-width: 320px;
}

.project-image {

  width: 100%;

  border-radius: 30px;

  border: 1px solid rgba(255,255,255,0.05);

  box-shadow:
    0 0 50px rgba(59,130,246,0.06);
}

.project-badge {

  display: inline-block;

  margin-bottom: 20px;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(59,130,246,0.08);

  color: var(--primary-light);
}

.project-info h3 {

  font-size: 44px;

  margin-bottom: 20px;
}

.project-links {

  display: flex;

  gap: 20px;

  margin-top: 30px;

  flex-wrap: wrap;
}

.project-content{
    display:none;
}

.project-content.active{
    display:flex;   /* porque featured-project seguramente usa flex */
}

.project-list li{
    cursor:pointer;
    padding:8px;
    transition:.3s;
}

.project-list li:hover{
    color:#22565d;
}

.project-list li.selected{
    color:#00bcd4;
    font-weight:bold;
}

.publication-link{
    display:inline-block;
    margin-top:15px;
    color:#0077cc;
    font-weight:600;
    text-decoration:none;
}

.publication-link:hover{
    text-decoration:underline;
}
/* ========================= */
/* DASHBOARD */
/* ========================= */

.dashboard-card {

  text-align: center;
}

.dashboard-card h3 {

  margin-bottom: 20px;

  color: var(--text-secondary);

  font-size: 14px;

  letter-spacing: 2px;
}



/* ========================= */
/* CONTACT */
/* ========================= */

.contact-box {

  padding: 80px 40px;

  text-align: center;
}


/* ========================= */
/* FOOTER */
/* ========================= */

footer {

  padding: 50px 0;

  text-align: center;

  color: #64748b;
}


/* ========================= */
/* FLOATING BUTTONS */
/* ========================= */

.theme-toggle,
.whatsapp-button,
.cv-button {

  position: fixed;

  right: 20px;

  width: 55px;
  height: 55px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  z-index: 1000;

  backdrop-filter: blur(10px);

  background: rgba(15,23,42,0.72);

  border: 1px solid rgba(255,255,255,0.05);

  transition: 0.3s ease;
}

.theme-toggle:hover,
.whatsapp-button:hover,
.cv-button:hover {

  transform: translateY(-4px);

  border-color: rgba(59,130,246,0.35);

  box-shadow:
    0 0 20px rgba(59,130,246,0.18);
}

.theme-toggle {

  top: 20px;

  color: white;

  cursor: pointer;
}

.whatsapp-button {

  top: 90px;
}

.whatsapp-button img {

  width: 28px;
}

.cv-button {

  top: 160px;
}

.cv-button img {

  width: 28px;
}

/* ========================= */
/* LIGHT MODE */
/* ========================= */
.light-mode {

  --bg: #f4f7fb;

  --card: rgba(255,255,255,0.90);

  --text: #111827;

  --text-secondary: #4b5563;

  --border: rgba(59,130,246,0.18);

  background: var(--bg);

  color: var(--text);

}




/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width: 768px) {

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 52px;
  }

  .section-title {
    font-size: 40px;
  }

  .featured-project {
    gap: 40px;
  }

}

.about-container{

  display:flex;

  align-items:center;

  gap:60px;

  margin-top:40px;

  flex-wrap:wrap;

}

.about-image{

  flex:1;


  text-align:center;

}

.about-image img{

  width: 245px;
  height: 265px;

  border-radius:50%;

  border:2px solid var(--primary);

  box-shadow:
    0 0 40px rgba(59,130,246,.25);

}

.about-content{

  flex:2;

  min-width:320px;

}

.about-content h3{

  color:var(--primary);

  margin-bottom:20px;

  font-size:32px;

}

.about-content p{

  line-height:1.9;

  color:var(--text-secondary);

  margin-bottom:20px;

}

/* ========================= */
.project-image {

  aspect-ratio: 16 / 9;

  object-fit: cover;

}

.project-list {

  margin-top: 40px;

  padding-left: 30px;

}

.project-list li {

  margin-bottom: 15px;

  color: var(--text-secondary);

}

.btn-primaryC{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:14px 22px;
    border-radius:12px;

    background:var(--primary);
    color:white;
    font-weight:600;

    transition:.3s;
}

.btn-primaryC:hover{
    transform:translateY(-4px);
    background:var(--primary-light);
}

