/* ============================================
   Yohanna Connor Tekleab — Personal Website
   Warm Pink / Rose palette (#FB6F92)
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #120A1A;
  --bg-secondary: #1A0F24;
  --bg-card: rgba(251, 111, 146, 0.06);
  --accent-rose: #FB6F92;
  --accent-lavender: #E8A0BF;
  --accent-plum: #C9184A;
  --text-primary: #F0F0FF;
  --text-secondary: rgba(240, 240, 255, 0.7);
  --text-muted: rgba(240, 240, 255, 0.45);
  --glass-border: rgba(251, 111, 146, 0.15);
  --glass-blur: 18px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent-rose);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--accent-lavender);
}

/* --- Background Ambience --- */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(251, 111, 146, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(251, 111, 146, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- Section Utility --- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-rose);
  margin-bottom: 1rem;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent-rose);
  border-radius: 2px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 3rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              border-color var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(251, 111, 146, 0.1);
  border-color: rgba(251, 111, 146, 0.3);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: background var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(18, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(251, 111, 146, 0.1);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--accent-rose);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-rose);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.header__nav a:hover {
  color: var(--text-primary);
}

.header__nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  background: linear-gradient(135deg, #C9184A 0%, #FB6F92 50%, #E8A0BF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 3px solid rgba(251, 111, 146, 0.35);
  box-shadow: 0 0 80px rgba(251, 111, 146, 0.2),
              0 0 160px rgba(201, 24, 74, 0.1);
  position: relative;
  overflow: hidden;
}

.hero__photo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(251, 111, 146, 0.35) 25%,
    transparent 50%,
    rgba(232, 160, 191, 0.3) 75%,
    transparent 100%
  );
  animation: photoGlow 6s linear infinite;
  z-index: -1;
}

@keyframes photoGlow {
  to { transform: rotate(360deg); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero__scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2rem;
  animation: floatHint 2.5s ease-in-out infinite;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-rose);
  opacity: 0.6;
}

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

/* Hero full-width banner */
.hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 10, 26, 0.45) 0%,
    rgba(18, 10, 26, 0.7) 50%,
    rgba(18, 10, 26, 0.95) 100%
  );
}

/* ============================================
   ABOUT ME
   ============================================ */
.about {
  background: var(--bg-secondary);
}

.about__card {
  padding: 3rem;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(251, 111, 146, 0.04);
  border: 1px solid rgba(251, 111, 146, 0.08);
  border-radius: var(--radius-sm);
  transition: background var(--transition-smooth),
              border-color var(--transition-smooth),
              transform var(--transition-smooth);
}

.fact-item:hover {
  background: rgba(251, 111, 146, 0.1);
  border-color: rgba(251, 111, 146, 0.25);
  transform: translateY(-2px);
}

.fact-item__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.fact-item__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fact-item__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  transition: transform var(--transition-smooth);
}

.gallery__item:nth-child(1) .gallery__placeholder {
  background: linear-gradient(135deg, #C9184A 0%, #FB6F92 100%);
}
.gallery__item:nth-child(2) .gallery__placeholder {
  background: linear-gradient(135deg, #FB6F92 0%, #E8A0BF 100%);
}
.gallery__item:nth-child(3) .gallery__placeholder {
  background: linear-gradient(135deg, #E8A0BF 0%, #C9184A 100%);
}
.gallery__item:nth-child(4) .gallery__placeholder {
  background: linear-gradient(135deg, #FF85A1 0%, #FB6F92 100%);
}
.gallery__item:nth-child(5) .gallery__placeholder {
  background: linear-gradient(135deg, #FB6F92 0%, #C9184A 100%);
}
.gallery__item:nth-child(6) .gallery__placeholder {
  background: linear-gradient(135deg, #C9184A 0%, #E8A0BF 100%);
}

/* Gallery images fill their containers */
.gallery__item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item:hover .gallery__placeholder {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(18, 10, 26, 0.85) 0%, transparent 100%);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  z-index: 2;
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
}

/* ============================================
   MILESTONES / TIMELINE
   ============================================ */
.milestones {
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--accent-rose) 0%,
    var(--accent-lavender) 50%,
    var(--accent-plum) 100%
  );
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.timeline__item:hover .timeline__dot {
  background: var(--accent-rose);
  box-shadow: 0 0 20px rgba(251, 111, 146, 0.5);
}

.timeline__dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rose);
  transition: background var(--transition-smooth);
}

.timeline__item:hover .timeline__dot-inner {
  background: var(--bg-primary);
}

.timeline__content {
  padding: 1.5rem 2rem;
}

.timeline__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-rose);
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(251, 111, 146, 0.08);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__family {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-rose);
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(251, 111, 146, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
}

.footer__link:hover {
  background: rgba(251, 111, 146, 0.1);
  border-color: rgba(251, 111, 146, 0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__copy span {
  color: var(--accent-rose);
}

/* ============================================
   CINEMATIC SLIDESHOW
   ============================================ */
.slideshow-cinema { position: relative; width: 100%; max-width: 750px; margin: 0 auto; aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 1px solid rgba(245, 240, 232, 0.08); }
.slideshow-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; will-change: opacity; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.slideshow-counter { position: absolute; top: 1rem; right: 1.25rem; font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); padding: 0.35rem 0.85rem; border-radius: 999px; z-index: 5; }
.slideshow-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.1); z-index: 5; }
.slideshow-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #FB6F92, #FF85A2); transition: width 0.15s linear; }
.slideshow-prev, .slideshow-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); color: rgba(255,255,255,0.8); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s, background 0.3s; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.slideshow-cinema:hover .slideshow-prev, .slideshow-cinema:hover .slideshow-next { opacity: 1; }
.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  /* Mobile nav */
  .header__toggle {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: rgba(18, 10, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid rgba(251, 111, 146, 0.1);
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero {
    padding-top: 6rem;
    min-height: 90vh;
  }

  .hero__photo {
    width: 160px;
    height: 160px;
    font-size: 4rem;
  }

  /* About */
  .about__card {
    padding: 2rem 1.5rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery__caption {
    transform: translateY(0);
    padding: 1.5rem 1rem 1rem;
    font-size: 0.75rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 2.5rem;
  }

  .timeline__dot {
    left: -2.5rem;
    width: 20px;
    height: 20px;
  }

  .timeline__content {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__photo {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery__placeholder {
    font-size: 2rem;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
