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

/* VARIABLES */
:root {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --accent: #22d3ee;
  --accent-secondary: #84FF9D;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
}

/* GLOBAL */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* NAV */
nav {
  backdrop-filter: blur(10px);
}

nav a {
  transition: 0.3s;
}

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

/* HERO */
#inicio h1 {
  letter-spacing: -1px;
}

#inicio p {
  line-height: 1.6;
}

.relative {
    padding-top: 75px;
}

/* BOTONES */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #0f172a;
}

/* SECCIONES */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SKILLS ITEMS MODERNO */
.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #1e293b;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 14px;
}

.skill-item i {
  width: 20px;
  text-align: center;
}

.skill-item:hover {
  background: rgba(34, 211, 238, 0.15);
  transform: translateX(5px);
}

/* CV TIMELINE */
.timeline {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
}

/* PORTFOLIO */
.card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
}

.card img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 15px;
}

/* ===== FAANG++ PROJECT SYSTEM ===== */

.project-card {
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34,211,238,0.08), transparent 40%);
  opacity: 0;
  transition: 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;

  background: rgba(34, 211, 238, 0.08);
  color: var(--accent-secondary);
  border: 1px solid rgba(34, 211, 238, 0.2);

  transition: 0.25s ease;
}

.badge:hover {
  transform: translateY(-2px);
  background: rgba(34, 211, 238, 0.2);
}

/* FILTER BUTTONS */
.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  transition: 0.3s;
}

.filter-btn:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.filter-btn.active {
  background: #22d3ee;
  color: #0f172a;
  font-weight: 600;
}

/* FORM */
input, textarea {
  border: none;
  outline: none;
  background: var(--bg-secondary);
  transition: 0.5s;
  color: var(--text);
  border-radius: 8px;
}

input:focus, textarea:focus {
  border: 1px solid var(--accent);
}

.btn-sendMessage:hover {
    background: var(--accent-secondary);
    transition: 0.5s;
}

/* FOOTER */
footer {
  font-size: 14px;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}