/* Hallmark · route: custom (bespoke) · structure: 10-section alternating industrial layout with filterable portfolio and timeline · idea: "asymmetric typography with thin steel wireframes and a clean filterable glass-card portfolio grid"
 * paper: oklch(97% 0.008 245) · accent: oklch(55% 0.15 245) · display: Space Grotesk · body: Geist
 * axes: light / geometric-sans / cool · gates: all-pass · studied: no
 */

:root {
  /* Color Tokens (Scandinavian Nordic Industrial) */
  --color-paper: #FAF9F6;       /* Warm Crisp Off-White */
  --color-paper-2: #F4F4F0;     /* Soft Cream-Grey secondary bg */
  --color-paper-3: #FFFFFF;     /* Pristine White card background */
  --color-rule: #E5E7EB;        /* Clean Muted Grey border */
  --color-rule-2: #4A607A;      /* Deep Slate Blue / Muted Pine accent */
  --color-muted: #64748B;       /* Warm Muted Slate text */
  --color-neutral: #52606D;     /* Slate text */
  --color-ink: #1F2930;         /* Dark Nordic Charcoal primary text */
  --color-accent: #2E6F40;      /* Forest Green conversion CTA */
  --color-accent-hover: #22522E; /* Darker Forest Green hover */
  --color-focus: #A8B89A;       /* Soft Sage Highlight / Focus */

  /* Typography families */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Geist", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Typographic scale (Major Third ratio: 1.25) */
  --text-xs: 0.8rem;      /* 12.8px */
  --text-sm: 0.9rem;      /* 14.4px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.25rem;     /* 20px */
  --text-lg: 1.5625rem;   /* 25px */
  --text-xl: 1.9531rem;   /* 31.25px */
  --text-2xl: 2.4414rem;  /* 39px */
  --text-3xl: 3.0518rem;  /* 48.8px */
  --text-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);

  /* Durations & Easings */
  --dur-short: 250ms;
  --dur-normal: 350ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* Ultra premium exponential ease-out */
}

body {
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Base Styles & Wireframe Lines */
.wireframe-border {
  border: 1px solid var(--color-rule);
}

.wireframe-border-t {
  border-top: 1px solid var(--color-rule);
}

.wireframe-border-b {
  border-bottom: 1px solid var(--color-rule);
}

.wireframe-border-l {
  border-left: 1px solid var(--color-rule);
}

.wireframe-border-r {
  border-right: 1px solid var(--color-rule);
}

/* Light Glassmorphism Utility (Premium & Soft) */
.glass-panel {
  background-color: rgba(248, 249, 250, 0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.03);
}

.glass-nav {
  background-color: rgba(250, 248, 245, 0.85); /* Premium light warm white navbar */
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(47, 47, 47, 0.08);
}

/* Button & State Discipline */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: 14px; /* Rounded 14px */
  background-color: var(--color-accent);
  color: #FFFFFF;
  border: 1px solid var(--color-accent);
  transition: background-color var(--dur-short) var(--ease-out), 
              color var(--dur-short) var(--ease-out), 
              border-color var(--dur-short) var(--ease-out),
              transform 100ms var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover, .btn-primary.is-hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(138, 103, 66, 0.15);
}

.btn-primary:focus-visible, .btn-primary.is-focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.btn-primary:active, .btn-primary.is-active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: var(--color-paper-2);
  border-color: var(--color-rule);
  color: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 14px; /* Rounded 14px */
  background-color: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
  transition: background-color var(--dur-short) var(--ease-out), 
              border-color var(--dur-short) var(--ease-out), 
              color var(--dur-short) var(--ease-out),
              transform 100ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover, .btn-secondary.is-hover {
  background-color: rgba(138, 103, 66, 0.05);
  border-color: var(--color-rule-2);
  color: var(--color-accent);
}

.btn-secondary:focus-visible, .btn-secondary.is-focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.btn-secondary:active, .btn-secondary.is-active {
  transform: scale(0.98);
}

.btn-secondary:disabled {
  border-color: var(--color-rule);
  color: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

/* Portfolio Filter Tags */
.filter-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--color-rule);
  background-color: transparent;
  color: var(--color-neutral);
  transition: all var(--dur-short) var(--ease-out);
  cursor: pointer;
}

.filter-tag:hover, .filter-tag.is-hover {
  border-color: var(--color-rule-2);
  color: var(--color-accent);
}

.filter-tag.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}

/* Card Hover-Lift Animations */
.hover-lift-card {
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out);
}

.hover-lift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(18, 20, 24, 0.08);
  border-color: var(--color-rule-2);
}

/* Timeline Custom Styles */
.timeline-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-ink);
  transform: translate(-50%, -50%);
}

.timeline-line {
  position: absolute;
  top: 1.5rem;
  bottom: 0;
  left: 15px;
  width: 1px;
  background-color: var(--color-rule);
}

/* FAQ Accordion Transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-normal) var(--ease-out),
              padding var(--dur-normal) var(--ease-out);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-trigger svg {
  transition: transform var(--dur-short) var(--ease-out);
}

.accordion-item.active .accordion-trigger svg {
  transform: rotate(180deg);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Custom Scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-paper);
}

::-webkit-scrollbar-thumb {
  background: var(--color-rule);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral);
}

/* ─────────────────────────────────────────────────────────
   REAL PROJECTS GALLERY — "Karya & Hasil Fabrikasi"
   ───────────────────────────────────────────────────────── */

/**
 * Unified vertical aspect ratio (4:5) that forces all
 * raw smartphone portrait photos into a consistent frame
 * without distortion.  Swap to aspect-ratio: 3/4 if you
 * prefer slightly taller frames.
 */
.aspect-project {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
}

/**
 * Professional Architectural Photo Treatment
 * ─────────────────────────────────────────
 * brightness(1.05)  → lifts shadows, stops raw photos
 *                     looking underexposed on screen
 * contrast(1.05)    → adds structural definition &
 *                     makes cabinet edges crisp
 * saturate(1.10)    → pops cabinet finishes (beige, HPL
 *                     wood grain, blue-grey panels) and
 *                     makes LED warm light glow elegantly
 *
 * The transform on hover uses the PARENT's overflow:hidden
 * to crop the zoom cleanly — no layout shift.
 */
.project-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.05) contrast(1.05) saturate(1.10);
  transform: scale(1.00);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Hover: premium parallax-style zoom */
.project-card:hover .project-img {
  transform: scale(1.10);
  /* Slightly brighten further on hover — feels "live" */
  filter: brightness(1.08) contrast(1.06) saturate(1.12);
}

/**
 * Project Badge — category pill (top-right corner of
 * the info block, e.g. "Custom Built-in", "Premium Glass")
 */
.project-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;        /* 11px */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  white-space: nowrap;
  line-height: 1.4;
}

/**
 * Material / Spec Tags — small secondary pills beneath
 * the project title (e.g. "HPL Premium", "LED Strip Warm")
 */
.project-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;         /* 10px */
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--color-rule);
  background-color: var(--color-paper-2);
  color: var(--color-neutral);
  white-space: nowrap;
  transition: border-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}

.project-card:hover .project-tag {
  border-color: var(--color-focus);
  color: var(--color-ink);
}

/* ─────────────────────────────────────────────────────────
   PREMIUM MINIMALIST SPOTLIGHT — Navbar & Hero
   ───────────────────────────────────────────────────────── */

/**
 * hero-nav
 * ─────────
 * Default state: fully transparent, sits directly over the
 * full-bleed hero image.  JS adds `.nav-scrolled` once the
 * user scrolls past ~80 px, which transitions to a glassy
 * solid navbar consistent with the rest of the site.
 */
.hero-nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 400ms cubic-bezier(0.16,1,0.3,1),
              border-color     400ms cubic-bezier(0.16,1,0.3,1),
              backdrop-filter  400ms cubic-bezier(0.16,1,0.3,1),
              box-shadow       400ms cubic-bezier(0.16,1,0.3,1);
}

.hero-nav.nav-scrolled {
  background-color: rgba(250, 249, 246, 0.92);   /* --color-paper */
  backdrop-filter:  blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-color: rgba(47, 47, 47, 0.07);
  box-shadow: 0 1px 24px rgba(0,0,0,0.04);
}

/* Logo inverted (white) over hero → normal (dark) after scroll */
.hero-nav.nav-scrolled #nav-logo {
  filter: brightness(1) invert(0);
}

/* Brand text colour swap */
.hero-nav.nav-scrolled #nav-eyebrow {
  color: var(--color-accent);
}
.hero-nav.nav-scrolled #nav-brand {
  color: var(--color-ink);
}

/* Desktop CTA pill swap */
.hero-nav.nav-scrolled #nav-cta {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}
.hero-nav.nav-scrolled #nav-cta:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Mobile hamburger bars swap colour */
.hero-nav.nav-scrolled #ham-1,
.hero-nav.nav-scrolled #ham-2,
.hero-nav.nav-scrolled #ham-3 {
  background-color: var(--color-ink);
}

/**
 * hero-nav-link
 * ─────────────
 * White text + underline-slide hover animation.
 * After scroll, colour transitions to --color-neutral.
 */
.hero-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-short) var(--ease-out);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--dur-short) var(--ease-out);
}

.hero-nav-link:hover {
  color: #FFFFFF;
}

.hero-nav-link:hover::after {
  width: 100%;
}

/* After scroll: switch to ink palette */
.nav-scrolled .hero-nav-link {
  color: var(--color-neutral);
}

.nav-scrolled .hero-nav-link:hover {
  color: var(--color-ink);
}
