/* =========================================================================
   Usman Portfolio — main stylesheet
   Brand palette: magenta (#F700FF) + deep indigo (#11014A) + deep purple
   (#460060), used flat and as gradients. Clean plain-language navigation —
   no code/editor gimmicks, no ".php" labels.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root{
  --bg:            #11014A;
  --bg-alt:        #0A0132;
  --surface:       #1B0A5C;
  --surface-2:     #240F78;
  --border:        rgba(247,0,255,0.16);
  --border-soft:   rgba(255,255,255,0.08);

  --text:          #F5F1FF;
  --text-muted:    #C3B6E8;
  --text-faint:    #8A7CBD;

  --accent-pink:   #F700FF;
  --accent-pink-dim: #B400BD;
  --accent-deep:   #460060;
  --accent-lilac:  #C58CFF;

  --gradient-brand: linear-gradient(135deg, #F700FF 0%, #9A00B8 45%, #460060 100%);
  --gradient-text:  linear-gradient(90deg, #FF6CFF, #F700FF 55%, #C58CFF);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 36px -16px rgba(0,0,0,0.55);
  --shadow-glow: 0 12px 32px -10px rgba(247,0,255,0.35);
  --container: 1180px;

  --ease: cubic-bezier(.22,.9,.32,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body{
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 60% 40% at 15% 0%, rgba(247,0,255,0.08), transparent), radial-gradient(ellipse 50% 40% at 100% 30%, rgba(70,0,96,0.35), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; font-weight: 600; }
p{ margin: 0 0 1em; }
svg{ width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.screen-reader-text{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link{
  position: fixed; top: -60px; left: 12px; z-index: 10000;
  background: var(--accent-pink); color: #1A0030; padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus{ top: 12px; width: auto; height: auto; clip: auto; }

:focus-visible{
  outline: 2px solid var(--accent-pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 96px 0; position: relative; }
@media (max-width: 782px){ .section{ padding: 64px 0; } }
@media (max-width: 480px){
  .container{ padding: 0 18px; }
  .section{ padding: 48px 0; }
}

.section-tab-label{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-pink);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-tab-label::before{ content: ""; width: 20px; height: 2px; background: var(--gradient-brand); border-radius: 2px; }
.section-tab-label.center{ justify-content: center; }
.section-title{ font-size: clamp(28px, 4vw, 42px); }
.section-title.center{ text-align: center; }
.section-sub{ color: var(--text-muted); max-width: 620px; margin-bottom: 48px; }
.section-sub.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--gradient-brand); color: #FFFFFF; }
.btn-primary:hover{ box-shadow: var(--shadow-glow); }
.btn-outline{ border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover{ border-color: var(--accent-pink); color: var(--accent-pink); }
.btn-ghost{ color: var(--text-muted); background: transparent; }
.btn-ghost:hover{ color: var(--text); }
.btn-ghost-line{ color: var(--accent-lilac); border-bottom: 1px solid var(--accent-lilac); padding: 14px 4px; border-radius: 0; }
.btn-ghost-line:hover{ color: var(--accent-pink); border-color: var(--accent-pink); }
.btn-sm{ padding: 9px 16px; font-size: 13px; }
.btn-block{ width: 100%; }

.badge{
  font-family: var(--font-mono); font-size: 11px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--border);
}
.badge-live{ color: #FF7CFF; border-color: rgba(247,0,255,.4); background: rgba(247,0,255,.1); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header{ position: sticky; top: 0; z-index: 500; }
.tab-bar{
  background: rgba(10,1,50,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.tab-bar-inner{
  position: relative;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px;
}
.site-brand{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--font-display); font-weight: 700; z-index: 1; }
.brand-mark{
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gradient-brand); color: #fff; font-size: 14px; letter-spacing: .02em;
}
.brand-text{ font-size: 16px; }
.custom-logo{ max-height: 44px; width: auto; }

.tab-bar-nav{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.tab-bar-list{ display: flex; align-items: center; gap: 6px; }
.tab-item{ flex-shrink: 0; }
.tab-link{
  display: block; font-size: 14.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  padding: 10px 14px; border-radius: 999px;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.tab-link:hover{ color: var(--text); background: rgba(255,255,255,0.04); }
.tab-link.is-active{ color: #fff; background: var(--gradient-brand); }

.tab-bar-actions{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; z-index: 1; }
.tab-bar-toggle{
  display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px;
}
.toggle-bar{ width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }

@media (max-width: 900px){
  .tab-bar-toggle{ display: flex; }
  .tab-bar-nav{
    position: absolute; left: 0; right: 0; top: 72px; transform: none;
    background: var(--bg-alt); border-bottom: 1px solid var(--border-soft);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .tab-bar-nav.is-open{ max-height: 420px; overflow-y: auto; }
  .tab-bar-list{ flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; }
  .tab-link{ border-radius: var(--radius-sm); padding: 12px 14px; }
}
@media (max-width: 420px){
  .tab-bar-inner{ gap: 12px; padding: 0 16px; }
  .brand-text{ display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero-section{
  padding-top: 96px; padding-bottom: 64px; overflow: hidden;
  min-height: calc(100vh - 72px); display: flex; align-items: center;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow{ position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(130px); opacity: .32; }
.hero-glow-1{ background: var(--accent-pink); top: -160px; right: -100px; }
.hero-glow-2{ background: var(--accent-deep); bottom: -180px; left: -120px; }
.hero-glow-3{ background: var(--accent-lilac); top: 30%; left: 40%; opacity: .14; }

.hero-inner{
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero-copy, .hero-visual{ min-width: 0; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 13px; color: #FF9CFF; background: rgba(247,0,255,.1);
  border: 1px solid rgba(247,0,255,.35); padding: 6px 12px; border-radius: 999px; margin: 0 0 20px;
}
.eyebrow-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent-pink); box-shadow: 0 0 0 3px rgba(247,0,255,.25); }
.hero-headline{
  font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin-bottom: 16px; max-width: 16ch;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title{ font-family: var(--font-body); font-weight: 600; font-size: clamp(15px, 1.8vw, 18px); color: var(--text); margin-bottom: 18px; }
.hero-intro{ color: var(--text-muted); font-size: 17px; max-width: 540px; margin-bottom: 32px; }
.hero-actions{ display: flex; gap: 18px; margin-bottom: 32px; flex-wrap: wrap; align-items: center; }

.social-icons{ display: flex; gap: 10px; }
.social-icons li a{
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted);
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.social-icons li a svg{ width: 17px; height: 17px; }
.social-icons li a:hover{ border-color: var(--accent-pink); color: var(--accent-pink); transform: translateY(-2px); }
.social-icons li a.is-highlighted{
  border-color: var(--accent-pink); color: #fff; background: var(--gradient-brand);
  box-shadow: var(--shadow-glow); animation: pulseGlow 2.4s infinite var(--ease);
}
.social-icons li a.is-highlighted:hover{ transform: translateY(-2px) scale(1.06); }
@keyframes pulseGlow{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(247,0,255,.45), var(--shadow-glow); }
  50%{ box-shadow: 0 0 0 6px rgba(247,0,255,0), var(--shadow-glow); }
}

/* Hero photo */
.hero-visual{ position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-photo-frame{
  position: relative; width: min(100%, 400px); aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card);
  background: var(--surface);
}
.hero-photo-frame::after{
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  background: linear-gradient(180deg, transparent 60%, rgba(17,1,74,0.55));
  pointer-events: none;
}
.hero-photo-frame img{ width: 100%; height: 100%; object-fit: cover; }

.hero-stat-float{
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 20px; box-shadow: var(--shadow-card);
  text-align: center; animation: floatCard 5s ease-in-out infinite;
}
.hero-stat-float-name{
  bottom: -12%; left: 50%; text-align: left; padding: 16px 22px; white-space: nowrap;
  background: var(--gradient-brand); border-color: transparent;
  animation: floatCardCentered 5s ease-in-out infinite; animation-delay: .2s;
}
.hero-stat-name{ display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; white-space: nowrap; }
.hero-stat-float-name .hero-stat-label{ color: rgba(255,255,255,.85); }
.hero-stat-float-1{ top: 8%; left: -12%; animation-delay: 0s; }
.hero-stat-float-2{ top: 32%; right: -10%; animation-delay: .5s; }
.hero-stat-num{ display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--accent-pink); }
.hero-stat-label{ display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; }
.hero-stats-row{ display: contents; }

@keyframes floatCard{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
@keyframes floatCardCentered{
  0%, 100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, -10px); }
}

.scroll-cue{
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; z-index: 1;
}
.scroll-cue-line{
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; background: var(--accent-pink); border-radius: 2px;
  animation: scrollcue 1.8s infinite var(--ease);
}
@keyframes scrollcue{ 0%{ opacity: 1; top: 8px; } 70%{ opacity: 0; top: 20px; } 100%{ opacity: 0; top: 20px; } }

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-section{ padding-top: 56px; padding-bottom: 40px; min-height: auto; overflow: visible; }
  .hero-headline{ max-width: none; }
  .hero-visual{ margin-top: 32px; width: 100%; }
  .hero-stat-float{ animation: none; }
  .hero-stat-float-name{
    position: static; display: inline-flex; flex-direction: column; align-items: center;
    margin: 8px 6px 0; text-align: center; transform: none; max-width: 90%;
  }
  .hero-stats-row{
    display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: 12px; width: 100%; margin-top: 8px;
  }
  .hero-stat-float-1, .hero-stat-float-2{
    position: static; display: inline-flex; flex-direction: column; align-items: center;
    margin: 0; text-align: center; transform: none; flex: 0 1 150px;
  }
  .hero-stat-name, .hero-stat-label{ white-space: normal; }
  .scroll-cue{ display: none; }
}
@media (max-width: 480px){
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; white-space: normal; }
  .hero-stat-float-name{ max-width: 100%; }
  .hero-stat-float-1, .hero-stat-float-2{ flex: 1 1 130px; }
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-text{ margin: 4px 0 0; }
.about-text.center{ text-align: center; }
.about-text p{ color: var(--text-muted); }
.about-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; margin-bottom: 24px; }
.about-actions.center{ justify-content: center; }
.about-social{ display: flex; justify-content: center; }
.about-social .social-icons{ justify-content: center; }

.about-facts{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; display: flex; flex-wrap: wrap; gap: 22px 32px; margin-top: 32px; margin-bottom: 8px;
}
.photo-tag-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent-pink); flex-shrink: 0; }
.fact-item{ display: flex; gap: 14px; align-items: flex-start; flex: 1 1 220px; min-width: 0; }
.fact-icon{
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--radius-sm); background: var(--gradient-brand); color: #fff; padding: 8px; flex-shrink: 0;
}
.fact-body{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fact-label{ font-family: var(--font-mono); font-size: 12px; color: var(--accent-pink); }
.fact-value{ color: var(--text-muted); font-size: 14px; word-break: break-word; }

@media (max-width: 640px){
  .about-facts{ flex-direction: column; padding: 22px 20px; }
  .fact-item{ flex-basis: auto; }
}
@media (max-width: 480px){
  .about-actions{ flex-direction: column; align-items: stretch; }
  .about-actions .btn{ width: 100%; white-space: normal; }
}

/* =========================================================================
   EXPERIENCE TIMELINE
   ========================================================================= */
.timeline{ position: relative; padding-left: 32px; }
.timeline::before{
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--border), var(--border) 90%, transparent);
}
.timeline-item{ position: relative; padding-bottom: 40px; }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-dot{
  position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text-faint);
}
.timeline-dot.is-current{ border-color: var(--accent-pink); box-shadow: 0 0 0 4px rgba(247,0,255,.18); }
.timeline-card{
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 24px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.timeline-card:hover{ border-color: var(--accent-pink); transform: translateX(4px); }
.timeline-card.is-highlight{
  border-color: rgba(247,0,255,.5);
  background: linear-gradient(160deg, rgba(247,0,255,0.08), var(--surface) 55%);
  box-shadow: var(--shadow-glow);
}
.highlight-ribbon{
  position: absolute; top: -12px; right: 20px; font-family: var(--font-mono); font-size: 11px;
  background: var(--gradient-brand); color: #fff; padding: 4px 12px; border-radius: 999px;
}
.timeline-card-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.timeline-period{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.timeline-role{ font-size: 18px; margin-bottom: 10px; }
.timeline-companies{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.company-chip{
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--accent-lilac);
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
a.company-chip:hover{ border-color: var(--accent-pink); color: var(--accent-pink); background: rgba(247,0,255,.06); }
.company-chip.is-static{ color: var(--text-faint); }
.timeline-company-note{
  font-size: 12.5px; color: var(--text-faint); margin: -4px 0 14px; font-style: italic;
}
.timeline-desc{ color: var(--text-muted); font-size: 14.5px; margin: 0; }
.highlight-stats{
  margin: 14px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--accent-pink); font-weight: 600;
}

.timeline-progression{ display: flex; flex-direction: column; }
.progression-step{
  padding: 16px 0; border-top: 1px dashed var(--border-soft);
}
.progression-step:first-child{ padding-top: 0; border-top: 0; }
.progression-step-head{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.progression-step-head .timeline-role{ margin-bottom: 0; }
.progression-step-period{
  display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 8px;
}
.badge-promoted{ color: #FF9CFF; border-color: rgba(247,0,255,.4); background: rgba(247,0,255,.1); }

@media (max-width: 480px){
  .timeline{ padding-left: 24px; }
  .timeline-dot{ left: -24px; }
  .timeline-card{ padding: 18px 16px; }
  .highlight-ribbon{ right: 12px; }
}

/* =========================================================================
   STATS
   ========================================================================= */
.stats-section{ padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number{
  display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px);
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label{ display: block; color: var(--text-muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 700px){ .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* =========================================================================
   SKILLS
   ========================================================================= */
.skill-groups{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.skill-group-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 24px; transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.skill-group-card:hover{ transform: translateY(-4px); border-color: var(--accent-pink); }
.skill-group-card:hover .skill-group-icon{ transform: rotate(-6deg) scale(1.08); }
.skill-group-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.skill-group-icon{
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--radius-sm); background: var(--gradient-brand); color: #fff; padding: 8px; flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.skill-group-title{ font-size: 16px; margin: 0; }
.skill-bar{ margin-bottom: 14px; }
.skill-bar:last-child{ margin-bottom: 0; }
.skill-bar-head{ display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.skill-name{ color: var(--text-muted); }
.skill-level{ font-family: var(--font-mono); color: var(--text-faint); font-size: 11px; }
.progress-track{ height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-track-sm{ height: 4px; }
.progress-fill{
  height: 100%; width: 0; border-radius: 999px;
  background: var(--gradient-brand);
  transition: width 1.1s var(--ease);
}
.progress-fill.is-visible{ width: var(--level); }

@media (max-width: 900px){ .skill-groups{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){
  .skill-groups{ grid-template-columns: 1fr; }
}

/* =========================================================================
   TOOLS
   ========================================================================= */
.tools-grid{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tool-chip{
  font-family: var(--font-mono); font-size: 13.5px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text-muted); transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.tool-chip:hover{ color: var(--accent-pink); border-color: var(--accent-pink); transform: translateY(-2px); }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 22px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before{
  content:""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(160deg, rgba(247,0,255,0.1), transparent 60%);
  transition: opacity .25s var(--ease);
}
.service-card:hover{ transform: translateY(-5px); border-color: var(--accent-pink); box-shadow: var(--shadow-card); }
.service-card:hover::before{ opacity: 1; }
.service-card:hover .service-icon{ transform: scale(1.1) rotate(-4deg); }
.service-icon{
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: var(--radius-sm); background: var(--gradient-brand); margin-bottom: 18px; padding: 11px; color: #fff;
  position: relative; z-index: 1; transition: transform .25s var(--ease);
}
.service-title{ font-size: 16.5px; margin-bottom: 6px; position: relative; z-index: 1; }
.service-desc{ color: var(--text-muted); font-size: 13.5px; margin: 0; position: relative; z-index: 1; }

@media (max-width: 1080px){ .services-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px){ .services-grid{ grid-template-columns: 1fr; } }

/* =========================================================================
   WHY-HIRE-ME
   ========================================================================= */
.why-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 24px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.why-card:hover{ transform: translateY(-4px); border-color: var(--accent-pink); box-shadow: var(--shadow-card); }
.why-card:hover .why-icon{ background: var(--gradient-brand); color: #fff; transform: scale(1.08); }
.why-icon{
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-sm); background: rgba(247,0,255,.12); border: 1px solid var(--border);
  margin-bottom: 16px; padding: 10px; color: var(--accent-pink);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.why-title{ font-size: 17px; margin-bottom: 6px; }
.why-desc{ color: var(--text-muted); font-size: 14px; margin: 0; }

@media (max-width: 980px){ .why-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .why-grid{ grid-template-columns: 1fr; } }

/* =========================================================================
   PORTFOLIO (compact cards, no thumbnail)
   ========================================================================= */
.portfolio-filters{ display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn{
  font-family: var(--font-mono); font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  transition: all .18s var(--ease);
}
.filter-btn:hover{ color: var(--text); }
.filter-btn.is-active{ background: var(--gradient-brand); color: #fff; border-color: transparent; }

.portfolio-grid-compact{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portfolio-card-sm{
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; transition: transform .2s var(--ease), border-color .2s var(--ease);
}
a.portfolio-card-sm:hover, .portfolio-card-sm:hover{ transform: translateY(-4px); border-color: var(--accent-pink); }
.portfolio-card-sm.is-hidden{ display: none; }
.portfolio-category{ font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-pink); text-transform: uppercase; letter-spacing: .05em; }
.portfolio-title{ font-size: 15px; margin: 8px 0 6px; display: flex; align-items: center; gap: 6px; }
.portfolio-link-arrow{ color: var(--accent-lilac); font-size: 13px; }
.portfolio-desc{ color: var(--text-muted); font-size: 12.5px; margin: 0; line-height: 1.5; }

@media (max-width: 1080px){ .portfolio-grid-compact{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .portfolio-grid-compact{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .portfolio-grid-compact{ grid-template-columns: 1fr; } }

/* =========================================================================
   CONTACT (detail cards, no form)
   ========================================================================= */
.contact-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.contact-card{
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 20px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-card:hover{ transform: translateY(-4px); border-color: var(--accent-pink); box-shadow: var(--shadow-card); }
.contact-card-highlight{
  border-color: rgba(247,0,255,.5);
  background: linear-gradient(160deg, rgba(247,0,255,0.1), var(--surface) 60%);
  box-shadow: var(--shadow-glow);
}
.contact-card-highlight .contact-card-label{ color: #FF9CFF; }
.contact-card-highlight:hover{ transform: translateY(-6px) scale(1.02); }
.contact-card-icon{
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--gradient-brand); color: #fff; padding: 10px; margin-bottom: 8px;
}
.contact-card-label{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.contact-card-value{ font-size: 14.5px; color: var(--text); word-break: break-word; }

@media (max-width: 780px){ .contact-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .contact-grid{ grid-template-columns: 1fr; } }

/* =========================================================================
   FOOTER — minimal, centered
   ========================================================================= */
.site-footer{ border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-copy{ margin: 0; text-align: center; color: var(--text-faint); font-size: 13.5px; }

/* =========================================================================
   BACK TO TOP — fixed, bottom-right, circular scroll-progress ring
   ========================================================================= */
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px; /* fallback for browsers without env() support */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), box-shadow .2s var(--ease);
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover{ box-shadow: var(--shadow-glow); }
.back-to-top-ring{ position: absolute; inset: 0; width: 52px; height: 52px; transform: rotate(-90deg); }
.back-to-top-track{ fill: none; stroke: var(--border); stroke-width: 3; }
.back-to-top-progress{
  fill: none; stroke: var(--accent-pink); stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}
.back-to-top-arrow{ position: relative; color: var(--text); font-size: 18px; line-height: 1; }

@media (max-width: 600px){
  .back-to-top{ right: 16px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  .back-to-top-ring{ width: 46px; height: 46px; }
}

/* =========================================================================
   STANDARD PAGE / BLOG (fallback templates)
   ========================================================================= */
.standard-content{ display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 64px 24px; }
.page-title{ font-size: clamp(28px, 4vw, 40px); }
.page-content{ color: var(--text-muted); }
.blog-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.blog-card-title a{ color: var(--text); }
.blog-card-title a:hover{ color: var(--accent-pink); }
.blog-card-meta{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.widget{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.widget-title{ font-family: var(--font-mono); font-size: 13px; color: var(--accent-pink); margin-bottom: 16px; }
@media (max-width: 900px){ .standard-content{ grid-template-columns: 1fr; padding: 48px 20px; } }

/* =========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}
