/* Minimal, responsive styles for nicolasorozco.com */

:root {
  --bg: #0a0a0a;
  --bg-2: #0d0f12;
  --text: #f5f7fa;
  --muted: #a7b0bc;
  --card: #101317;
  --line: #1a1f26;
  --accent: #7dd3fc; /* sky */
  --accent-2: #22d3ee; /* cyan */
  --accent-3: #60a5fa; /* blue */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(96,165,250,0.15), transparent 60%),
    radial-gradient(1000px 400px at 80% 0%, rgba(34,211,238,0.15), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
}

/* Subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(600px 300px at 50% 0%, rgba(0,0,0,0.6), transparent 70%);
}

.parallax {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}
.o1 { top: -120px; left: -120px; background: radial-gradient(circle at 30% 30%, rgba(96,165,250,0.55), rgba(96,165,250,0)); }
.o2 { top: 80px; right: -140px; background: radial-gradient(circle at 70% 30%, rgba(34,211,238,0.55), rgba(34,211,238,0)); }
.o3 { bottom: -160px; left: 30%; background: radial-gradient(circle at 50% 50%, rgba(125,211,252,0.5), rgba(125,211,252,0)); }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 899px) {
  .container { padding: 0 16px; }
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,13,16,0.8), rgba(10,13,16,0.4));
  border-bottom: 1px solid #12161c;
  z-index: 10;
}
.header-row { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-block;
  padding: 16px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }

.nav { display: flex; gap: 14px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Instagram-like avatar */
.avatar {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  padding: 2px; /* ring thickness */
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.avatar__ring {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  padding: 2px; /* gap between ring and image */
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0a0a;
}

@media (max-width: 899px) {
  /* Slightly smaller avatar in mobile dropdown */
  .nav .avatar { width: 40px; height: 40px; }
}

/* Mobile navigation behavior */
.menu-toggle {
  appearance: none;
  border: 1px solid #1b2430;
  background: rgba(16,19,23,0.6);
  color: var(--text);
  border-radius: 10px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

@media (max-width: 899px) {
  .nav {
    position: absolute;
    right: 16px;
    top: 58px;
    padding: 10px;
    background: rgba(13,17,23,0.96);
    border: 1px solid #1b2430;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
  }
  .nav.nav--open { display: flex; }
}

.hero {
  padding: 72px 20px 32px;
}
.hero .actions { flex-wrap: wrap; }
@media (max-width: 899px) {
  .hero { padding: 56px 16px 24px; }
  .actions .btn { width: 100%; text-align: center; }
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 70ch;
}
.lead strong { color: var(--text); }

.badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #1b2430;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  background: rgba(16,19,23,0.6);
  margin-bottom: 10px;
}

.title-gradient {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.actions { display: flex; gap: 12px; margin-top: 16px; }
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #061017;
  background: linear-gradient(180deg, #9ae6ff, #60d6f3);
  box-shadow: 0 8px 24px rgba(96, 214, 243, 0.25);
}
.btn-outline {
  color: var(--text);
  border: 1px solid #1b2430;
  background: rgba(16,19,23,0.4);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 8px 20px 56px;
}
@media (max-width: 899px) {
  .gallery { padding: 4px 16px 40px; gap: 14px; }
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
  }
}

.photo { margin: 0; position: relative; }
.photo img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid #1a2230;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.photo--large { }
.photo--small { }

/* Desktop aspect ratios and fit */
@media (min-width: 900px) {
  .photo--large { aspect-ratio: 4 / 5; }
  .photo--small { aspect-ratio: 1 / 1; max-width: 85%; justify-self: center; }
  .photo img { height: 100%; object-fit: cover; }
}

.card-glow { position: relative; }
.card-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(96,165,250,0.25), rgba(34,211,238,0.25), rgba(125,211,252,0.25), rgba(96,165,250,0.25));
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.card-glow:hover::before { opacity: 1; }

/* Polaroid style for the small photo */
.polaroid {
  background: #f8f5f0; /* warm off‑white for softer contrast */
  padding: 12px 12px 26px;
  border-radius: 12px;
  border: 1px solid #e8e0d8;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  position: relative;
}
.polaroid::before {
  /* subtle tape effect */
  content: "";
  position: absolute;
  top: -12px; left: 26px;
  width: 72px; height: 24px;
  background: rgba(226, 232, 240, 0.85);
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: rotate(-4deg);
}
.polaroid img {
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e6ebf2;
  box-shadow: none;
}
@media (min-width: 900px) {
  .polaroid { transform: rotate(-3deg); transform-origin: center; }
}

/* Tame parallax on small screens */
@media (max-width: 899px) {
  .orb { width: 320px; height: 320px; filter: blur(30px); opacity: 0.28; }
  .o1 { top: -140px; left: -160px; }
  .o2 { top: 40px; right: -160px; }
  .o3 { bottom: -200px; left: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { transform: none !important; }
}

/* Caption inside the polaroid */
.polaroid__caption {
  margin-top: 12px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  font-family: 'Caveat', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}
.polaroid__caption a { color: #0ea5e9; text-decoration: none; }
.polaroid__caption a:hover { text-decoration: underline; }

/* Align the polaroid a bit to the left on desktop for effect */
@media (min-width: 900px) {
  .photo--small.polaroid { justify-self: start; margin-left: 6px; }
}

@media (max-width: 899px) {
  .photo--small.polaroid { justify-self: center; margin-left: 0; }
  .polaroid__caption { font-size: 15px; }
}

.site-footer {
  border-top: 1px solid #1f1f1f;
  color: var(--muted);
}
.site-footer .container {
  padding: 20px;
  font-size: 14px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Hero avatar layout */
.hero-header { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.hero-header .title-gradient { margin: 0; }
.hero-header h1 { flex: 1; min-width: 0; }

/* Larger avatar variant for hero */
.avatar--lg { width: 96px; height: 96px; }
@media (max-width: 899px) {
  .avatar--lg { width: 80px; height: 80px; }
}
