/* ============================================
   PLUMBUS VENTURES - Premium Boutique Theme
   CSS-only animations. Vanilla JS for scroll.
   Target: Lighthouse 95+
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Navy to orange palette */
  --navy-900: #0a0e1a;
  --navy-800: #0f1629;
  --navy-700: #151d38;
  --navy-600: #1c2647;
  --navy-500: #253056;
  --navy-400: #3a4574;
  --navy-300: #5e6a95;

  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-300: #fdba74;
  --orange-200: #fed7aa;

  --white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--gray-200);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mono { font-family: var(--font-mono); }

.text-gradient {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect behind gradient text in hero */
.hero-headline .text-gradient {
  position: relative;
}
.hero-headline .text-gradient::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(30px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange-500);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-300);
  transition: all 0.3s ease;
}

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

/* Animated gradient mesh background */




/* Subtle code-themed grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-tag {
  font-size: 0.8125rem;
  color: var(--orange-400);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.hero-scroll-hint {
  position: relative;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.hero-scroll-hint .mono {
  font-size: 0.6875rem;
  color: var(--gray-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange-500), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  color: var(--navy-900);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--navy-500);
}

.btn-ghost:hover {
  border-color: var(--orange-500);
  color: var(--white);
}

/* --- SECTIONS --- */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.8125rem;
  color: var(--orange-400);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-400);
  max-width: 520px;
  margin: 0 auto;
}

/* --- PORTFOLIO --- */
.portfolio {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--navy-700);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Accent border on hover (left edge) */
.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--orange-500), var(--orange-300));
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(249, 115, 22, 0.15);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(249, 115, 22, 0.08);
  background: var(--navy-600);
}

.project-card:hover::before {
  opacity: 1;
}

/* Make first card (hero project) span full width */
.project-card:first-child {
  grid-column: 1 / -1;
}

.card-type-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange-400);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.card-type-indicator svg {
  opacity: 0.8;
}

.project-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.card-client {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-result {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(249, 115, 22, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.08);
}

.result-label {
  font-size: 0.6875rem;
  color: var(--orange-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.card-result span:last-child {
  font-size: 0.875rem;
  color: var(--gray-300);
}

/* Metrics row (for data project) */
.card-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--orange-400);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Tech stack tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--gray-300);
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.project-card:hover .tag {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.2);
}

.portfolio-cta {
  text-align: center;
  margin-top: 4rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-cta p {
  font-size: 1.0625rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.portfolio-cta .mono {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Section dividers */
.portfolio::after,
.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
  opacity: 0.3;
}

/* --- ABOUT --- */
.about {
  background: var(--navy-900);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-principles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.principle h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.principle p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.65;
}

.about-stack h3 {
  font-size: 0.875rem;
  color: var(--orange-400);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.stack-note {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.stack-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stack-label {
  font-size: 0.6875rem;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  min-width: 80px;
  padding-top: 0.375rem;
  text-transform: uppercase;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.stack-items .tag {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
}

/* --- CONTACT --- */
.contact {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--navy-700);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s var(--ease-out);
}

.contact-card:hover {
  border-color: rgba(249, 115, 22, 0.1);
}

.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-card-accent {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  border-color: rgba(249, 115, 22, 0.12);
}

.contact-link {
  display: block;
  font-size: 0.875rem;
  color: var(--orange-400);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--orange-300);
}

.contact-small {
  font-size: 0.75rem !important;
  color: var(--gray-500) !important;
  margin-bottom: 1.25rem !important;
}

/* New contact cards layout */
.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-card-slim {
  background: var(--navy-700);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease-out);
  text-align: center;
}

.contact-card-slim:hover {
  border-color: rgba(249, 115, 22, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.contact-card-icon-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--orange-400);
}

.contact-card-slim h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact-card-slim p {
  font-size: 0.9375rem;
  color: var(--gray-200);
  line-height: 1.75;
}

.contact-cta-block {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-lg {
  padding: 1.125rem 3rem;
  font-size: 1.0625rem;
}

.contact-cta-email {
  color: var(--gray-500);
  font-size: 0.875rem;
}

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

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.meta-item .mono {
  font-size: 0.6875rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-item span:last-child {
  font-size: 0.875rem;
  color: var(--gray-300);
}

/* --- FOOTER --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--navy-900);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .mono {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer-meta a {
  color: var(--orange-400);
  transition: color 0.3s ease;
}

.footer-meta a:hover {
  color: var(--orange-300);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
/* Elements start visible - JS adds .unrevealed then .visible for animation */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* Stagger children */
.portfolio-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.portfolio-grid .reveal:nth-child(4) { transition-delay: 0.25s; }
.portfolio-grid .reveal:nth-child(5) { transition-delay: 0.3s; }

.contact-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.contact-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* --- HERO LOAD ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card:first-child {
    grid-column: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    font-size: 1.5rem;
    color: var(--white);
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-toggle.open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav-toggle.open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .section {
    padding: 5rem 0;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .card-metrics {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .metric {
    min-width: calc(50% - 0.5rem);
  }

  .contact-meta {
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   ENHANCED MOBILE
   ========================================================================== */

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    font-size: 1.5rem;
    color: var(--white) !important;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  /* Hero mobile */
  .hero {
    min-height: 85vh;
    padding: 6rem 1.25rem 3rem;
  }

  .hero-content {
    padding: 0;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  .hero-sub {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Section mobile */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.25rem) !important;
  }

  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .project-card:first-child {
    grid-column: auto !important;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .card-result {
    flex-direction: column;
    gap: 0.375rem;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Contact - new layout */
  .contact-cards-row {
    grid-template-columns: 1fr !important;
  }

  .contact-card-slim {
    padding: 1.5rem;
  }

  .contact-cta-block {
    margin-bottom: 2.5rem;
  }

  .btn-lg {
    width: 100%;
    padding: 1rem 2rem;
  }

  /* Contact meta - 2x2 grid on mobile */
  .contact-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  /* Legacy contact grid fallback */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-card {
    padding: 1.5rem;
  }

  /* Card metrics wrap */
  .card-metrics {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .metric {
    min-width: calc(50% - 0.5rem);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-meta {
    align-items: flex-start;
  }

  /* Stack rows on mobile */
  .stack-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stack-label {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-headline {
    font-size: 1.75rem !important;
  }

  .section-header h2 {
    font-size: 1.35rem !important;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .contact-card-slim {
    padding: 1.25rem;
  }

  .contact-meta {
    gap: 1rem;
  }

  .meta-item span:last-child {
    font-size: 0.8125rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}



/* === FINAL FIX - Mar 28 === */

/* Force visibility */
.reveal, .reveal-left, .reveal-right, .reveal-scale,
.reveal-stagger > *, .fade-in, [class*="reveal"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Hero centering - all viewports */
.hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}
.hero-headline {
  text-align: center !important;
}
.hero-sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-cta {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  width: 100% !important;
}
.hero-scroll-hint {
  position: absolute !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .hero { min-height: 100vh; padding: 100px 20px 60px; }
  
  .hero-content { padding: 0 20px !important; }
  .hero-headline { font-size: 2.5rem !important; }
  .hero-sub { font-size: 1rem !important; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 80%; text-align: center; }
  
  .container { padding: 0 20px !important; }
  .section { padding: 60px 20px !important; }
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .contact-card { padding: 24px !important; }
  .about-grid { grid-template-columns: 1fr !important; }
  .footer-inner { grid-template-columns: 1fr !important; }
}







 100% { transform: translate(-10%,15%) scale(0.95); opacity: 0.7; } }
 100% { transform: translate(10%,-10%) scale(1.1); opacity: 0.95; } }
 100% { transform: translate(-15%,5%) scale(0.9); opacity: 0.5; } }
 100% { transform: translate(10%,20%) scale(1.05); opacity: 0.4; } }
