/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:          #001e2b;
  --primary:     #3AAFA9;
  --accent:      #5ecfda;
  --highlight:   #0a3545;
  --pop:         #3AAFA9;
  --text:        rgba(255,255,255,0.90);
  --text-muted:  rgba(255,255,255,0.55);
  --white:       #ffffff;
  --card-bg:     #002535;
  --radius:      1.2rem;
  --shadow:      0 4px 24px rgba(0,0,0,0.30);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.45);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--pop);
  border-radius: 2px;
  margin-top: 6px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}


/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  position: fixed;
  top: 1.4rem;
  right: 1.75rem;
  z-index: 200;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: background 0.3s, transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.is-open span:first-child {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.is-open span:last-child {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Dark lines when scrolled off hero */
.hamburger.dark span {
  background: rgba(42, 36, 32, 0.75);
}

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 18, 30, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.menu-link {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0.55rem 1rem;
  transition: color 0.2s;
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.2s, opacity 0.35s ease, transform 0.35s ease;
}

.menu-overlay.is-open .menu-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.is-open .menu-link:nth-child(1) { transition-delay: 0.07s; }
.menu-overlay.is-open .menu-link:nth-child(2) { transition-delay: 0.13s; }
.menu-overlay.is-open .menu-link:nth-child(3) { transition-delay: 0.19s; }
.menu-overlay.is-open .menu-link:nth-child(4) { transition-delay: 0.25s; }

.menu-link:hover,
.menu-link.active {
  color: var(--pop);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 1.5rem 6rem;
}


/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 30, 43, 0.20) 0%,
    rgba(0, 30, 43, 0.45) 65%,
    rgba(0, 30, 43, 0.95) 100%
  );
}

/* Dive deeper */
.dive-deeper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.dive-deeper:hover {
  color: rgba(255,255,255,1);
}

.dive-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dive-arrow {
  width: 24px;
  height: 24px;
  animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.75; }
  50%       { transform: translateY(7px); opacity: 1;    }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-greeting {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero-role {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.at { color: var(--pop); }

/* Hero buttons */
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--pop);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}


/* Photo credit */
.photo-credit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.4rem;
}

.photo-credit a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-credit a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   BUBBLE CANVAS
   ============================================================ */
#bubbleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

#bubbleCanvas.visible {
  opacity: 1;
}

/* ============================================================
   AMBIENT LIGHT
   ============================================================ */
.ambient-light {
  position: absolute;
  top: -20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(58,175,169,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 8s ease-in-out infinite alternate;
}

.ambient-light--right {
  left: auto;
  right: 5%;
}

.ambient-light--center {
  left: 50%;
  transform: translateX(-50%);
}

@keyframes ambientDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 20px); }
}


/* ============================================================
   SECTION BASE (all below-hero sections)
   ============================================================ */
.about,
.hobbies,
.procreate-section,
.essays-section,
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ============================================================
   SECTION TITLE GLOW
   ============================================================ */
.section-title {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(94, 207, 218, 0.35), 0 0 60px rgba(94, 207, 218, 0.15);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.about-profile {
  flex-shrink: 0;
}

.profile-photo {
  width: 380px;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(58,175,169,0.25),
    0 0 30px rgba(58,175,169,0.15),
    0 8px 40px rgba(0,0,0,0.5);
}

.about-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text);
  max-width: 680px;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 620px;
}

.bullet-item {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
  cursor: default;
}

.bullet-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px rgba(58,175,169,0.5);
}

/* ============================================================
   HOBBIES
   ============================================================ */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hobby-card {
  background: rgba(0, 37, 53, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(58,175,169,0.18);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.hobby-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58,175,169,0.45);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(58,175,169,0.12);
}

.hobby-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(58,175,169,0.4));
}

.hobby-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(94,207,218,0.3);
}

.hobby-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.65;
}

.hobby-tag {
  display: inline-block;
  background: rgba(58,175,169,0.12);
  border: 1px solid rgba(58,175,169,0.25);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  align-self: flex-start;
}

/* ============================================================
   PROCREATE & ESSAYS
   ============================================================ */
.procreate-section .container,
.essays-section .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  border: 1px solid rgba(58,175,169,0.4);
  box-shadow: 0 0 20px rgba(58,175,169,0.1), inset 0 0 20px rgba(58,175,169,0.03);
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
  backdrop-filter: blur(8px);
}

.contact-btn:hover {
  border-color: rgba(58,175,169,0.8);
  box-shadow: 0 0 30px rgba(58,175,169,0.25), inset 0 0 30px rgba(58,175,169,0.06);
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #001018;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.85rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeSlideUp 0.65s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hobby-card.reveal.delay-1 { transition-delay: 0.10s; }
.hobby-card.reveal.delay-2 { transition-delay: 0.22s; }
.hobby-card.reveal.delay-3 { transition-delay: 0.34s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .hobby-grid {
    grid-template-columns: 1fr;
  }

  .nav-links { gap: 1.2rem; }
  .nav { padding: 0.85rem 1.25rem; }
  .section { padding: 3.5rem 0; }

  .about-inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .profile-photo {
    width: 220px;
    height: 220px;
  }

  .about-bullets {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .nav-links { gap: 0.9rem; font-size: 0.85rem; }
}
