/* ==========================================================================
   Sofia Mendes Fit — Stylesheet
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand palette */
  --p:    #7B3FF5;
  --pd:   #5a2db8;
  --pl:   #a06bff;
  --pk:   #c8748a;
  --pkl:  #e8a0b4;
  --gold: #f4c95d;

  /* Surfaces */
  --dk:  #0a0816;
  --dk2: #100c22;
  --dk3: #1a1234;

  /* Text */
  --w:    #fff;
  --mute: rgba(255, 255, 255, .68);
  --low:  rgba(255, 255, 255, .42);

  /* Effects */
  --ease: cubic-bezier(.2, .9, .3, 1);
  --glow: 0 24px 60px -16px rgba(123, 63, 245, .55);
  --card: 0 10px 30px -10px rgba(0, 0, 0, .55);

  /* Fonts */
  --serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--dk);
  color: var(--w);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative ambient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  animation: float 14s var(--ease) infinite alternate;
}

.orb.a { width: 480px; height: 480px; background: radial-gradient(circle, var(--p), transparent 60%); top: -120px; left: -120px; }
.orb.b { width: 420px; height: 420px; background: radial-gradient(circle, var(--pk), transparent 60%); bottom: -80px; right: -100px; animation-delay: -6s; }
.orb.c { width: 320px; height: 320px; background: radial-gradient(circle, var(--pl), transparent 60%); top: 40%; right: 25%; animation-delay: -3s; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 63, 245, .55), 0 0 60px rgba(123, 63, 245, .35); }
  50%      { box-shadow: 0 0 0 22px rgba(123, 63, 245, 0),  0 0 90px rgba(123, 63, 245, .55); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(10, 8, 22, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-c {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none !important;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: -0.5rem; /* Optical alignment */
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

.nl {
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pl), var(--pkl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -.01em;
}

.nm {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nm a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
  position: relative;
}

.nm a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--pl), var(--pkl));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nm a:hover           { color: var(--w); }
.nm a:hover::after    { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.h-img-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1920&q=90');
  background-size: cover;
  background-position: center 20%;
  z-index: -1;
}

.h-img-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(10, 8, 22, 1) 0%, 
    rgba(10, 8, 22, 0.95) 20%, 
    rgba(10, 8, 22, 0.7) 40%, 
    rgba(10, 8, 22, 0.3) 60%, 
    transparent 100%);
}

.hg {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto; /* Center the 1280px box on screen */
  padding: 10rem 2rem 6rem;
  position: relative;
  z-index: 2;
  text-align: left !important;
  animation: rise 1s var(--ease) both;
}

.hc {
  max-width: 650px;
  margin: 0; /* No auto margin here */
  text-align: left !important;
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, rgba(123, 63, 245, .25), rgba(200, 116, 138, .25));
  border: 1px solid rgba(160, 107, 255, .35);
  border-radius: 50px;
  padding: .5rem 1.1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(10px);
}

.hbadge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pl);
  box-shadow: 0 0 12px var(--pl);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.ht {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}

.ht .hi {
  background: linear-gradient(135deg, var(--pl) 0%, var(--pkl) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
}

.hs {
  font-size: 1.02rem;
  color: var(--mute);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.htags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
  justify-content: flex-start !important;
}

.htag {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: .4rem .95rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: all .25s var(--ease);
}

.htag:hover {
  background: rgba(123, 63, 245, .18);
  border-color: rgba(160, 107, 255, .5);
  color: #fff;
}

.hcta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

/* Buttons */
.bp, .bs {
  position: relative;
  padding: .95rem 2.1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  transition: all .35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
}

.bp {
  background: linear-gradient(135deg, var(--p), var(--pd));
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(123, 63, 245, .65);
  overflow: hidden;
  isolation: isolate;
}

.bp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  background-size: 200% 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity .3s;
}

.bp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -8px rgba(123, 63, 245, .8);
}

.bp:hover::before {
  opacity: 1;
  animation: shimmer 1.4s linear infinite;
}

.bs {
  border: 1.5px solid rgba(160, 107, 255, .55);
  color: #fff;
  background: rgba(160, 107, 255, .05);
  backdrop-filter: blur(10px);
}

.bs:hover {
  background: rgba(123, 63, 245, .18);
  border-color: var(--pl);
  transform: translateY(-3px);
}

/* Hero Image Frame */
.himg {
  position: relative;
  z-index: 5;
  padding: 2rem; /* Give space for floating elements */
}

.himg-frame {
  position: relative;
  border-radius: 40px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform .6s var(--ease);
}

.himg-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.himg-frame img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  border-radius: 40px;
}

.himg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 22, 0.5), transparent);
}

.hsc-float {
  position: absolute;
  background: rgba(20, 14, 40, 0.85);
  backdrop-filter: blur(15px);
  padding: 1.2rem 1.8rem;
  border-radius: 24px;
  border: 1px solid rgba(160, 107, 255, 0.25);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  z-index: 10;
  text-align: center;
}

.hsc-float.a { top: 10%; left: -10%; animation: float 6s ease-in-out infinite; }
.hsc-float.b { bottom: 10%; right: -10%; animation: float 6s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.sn { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: .2rem; }
.sl { font-size: .65rem; font-weight: 700; color: var(--pl); text-transform: uppercase; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   Generic section helpers
   -------------------------------------------------------------------------- */
.sec     { padding: 8rem 2rem; position: relative; overflow: hidden; }
.c       { text-align: center; }
.bg2     { background: var(--dk2); }

/* Section Backgrounds */
.s-bg-about::before, .s-bg-services::before, .s-bg-tips::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  pointer-events: none;
}

.s-bg-about::before    { background-image: url('https://images.unsplash.com/photo-1518310383802-640c2de311b2?auto=format&fit=crop&w=1600&q=20'); }
.s-bg-services::before { background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1600&q=20'); }
.s-bg-tips::before     { background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1600&q=20'); }

.sec > * { position: relative; z-index: 2; }

.ey {
  display: inline-block;
  color: var(--pl);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  padding: .3rem .9rem;
  background: rgba(160, 107, 255, .1);
  border: 1px solid rgba(160, 107, 255, .25);
  border-radius: 50px;
}

.st {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.st .hi {
  background: linear-gradient(135deg, var(--pl), var(--pkl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--serif);
  font-style: italic;
}

.sd {
  color: var(--mute);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: .94rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.ag {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.a-img-side {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.a-main-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.a-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(123, 63, 245, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lch {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: .35rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  transition: all .25s var(--ease);
}

.lch:hover {
  background: rgba(160, 107, 255, .2);
  border-color: var(--pl);
}

.atx {
  color: var(--mute);
  line-height: 1.85;
  margin-bottom: 1.3rem;
  font-size: .93rem;
}

.ahi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}

.ahc {
  background: rgba(160, 107, 255, .08);
  border: 1px solid rgba(160, 107, 255, .2);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all .3s var(--ease);
}

.ahc:hover {
  background: rgba(160, 107, 255, .14);
  transform: translateY(-2px);
}

.ahn {
  font-size: 1.85rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pl), var(--pkl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ahl { font-size: .72rem; color: var(--mute); margin-top: .2rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.sgrid {
  max-width: 1280px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.sc {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.sc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p), var(--pk), var(--gold));
  opacity: .7;
}

.sc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(123, 63, 245, .15), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.sc:hover {
  transform: translateY(-8px);
  border-color: rgba(160, 107, 255, .45);
  box-shadow: 0 28px 60px -20px rgba(123, 63, 245, .35);
}

.sc:hover::after { opacity: 1; }

.sic {
  font-size: 2.2rem;
  margin-bottom: 1.3rem;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(123, 63, 245, .4));
}

.sti {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.sde {
  color: var(--mute);
  font-size: .83rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.sfe { list-style: none; }

.sfe li {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  padding: .35rem 0;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.sfe li::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--pl) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(160, 107, 255, .25), rgba(200, 116, 138, .15));
  border: 1px solid rgba(160, 107, 255, .3);
}

.sbg {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  background: linear-gradient(135deg, var(--p), var(--pk));
  border-radius: 50px;
  padding: .25rem .8rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -4px rgba(123, 63, 245, .55);
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Tips / Content
   -------------------------------------------------------------------------- */
.tgrid {
  max-width: 1280px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.tc {
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  overflow: hidden;
  transition: all .4s var(--ease);
  position: relative;
}

.tc:hover {
  transform: translateY(-6px);
  border-color: rgba(160, 107, 255, .45);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, .5);
}

.tim {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tim img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tc:hover .tim img { transform: scale(1.1); }

.t-link { text-decoration: none; color: inherit; display: block; }

.tbody { padding: 1.5rem; }

.tcat {
  color: var(--pl);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.ttit {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .65rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.ttx { color: var(--mute); font-size: .82rem; line-height: 1.7; }

.tfoot {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ttag {
  background: rgba(160, 107, 255, .15);
  border: 1px solid rgba(160, 107, 255, .25);
  border-radius: 50px;
  padding: .25rem .8rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--pl);
}

.trd { font-size: .72rem; color: var(--low); font-weight: 500; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.tegrid {
  max-width: 1280px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.tec {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  padding: 2.2rem;
  position: relative;
  transition: all .35s var(--ease);
}

.tec::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--pl);
  opacity: .35;
  line-height: 1;
}

.tec:hover {
  transform: translateY(-4px);
  border-color: rgba(160, 107, 255, .4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5);
}

.tes  { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; letter-spacing: .15em; }
.tetx { color: rgba(255, 255, 255, .82); font-size: .87rem; line-height: 1.75; margin-bottom: 1.5rem; }

.tea  { display: flex; align-items: center; gap: .9rem; }

.teav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .2), transparent 50%),
    linear-gradient(135deg, var(--p), var(--pk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

.ten { font-weight: 700; font-size: .9rem; }
.ter { font-size: .72rem; color: var(--low); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.ctasec {
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(123, 63, 245, .3), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200, 116, 138, .25), transparent 50%),
    linear-gradient(135deg, #100a22, #2a0e55 50%, #100a22);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ctac { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.ctat {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.ctat .hi {
  background: linear-gradient(135deg, var(--pl) 0%, var(--pkl) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--serif);
  font-style: italic;
}

.ctas {
  color: var(--mute);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ctab {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.coc {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.cot {
  font-size: .76rem;
  color: var(--low);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.cos {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.cb {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: .7rem 1.3rem;
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: all .3s var(--ease);
  backdrop-filter: blur(8px);
}

.cb svg { width: 16px; height: 16px; }

.cb:hover {
  background: rgba(160, 107, 255, .2);
  border-color: var(--pl);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: #050309;
  padding: 3.5rem max(1.5rem, calc((100% - 1280px) / 2)) 2rem;
  text-align: center;
  border-top: 1px solid rgba(160, 107, 255, .12);
}

.fl {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pl), var(--pkl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}

.ft { color: var(--low); font-size: .8rem; margin-bottom: 1.2rem; }

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

.sb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  transition: all .35s var(--ease);
}

.sb svg { width: 17px; height: 17px; }

.sb:hover {
  border-color: var(--pl);
  background: rgba(123, 63, 245, .2);
  color: #fff;
  transform: translateY(-3px);
}

.fb2 { color: var(--low); font-size: .74rem; }
.fb2 span { color: var(--pk); }

/* --------------------------------------------------------------------------
   Dedicated Links page
   -------------------------------------------------------------------------- */
.links-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Top-weighted for better balance */
  padding: 5vh 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(123, 63, 245, .35), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(200, 116, 138, .25), transparent 55%),
    linear-gradient(160deg, #0a0816 0%, #160a2e 50%, #0a0816 100%);
  position: relative;
  overflow: hidden;
}

.links-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.lp-head {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 1.5rem; /* Tighter gap to links */
  max-width: 500px;
  animation: rise .9s var(--ease) both;
}

.lp-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 50%),
    linear-gradient(135deg, var(--p), var(--pk), var(--pd));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.9rem;
  font-weight: 900;
  font-family: var(--serif);
  font-style: italic;
  color: #fff;
  margin: 0 auto 1.5rem;
  animation: pulse 3.5s ease-in-out infinite;
  position: relative;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.lp-avatar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .25);
  animation: spin 30s linear infinite;
}

.lp-verified {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4a90ff, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--dk);
  z-index: 2;
}

.lp-verified svg { width: 16px; height: 16px; color: #fff; }

.lp-name {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pl), var(--pkl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}

.lp-role {
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.lp-role svg { width: 14px; height: 14px; opacity: .7; }

.lp-langs {
  display: flex;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.lp-bio {
  color: var(--mute);
  font-size: .88rem;
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto;
}

.lp-links {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin-bottom: 0.5rem; /* Bring the back button closer */
}

.lc {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.lk {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 1rem 1.3rem;
  text-decoration: none;
  color: #fff;
  transition: all .35s var(--ease);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: rise .8s var(--ease) both;
}

.lk:nth-child(1) { animation-delay: .1s; }
.lk:nth-child(2) { animation-delay: .18s; }
.lk:nth-child(3) { animation-delay: .26s; }
.lk:nth-child(4) { animation-delay: .34s; }
.lk:nth-child(5) { animation-delay: .42s; }
.lk:nth-child(6) { animation-delay: .5s; }

.lk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(160, 107, 255, .15) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position .7s var(--ease);
  pointer-events: none;
}

.lk:hover {
  border-color: rgba(160, 107, 255, .55);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(123, 63, 245, .35);
}

.lk:hover::before { background-position: 100% 0; }

.li {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
}

.li svg { width: 22px; height: 22px; color: #fff; }

.ig  { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }
.fb  { background: linear-gradient(135deg, #1877f2, #0a4cb0); }
.yt  { background: linear-gradient(135deg, #ff1a1a, #c80000); }
.lin { background: linear-gradient(135deg, #0a66c2, #064688); }
.wa  { background: linear-gradient(135deg, #25d366, #128c4d); }
.em  { background: linear-gradient(135deg, var(--p), var(--pd)); }

.lt   { text-align: left; flex: 1; min-width: 0; }
.lti  { font-weight: 700; font-size: .95rem; margin-bottom: .15rem; letter-spacing: -.005em; }
.lsu  { font-size: .73rem; color: var(--low); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lar {
  font-size: 1rem;
  color: rgba(255, 255, 255, .35);
  transition: all .35s var(--ease);
  flex-shrink: 0;
}

.lk:hover .lar {
  color: var(--pl);
  transform: translateX(4px);
}

.lp-back {
  position: relative;
  z-index: 2;
  animation: rise 1s var(--ease) both;
  animation-delay: .6s;
}

.lp-footer {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  text-align: center;
  color: var(--low);
  font-size: .74rem;
}

.lp-footer span { color: var(--pk); }

/* --------------------------------------------------------------------------
   Images & Optimization
   -------------------------------------------------------------------------- */
img { max-width: 100%; height: auto; display: block; }

.havc img, .aav img, .teav img, .lp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sim {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.sim img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.sc:hover .sim img { transform: scale(1.1); }

.sim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 8, 22, .6));
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .hg, .ag, .sgrid, .tgrid, .tegrid, .ctac, .lp-links, .lp-head {
    max-width: 1280px;
  }
}
@media (max-width: 900px) {
  .menu-toggle { display: block !important; }
  .nm {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 2rem 3rem;
    gap: 1.8rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
    z-index: 1001; /* Above everything */
  }
  .nm.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .hg     { display: block; text-align: left; padding-top: 6rem; }
  .himg   { order: -1; }
  .havc   { width: 220px; height: 220px; font-size: 4rem; }
  .hsc    { padding: .7rem .9rem; }
  .sn     { font-size: 1.3rem; }
  .hs     { margin-left: 0; margin-right: auto; }
  .htags  { justify-content: flex-start; }
  .hcta   { justify-content: flex-start; }
  .ag     { grid-template-columns: 1fr; gap: 2.5rem; }
  .sgrid  { grid-template-columns: 1fr; }
  .tgrid  { grid-template-columns: 1fr; }
  .tegrid { grid-template-columns: 1fr; }
  .sec    { padding: 4rem 1.5rem; }
  .ctasec { padding: 5rem 1.5rem; }
}

@media (max-width: 480px) {
  .nav-c  { padding: .85rem 1.2rem; }
  .nm     { padding: 1.5rem 1.2rem 2.5rem; }
  .nl     { font-size: 1rem; }
  .havc   { width: 180px; height: 180px; }
  .hsc:first-of-type { top: 0; right: -10px; }
  .hsc:last-of-type  { bottom: 0; left: -10px; }
  .lk     { padding: .85rem 1rem; gap: .9rem; }
  .li     { width: 42px; height: 42px; }
  .lti    { font-size: .88rem; }
  .lsu    { font-size: .7rem; }
  .st     { font-size: 1.6rem; }
  .bp, .bs { padding: .85rem 1.5rem; width: 100%; justify-content: center; }
  .hcta   { flex-direction: column; width: 100%; align-items: flex-start; }
}

@media (max-width: 360px) {
  .ht { font-size: 1.8rem; }
  .havc { width: 150px; height: 150px; }
  .sn { font-size: 1.1rem; }
}
