/* ================================================================
   LANDING — Nicolás Biondi
   Basado en el tema Nicol (ThemeForest)
   ================================================================ */

/* --- Fonts ---------------------------------------------------- */
@font-face {
  font-family: 'Hero';
  src: url('fonts/Hero-Regular.woff2') format('woff2'),
       url('fonts/Hero-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hero';
  src: url('fonts/Hero-Bold.woff2') format('woff2'),
       url('fonts/Hero-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hero';
  src: url('fonts/Hero-Light.woff2') format('woff2'),
       url('fonts/Hero-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- Variables ------------------------------------------------ */
:root {
  --bg:           #0E0F1A;
  --bg-light:     #151727;
  --text:         #d9d9d9;
  --title:        #ffffff;
  --accent:       #00E5FF;
  --border:       #525357;
  --font:         'Hero', sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  cursor: none;
}

a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: #fff; }

/* --- Canvas fluid background --------------------------------- */
#fluid-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}

/* --- Custom cursor ------------------------------------------- */
* { cursor: none !important; }

#ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 229, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
}

.ball-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0E0F1A;
  opacity: 0;
  transform: scale(0.5);
}

/* --- Main layout --------------------------------------------- */
.nicol {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Card ---------------------------------------------------- */
.card {
  position: relative;
  z-index: 2;
  background: rgba(8, 9, 18, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.25em;
  padding: 3em 3.5em;
  max-width: 640px;
  max-height: 92vh;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.card::-webkit-scrollbar { width: 4px; }
.card::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.card::-webkit-scrollbar-track { background: transparent; }

/* --- Avatar -------------------------------------------------- */
.avatar-outer {
  margin: 0 auto 1.25em;
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 2px solid rgba(0,229,255,0.5);
  box-shadow: 0 0 12px rgba(0,229,255,0.25);
}

.avatar-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  width: 100%; height: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* --- Name / title -------------------------------------------- */
.name {
  font-size: clamp(1.6em, 4vw, 2.4em);
  font-weight: 700;
  color: var(--title);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 0.2em;
  display: inline-block;
  /* background-gradient underline — same technique as the Nicol theme */
  background: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.4s ease;
}

.name.underlined {
  background-size: 100% 2px;
}

.tagline {
  font-size: 0.85em;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.4em;
}

/* --- Bio ----------------------------------------------------- */
.bio {
  font-size: 0.875em;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.8em;
  max-height: none;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding-right: 0.5em;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.bio::-webkit-scrollbar { width: 4px; }
.bio::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.bio::-webkit-scrollbar-track { background: transparent; }

/* --- Tags / badges ------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: 1.8em;
}

.tag {
  background: rgba(0,229,255,0.08);
  color: var(--accent);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 2em;
  padding: 0.25em 0.9em;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Links section label ------------------------------------- */
.links-label {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 0.6em;
}

/* --- Social links -------------------------------------------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: center;
  margin-bottom: 1em;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.5em;
  padding: 0.55em 1.1em;
  color: var(--title);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all .25s;
  cursor: none;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,229,255,0.35);
}

.social-btn svg,
.social-btn i {
  font-size: 1.1em;
}

/* --- Contact CTA --------------------------------------------- */
.contact-cta {
  margin-top: 0.25em;
  font-size: 0.75em;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}

.contact-cta a {
  color: rgba(255,255,255,0.5);
}
.contact-cta a:hover { color: var(--accent); }

/* --- Background blobs ---------------------------------------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7B00FF 0%, transparent 70%);
  top: -180px; left: -160px;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00E5FF 0%, transparent 70%);
  bottom: -140px; right: -120px;
  animation: blob-drift 22s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FF2D78 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: blob-drift 26s ease-in-out infinite alternate;
  opacity: 0.10;
}

@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-20px, 50px) scale(0.95); }
}

/* --- Dashed circles decoration ------------------------------- */
@keyframes circle-spin-cw  { to { transform: rotate(360deg); } }
@keyframes circle-spin-ccw { to { transform: rotate(-360deg); } }

.deco-circles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.45);
}

/* Top-right large circle — like the reference */
.deco-circle-1 {
  width: 520px; height: 520px;
  top: -200px; right: -200px;
  border-color: rgba(255,255,255,0.4);
  animation: circle-spin-cw 80s linear infinite;
}

/* Bottom-left medium circle */
.deco-circle-2 {
  width: 360px; height: 360px;
  bottom: -140px; left: -140px;
  border-color: rgba(0,229,255,0.45);
  animation: circle-spin-ccw 60s linear infinite;
}

/* Center accent circle — small, subtle */
.deco-circle-3 {
  width: 220px; height: 220px;
  top: calc(50% - 110px); left: 15%;
  border-color: rgba(0,229,255,0.35);
  animation: circle-spin-cw 45s linear infinite;
}

/* --- Dot grid (bottom-left, like reference) ----------------- */
.dot-grid {
  position: fixed;
  bottom: 3em;
  left: 3em;
  z-index: 0;
  pointer-events: none;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.5;
}

/* --- CLIC button — centered bottom --------------------------- */
.nicol-boom {
  position: absolute;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  padding: 0;
  opacity: 0.65;
  transition: opacity .3s;
}

.nicol-boom:hover { opacity: 1; }

/* Circle that grows from half to full on hover */
.boom-arc {
  display: block;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  /* clip bottom half: only top semicircle visible at rest */
  clip-path: inset(0 0 50% 0);
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s;
  animation: arc-float 2.2s ease-in-out infinite;
}

.nicol-boom:hover .boom-arc {
  clip-path: inset(0 0 0% 0);   /* full circle */
  border-color: var(--accent);
  animation-play-state: paused;
}

@keyframes arc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.boom-label {
  font-family: var(--font);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  transition: color .3s;
}

.nicol-boom:hover .boom-label {
  color: var(--accent);
}

/* --- Mobile -------------------------------------------------- */
@media (max-width: 768px) {

  /* No custom cursor on touch */
  #ball { display: none; }
  * { cursor: auto !important; }

  /* Card: full-width, natural height, no scroll */
  .card {
    padding: 1.75em 1.25em 1.5em;
    max-height: none;
    overflow-y: visible;
    width: 92%;
    border-radius: 1em;
  }

  /* Hide interest tags entirely */
  .tags { display: none; }

  /* Smaller avatar */
  .avatar-wrap { width: 80px; height: 80px; }
  .avatar-outer { margin-bottom: 1em; }

  /* Tighter title */
  .name { font-size: clamp(1.4em, 7vw, 2em); margin-bottom: 0.15em; }
  .tagline { font-size: 0.72em; margin-bottom: 1em; letter-spacing: 0.18em; }

  /* Bio full height, smaller font */
  .bio {
    font-size: 0.8em;
    line-height: 1.6;
    margin-bottom: 1.2em;
    padding-right: 0;
  }

  /* Links tighter */
  .links-label { margin-top: 0.5em; }
  .social-links { gap: 0.5em; margin-bottom: 0.75em; }
  .social-btn { font-size: 0.72em; padding: 0.45em 0.85em; }

  /* Contact CTA */
  .contact-cta { font-size: 0.7em; margin-top: 0.75em; }

  /* Hide CLIC button and decorative elements on mobile */
  .nicol-boom { display: none; }
  .deco-circle-1, .deco-circle-2, .deco-circle-3 { display: none; }
  .dot-grid { display: none; }
  .bg-blobs { opacity: 0.6; }

  /* Wrapper: centered, scrollable if card overflows */
  .nicol {
    align-items: center;
    padding: 1em 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Disable text selection globally */
body, .card, .bio, .name, .tagline, .tag, .boom-label {
  user-select: none;
  -webkit-user-select: none;
}

/* Scrollbar / selection */
::selection { background: var(--accent); color: #fff; }
