/* =========================================================
   Nida CK — Portfolio v3 (black-forward palette, red as sparse accent)
   Color:  #0b0b0c base | #131315 section-alt | #ff4433 accent (used sparingly)
           #f5f3f1 text | #b9b4b0 muted | #18181b card
   Type:   "Poppins" display / "Manrope" body
   ========================================================= */

:root{
  --bg:        #0a0a0b;
  --bg-alt:    #101012;
  --card:      #18181b;
  --card-2:    #1e1e22;
  --line:      #2b2b30;
  --accent:    #ff4433;
  --accent-2:  #ff6a4d;
  --text:      #f5f3f1;
  --muted:     #b3aeaa;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 50px;
}

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

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,.brand{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a{ color: var(--text); text-decoration: none; }
::selection{ background: var(--accent); color: #fff; }

.card-tile{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

/* ============ LOADER ============ */
#loader{
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .5s ease, visibility .5s ease;
}
#loader.hide{ opacity: 0; visibility: hidden; }
.loader-mark{
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 2.2rem; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 50%;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  animation: pulseMark 1.1s ease-in-out infinite;
}
@keyframes pulseMark{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(0.92); opacity: .6; }
}

/* ============ NAVBAR ============ */
.topnav{
  position: sticky; top: 0; z-index: 500;
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand{ font-size: 1.3rem; color: var(--text); }
.brand span{ color: var(--accent); }

.nav-links{
  list-style: none; display: flex; gap: 30px; margin: 0; padding: 0;
}
.nav-links a{
  font-size: .92rem; color: var(--muted); font-weight: 600;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); border-color: var(--accent); }

.btn-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-pill-filled{
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px rgba(255,68,51,.18);
}
.btn-pill-filled:hover{ background: var(--accent-2); color: #fff; transform: translateY(-2px); }
.btn-pill-outline{
  border-color: var(--line); color: var(--text); background: transparent;
}
.btn-pill-outline:hover{ border-color: var(--accent); color: var(--accent); }
.btn-pill-mini{
  border: 1px solid var(--line); color: var(--text);
  padding: 9px 20px; font-size: .82rem;
}
.btn-pill-mini:hover{ background: var(--accent); border-color: var(--accent); color: #fff; }

.nav-cta{ padding: 11px 22px; }

.menu-toggle{
  background: none; border: none; width: 30px; height: 20px;
  position: relative; padding: 0; cursor: pointer;
}
.menu-toggle span{
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--text);
  transition: transform .25s, opacity .25s;
}
.menu-toggle span:nth-child(1){ top: 0; }
.menu-toggle span:nth-child(2){ top: 9px; }
.menu-toggle span:nth-child(3){ top: 18px; }
.menu-toggle.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 767.98px){
  .nav-links{
    position: fixed; top: 65px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open{ max-height: 400px; }
  .nav-links li{ border-top: 1px solid var(--line); }
  .nav-links a{ display: block; padding: 16px 24px; border-bottom: none; }
}

/* ============ HERO ============ */
.hero{ position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero-glow{
  position: absolute; top: -20%; right: -10%; width: 55%; height: 130%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-inner{ position: relative; z-index: 1; }

.eyebrow{ color: var(--muted); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; font-size: .95rem; }
.hero-title{
  font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.15; margin-bottom: 18px; color: var(--text);
}
.type-accent{ color: var(--accent); }
.cursor{ display: inline-block; color: var(--accent); animation: blink 1s step-start infinite; font-weight: 300; }
@keyframes blink{ 50%{ opacity: 0; } }

.hero-sub{ color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero-btns{ display: flex; flex-wrap: wrap; gap: 16px; }

.hero-photo-wrap{ position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: var(--card);
}
.hero-photo{ width: 100%; height: 100%; object-fit: cover; display: block; }

.badge-float{
  position: absolute;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  z-index: 2;
}
.badge-tl{ top: 10px; left: -16px; }
.badge-tl i{ color: var(--accent); font-size: 1.2rem; }
.badge-tl strong{ display: block; font-size: .85rem; color: var(--text); }
.badge-tl span{ display: block; font-size: .74rem; color: var(--muted); }

.badge-br{
  bottom: 14px; right: -16px; flex-direction: column; align-items: flex-start; gap: 0;
  text-align: left;
}
.badge-br .stat-num, .badge-br .plus{ color: var(--text); font-family: 'Poppins'; font-weight: 800; font-size: 1.5rem; }
.badge-br p{ margin: 2px 0 0; font-size: .78rem; color: var(--muted); }

@media (max-width: 575.98px){
  .badge-tl{ left: 0; }
  .badge-br{ right: 0; }
}

/* ============ SECTIONS (general) ============ */
.section{ padding: 76px 0; scroll-margin-top: 76px; }
.section-alt{ background: var(--bg-alt); }
.tag-label{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  padding: 7px 16px 7px 12px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.tag-label::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title{ font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; color: var(--text); }
.section-text{ color: var(--muted); max-width: 640px; }

/* ============ WHO AM I / COLLAGE ============ */
.collage{
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 420px;
}
.collage-photo{
  grid-row: 1 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.collage-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.collage-chart{ padding: 16px; }
.mini-bars{ display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-bottom: 8px; }
.mini-bars span{
  flex: 1; background: var(--accent); border-radius: 3px 3px 0 0;
  height: var(--h); opacity: .8;
}
.collage-chart p{ margin: 0; font-size: .74rem; color: var(--muted); }

.collage-stat{ padding: 18px 16px; text-align: left; }
.collage-stat .stat-num, .collage-stat .plus{ font-family: 'Poppins'; font-weight: 800; font-size: 1.5rem; color: var(--text); }
.collage-stat p{ margin: 4px 0 0; font-size: .78rem; color: var(--muted); }

.about-actions{ display: flex; align-items: center; gap: 18px; }
.about-actions-top{ margin-top: 28px; }
.play-btn{
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1.1rem;
  transition: border-color .2s, background .2s, color .2s;
}
.play-btn:hover{ background: var(--accent); border-color: var(--accent); color: #fff; }

/* skills (kept in stylesheet for reuse; section currently unused in markup) */
.skills-block{ margin-top: 60px; }
.block-title{ font-size: 1.2rem; margin-bottom: 22px; }
.skills-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.skill-top{ display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }
.skill-pct{ color: var(--accent); font-weight: 700; }
.skill-bar{ height: 7px; background: var(--card-2); border-radius: 10px; overflow: hidden; }
.skill-fill{ height: 100%; width: 0; background: var(--accent); border-radius: 10px; transition: width 1.1s cubic-bezier(.2,.8,.3,1); }

@media (max-width: 767.98px){ .skills-grid{ grid-template-columns: 1fr; } }

/* ============ SERVICES ============ */
.services-head{
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-bottom: 40px;
}
.service-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, background .25s;
}
.service-card:hover{ transform: translateY(-6px); border-color: var(--accent); background: var(--card-2); }
.service-icon{
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,68,51,.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.3rem; margin-bottom: 20px;
}
.service-card h4{ font-size: 1.05rem; margin-bottom: 10px; }
.service-card p{ color: var(--muted); font-size: .9rem; margin-bottom: 22px; flex-grow: 1; }

.service-arrow{
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); font-size: .95rem;
  align-self: flex-start;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.service-arrow:hover{
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateX(4px);
}

/* why cards */
.why-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
}
.why-card p{ color: var(--muted); margin: 0; }

/* ============ TESTIMONIALS (full-width auto-scroll marquee) ============ */
.testimonials-section{ overflow: hidden; }
.marquee-wrap{
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track{
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
  padding: 6px 0 20px;
}
.marquee-wrap:hover .marquee-track{ animation-play-state: paused; }
@keyframes marqueeScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.testimonial-card{
  flex: 0 0 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .25s, border-color .25s, background .25s;
}
.testimonial-card:hover{ transform: translateY(-6px); border-color: var(--accent); background: var(--card-2); }
.testimonial-quote{ color: var(--text); font-size: .95rem; font-style: italic; margin-bottom: 18px; }
.testimonial-name{ color: var(--text); font-weight: 700; font-size: .9rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.testimonial-name::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 575.98px){
  .testimonial-card{ flex-basis: 250px; }
}

/* ============ FAQ ============ */
.faq-accordion{ max-width: 800px; }
.accordion-item{ background: var(--card); border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: var(--radius-md) !important; margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.accordion-button{
  background: transparent; color: var(--text);
  font-size: .95rem; font-weight: 600;
  padding: 18px 22px; box-shadow: none;
}
.accordion-button:not(.collapsed){ background: var(--card-2); color: var(--text); box-shadow: none; }
.accordion-item:has(.accordion-button:not(.collapsed)){ border-left-color: var(--accent); }
.accordion-button::after{ filter: invert(38%) sepia(80%) saturate(3000%) hue-rotate(340deg); }
.accordion-body{ color: var(--muted); padding: 0 22px 20px; font-size: .92rem; }

/* ============ CONTACT ============ */
.contact-form{ padding: 30px; }
.contact-form .form-label{ color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.contact-form .form-control{
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
}
.contact-form .form-control:focus{
  background: var(--card-2); color: var(--text);
  border-color: var(--accent); box-shadow: 0 0 0 .18rem rgba(255,68,51,.15);
}
.form-success{ color: #4fd18b; margin-top: 12px; font-size: .9rem; }

.contact-side{ padding: 30px; height: 100%; }
.contact-side h4{ font-size: 1.05rem; margin-bottom: 18px; }
.contact-list{ list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li{
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--muted);
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.contact-list li:last-child{ border-bottom: none; }
.contact-list i{ color: var(--accent); width: 18px; text-align: center; }
.contact-list a{ color: var(--muted); }
.contact-list a:hover{ color: var(--text); }

.site-footer{
  margin-top: 50px; padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; text-align: center;
}

/* ============ FLOATING WHATSAPP BUTTON ============ */
#whatsappFloat{
  position: fixed; right: 24px; bottom: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(37,211,102,.35);
  z-index: 600;
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .2s ease;
}
#whatsappFloat:hover{ transform: scale(1.08); color: #fff; }
@keyframes waPulse{
  0%, 100%{ box-shadow: 0 10px 26px rgba(37,211,102,.35); }
  50%{ box-shadow: 0 10px 26px rgba(37,211,102,.35), 0 0 0 10px rgba(37,211,102,.10); }
}

/* ============ BACK TO TOP ============ */
#toTop{
  position: fixed; right: 24px; bottom: 92px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card-2); color: var(--accent); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
  z-index: 500; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
#toTop.show{ opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover{ background: var(--accent); color: #fff; }

@media (max-width: 575.98px){
  #whatsappFloat{ right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
  #toTop{ right: 16px; bottom: 78px; width: 42px; height: 42px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px){
  .section{ padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ============ INTERACTIVE ANIMATION LAYER ============ */

/* scroll reveal */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}
/* stagger children of a revealed group */
[data-reveal-group] > *{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal-group].in-view > *{
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group].in-view > *:nth-child(1){ transition-delay: .05s; }
[data-reveal-group].in-view > *:nth-child(2){ transition-delay: .12s; }
[data-reveal-group].in-view > *:nth-child(3){ transition-delay: .19s; }
[data-reveal-group].in-view > *:nth-child(4){ transition-delay: .26s; }
[data-reveal-group].in-view > *:nth-child(5){ transition-delay: .33s; }
[data-reveal-group].in-view > *:nth-child(6){ transition-delay: .40s; }

/* tilt wrapper (hero photo) */
[data-tilt]{
  transition: transform .15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* magnetic / hover lift already present on cards; add active press feedback */
.btn-pill{ position: relative; overflow: hidden; }
.btn-pill:active{ transform: scale(.96); }

/* ripple */
.ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: rippleAnim .6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim{
  to{ transform: scale(3); opacity: 0; }
}

/* nav underline sweep */
.nav-links a{ position: relative; }
.nav-links a::after{
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after{ width: 100%; }
.nav-links a.active{ border-color: transparent; }

/* animated counters get a little pop when they finish */
.stat-num.pop{ animation: statPop .4s ease; }
@keyframes statPop{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.15); }
  100%{ transform: scale(1); }
}

/* cursor-follow glow inside hero — kept neutral, not red */
.hero{ isolation: isolate; }
.hero-cursor-glow{
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity .3s ease;
  opacity: 0;
}
.hero:hover .hero-cursor-glow{ opacity: 1; }

/* service icon micro-bounce on card hover */
.service-card:hover .service-icon{
  transform: translateY(-4px) rotate(-6deg);
}
.service-icon{ transition: transform .3s ease; }

@media (prefers-reduced-motion: reduce){
  [data-reveal], [data-reveal-group] > *{ opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track{ animation: none !important; }
}
