/* =========================================================
   PORTFOLIO — Alejandro Vera
   Sistema de diseño: crema + navy + glass effect
   ========================================================= */

/* ---- 0. TOKENS ---- */
:root {
  --cream-light:    #FAF7F2;
  --cream-base:     #F3EDE2;
  --cream-dark:     #E4D9C8;
  --cream-border:   rgba(180,165,140,0.35);

  --navy:           #1A1A2E;
  --navy-mid:       #252540;
  --text-primary:   #1F1F35;
  --text-secondary: #5A5A72;
  --text-muted:     #8A8A9E;

  --accent:         #6366F1;   /* violeta suave — el único color vivo */
  --accent-light:   rgba(99,102,241,0.12);
  --accent-glow:    rgba(99,102,241,0.25);

  --glass-bg:       rgba(255,255,255,0.55);
  --glass-border:   rgba(255,255,255,0.75);
  --glass-shadow:   0 8px 32px rgba(26,26,46,0.08);

  --radius-sm:   8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

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

/* ---- 1. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-light);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }

/* ---- 2. UTILITY ---- */
.container {
  width: min(90%, 1080px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 48ch;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-sub {
  margin-inline: auto;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ---- 3. BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,26,46,0.18);
}
.btn--primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,26,46,0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--cream-border);
}
.btn--ghost:hover {
  background: var(--cream-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--cream-dark);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ---- 4. HEADER / NAV ---- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(250,247,242,0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--cream-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(26,26,46,0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav__logo-dot { color: var(--accent); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav__link:hover,
.nav__link.active {
  background: var(--cream-dark);
  color: var(--text-primary);
}

.nav__link--cta {
  background: var(--navy);
  color: #fff !important;
  margin-left: 0.5rem;
}
.nav__link--cta:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* ---- 5. HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero__bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
}
.blob--1 {
  width: 520px; height: 520px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, #D8D0FF 0%, #E4D9C8 100%);
  animation: blobFloat 14s ease-in-out infinite;
}
.blob--2 {
  width: 380px; height: 380px;
  bottom: 0; left: -60px;
  background: radial-gradient(circle, #C8D8E4 0%, #E4DCC8 100%);
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob--3 {
  width: 260px; height: 260px;
  top: 40%; left: 38%;
  background: radial-gradient(circle, #E8D8FF 0%, transparent 70%);
  animation: blobFloat 18s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
  max-width: 700px;
}

.hero__eyebrow {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.7s ease both;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero__role {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.4rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

#typewriter {
  color: var(--accent);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.br-desktop { display: none; }

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}

.hero__scroll {
  margin-top: 4rem;
  animation: fadeUp 0.7s 0.6s ease both;
}

.scroll-indicator {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(99,102,241,0.35);
  border-radius: 12px;
  position: relative;
  background: rgba(99,102,241,0.06);
}
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 6. ABOUT ---- */
.about {
  background: var(--cream-base);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.avatar-frame {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.avatar-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cream-dark);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid var(--cream-border);
  box-shadow: var(--glass-shadow);
}

.avatar-img svg {
  width: 70%;
  height: auto;
}

.avatar-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  white-space: nowrap;
  border-radius: 50px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(52,211,153,0.1); }
}

.about__para {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.about__facts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-block: 1.75rem;
}

.about__facts li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.fact-icon { font-size: 1.1rem; }

/* ---- 7. SKILLS ---- */
.skills {
  background: var(--cream-light);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,26,46,0.12);
}

.skill-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(99,102,241,0.18);
}

/* ---- 8. PROJECTS ---- */
.projects {
  background: var(--cream-base);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26,26,46,0.13);
}

/* Previews (ilustraciones abstractas tipo UI mockup) */
.project-card__header { flex-shrink: 0; }

.project-preview {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.project-preview--1 { background: linear-gradient(135deg, #D8D0FF 0%, #C8E0D8 100%); }
.project-preview--2 { background: linear-gradient(135deg, #FFE4C8 0%, #D8E8FF 100%); }
.project-preview--3 { background: linear-gradient(135deg, #C8FFD8 0%, #D8C8FF 100%); }

.preview-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.preview-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.preview-bar {
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 4px;
  width: 80%;
}
.preview-bar--short  { width: 50%; }
.preview-bar--med    { width: 65%; }

.preview-grid {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.preview-box {
  flex: 1;
  height: 36px;
  background: rgba(255,255,255,0.4);
  border-radius: 6px;
}

.preview-hero-line {
  height: 18px;
  width: 55%;
  background: rgba(255,255,255,0.55);
  border-radius: 4px;
}

.preview-cta {
  width: 80px; height: 24px;
  background: rgba(255,255,255,0.65);
  border-radius: 50px;
}

.preview-code-line {
  height: 9px;
  background: rgba(255,255,255,0.5);
  border-radius: 3px;
  width: 70%;
}
.preview-code-line--indent { width: 55%; margin-left: 14px; }
.preview-code-line--short  { width: 35%; }

/* Card body */
.project-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--cream-dark);
  color: var(--text-secondary);
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-card__links {
  display: flex;
  gap: 1rem;
}

.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.link-icon:hover {
  color: var(--text-primary);
  border-bottom-color: var(--cream-dark);
}

.projects__more {
  text-align: center;
}

/* ---- 9. CONTACT ---- */
.contact {
  background: var(--cream-light);
}

.contact__inner {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.contact-link:hover { color: var(--text-primary); }
.contact-link__icon { font-size: 1.2rem; }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #fff;
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-feedback {
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}
.form-feedback.success { color: #059669; }
.form-feedback.error   { color: #DC2626; }

/* ---- 10. FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding-block: 1.75rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy { font-size: 0.88rem; }

.footer__back {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer__back:hover { color: #fff; }

/* ---- 11. SCROLL REVEAL ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 12. RESPONSIVE ---- */
@media (min-width: 768px) {
  .br-desktop { display: block; }
}

@media (max-width: 900px) {
  .about__grid   { grid-template-columns: 1fr; }
  .about__visual { order: -1; max-width: 220px; margin-bottom: 2rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__list {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(250,247,242,0.97);
    backdrop-filter: blur(20px);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--cream-border);
    box-shadow: 0 8px 32px rgba(26,26,46,0.08);
  }
  .nav__list.open { display: flex; }

  .nav__link { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
  .nav__link--cta { text-align: center; margin-left: 0; margin-top: 0.5rem; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  .skills__grid   { grid-template-columns: 1fr 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .skills__grid { grid-template-columns: 1fr; }
}

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

/* ---- NEW SECTIONS: GOAL, LEARNING, FEATURED CARDS ---- */

/* Goal */
.goal { background: var(--cream-base); padding-block: 3.5rem; }

.goal__card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.5rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.goal__icon { font-size: 3rem; flex-shrink: 0; line-height: 1; }

.goal__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.goal__desc { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }

/* Learning */
.learning { background: var(--cream-light); }

.learning__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.learning-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  flex-wrap: wrap;
  transition: transform var(--transition), box-shadow var(--transition);
}
.learning-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,26,46,0.10);
}

.learning-item__icon { font-size: 1.4rem; flex-shrink: 0; }

.learning-item__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 100px;
}

.learning-bar {
  width: 100%;
  height: 5px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.learning-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #818CF8);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Featured project cards */
.project-card--featured {
  position: relative;
  border: 1px solid rgba(99,102,241,0.2);
}

.project-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(26,26,46,0.2);
}

/* Hackathon map preview */
.project-preview--hackathon {
  background: linear-gradient(135deg, #C8E8D8 0%, #D8E8FF 100%);
}

.preview-map-placeholder {
  position: relative;
  width: 100%;
  height: 80px;
  background: rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.preview-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 18px 18px;
}

.preview-map-pin {
  position: absolute;
  top: 20px; left: 30%;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(99,102,241,0.5);
}
.preview-map-pin--2 {
  top: 40px; left: 60%;
  background: #F59E0B;
  box-shadow: 0 2px 8px rgba(245,158,11,0.5);
}

/* Music project preview */
.project-preview--music {
  background: linear-gradient(135deg, #FFD8E8 0%, #D8C8FF 100%);
}

.preview-music-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 8px;
}
.preview-music-bars span {
  flex: 1;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
  animation: musicBar 1.2s ease-in-out infinite alternate;
}
.preview-music-bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.preview-music-bars span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.preview-music-bars span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.preview-music-bars span:nth-child(4) { height: 85%; animation-delay: 0.45s; }
.preview-music-bars span:nth-child(5) { height: 40%; animation-delay: 0.6s; }

@keyframes musicBar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* Goal + learning responsive */
@media (max-width: 640px) {
  .goal__card { flex-direction: column; gap: 1rem; padding: 1.75rem; }
  .learning__grid { grid-template-columns: 1fr; }
}