/* ===========================================================
   Rand Nuaimi — portfolio
   Design tokens
=========================================================== */

:root {
  --cream: #FFF7F3;
  --blush: #FFE7F1;
  --blush-soft: #FFF0F6;
  --pink: #F0439A;
  --pink-deep: #C22C79;
  --gold: #FFC65C;
  --coral: #FD8A5E;
  --ink: #2B1620;
  --ink-soft: #7A5C68;
  --white: #FFFFFF;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 45px -20px rgba(194, 44, 121, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===========================================================
   Navbar
=========================================================== */

.site-nav {
  padding: 18px 0;
  background: rgba(255, 247, 243, 0);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.site-nav.is-scrolled {
  background: rgba(255, 247, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(194, 44, 121, 0.45);
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink) !important;
}

.brand-mark {
  border-radius: 50%;
  background: var(--blush);
  padding: 4px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--ink) !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.navbar-nav .nav-link:hover {
  background: var(--blush);
  color: var(--pink-deep) !important;
}

.btn-pill-nav {
  background: var(--pink);
  color: var(--white) !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-pill-nav:hover {
  background: var(--pink-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.navbar-toggler {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===========================================================
   Hero
=========================================================== */

.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, var(--blush) 0%, transparent 55%), linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}

.blob-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -120px;
  right: -80px;
}

.blob-b {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  bottom: -140px;
  left: -100px;
  opacity: .35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: 600;
  color: var(--pink-deep);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: 14px;
}

.eyebrow-pulse svg {
  width: 42px;
  height: 16px;
}

.eyebrow-pulse polyline {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.03;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 30px;
}

.text-lg-start .hero-tagline {
  margin-left: 0;
  margin-right: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.text-lg-start .hero-cta {
  justify-content: flex-start;
}

.btn-brand {
  background: var(--pink);
  color: var(--white);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-brand:hover {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-brand-outline {
  background: transparent;
  color: var(--pink-deep);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.btn-brand-outline:hover {
  background: var(--blush);
  color: var(--pink-deep);
  transform: translateY(-2px);
}

/* Hero photo */

.hero-photo-wrap {
  position: relative;
  width: min(360px, 78vw);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.hero-photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--gold), var(--pink), var(--coral), var(--gold));
  animation: spin 14s linear infinite;
}

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

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-soft);
}

.hero-photo-badge {
  position: absolute;
  bottom: 6%;
  right: 2%;
  width: 62px;
  height: 62px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -10px rgba(194, 44, 121, 0.5);
}

.hero-photo-badge img {
  width: 34px;
  height: 34px;
}

/* Pulse divider under hero */

.hero-pulse-divider {
  position: relative;
  z-index: 1;
  width: 100%;
  line-height: 0;
}

.hero-pulse-divider svg {
  width: 100%;
  height: 46px;
  display: block;
}

.hero-pulse-divider polyline {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}

/* ===========================================================
   Sections (shared)
=========================================================== */

.section {
  padding: 100px 0;
}

.section-tinted {
  background: var(--blush-soft);
}

.section-head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-deep);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 18px;
  color: var(--ink);
}

.section-body {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 520px;
}

/* ===========================================================
   About
=========================================================== */

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 420px;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blush);
  color: var(--pink-deep);
  font-weight: 500;
  font-size: .9rem;
  padding: 9px 16px;
  border-radius: 999px;
}

/* ===========================================================
   Hobbies
=========================================================== */

.hobby-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  height: 100%;
  text-align: center;
  box-shadow: 0 14px 34px -22px rgba(43, 22, 32, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hobby-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.hobby-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--pink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hobby-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.hobby-card p {
  color: var(--ink-soft);
  font-size: .95rem;
  margin: 0;
}

/* ===========================================================
   Skills
=========================================================== */

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-tag {
  background: var(--white);
  border: 2px solid var(--blush);
  color: var(--pink-deep);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.skill-tag:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===========================================================
   Contact
=========================================================== */

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 14px 34px -22px rgba(43, 22, 32, 0.25);
  text-align: left;
}

.contact-form .form-label {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form .form-control {
  border: 2px solid var(--blush);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
}

.contact-form .form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(240, 67, 154, 0.12);
}

/* ===========================================================
   Footer
=========================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 20px 0 34px;
  text-align: center;
}

.footer-pulse {
  line-height: 0;
  margin: 0 -1px 30px;
}

.footer-pulse svg {
  width: 100%;
  height: 30px;
  display: block;
}

.footer-pulse polyline {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-footer {
  color: var(--white) !important;
}

.brand-footer .brand-mark {
  background: rgba(255,255,255,.1);
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

.footer-socials a:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

.footer-note {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}

/* ===========================================================
   Scroll reveal
=========================================================== */

.reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ===========================================================
   Responsive
=========================================================== */

@media (max-width: 991.98px) {
  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    margin-top: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 34px -22px rgba(43, 22, 32, 0.35);
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 4px;
  }
}

@media (max-width: 991.98px) {
  .btn-pill-nav {
    display: inline-block;
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 74px 0;
  }
}

@media (max-width: 575.98px) {
  .contact-form {
    padding: 30px 22px;
  }
}

