/* ═══════════════════════════════════════
   DELFINA FERNÁNDEZ NOAIN — Personal Site
   Palette: Navy #0A1931 · Teal #00A3BE
            Gold #F5C842 · Coral #F4845F
            Indigo #7B8AF9
   ═══════════════════════════════════════ */

:root {
  --navy:   #0A1931;
  --teal:   #00A3BE;
  --teal-l: #DFF6FF;
  --gold:   #F5C842;
  --coral:  #F4845F;
  --indigo: #7B8AF9;
  --dark:   #1E2D3D;
  --grey:   #607080;
  --light:  #F8FAFC;
  --white:  #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* ─── NAV ────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 18px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 20px rgba(10,25,49,0.10);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-weight: 700; font-size: 1.1rem; color: var(--white);
  text-decoration: none; letter-spacing: -0.02em;
  transition: color 0.4s;
}
nav.scrolled .nav-logo { color: var(--navy); }

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 0.88rem;
  color: rgba(255,255,255,0.88); letter-spacing: 0.03em;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--grey); }
.nav-links a:hover { color: var(--teal) !important; }

.lang-btn {
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white); font-family: 'Poppins', sans-serif;
  font-size: 0.8rem; font-weight: 600; padding: 6px 14px;
  border-radius: 20px; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.04em;
}
nav.scrolled .lang-btn {
  background: var(--teal-l); border-color: var(--teal); color: var(--teal);
}
.lang-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ─── HERO ───────────────────────────────── */
#hero {
  height: 100vh; min-height: 600px;
  background: url('images/hero.jpg') center center / cover no-repeat;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,25,49,0.72) 0%,
    rgba(10,25,49,0.45) 60%,
    rgba(0,163,190,0.20) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 20px;
}
.hero-hi {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 500; letter-spacing: 0.25em;
  color: var(--teal); text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-name {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900; color: var(--white);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-name span { color: var(--gold); }
.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.80);
  font-weight: 300; font-style: italic;
  max-width: 550px; margin: 0 auto 40px;
  line-height: 1.65;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}
.hero-scroll {
  opacity: 0; animation: fadeUp 0.8s 1.2s forwards;
}
.scroll-dot {
  width: 28px; height: 45px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
}
.scroll-dot::after {
  content: ''; position: absolute;
  top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}

/* ─── SECTIONS ───────────────────────────── */
section { padding: 90px 5%; }

.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 50px;
}
.section-title span { color: var(--teal); }

/* ─── ABOUT ──────────────────────────────── */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(10,25,49,0.18);
  display: block;
}
.about-accent {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  top: -20px; right: -20px;
  background: var(--gold);
  opacity: 0.7;
}
.about-accent-2 {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  bottom: -15px; left: -15px;
  background: var(--coral);
  opacity: 0.6;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 30px;
}
.interest-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.chip-teal   { background: var(--teal-l); color: var(--teal); }
.chip-gold   { background: #FFFBEB; color: #B8860B; }
.chip-coral  { background: #FFF0EB; color: #C05A30; }
.chip-indigo { background: #F0F1FF; color: #5055B5; }

/* ─── WORLD (POLAROID GALLERY) ───────────── */
#world { background: var(--light); }
.gallery-grid {
  columns: 4 220px;
  column-gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.polaroid-wrap {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  transform: rotate(var(--rot));
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
  cursor: zoom-in;
}
.polaroid-wrap:hover {
  transform: rotate(0deg) scale(1.06) translateY(-6px) !important;
  z-index: 10; position: relative;
}
.polaroid-inner {
  background: var(--white);
  padding: 10px 10px 36px 10px;
  box-shadow: 0 4px 18px rgba(10,25,49,0.13), 0 1px 3px rgba(0,0,0,0.08);
  border-radius: 2px;
}
.polaroid-inner img {
  width: 100%; display: block;
  border-radius: 1px;
}
.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem; font-weight: 600;
  color: var(--grey);
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}

/* lightbox */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(5,12,25,0.92);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  font-size: 2.2rem; color: rgba(255,255,255,0.7);
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-caption {
  position: fixed; bottom: 22px;
  left: 50%; transform: translateX(-50%);
  font-family: 'Caveat', cursive;
  font-size: 1.3rem; color: rgba(255,255,255,0.75);
}

/* ─── PHOTOGRAPHY ────────────────────────── */
#photography {
  background: var(--navy);
  padding-bottom: 100px;
}
#photography .section-label { color: var(--gold); }
#photography .section-title { color: var(--white); }
#photography .section-title span { color: var(--teal); }
.photo-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem; margin-top: -30px; margin-bottom: 50px;
  font-style: italic;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.photo-card {
  position: relative; overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
  aspect-ratio: 4/5;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s;
}
.photo-card:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,49,0.65) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 18px;
}
.photo-card:hover .photo-card-overlay { opacity: 1; }
.photo-card-overlay span {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem; color: var(--white); font-weight: 600;
}

/* ─── CONTACT ────────────────────────────── */
#contact {
  background: linear-gradient(135deg, var(--teal-l) 0%, var(--white) 100%);
  text-align: center;
}
.contact-text {
  font-size: 1.05rem; color: var(--grey);
  margin: -30px auto 45px; max-width: 480px; line-height: 1.7;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white);
  text-decoration: none; padding: 18px 40px;
  border-radius: 50px; font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 30px rgba(10,25,49,0.25);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.contact-btn:hover {
  background: var(--teal);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 40px rgba(0,163,190,0.35);
}
.contact-btn-icon { font-size: 1.2rem; }
.accent-dots {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 60px;
}
.accent-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--navy);
  padding: 28px 5%;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}
footer strong { color: rgba(255,255,255,0.75); }

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity:1; }
  50%      { transform: translateX(-50%) translateY(10px); opacity:0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity:0; transform:translateX(-40px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right { opacity:0; transform:translateX(40px);  transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible, .reveal-right.visible { opacity:1; transform:translateX(0); }

.stagger { transition-delay: var(--delay, 0ms); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 300px; margin: 0 auto; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 70px 6%; }
  .photo-grid { grid-template-columns: 1fr; }
  .polaroid-wrap { transform: none !important; }
  .gallery-grid { columns: 2 140px; }
}
