/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS & RESET
═══════════════════════════════════════════════════════════ */
:root {
  --bg: #faf8f5;
  --bg-warm: #f5f0eb;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.13);

  --accent: #e05c1a;
  --accent-2: #f07835;
  --accent-grad: linear-gradient(135deg, #e05c1a 0%, #f09040 100%);
  --accent-glow: rgba(224, 92, 26, 0.22);

  --text-h: #1a1208;
  --text-body: #5a5048;
  --text-muted: #9e9289;
  --text-white: #ffffff;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 38px rgba(0, 0, 0, 0.14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --nav-h: 70px;
  --section-py: 100px;
  --container: 1200px;

  --transition: 0.28s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Subtle grain texture via SVG data URI */
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(240, 120, 53, 0.07) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4 {
  color: var(--text-h);
  font-weight: 700;
  line-height: 1.15;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-h);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.accent {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   SECTION
═══════════════════════════════════════════════════════════ */
.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-grad);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 18px var(--accent-glow);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(224, 92, 26, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-h);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2d2822;
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-dark:hover {
  background: #1a1208;
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #dc3545;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay {
  transition-delay: 0.18s;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-h);
}

.brand-dot {
  color: var(--accent);
  font-size: 1.1rem;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 22px;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-h);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 20px;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-cta {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  background: radial-gradient(ellipse 80% 70% at 70% 30%, rgba(240, 120, 53, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(224, 92, 26, 0.06) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - var(--nav-h) - 80px);
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-h);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-sub strong {
  color: var(--text-h);
  font-weight: 600;
}

/* Metrics */
.hero-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.metric-icon {
  font-size: 1.1rem;
  color: var(--accent);
}

.metric strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-h);
}

.metric small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

/* Hero right */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero-dashboard-img {
  width: 100%;
  border-radius: var(--radius-lg);
  animation: floatY 5s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
}

/* Fallback SVG dashboard */
.hero-illustration-fallback {
  display: none;
}

.dash-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatY 5s ease-in-out infinite;
}

.dash-header {
  background: #f5f5f5;
  padding: 12px 16px;
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dash-dot.red {
  background: #ff5f57;
}

.dash-dot.yellow {
  background: #ffbd2e;
}

.dash-dot.green {
  background: #28c840;
}

.dash-body {
  display: flex;
  height: 280px;
}

.dash-sidebar {
  width: 60px;
  background: #faf8f5;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-menu-item {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.dash-menu-item.active {
  background: var(--accent);
  width: 70%;
}

.dash-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 12px;
  background: #faf8f5;
  border-radius: var(--radius-sm);
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 4px 4px 0 0;
  min-height: 10px;
}

.dash-stats {
  display: flex;
  gap: 12px;
}

.dash-stat-card {
  flex: 1;
  background: #faf8f5;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-h);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Float tags */
.float-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-h);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.tag-icon {
  margin-right: 4px;
}

.tag-1 {
  top: 8%;
  left: -14%;
  animation: floatY 4s ease-in-out infinite;
}

.tag-2 {
  top: 30%;
  right: -10%;
  animation: floatY 5.5s ease-in-out infinite 0.5s;
}

.tag-3 {
  bottom: 35%;
  left: -10%;
  animation: floatY 4.5s ease-in-out infinite 1s;
}

.tag-4 {
  bottom: 10%;
  right: -8%;
  animation: floatY 6s ease-in-out infinite 0.8s;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ═══════════════════════════════════════════════════════════
   TRUSTED BY
═══════════════════════════════════════════════════════════ */
.trusted-section {
  padding: 36px 0 60px;
  border-top: 1px solid var(--border);
}

.trusted-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.trusted-dots {
  color: var(--accent);
  margin: 0 8px;
}

.tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-h);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
}

.tool-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.tool-icon {
  font-size: 1rem;
}

.tool-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}


.hs-accent {
  color: #f05a28;
}


/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services-section {
  background: rgba(245, 240, 235, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(224, 92, 26, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.service-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  stroke: var(--accent);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-h);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH BAR + FILTER CHIPS
═══════════════════════════════════════════════════════════ */
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  height: 50px;
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-h);
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}



.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.chip:hover,
.chip.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}



/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════════════════ */
.portfolio-section {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0ece7;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.portfolio-card:hover .card-image img {
  transform: scale(1.06);
}

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 10px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(224, 92, 26, 0.08);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(224, 92, 26, 0.15);
}

.card-footer {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  margin-top: 4px;
}



/* Hidden portfolio cards */
.portfolio-card.hidden,
.resource-card.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   RESOURCES LAB
═══════════════════════════════════════════════════════════ */
.resources-section {
  background: rgba(245, 240, 235, 0.5);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.resource-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: rgba(224, 92, 26, 0.09);
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition);
}

.resource-edit-btn:hover {
  background: rgba(224, 92, 26, 0.2);
}

.resource-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.35;
  padding-right: 20px;
}

.resource-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}



.meta-pill {
  display: inline-block;
  padding: 3px 9px;
  background: #f0ece7;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-body);
}

.resource-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  margin-top: auto;
}

/* Admin mode */
body.admin-mode .admin-only {
  display: flex !important;
}

.portfolio-edit-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--bg-warm);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--border);
  z-index: 5;
}

.portfolio-edit-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════════ */
.contact-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(240, 120, 53, 0.09) 0%, transparent 70%),
    var(--bg);
}

.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-header {
  margin-bottom: 38px;
}

.contact-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.contact-header .section-title {
  margin-bottom: 10px;
}

.contact-header .section-sub {
  margin: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  outline: none;
  padding: 12px 4px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-h);
  transition: border-color var(--transition);
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

/* Social rows */
.social-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #2d2822;
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-row:hover {
  background: #1a1208;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon.whatsapp {
  background: #25D366;
  color: #fff;
}

.social-icon.linkedin {
  background: #0A66C2;
  color: #fff;
}

.social-icon.youtube {
  background: #FF0000;
  color: #fff;
}

.social-label {
  flex: 1;
}

.social-arrow {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding: 0 0 32px;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: var(--transition);
}

.footer-icon svg {
  width: 15px;
  height: 15px;
}

.footer-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  .services-grid,
  .portfolio-grid,
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    gap: 36px;
  }

  .tag-1,
  .tag-2,
  .tag-3,
  .tag-4 {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 72px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 48px;
    text-align: center;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-metrics {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-right {
    order: -1;
  }

  .hero-illustration {
    max-width: 380px;
  }

  .services-grid,
  .portfolio-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .search-bar-row {
    flex-direction: column;
    align-items: stretch;
  }



  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  color: var(--text-p);
}

.modal-content h3 {
  color: var(--text-h);
  margin-top: 0;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.close-modal:hover {
  color: var(--accent);
}

/* Video Modal Specifics */
.video-modal-content {
  max-width: 900px;
  width: 95%;
  padding: 10px;
  background: transparent;
  box-shadow: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-close-modal {
  right: 0;
  top: -30px;
  color: #fff;
}

.video-close-modal:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   LOOM HOVER-TO-PLAY
═══════════════════════════════════════════════════════════ */
.card-image {
  position: relative;
  /* ensure absolute children stay inside */
  overflow: hidden;
}

.loom-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Let hover pass through to card, avoid iframe stealing cursor */
  z-index: 2;
  background: var(--bg-card);
  /* Hide image behind it if aspect ratios differ slightly */
}

/* On hover of the entire card, show the video */
.portfolio-card:hover .loom-wrapper {
  opacity: 1;
  pointer-events: auto;
  /* Allow interacting with iframe controls */
}

.loom-iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}


@media (max-width: 480px) {
  .hero-metrics {
    flex-direction: column;
    align-items: stretch;
  }

  .metric {
    justify-content: center;
  }

  .hero-social-proof {
    display: none;
  }

  .hero-headline {
    font-size: 1.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN MODALS
═══════════════════════════════════════════════════════════ */
.admin-modal-content {
  text-align: center;
  max-width: 420px;
  padding: 40px 36px 32px;
}

.admin-exit-content {
  max-width: 360px;
}

.admin-modal-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.admin-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-h);
  margin-bottom: 8px;
}

.admin-modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.admin-input-wrap {
  margin-bottom: 6px;
}

.admin-input-wrap input[type="password"] {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-h);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.08em;
}

.admin-input-wrap input[type="password"]::placeholder {
  letter-spacing: 0;
  color: var(--text-muted);
}

.admin-input-wrap input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-error {
  font-size: 0.82rem;
  color: #dc3545;
  margin-bottom: 16px;
  text-align: left;
  padding: 0 2px;
}

.admin-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.admin-modal-actions .btn-primary,
.admin-modal-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY MANAGEMENT
═══════════════════════════════════════════════════════════ */

/* Admin action row (Add Project + Manage Categories side by side) */
.admin-action-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

/* Admin cat row (Resources section) */
.admin-cat-row {
  display: none;
  margin-bottom: 28px;
}

/* Category <select> in modal */
#projCategory {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-h);
  outline: none;
  cursor: pointer;
  appearance: auto;
  transition: border-color var(--transition);
}

#projCategory:focus {
  border-bottom-color: var(--accent);
}

/* Manage Categories modal */
.cat-modal-content {
  max-width: 440px;
}

.cat-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 36px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 14px;
  background: rgba(224, 92, 26, 0.08);
  border: 1px solid rgba(224, 92, 26, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cat-pill-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.cat-pill-delete:hover {
  opacity: 1;
}

.cat-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.cat-add-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-h);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cat-add-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   GRID LOADING SPINNER
═══════════════════════════════════════════════════════════ */

.grid-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loader-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── NAVBAR LOGO ─────────────────────────────────────────── */
.nav-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}