/* ================================================================
   PRESENCIAL PORTFOLIO  — pf.css
   Inspired by presencial.in theme. NOT a copy.
   ================================================================ */

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

:root {
  --bg:        #080c14;
  --bg2:       #0b1120;
  --card:      #101620;
  --teal:      #00c8d4;
  --teal2:     #00e5f0;
  --teal-dim:  #007a82;
  --teal-glow: rgba(0,200,212,.14);
  --white:     #ffffff;
  --off:       #e8edf5;
  --gray:      #7a8899;
  --gray2:     #b0bcc9;
  --border:    rgba(255,255,255,.06);
  --border2:   rgba(0,200,212,.18);
  --grad:      linear-gradient(90deg, #81FFED 0%, #008793 100%);
}

[data-theme="light"] {
  --bg:       #ddeaf6;
  --bg2:      #e8f1fb;
  --card:     #eef5fc;
  --teal:     #007a8c;
  --teal2:    #009ab5;
  --teal-dim: #005566;
  --teal-glow:rgba(0,122,140,.08);
  --white:    #0c1a2e;
  --off:      #1a2f4a;
  --gray:     #3d5a73;
  --gray2:    #2a4560;
  --border:   rgba(12,26,46,.10);
  --border2:  rgba(0,122,140,.20);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 10px; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .22s; }
.d4 { transition-delay: .30s; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes tick  { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes floatA { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-14px) rotate(1deg)} }
@keyframes floatB { 0%,100%{transform:translateY(0) rotate(1deg)} 50%{transform:translateY(-18px) rotate(-1deg)} }
@keyframes floatC { 0%,100%{transform:translateY(0) rotate(-.5deg)} 50%{transform:translateY(-10px) rotate(.5deg)} }
@keyframes floatD { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes logoPulse { 0%,100%{filter:drop-shadow(0 0 30px rgba(0,200,212,.4));transform:scale(1)} 50%{filter:drop-shadow(0 0 60px rgba(0,200,212,.7));transform:scale(1.04)} }

/* ── SCROLL PROGRESS ── */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--grad);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,212,.065) 0%, transparent 70%);
  pointer-events: none; z-index: 9998;
  will-change: transform;
}

/* ── HEADER (Floating Pill) ── */
.pf-nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 200;
  height: 64px;
  width: 92%; max-width: 1000px;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 24px;
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 200, 212, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: background 0.3s, border-color 0.3s;
}
.pf-nav.scrolled { 
  background: rgba(11, 17, 32, 0.95); 
  border-color: rgba(0, 200, 212, 0.3);
}

.pf-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 24px;
  color: var(--white);
}
.pf-logo img { height: 32px; width: auto; }

.pf-label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
  padding: 5px 14px;
  border: 1px solid rgba(0,200,212,.2); border-radius: 4px;
  background: rgba(0,200,212,.05);
  display: flex; align-items: center; gap: 7px;
}
.pf-label::before {
  content:''; width:6px; height:6px; border-radius:50%;
  background: var(--teal); animation: blink 2s infinite;
}

.pf-nav-right { display: flex; align-items: center; gap: 12px; }

.solid-btn {
  background: var(--grad);
  color: #06080f !important;
  border-radius: 50px;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.solid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 212, 0.35);
}


/* ── BUTTONS ── */
.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  background: var(--grad);
  color: #06080f;
  font-size: 14px; font-weight: 700;
  border-radius: 50px;
  border: none;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,200,212,.35); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  background: rgba(255,255,255,.02);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 50px;
  transition: border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.visit-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  background: var(--grad);
  color: #06080f;
  font-size: 13px; font-weight: 700;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}
.visit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,200,212,.3); }

/* ── HERO ── */
.pf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 80px 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Floating glassmorphic cards */
.floats {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}

.float {
  position: absolute;
  background: rgba(11,17,32,.7);
  border: 1px solid rgba(0,200,212,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 13px 18px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--gray2);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 1px rgba(0,200,212,.2);
}

.f1 { top: 18%; right: 9%; animation: floatA 5s ease-in-out infinite; }
.f2 { bottom: 28%; right: 13%; animation: floatB 6.5s ease-in-out infinite; }
.f3 { top: 40%; right: 26%; animation: floatC 7s ease-in-out infinite; flex-direction:column; gap:7px; }
.f4 { top: 62%; right: 7%; animation: floatD 5.5s ease-in-out infinite; color: var(--teal); }
.f2 img { height: 16px; width: auto; }

.fdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); animation: blink 2s infinite;
}

.fbar {
  width: 96px; height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 10px; overflow: hidden;
}
.fbar span {
  display: block; height: 100%;
  background: var(--grad); border-radius: 10px;
}

/* Hero body */
.hero-body {
  position: relative; z-index: 2;
  max-width: 780px;
}

/* ── CENTRED HERO ── */
.hero-center {
  text-align: center;
  margin: 0 auto;
}
.hero-center .hero-tag { margin-left: auto; margin-right: auto; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-ctas { justify-content: center; }
.hero-center .hero-nums { justify-content: center; }

/* ── TYPEWRITER ── */
.typewriter-wrap {
  display: inline;
  white-space: nowrap;
}

.typewriter-wrap em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.type-cursor {
  display: inline-block;
  font-style: normal;
  font-weight: 300;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
  animation: cursorBlink .75s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50px;
  font-size: 12px; font-weight: 500; color: #b0b4c0;
  margin-bottom: 32px;
}
.htag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: blink 2s infinite;
}

.hero-body h1 {
  font-size: clamp(42px, 4.8vw, 74px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.hero-body h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px; color: var(--gray);
  line-height: 1.7; max-width: 460px;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-nums {
  display: flex; align-items: center; gap: 28px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hnum strong {
  display: block;
  font-size: 30px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 3px;
}
.hnum span { font-size: 12px; color: var(--gray); font-weight: 500; }
.hnum-sep { width: 1px; height: 36px; background: var(--border); }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0; overflow: hidden;
}
.ticker-inner {
  display: flex; width: max-content;
  animation: tick 28s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.tick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 30px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray); white-space: nowrap;
}
.tick-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}

/* ── WORK ── */
.pf-work { padding: 96px 0 120px; }

.pf-wrap { max-width: 1400px; margin: 0 auto; padding: 0 80px; }

.work-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap;
  gap: 24px; margin-bottom: 52px;
}
.work-head > div {}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal);
  padding: 5px 13px;
  border: 1px solid rgba(0,200,212,.2); border-radius: 4px;
  background: rgba(0,200,212,.04);
  margin-bottom: 16px;
}

.work-head h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.025em; margin-bottom: 10px;
}
.work-head h2 em {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-head p { font-size: 14.5px; color: var(--gray); max-width: 440px; }

/* Filters */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.f-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  color: var(--gray2);
  cursor: pointer;
  transition: all .2s;
}
.f-btn:hover { border-color: var(--teal); color: var(--white); }
.f-btn.active {
  background: var(--grad);
  color: #06080f; border-color: transparent;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Work card */
.wcard {
  background: rgba(16, 22, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .4s;
}
.wcard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(0,200,212,.55), transparent);
  opacity: 0; transition: opacity .3s;
}
.wcard:hover {
  transform: translateY(-8px);
  border-color: rgba(0,200,212,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,200,212,.08);
}
.wcard:hover::before { opacity: 1; }

.wc-header {
  display: flex; justify-content: space-between;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.wc-industry { color: var(--gray); }
.wc-type {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wcard h3 {
  font-size: 19px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 12px;
}
.wcard p {
  font-size: 13.5px; color: var(--gray);
  line-height: 1.7; flex-grow: 1; margin-bottom: 22px;
}

.wc-pills {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px;
}
.wc-pills span {
  background: rgba(0,200,212,.06);
  border: 1px solid rgba(0,200,212,.15);
  border-radius: 6px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 500; color: var(--gray2);
}

.wc-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  color: var(--white); text-decoration: none;
  transition: gap .25s, color .2s;
  margin-top: auto;
}
.wcard:hover .wc-link { gap: 11px; color: var(--teal); }

/* ── CTA ── */
.pf-cta {
  position: relative;
  margin: 0 80px 80px;
  border-radius: 24px;
  overflow: hidden;
  background: #060912;
  border: 1px solid rgba(0,200,212,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 100px 40px;
  text-align: center;
}

.cta-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.cta-body {
  position: relative; z-index: 1;
}
.cta-body h2 {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px;
}
.cta-body p {
  font-size: 16px; color: var(--gray); max-width: 500px; margin: 0 auto;
}

.cta-links {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
  font-size: 13.5px; color: var(--gray2);
}
.cta-links a { color: var(--gray2); transition: color .2s; }
.cta-links a:hover { color: var(--teal); }
.cta-links span { opacity: .3; }

/* ── FOOTER ── */
.pf-footer {
  border-top: 1px solid var(--border);
  padding: 28px 80px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--gray);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .floats { display: none; }
}

@media (max-width: 900px) {
  .pill-links { display: none; }
  .pf-nav { width: 96%; }
}

@media (max-width: 768px) {
  .pf-hero { padding: 100px 24px 60px; }
  .pf-wrap { padding: 0 24px; }
  .pf-nav { padding: 0 16px; top: 16px; width: 92%; }
  .solid-btn { font-size: 11.5px !important; padding: 8px 16px !important; }
  .pf-logo { font-size: 14px; }
  .pf-logo img { height: 22px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .pf-cta { margin: 0 24px 60px; padding: 60px 24px; }
  .pf-footer { padding: 24px; flex-direction: column; text-align: center; }
  .hero-nums { gap: 16px; }
}
