/* =============================================
   SSVFX — Next-Generation Cinematic Design System
   Deep Space Dark · Red Accent · Glassmorphism · HDR
   ============================================= */

/* ── Design Tokens ── */
:root {
  /* Backgrounds — Deep space palette */
  --bg-void:      #030305;
  --bg-surface:   #0a0a0f;
  --bg-elevated:  #12121a;
  --bg-card:      #0d0d14;

  /* Accent */
  --accent:       #e50914;
  --accent-light: #ff2d38;
  --accent-glow:  rgba(229, 9, 20, 0.35);
  --accent-soft:  rgba(229, 9, 20, 0.08);

  /* Gold — TPN badge, premium highlights */
  --gold:         #c9a84c;
  --gold-glow:    rgba(201, 168, 76, 0.3);

  /* Text */
  --text-primary:   #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-muted:     #4a4a5a;

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur:   20px;
  --glass-bg-hover: rgba(255, 255, 255, 0.045);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-py:     clamp(60px, 8vw, 100px);
  --container-max:  1240px;
  --container-px:   clamp(20px, 4vw, 48px);

  /* Transitions */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:      0.2s;
  --t-normal:    0.35s;
  --t-slow:      0.5s;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; outline: none; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

/* ── Section Headers ── */
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.section-header.centered .section-label::before { display: none; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
}

.section-header.centered .section-subtitle { margin: 0 auto; }

.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 20px 0;
}

.section-header.centered .section-divider { margin: 20px auto; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--t-normal) var(--ease-out);
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cinematic entrance: fade in + scale up from 85% */
  animation: logoEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.loading-logo-wrap img {
  height: 100px;
  width: auto;
  position: relative;
  z-index: 1;
  /* Subtle floating loop after entrance */
  animation: logoFloat 4s ease-in-out 0.8s infinite;
}

/* Pulsing glow ring behind logo */
.loading-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: loadGlow 3s ease-in-out infinite;
}

/* Entrance: fade in + gentle scale up */
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle floating after entrance settles */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Glow breathe */
@keyframes loadGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.15; }
  50%      { transform: scale(1.1); opacity: 0.4; }
}

.loading-bar {
  width: 80px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border-radius: 1px;
  /* Fade in slightly delayed so logo appears first */
  animation: fadeIn 0.4s ease 0.3s both;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  animation: loadFill 0.8s ease-in-out 0.4s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes loadFill {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.8) 0%, rgba(3, 3, 5, 0) 100%);
  transition: background var(--t-normal), padding var(--t-normal), box-shadow var(--t-normal);
}

.navbar.scrolled {
  background: rgba(3, 3, 5, 0.95);
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  transition: opacity var(--t-fast);
}

.nav-logo:hover .nav-logo-img { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--t-normal) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.68rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--t-normal), opacity var(--t-fast);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-normal), visibility var(--t-normal);
}

.nav-overlay.active { opacity: 1; visibility: visible; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
}

.hero-bg img {
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  opacity: 0.75;
  filter: contrast(1.1) brightness(1.0) saturate(1.15);
  animation: heroKenBurns 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -0.5%); }
}

#tsparticles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(3, 3, 5, 0.5) 100%),
    linear-gradient(180deg,
      rgba(3, 3, 5, 0.1) 0%,
      rgba(3, 3, 5, 0.05) 30%,
      rgba(3, 3, 5, 0.6) 70%,
      rgba(3, 3, 5, 1) 100%
    );
}

/* Subtle red glow at bottom */
.hero-bg-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 300px;
  background: radial-gradient(ellipse at bottom, rgba(229, 9, 20, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 1.02;
  margin-bottom: 28px;
}

.hero-title .accent { color: var(--accent); }

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.85;
  letter-spacing: 0.3px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-tpn-badge {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-tpn-badge .badge-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-tpn-badge img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.25));
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--accent);
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

.scroll-text {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* =============================================
   CLIENTS MARQUEE
   ============================================= */
.clients-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg-void);
  overflow: hidden;
  position: relative;
}

.clients-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.client-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t-fast);
  flex-shrink: 0;
}

.client-logo-text:hover { color: var(--text-secondary); }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  padding: 72px 0;
  background: var(--bg-void);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 24px 0;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   ABOUT / LEGACY
   ============================================= */
.about { background: var(--bg-void); }

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-label { margin-bottom: 16px; }

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 28px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 18px;
  font-weight: 300;
}

.about-text .btn { margin-top: 20px; }

.about-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about-visual img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.88) saturate(1.2);
  transition: transform 1.2s var(--ease-out), filter 0.8s ease;
  transform: scale(1.05);
}

.about-visual.visible img { transform: scale(1); }
.about-visual:hover img { transform: scale(1.03); filter: contrast(1.12) brightness(0.92) saturate(1.3); }

.about-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(3, 3, 5, 0.5) 100%),
    linear-gradient(180deg, rgba(3, 3, 5, 0.1) 0%, transparent 30%, transparent 60%, rgba(3, 3, 5, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Red accent line at top */
.about-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.about-visual.visible::before { opacity: 1; }

/* =============================================
   LEADERSHIP
   ============================================= */
.leadership { background: var(--bg-surface); }

.leadership-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leader-card {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 920px;
}

.leader-image-link { display: block; text-decoration: none; color: inherit; }

.leader-image {
  width: 300px;
  min-width: 300px;
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter var(--t-slow);
}

.leader-image:hover img { filter: grayscale(0%) contrast(1.05); }

.leader-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.leader-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.leader-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.leader-info blockquote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  font-style: italic;
  font-weight: 300;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

/* IMDb hover overlay */
.imdb-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--t-normal);
  z-index: 2;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.imdb-hover-overlay svg {
  color: #f5c518;
  filter: drop-shadow(0 2px 8px rgba(245, 197, 24, 0.4));
  transform: scale(0.85);
  transition: transform var(--t-normal);
}

.leader-image:hover .imdb-hover-overlay,
.team-member-image:hover .imdb-hover-overlay { opacity: 1; }

.leader-image:hover .imdb-hover-overlay svg,
.team-member-image:hover .imdb-hover-overlay svg { transform: scale(1); }

/* =============================================
   CREATIVE TEAM
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-member { text-align: center; }
.team-member-link { display: block; text-decoration: none; color: inherit; }

.team-member-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter var(--t-slow), transform var(--t-slow);
}

.team-member:hover .team-member-image img {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.04);
}

.team-member-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t-normal) var(--ease-out);
}

.team-member:hover .team-member-image::after { transform: scaleX(1); }

.team-member h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* =============================================
   SERVICES — Glassmorphic Cards
   ============================================= */
.services { background: var(--bg-surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 44px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--t-normal) var(--ease-out);
  overflow: hidden;
}

/* Gradient glow border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, transparent 30%, var(--accent) 50%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-normal);
  z-index: -1;
}

.service-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(229, 9, 20, 0.1);
}

.service-card:hover::before { opacity: 0.6; }

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
  font-weight: 300;
}

/* =============================================
   SOFTWARE EXPERTISE (NEW)
   ============================================= */
.software-section {
  padding: 56px 0;
  background: var(--bg-void);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.software-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.software-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 var(--container-px);
}

.software-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-normal);
}

.software-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow);
}

.software-item .sw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.software-item span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.software-item:hover span { color: var(--text-primary); }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.portfolio-item:hover img {
  transform: scale3d(1.06, 1.06, 1);
  opacity: 0.55;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 30%, rgba(3, 3, 5, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
  border-radius: var(--radius-sm);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay .tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.portfolio-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-cta {
  text-align: center;
  margin-top: 48px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 44px;
  line-height: 1.8;
  font-weight: 300;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--glass-bg);
}

.contact-detail-text h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-detail-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 300;
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-normal);
  color: var(--text-secondary);
  background: var(--glass-bg);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Contact Form — Glass Card */
.contact-form-wrapper {
  padding: 44px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--accent); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { height: 110px; resize: vertical; }

.form-group .error-text {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 8px;
  display: none;
}

.form-group.error input,
.form-group.error textarea { border-bottom-color: var(--accent); }
.form-group.error .error-text { display: block; }

.form-submit {
  position: relative;
  width: 100%;
  padding: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: all var(--t-normal);
  border: none;
  border-radius: 0;
}

.form-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.form-submit.loading { pointer-events: none; opacity: 0.7; }

.form-submit.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.form-success {
  display: none;
  text-align: center;
  padding: 44px 24px;
}

.form-success.visible { display: block; animation: fadeInUp 0.4s ease; }

.form-success .success-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.2rem;
  color: var(--accent);
}

.form-success h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-success p { color: var(--text-secondary); font-size: 0.92rem; font-weight: 300; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 72px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg-void);
  position: relative;
}

/* Red gradient top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand .footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo-img { height: 40px; width: auto; }

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 260px;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
}

.footer-socials a:hover { color: var(--text-primary); }

.footer-col h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 300;
  transition: color var(--t-fast);
}

.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 300;
}

.footer-bottom .dev-credit {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

.footer-bottom-links { display: flex; gap: 24px; }

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 300;
  transition: color var(--t-fast);
}

.footer-bottom-links a:hover { color: var(--text-primary); }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--t-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-normal), visibility var(--t-normal);
}

.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  text-align: center;
  margin-top: 20px;
}

.lightbox-caption .tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}

.lightbox-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: var(--text-secondary);
  transition: color var(--t-fast), transform var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover,
.lightbox-nav:hover { color: #fff; transform: scale(1.1); }

.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  /* Mobile nav */
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: var(--bg-surface);
    border-left: 1px solid var(--glass-border);
    transition: right var(--t-slow) var(--ease-out);
    z-index: 1000;
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.85rem; }

  /* About */
  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual img { height: 350px; }

  /* Leadership */
  .leader-card {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .leader-image { width: 220px; min-width: auto; height: 280px; }

  .leader-info blockquote {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-top: 16px;
  }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrapper { padding: 28px 20px; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat-item::after { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 280px; }
  .about-visual img { height: 260px; }

  .footer-top { grid-template-columns: 1fr; }

  .software-strip { gap: 12px; }
  .software-item { padding: 8px 14px; }

  .hero-title { letter-spacing: 2px; }
}

/* ── Noscript fallback ── */
.no-js .loading-screen { display: none !important; }
.no-js .reveal { opacity: 1 !important; transform: none !important; }


/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-red);
  color: var(--white);
}

.filter-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.year-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-item.hide {
  display: none !important;
}


/* ═══════════════════════════════════════════
   CUSTOM CINEMATIC CURSOR
   ═══════════════════════════════════════════ */

/* Hide default cursor globally */
body {
  cursor: none;
}

/* Disable for touch devices / mobile */
@media (pointer: coarse) {
  body {
    cursor: auto !important;
  }
  .cursor-dot-wrapper, #plasma-trail {
    display: none !important;
  }
}

.cursor-dot-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

#plasma-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

.cursor-dot {
  position: absolute;
  top: -4px; /* half width */
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease-out, border 0.2s ease-out;
}

/* Hover State - Expand and glow */
body.cursor-hover .cursor-dot {
  transform: scale(1.8);
  background-color: transparent;
  border: 1px solid var(--primary-red);
  box-shadow: 0 0 15px var(--primary-red);
}

/* Click State - Pulse shrink */
body.cursor-click .cursor-dot {
  transform: scale(0.8);
}

/* Reset specific inputs to not use default pointer */
a, button, input, textarea, select, .portfolio-item {
  cursor: none !important;
}


/* ═══════════════════════════════════════════
   TPN LOGO ANIMATION
   ═══════════════════════════════════════════ */
@keyframes tpn-breathe {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
  }
}

.hero-tpn-badge img {
  animation: tpn-breathe 4s ease-in-out infinite;
  will-change: transform, filter;
}


/* ═══════════════════════════════════════════
   WHATSAPP MODAL
   ═══════════════════════════════════════════ */
.wa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wa-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wa-modal-content {
  background: var(--surface-light);
  width: 90%;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wa-modal-overlay.active .wa-modal-content {
  transform: translateY(0) scale(1);
}

.wa-modal-header {
  background: #075e54; /* WhatsApp classic green */
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  padding: 4px;
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #25d366;
  border: 2px solid #075e54;
  border-radius: 50%;
}

.wa-header-text h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wa-header-text p {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wa-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: none !important;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.wa-close-btn:hover {
  color: #fff;
}

.wa-modal-body {
  background: #ece5dd; /* WhatsApp chat bg */
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.wa-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #303030;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wa-received {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.wa-received::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid #fff;
  border-left: 10px solid transparent;
}

.wa-message p {
  margin: 0;
  color: #303030;
}

.wa-modal-footer {
  background: #f0f0f0;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#wa-message-input {
  flex-grow: 1;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  resize: none;
  max-height: 100px;
  color: #303030;
  cursor: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#wa-message-input:focus {
  outline: none;
}

.wa-send-btn {
  background: #128c7e;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none !important;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.wa-send-btn:hover {
  background: #075e54;
  transform: scale(1.05);
}

.wa-send-btn svg {
  margin-left: -2px; /* slight visual balance */
}


/* ═══════════════════════════════════════════
   SHOW MORE / LAZY GRID
   ═══════════════════════════════════════════ */

/* Initially hidden items (beyond the first 4) */
.portfolio-item.initially-hidden {
  display: none;
}

/* Show when grid is expanded */
.portfolio-grid.expanded .portfolio-item.initially-hidden {
  display: block;
  animation: fadeSlideUp 0.5s ease forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger the reveal */
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(5) { animation-delay: 0.05s; }
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(6) { animation-delay: 0.1s; }
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(7) { animation-delay: 0.15s; }
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(8) { animation-delay: 0.2s; }
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(9) { animation-delay: 0.25s; }
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(10) { animation-delay: 0.3s; }
.portfolio-grid.expanded .portfolio-item.initially-hidden:nth-child(n+11) { animation-delay: 0.35s; }

/* Show More button wrapper */
.show-more-wrap {
  text-align: center;
  margin: 40px 0 20px 0;
}

.show-more-btn {
  position: relative;
  overflow: hidden;
}

/* Hide Show More when grid is expanded */
.show-more-wrap.hidden {
  display: none;
}
