/* ============================================
   Joan Moncho · Portfolio
   Theme: Dark · Cyber · Professional
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --bg-3: #151b2e;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6ebf5;
  --text-muted: #8a93a6;
  --text-dim: #5d6478;

  --accent: #00d4ff;
  --accent-2: #5b8cff;
  --accent-3: #a855f7;
  --accent-glow: rgba(0, 212, 255, 0.4);

  --success: #34d399;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

/* Animated background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 70%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(0, 212, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(91, 140, 255, 0.07), transparent 60%);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-bracket { color: var(--accent); }
.logo-text { color: var(--text); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg) !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.typing-cursor::after {
  content: "|";
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-description strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.hero-socials {
  display: flex;
  gap: 12px;
}
.hero-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition);
}
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-frame {
  position: relative;
  width: 360px;
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  transition: transform 0.6s ease;
}
.profile-frame:hover img { transform: scale(1.05); }

.profile-glow {
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-radius: var(--radius-xl);
  filter: blur(30px);
  opacity: 0.3;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.profile-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.profile-corner.top-left { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.profile-corner.top-right { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.profile-corner.bottom-left { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.profile-corner.bottom-right { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.floating-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: floatTag 4s ease-in-out infinite;
}
.floating-tag svg { color: var(--accent); }
.tag-1 { top: 10%; left: -10%; animation-delay: 0s; }
.tag-2 { top: 45%; right: -15%; animation-delay: 1.3s; }
.tag-3 { bottom: 8%; left: -5%; animation-delay: 2.6s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease 1s backwards;
}
.mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-dim);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   SECTIONS (generic)
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 36, 0.6) 50%, transparent 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-image:hover img { transform: scale(1.04); }
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 26, 0.6) 100%);
  pointer-events: none;
}

.about-content { padding: 10px 0; }

.about-lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-content strong { color: var(--text); font-weight: 600; }

.about-personal {
  margin-top: 28px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.about-personal::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}
.about-personal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.about-personal-title svg { color: var(--accent); }
.about-personal p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.about-personal p strong {
  color: var(--text);
  font-weight: 600;
}

.age-pill {
  display: inline-block;
  padding: 2px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 999px;
  font-size: 0.9rem;
  margin: 0 2px;
}

.quick-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.fact:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.fact svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.fact-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.fact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.skill-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.skill-card:hover::before { transform: scaleX(1); }

.skill-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 18px;
}
.skill-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags li {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  transition: all var(--transition);
}
.skill-card:hover .skill-tags li {
  border-color: rgba(0, 212, 255, 0.25);
  color: var(--text);
}

/* ============================================
   TIMELINE (Experience & Education)
   ============================================ */
.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.timeline-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text);
}
.timeline-heading svg { color: var(--accent); }

.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition);
}
.timeline-item:hover .timeline-dot::after { transform: scale(1); }

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
}
.timeline-item:hover .timeline-content {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.timeline-org {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.timeline-content p:not(.timeline-org) {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-card.featured {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(168, 85, 247, 0.04));
  border-color: rgba(0, 212, 255, 0.18);
}

.project-visual {
  height: 240px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-puntozero-booking {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.25), transparent 60%),
    linear-gradient(135deg, #1a1f3a 0%, #0a0e1a 100%);
}
.project-puntozero-landing {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(168, 85, 247, 0.25), transparent 60%),
    linear-gradient(135deg, #1f1a3a 0%, #0a0e1a 100%);
}
.project-forense {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(52, 211, 153, 0.15), transparent 70%),
    linear-gradient(135deg, #0d2417 0%, #0a0e1a 100%);
}
.project-powerbi {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, 0.15), transparent 70%),
    linear-gradient(135deg, #2a1f0d 0%, #0a0e1a 100%);
}
.project-fcvintage {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(239, 68, 68, 0.15), transparent 70%),
    linear-gradient(135deg, #2a0d12 0%, #0a0e1a 100%);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
}
.project-badge.dark {
  background: rgba(10, 14, 26, 0.7);
  color: var(--accent);
  border: 1px solid var(--accent);
  backdrop-filter: blur(8px);
}

/* Mock window (PuntoZero) */
.mock-window {
  width: 100%;
  max-width: 320px;
  background: var(--bg-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}
.project-card:hover .mock-window { transform: translateY(-4px) rotate(-1deg); }
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.mock-bar span:not(.mock-url) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #ffbd2e; }
.mock-bar span:nth-child(3) { background: #28ca42; }
.mock-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  flex: 1;
}
.mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-line {
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-radius: 4px;
}
.mock-line.w-80 { width: 80%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-40 { width: 40%; }

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 4px 0;
}
.mock-slot {
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.mock-slot.active {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--accent);
}
.mock-btn {
  padding: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  text-align: center;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}
.mock-btn.small { padding: 6px; font-size: 0.7rem; }

.mock-body.landing {
  gap: 14px;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mock-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  mix-blend-mode: screen;
}
.mock-brand span {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mock-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.mock-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: screen;
  margin-bottom: 4px;
}
.mock-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mock-avatar-img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  filter: saturate(0.9);
}

/* Terminal mock (forense) */
.terminal-mock {
  width: 100%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}
.project-card:hover .terminal-mock { transform: translateY(-4px); }
.term-line { color: var(--text-muted); }
.term-prompt { color: #34d399; margin-right: 8px; font-weight: 600; }
.term-out { color: #94a3b8; }
.term-cursor {
  color: #34d399;
  animation: blink 1s step-end infinite;
}

/* Chart mock (Power BI) */
.chart-mock {
  width: 100%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  height: 180px;
  transition: transform 0.4s ease;
}
.project-card:hover .chart-mock { transform: translateY(-4px); }
.chart-bars {
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 100%;
}
.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px 3px 0 0;
  min-height: 10px;
  animation: barRise 1s ease backwards;
}
.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }
.bar:nth-child(7) { animation-delay: 0.7s; }
@keyframes barRise {
  from { height: 0; opacity: 0; }
}
.chart-donut {
  width: 100px;
  height: 100px;
  align-self: center;
}

/* Ecommerce mock */
.ecommerce-mock {
  width: 100%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s ease;
}
.project-card:hover .ecommerce-mock { transform: translateY(-4px); }
.shirt-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.shirt {
  aspect-ratio: 1;
  border-radius: 6px;
  position: relative;
}
.shirt::before {
  content: "";
  position: absolute;
  inset: 20% 25%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.shirt-1 { background: linear-gradient(135deg, #dc2626, #991b1b); }
.shirt-2 { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.shirt-3 { background: linear-gradient(135deg, #16a34a, #14532d); }

.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.project-tags span {
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}
.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.project-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.project-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition);
}
.project-link:hover { gap: 10px; color: var(--text); }

.project-link.primary {
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  border-radius: 999px;
  gap: 6px;
}
.project-link.primary:hover {
  color: var(--bg);
  gap: 9px;
  box-shadow: 0 8px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 500;
}

.project-more {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.05));
  border-style: dashed;
  border-color: var(--border-strong);
  display: grid;
  place-items: center;
  min-height: 350px;
}
.more-content {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.more-content svg { color: var(--accent); }
.more-content h3 { font-size: 1.25rem; font-weight: 700; }
.more-content p { color: var(--text-muted); font-size: 0.92rem; max-width: 280px; }
.more-content .btn { margin-top: 8px; }

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 60%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cert-card:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}
.cert-card:hover::before { opacity: 1; }

.cert-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 20px;
}
.cert-issuer {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.cert-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.cert-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}
.cert-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap var(--transition);
}
.cert-card:hover .cert-view { gap: 10px; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.contact-card:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.contact-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 36, 0.5);
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 14px;
}
.footer-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: rgba(15, 20, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 14px 40px rgba(0, 212, 255, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
  max-width: calc(100vw - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast svg { color: var(--accent); flex-shrink: 0; }
.toast strong { color: var(--accent); font-weight: 600; }
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .toast {
    bottom: 80px;
    font-size: 0.85rem;
    padding: 11px 16px;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bg);
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 50;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .profile-frame { width: 280px; height: 340px; }
  .scroll-indicator { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 380px; margin: 0 auto; }

  .timeline-wrapper { grid-template-columns: 1fr; gap: 50px; }
  .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 70px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .menu-toggle { display: flex; }

  .hero { padding: 100px 0 60px; }
  .profile-frame { width: 240px; height: 290px; }
  .floating-tag { font-size: 0.72rem; padding: 6px 10px; }
  .tag-1 { top: -4%; left: 0%; }
  .tag-2 { top: 50%; right: -2%; }
  .tag-3 { bottom: -2%; left: 10%; }

  .quick-facts { grid-template-columns: 1fr; }

  .section { padding: 70px 0; }
  .section-header { margin-bottom: 40px; }

  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-actions .btn { justify-content: center; width: 100%; }

  .contact-cta { flex-direction: column; align-items: center; }
  .contact-cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .skill-card, .cert-card { padding: 22px; }
  .project-visual { height: 200px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
