/* =========================================================
   CUPCAKE KINGDOM — stylesheet (single page, reference layout)
   ========================================================= */
:root {
  --pink: #FF3E9A;
  --pink-deep: #D81B7A;
  --turquoise: #22CFCF;
  --turquoise-deep: #0FA8A8;
  --plum: #3B0F35;
  --ink: #4A2A48;
  --cream: #FFF7FB;
  --gold: #FFC94A;
  --white: #FFFFFF;
  --shadow: rgba(59, 15, 53, 0.16);

  --font-display: "Fredoka", "Baloo 2", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --radius: 20px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5.5rem 0; scroll-margin-top: 88px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  background: rgba(34, 207, 207, 0.12);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: #7a5f77; font-size: 1.05rem; }

/* Scalloped divider, echoes cupcake wrapper edge */
.scallop-divider { width: 100%; height: 30px; line-height: 0; }
.scallop-divider svg { width: 100%; height: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-3px); }

.btn-pink { background: var(--pink); color: var(--white); box-shadow: 0 10px 22px rgba(255, 62, 154, 0.35); }
.btn-pink:hover { background: var(--pink-deep); }

.btn-turquoise { background: var(--turquoise); color: var(--white); box-shadow: 0 10px 22px rgba(34, 207, 207, 0.35); }
.btn-turquoise:hover { background: var(--turquoise-deep); }

.btn-outline-dark { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline-dark:hover { background: var(--plum); color: var(--white); }

/* =========================================================
   NAV — horizontal top bar, prominent logo
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 247, 251, 0.95);
  backdrop-filter: blur(6px);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }

.brand img {
  height: 72px;
  width: 72px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 18px var(--shadow);
  border: 2px solid var(--white);
}

.brand-text-group { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pink-deep);
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--turquoise-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--pink-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--pink-deep); border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding: 6.5rem 0 7rem;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

/* Fades the photo out toward the left so the hero text stays readable,
   while keeping it prominent and unobscured on the right. */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--cream) 0%,
    var(--cream) 18%,
    rgba(255, 247, 251, 0.85) 38%,
    rgba(255, 247, 251, 0.35) 58%,
    rgba(255, 247, 251, 0) 78%
  );
  z-index: 1;
}

.hero-inner{
    max-width:100%;
    text-align:left;
    position: relative;
    z-index:1;
    max-width:640px;
    margin:0 auto;
    transform:none;
    padding:0 20px;
    margin-left: 65px;
    margin-right: auto;
}

.hero-text h1 {
  max-width:100%;
  color: var(--plum);
}
.hero-text h1 span { color: var(--pink); }

.hero-text p {
  font-size: 1.1rem;
  color: #6b5468;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content:left; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  text-align: center;
  box-shadow: 0 12px 26px var(--shadow);
}

.about-card .emoji { font-size: 2rem; display: block; margin-bottom: 0.7rem; }
.about-card p { color: #7a5f77; font-size: 0.95rem; margin: 0; }

/* =========================================================
   GALLERY / "SEE MY WORK" CAROUSEL
   ========================================================= */
.gallery { background: var(--white); }

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink);
  color: var(--pink);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.carousel-arrow:hover { background: var(--pink); color: var(--white); transform: scale(1.06); }

.carousel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.carousel-photo {
  border-radius: 18px;
  border: 5px solid var(--white);
  box-shadow: 0 16px 34px var(--shadow);
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.carousel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the frame, no letterboxing */
}

.carousel-side {
  width: 140px;
  height: 180px;
  opacity: 0.55;
  transform: scale(0.92);
  cursor: pointer;
}
.carousel-side:hover { opacity: 0.85; }

.carousel-main {
  width: 645px;
  height: 510px;
  border-width: 6px;
}

.carousel-caption {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--plum);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(59,15,53,0.18);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active { background: var(--pink); transform: scale(1.2); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: linear-gradient(180deg, #E7F8F8 0%, var(--cream) 100%); }

.contact-grid {
  max-width: 900px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 12px 26px var(--shadow);
  border-left: 5px solid var(--pink);
  min-width: 0;
}
.contact-card:nth-child(even) { border-left-color: var(--turquoise); }
.contact-card .icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-card h4 { font-family: var(--font-body); font-weight: 600; margin: 0 0 0.2rem; color: var(--plum); }
.contact-card p, .contact-card a {
  margin: 0;
  color: #6b4f68;
  font-size: 0.97rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-card a:hover { color: var(--pink-deep); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--turquoise-deep);
  color: rgba(255,255,255,0.9);
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-main img { height: 40px; border-radius: 50%; background: var(--white); padding: 3px; }
.footer-brand { font-family: var(--font-display); font-size: 1.05rem; }
.footer-sep { opacity: 0.5; }
.footer-copy { font-size: 0.85rem; opacity: 0.85; }

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  opacity: 0.75;
  white-space: nowrap;
}
.footer-credit img { height: 64px; width: auto; }

/* =========================================================
   Scroll reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-inner { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-fade {
    background: linear-gradient(180deg,
      var(--cream) 0%,
      rgba(255, 247, 251, 0.9) 55%,
      rgba(255, 247, 251, 0.55) 100%
    );
  }
  .hero-bg { background-position: center 30%; }
  .about-grid { grid-template-columns: 1fr; }
  .carousel-main { width: 330px; height: 260px; }
  .carousel-side { width: 0px; height: 0px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 88px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-links.open { max-height: 340px; padding: 1rem 1.5rem 1.5rem; }
  .nav-links li { width: 100%; padding: 0.6rem 0; }
  .nav-toggle { display: flex; }
  .brand img { height: 56px; width: 56px; }
  .brand-name { font-size: 1.15rem; }
  section { padding: 3.5rem 0; }
  .carousel { gap: 0.5rem; }
  .carousel-main { width: 300px; height: 236px; margin: 0 auto; }
  .carousel-side { width: 0px; height: 0px; }
  .contact-cards { grid-template-columns: 1fr; }
  .container { max-width: 360px; margin: 0 auto;}
}
