/* ===== Custom cursor ===== */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100; border-radius: 999px; }
.cursor-ring { width: 2rem; height: 2rem; border: 1px solid var(--emerald-400); opacity: .4; transition: opacity .2s, border-color .2s; }
.cursor-dot { width: .5rem; height: .5rem; background: var(--emerald-500); }
.cursor-ring.is-hovering { border-color: #fbbf24; opacity: .8; }
.cursor-dot.is-hovering { background: #fbbf24; }
@media (max-width: 767px), (hover: none) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* ===== Global background particles ===== */
.bg-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4; }

/* ===== Navbar ===== */
.navbar-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo-btn {
  display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.25rem;
  position: relative; z-index: 50;
  filter: drop-shadow(0 0 15px rgba(16,185,129,.15));
  transition: color .2s;
}
.logo-btn:hover { color: #fff; }
.logo-box {
  width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  border-radius: .5rem; border: 1px solid rgba(16,185,129,.3); background: rgba(16,185,129,.3);
  box-shadow: 0 0 15px rgba(16,185,129,.15);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.logo-letter { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--emerald-400); padding-top: .2rem; }
.logo-text { display: none; }
.logo-suffix { color: var(--emerald-400); }
@media (min-width: 640px) { .logo-text { display: block; } }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { font-size: .9rem; font-weight: 500; color: var(--slate-300); position: relative; transition: color .2s; }
.nav-desktop a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--emerald-500);
  transition: width .3s;
}
.nav-desktop a:not(.nav-cta):hover::after { width: 100%; }
.nav-desktop a:hover { color: #fff; }
.nav-cta { padding: .65rem 1.25rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(4px); }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--slate-200); position: relative; z-index: 50;
}
.menu-toggle:active { background: rgba(255,255,255,.1); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu-glow { position: absolute; width: 16rem; height: 16rem; border-radius: 999px; filter: blur(80px); pointer-events: none; }
.mobile-menu-glow--top { top: 0; right: 0; background: rgba(5,150,105,.2); }
.mobile-menu-glow--bottom { bottom: 0; left: 0; background: rgba(13,148,136,.2); }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 2rem; position: relative; z-index: 10; }
.mobile-link {
  font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 500; color: var(--slate-300);
  opacity: 0; transform: translateY(20px); transition: color .2s;
}
.mobile-menu.is-open .mobile-link { animation: transition-fade-up .5s ease forwards; animation-delay: calc(.1s + var(--i) * .1s); }
.mobile-link:hover { color: var(--emerald-400); }
.mobile-cta {
  margin-top: 1rem; padding: 1rem 2rem; border-radius: 999px; background: var(--emerald-600); color: #fff;
  font-weight: 500; font-size: 1.1rem; box-shadow: 0 10px 30px -8px rgba(16,185,129,.2);
  opacity: 0; transform: translateY(20px);
}
.mobile-menu.is-open .mobile-cta { animation: transition-fade-up .5s ease forwards; animation-delay: calc(.1s + var(--i) * .1s); }

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-content { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero-badge { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); color: var(--emerald-400); font-size: .85rem; font-weight: 500; margin-bottom: 1.5rem; }
.hero-title { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.5rem; line-height: 1.05; }
.hero-title-line { display: block; color: var(--slate-300); }
.hero-title-gradient { display: block; }
.hero-subtitle { font-size: 1.1rem; color: var(--slate-400); max-width: 42rem; margin: 0 auto 2.5rem; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; margin-bottom: 3rem; }
.hero-socials { display: flex; gap: 1.5rem; justify-content: center; color: var(--slate-400); }
.hero-socials a, .hero-socials button { transition: color .2s, transform .2s; }
.hero-socials a:hover, .hero-socials button:hover { color: #fff; transform: scale(1.1); }
.hero-scroll-hint { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); color: var(--slate-500); }
@media (min-width: 768px) {
  .hero-title { font-size: 5rem; }
  .hero-actions { flex-direction: row; }
}
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }

/* ===== About ===== */
.about { position: relative; padding: 6rem 0; overflow: hidden; }
.about-blob { position: absolute; top: 0; right: 0; width: 500px; height: 500px; background: rgba(6,78,59,.1); border-radius: 999px; filter: blur(100px); transform: translate(50%, -50%); }
.about-inner { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.about-photo-wrap { width: 100%; position: relative; }
.about-photo-glow {
  position: absolute; inset: -4px; border-radius: 1.25rem; filter: blur(10px); opacity: .25;
  background: linear-gradient(to right, var(--emerald-500), var(--teal-500));
  transition: opacity .5s;
}
.about-photo-wrap:hover .about-photo-glow { opacity: .5; }
.about-photo-frame { position: relative; aspect-ratio: 4/5; width: 100%; max-width: 26rem; margin: 0 auto; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.about-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .7s; }
.about-photo-wrap:hover .about-photo { filter: grayscale(0); }
.about-photo-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 60%); opacity: .8; }
.about-quote { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; color: #fff; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; line-height: 1.5; }
.about-paragraphs { display: flex; flex-direction: column; gap: 1rem; color: var(--slate-300); line-height: 1.7; margin-bottom: 2rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { padding: 1rem; border-radius: .75rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.05); transition: border-color .2s; }
.stat-card:hover { border-color: rgba(16,185,129,.3); }
.stat-card h4 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.stat-card p { font-size: .9rem; color: var(--slate-400); }
@media (min-width: 768px) {
  .about-inner { flex-direction: row; align-items: center; gap: 5rem; }
  .about-photo-wrap, .about-text { width: 50%; }
}

/* ===== Skills ===== */
.skills { padding: 6rem 0; background: rgba(15,23,42,.5); }
.skills-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.skill-card {
  background: rgba(30,41,59,.5); border: 1px solid rgba(51,65,85,.5); border-radius: 1rem; padding: 1.5rem;
  box-shadow: 0 10px 25px -10px rgba(0,0,0,.4);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.skill-card:hover { background: var(--slate-800); transform: translateY(-5px); box-shadow: 0 10px 30px -10px rgba(16,185,129,.1); }
.skill-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.skill-card-icon { padding: .75rem; background: var(--bg); border-radius: .75rem; border: 1px solid var(--slate-700); display: flex; }
.skill-card-title { font-size: 1.15rem; font-weight: 700; color: var(--slate-100); }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag { padding: .3rem .75rem; font-size: .75rem; font-weight: 500; color: var(--slate-300); background: rgba(51,65,85,.5); border-radius: 999px; border: 1px solid rgba(71,85,105,.5); }
@media (min-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Experience ===== */
.experience { padding: 6rem 0; position: relative; }
.timeline { max-width: 64rem; margin: 0 auto; }
.timeline-item { position: relative; padding-left: 2rem; margin-bottom: 3rem; }
.timeline-line { display: none; }
.timeline-dot { position: absolute; left: 0; top: .4rem; width: 1rem; height: 1rem; border-radius: 999px; border: 4px solid var(--bg); z-index: 2; }
.timeline-dot--work { background: var(--emerald-500); }
.timeline-dot--education { background: var(--teal-500); }
.timeline-row { display: flex; flex-direction: column; }
.timeline-card {
  background: rgba(15,23,42,.5); border: 1px solid var(--slate-800); border-radius: 1rem; padding: 1.5rem;
  transition: border-color .3s;
}
.timeline-card:hover { border-color: rgba(16,185,129,.3); }
.timeline-card:hover .timeline-title { color: var(--emerald-400); }
.timeline-title { font-size: 1.2rem; font-weight: 700; color: #fff; transition: color .2s; }
.timeline-company { display: flex; align-items: center; gap: .5rem; color: var(--emerald-400); font-size: .85rem; font-weight: 500; margin: .25rem 0 .75rem; }
.timeline-desc { color: var(--slate-400); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.timeline-period { display: flex; align-items: center; gap: .5rem; color: var(--slate-500); font-size: .75rem; }
@media (min-width: 768px) {
  .timeline-item { padding-left: 0; }
  .timeline-line { display: block; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--slate-800); transform: translateX(-50%); }
  .timeline-dot { left: 50%; top: 1.5rem; transform: translateX(-50%); }
  .timeline-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .timeline-row.is-reversed { flex-direction: row-reverse; }
  .timeline-card-wrap { width: 45%; }
  .timeline-row.is-reversed .timeline-card { text-align: left; }
  .timeline-row:not(.is-reversed) .timeline-card { text-align: right; }
  .timeline-row:not(.is-reversed) .timeline-company,
  .timeline-row:not(.is-reversed) .timeline-period { justify-content: flex-end; }
}

/* ===== Contact ===== */
.contact { position: relative; padding: 6rem 0; overflow: hidden; }
.contact-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(2,44,34,.2), transparent); pointer-events: none; }
.contact-particles { position: absolute; inset: 0; pointer-events: none; }
.contact-grid { display: grid; gap: 2rem; }
.contact-heading { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 1.5rem; color: #7cff7c; font-size: 1.15rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border-radius: 1rem;
  border: 1px solid; background-repeat: no-repeat; color: var(--slate-300); position: relative; overflow: hidden;
  transition: transform .25s ease;
  text-align: left; width: 100%;
}
.contact-link:hover { transform: translateY(-4px) scale(1.01); }
.contact-link--github { border-color: rgba(100,116,139,.3); background: linear-gradient(135deg, rgba(100,116,139,.05), rgba(100,116,139,.02)); box-shadow: 0 4px 20px rgba(158,158,158,.1); }
.contact-link--linkedin { border-color: rgba(37,99,235,.3); background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(37,99,235,.02)); box-shadow: 0 4px 20px rgba(0,119,181,.1); }
.contact-link--whatsapp { border-color: rgba(34,197,94,.3); background: linear-gradient(135deg, rgba(34,197,94,.05), rgba(34,197,94,.02)); box-shadow: 0 4px 20px rgba(37,211,102,.1); }
.contact-link--email { border-color: rgba(239,68,68,.3); background: linear-gradient(135deg, rgba(239,68,68,.05), rgba(239,68,68,.02)); box-shadow: 0 4px 20px rgba(255,59,48,.1); }
.contact-link-icon {
  width: 3rem; height: 3rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .2s;
}
.contact-link:hover .contact-link-icon { transform: scale(1.1) rotate(5deg); }
.contact-link--github .contact-link-icon { background: linear-gradient(135deg, #9e9e9e, #757575); }
.contact-link--linkedin .contact-link-icon { background: linear-gradient(135deg, #0077b5, #005885); }
.contact-link--whatsapp .contact-link-icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.contact-link--email .contact-link-icon { background: linear-gradient(135deg, #ff3b30, #d70015); }
.contact-link-body { flex: 1; min-width: 0; }
.contact-link-title { display: block; font-weight: 700; margin-bottom: .2rem; font-size: .95rem; }
.contact-link--github .contact-link-title { color: #9e9e9e; }
.contact-link--linkedin .contact-link-title { color: #0077b5; }
.contact-link--whatsapp .contact-link-title { color: #25d366; }
.contact-link--email .contact-link-title { color: #ff3b30; }
.contact-link-sub { font-size: .8rem; opacity: .7; transition: opacity .2s; display: block; }
.contact-link:hover .contact-link-sub { opacity: 1; }
.contact-link-arrow {
  width: 1.5rem; height: 1.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background-color .2s, color .2s, transform .2s;
}
.contact-link--github .contact-link-arrow { background: rgba(158,158,158,.1); color: #9e9e9e; }
.contact-link--linkedin .contact-link-arrow { background: rgba(0,119,181,.1); color: #0077b5; }
.contact-link--whatsapp .contact-link-arrow { background: rgba(37,211,102,.1); color: #25d366; }
.contact-link--email .contact-link-arrow { background: rgba(255,59,48,.1); color: #ff3b30; }
.contact-link:hover .contact-link-arrow { transform: translateX(3px); color: #fff; }
.contact-link--github:hover .contact-link-arrow { background: #9e9e9e; }
.contact-link--linkedin:hover .contact-link-arrow { background: #0077b5; }
.contact-link--whatsapp:hover .contact-link-arrow { background: #25d366; }
.contact-link--email:hover .contact-link-arrow { background: #ff3b30; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--slate-900); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.1rem; color: var(--slate-200); }
.footer-logo-box { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; background: rgba(6,78,59,.3); border: 1px solid rgba(16,185,129,.3); border-radius: .5rem; font-family: 'Cinzel', serif; color: var(--emerald-500); }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--slate-500); transition: color .2s; }
.footer-socials a:hover { color: #fff; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
