/* ==========================================================================
   NARGIS PARVEEN — PORTFOLIO
   Aesthetic: Soft Cream & Light Pink / Rose
   Typography: Cormorant Garamond (Editorial Serif), Noto Serif Bengali, Plus Jakarta Sans
   ========================================================================== */

/* --- Custom Variables --- */
:root {
  /* Cream Background Palette */
  --bg-cream: #FAF6F0;
  --bg-cream-soft: #FFFDF9;
  --bg-card: #FFFFFF;

  /* Delicate Pink & Rose Palette */
  --pink-50: #FFF5F7;
  --pink-100: #FFE4EC;
  --pink-200: #FBCFE8;
  --pink-300: #F9A8D4;
  --pink-400: #F472B6;
  --pink-500: #EC4899;
  --pink-600: #DB2777;
  --rose-deep: #831843;
  --pink-glow: rgba(244, 114, 182, 0.35);

  /* Typography Colors */
  --text-title: #2B2125;
  --text-body: #574B51;
  --text-muted: #8E7D85;
  --text-light: #B4A4AC;

  /* Borders & Shadows */
  --border-subtle: rgba(244, 114, 182, 0.22);
  --border-accent: rgba(236, 72, 153, 0.4);
  --shadow-sm: 0 4px 14px rgba(236, 72, 153, 0.08);
  --shadow-md: 0 12px 32px -8px rgba(236, 72, 153, 0.16), 0 4px 12px -2px rgba(43, 33, 37, 0.04);
  --shadow-lg: 0 22px 50px -12px rgba(236, 72, 153, 0.22), 0 8px 24px -4px rgba(43, 33, 37, 0.06);
  --shadow-hover: 0 28px 56px -10px rgba(236, 72, 153, 0.28), 0 12px 30px -4px rgba(43, 33, 37, 0.08);

  /* Font Families */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-bengali: 'Noto Serif Bengali', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Smooth Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(253, 232, 239, 0.75) 0%, transparent 45%),
    radial-gradient(circle at 88% 45%, rgba(251, 207, 232, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(254, 242, 242, 0.85) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Body Locked State */
body.is-locked {
  overflow: hidden;
  height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Password Lock Screen Overlay --- */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(250, 246, 240, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.85s var(--ease-smooth), visibility 0.85s ease;
}

.lock-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Sparkle Burst Container */
.sparkle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10000;
}

.sparkle-particle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: floatSparkle var(--duration) var(--ease-smooth) forwards;
}

@keyframes floatSparkle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.4)) scale(1.3) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(calc(var(--rot) * 2));
    filter: blur(2px);
  }
}

/* Lock Card */
.lock-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-subtle);
  border-radius: 28px;
  padding: 2.75rem 2.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform 0.6s var(--ease-smooth), opacity 0.6s ease;
}

.lock-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #FFF0F4, #FFE4EC);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px -4px rgba(244, 114, 182, 0.35);
  border: 1px solid var(--border-subtle);
  animation: gentleFloat 3s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.lock-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.lock-hint {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  font-weight: 500;
}

/* Lock Input & Form */
.lock-form {
  width: 100%;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: #FFF9FA;
  border: 1.5px solid rgba(244, 114, 182, 0.35);
  border-radius: 9999px;
  padding: 4px 6px 4px 18px;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(244, 114, 182, 0.05);
}

.input-wrap:focus-within {
  border-color: var(--pink-500);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.2);
}

.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-title);
  letter-spacing: 0.03em;
}

.input-wrap input::placeholder {
  color: var(--text-light);
}

.btn-unlock {
  background: linear-gradient(135deg, #F472B6, #EC4899);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 6px 18px -4px rgba(236, 72, 153, 0.45);
}

.btn-unlock:hover {
  background: linear-gradient(135deg, #F472B6, #DB2777);
  transform: scale(1.04);
  box-shadow: 0 8px 22px -3px rgba(236, 72, 153, 0.55);
}

.btn-unlock:active {
  transform: scale(0.98);
}

.btn-sparkle {
  font-size: 1rem;
}

/* Error Message & Shake */
.error-msg {
  color: #E11D48;
  font-size: 0.88rem;
  margin-top: 0.9rem;
  font-weight: 500;
  display: none;
}

.error-msg.visible {
  display: block;
  animation: errorFade 0.3s ease;
}

@keyframes errorFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-9px); }
  40%, 80% { transform: translateX(9px); }
}

.lock-card.shake {
  animation: cardShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Magical Unlock Card Animation */
@keyframes magicalCardBloom {
  0% {
    box-shadow: var(--shadow-lg);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 100px 30px rgba(244, 114, 182, 0.75), 0 0 60px 15px rgba(251, 207, 232, 0.95);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 120px 40px rgba(244, 114, 182, 0);
    transform: scale(0.8) translateY(-30px);
    opacity: 0;
    filter: blur(8px);
  }
}

.lock-card.unlocking {
  animation: magicalCardBloom 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* --- Main Website Content & Blur State --- */
.main-content {
  filter: blur(20px);
  opacity: 0.55;
  transform: scale(0.985);
  pointer-events: none;
  user-select: none;
  transition: filter 1.1s var(--ease-smooth), 
              opacity 1.1s ease, 
              transform 1.1s var(--ease-smooth);
}

body.is-unlocked .main-content {
  filter: blur(0px);
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  user-select: auto;
}

/* --- Photo Story Stream (Alternating Layout) --- */
.story-stream {
  padding: 2.5rem 0 6rem;
}

.story-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  margin-bottom: 7.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.story-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Default (Odd): Photo Left, Text Right */
.story-row {
  flex-direction: row;
}

/* Reverse (Even): Photo Right, Text Left */
.story-row.reverse {
  flex-direction: row-reverse;
}

.row-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

/* --- Landing Hero (Section 1) --- */
.landing-hero {
  min-height: 92vh;
  margin-bottom: 6rem;
  display: flex;
  align-items: center;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink-600);
  background: linear-gradient(135deg, rgba(254, 242, 247, 0.9), rgba(253, 232, 240, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.25rem;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.landing-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-title);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.landing-text {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pink-600);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth);
  width: fit-content;
}

.scroll-cue:hover {
  background: #FFFFFF;
  border-color: var(--pink-400);
  transform: translateY(2px);
  box-shadow: var(--shadow-md);
}

.scroll-arrow {
  display: inline-block;
  animation: bounceDown 2s ease-in-out infinite;
}

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

/* --- Section Typography & Content --- */
.story-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text-title);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.font-bengali {
  font-family: var(--font-bengali);
}

.story-text {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-body);
  font-weight: 400;
}

/* --- Photo Card Framing --- */
.photo-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 10px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s ease, border-color 0.45s ease;
  max-width: 480px;
  width: 100%;
}

.photo-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-hover);
  border-color: rgba(244, 114, 182, 0.4);
}

.photo-card img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.hero-photo-card {
  box-shadow: var(--shadow-lg);
  border-color: rgba(244, 114, 182, 0.32);
}

.finale-card {
  box-shadow: 0 20px 50px -10px rgba(244, 114, 182, 0.25);
}

/* --- Dual Media (Photo 3 + Doodle side by side) --- */
.dual-media {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
  max-width: 520px;
}

.dual-media .photo-card {
  flex: 1.25;
  max-width: 330px;
}

.dual-media .doodle-card {
  flex: 0.85;
  max-width: 165px;
  background: #FFFFFF;
  border: 2px dashed rgba(244, 114, 182, 0.55);
  border-radius: 22px;
  padding: 0.85rem;
  box-shadow: 0 12px 28px -6px rgba(244, 114, 182, 0.2);
  transform: rotate(3deg);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dual-media .doodle-card:hover {
  transform: rotate(0deg) scale(1.05);
  border-color: var(--pink-500);
  box-shadow: 0 16px 34px -6px rgba(244, 114, 182, 0.3);
}

.dual-media .doodle-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* --- Gentle, Minimal Footer --- */
.footer {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(244, 114, 182, 0.18);
  text-align: center;
}

.footer-note {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Responsive Layout for Mobile & Tablet --- */
@media (max-width: 860px) {
  .story-row, .story-row.reverse {
    flex-direction: column !important;
    gap: 2.25rem;
    margin-bottom: 5rem;
  }

  .landing-hero {
    min-height: auto;
    padding: 2.5rem 0 2rem;
    margin-bottom: 4rem;
  }

  .row-media, .row-content {
    max-width: 100%;
    width: 100%;
  }

  .row-content {
    padding: 0 0.5rem;
  }

  .photo-card {
    max-width: 100%;
  }

  .dual-media {
    max-width: 100%;
    justify-content: center;
  }

  .dual-media .photo-card {
    max-width: 60%;
  }

  .dual-media .doodle-card {
    max-width: 35%;
  }

  .story-title {
    font-size: 2rem;
  }

  .landing-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .lock-card {
    padding: 2.25rem 1.35rem;
    border-radius: 24px;
  }

  .lock-title {
    font-size: 1.85rem;
  }

  .lock-hint {
    font-size: 0.88rem;
    margin-bottom: 1.4rem;
  }

  .input-wrap {
    padding: 4px 4px 4px 14px;
  }

  .input-wrap input {
    font-size: 0.88rem;
  }

  .btn-unlock {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }

  .story-stream {
    padding: 1.5rem 0 3.5rem;
  }

  .story-row, .story-row.reverse {
    margin-bottom: 3.75rem;
  }

  .landing-title {
    font-size: 2.25rem;
  }

  .story-title {
    font-size: 1.75rem;
  }

  .story-text {
    font-size: 1rem;
  }

  .dual-media {
    gap: 0.75rem;
  }
}

/* --- Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .story-row {
    opacity: 1 !important;
    transform: none !important;
  }
}
