/* =====================================================================
   BUCKSTER CASE STUDY — CSS
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-brand-orange: #FC4201;
  --color-buckster-yellow: #FFB800;
  --bg-white: #FFFFFF;
  --bg-light: #F8F8FA;
  --text-dark: #0E0E12;
  --text-medium: #3A3A45;
  --text-muted: #6B6B78;
  --border-light: rgba(0, 0, 0, 0.09);
  --header-height: 72px;
  --max-w: 1400px;
  --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.7; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* =====================================================================
   HEADER / NAV
===================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header-inner {
  width: 100%;
  padding: 0 clamp(2rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  position: relative;
  z-index: 1002;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-brand-orange);
  opacity: 0.9;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-logo-link {
  display: flex;
  align-items: center;
  height: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo-img {
  height: 24px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.05);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 4px;
  position: relative;
  z-index: 1002;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-btn-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-brand-orange);
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.menu-btn:hover .menu-btn-bar:first-child { transform: translateX(-3px); }
.menu-btn:hover .menu-btn-bar:last-child  { transform: translateX(3px); }

/* =====================================================================
   FULL-SCREEN BURGER MENU DRAWER (Exact match to burgermenu.jpg)
===================================================================== */
.side-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.4s ease;
}

.side-menu-drawer.open {
  visibility: visible;
  pointer-events: all;
}

.side-menu-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.side-menu-drawer.open .side-menu-backdrop {
  opacity: 1;
}

.side-menu-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background-color: #272727;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow-y: auto;
  color: #FFFFFF;
}

.side-menu-drawer.open .side-menu-panel {
  transform: translateY(0);
}

.menu-close-btn {
  align-self: flex-end;
  color: var(--color-brand-orange, #FC4201);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
  z-index: 10;
}

.menu-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  opacity: 0.9;
}

.menu-close-btn svg {
  stroke: var(--color-brand-orange, #FC4201);
}

.side-menu-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: flex-start;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.side-menu-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.side-menu-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0;
}

.side-menu-tagline span {
  color: var(--color-brand-orange, #FC4201);
}

.side-menu-clock-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.live-clock-time {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #FFFFFF;
}

.live-clock-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9E9E9E;
  margin-top: 0.5rem;
}

.live-clock-label .accent-dot {
  color: var(--color-brand-orange, #FC4201);
  margin: 0 4px;
}

.side-menu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  height: 100%;
  justify-content: space-between;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.side-nav-item {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  text-decoration: none;
  text-align: right;
  transition: transform 0.3s ease, color 0.3s ease;
}

.side-nav-item:hover {
  transform: translateX(-8px);
  color: var(--color-brand-orange, #FC4201);
  opacity: 1;
}

.side-nav-item.highlight {
  color: var(--color-brand-orange, #FC4201);
}

.side-menu-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 6rem);
}

.side-menu-footer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.side-menu-footer-item::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background-color: var(--color-brand-orange, #FC4201);
  margin-bottom: 2px;
}

.side-menu-footer-item a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #B0B0B0;
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: right;
}

.side-menu-footer-item a:hover {
  color: #FFFFFF;
  opacity: 1;
}

/* =====================================================================
   PAGE WRAPPER
===================================================================== */
.page-wrapper {
  padding-top: var(--header-height);
}

.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* =====================================================================
   SECTION 1 — HERO / PROJECT INTRO
===================================================================== */
.project-intro-section {
  padding: 80px clamp(2rem, 6vw, 6rem) 60px;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-intro-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-logo-block {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
}

.project-logo-icon {
  width: 320px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.project-intro-right p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.project-intro-right p:last-child { margin-bottom: 0; }

/* =====================================================================
   SECTION 2 — PROJECT META / STATS GRID
===================================================================== */
.project-meta {
  padding: 0 clamp(2rem, 6vw, 6rem);
}

.project-meta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.meta-cell {
  padding: 36px 24px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.meta-cell:first-child { padding-left: 0; }
.meta-cell:last-child  { border-right: none; padding-right: 0; }

.meta-icon {
  color: var(--text-muted);
  margin-bottom: 2px;
}

.meta-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.meta-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

.meta-value {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.5;
}

/* =====================================================================
   SECTION 3 — OVERVIEW / WHAT WE BUILT / DESIGN APPROACH
===================================================================== */
.project-content-section {
  padding: 80px clamp(2rem, 6vw, 6rem);
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.content-col {
  padding: 48px 40px;
  border-right: 1px solid var(--border-light);
}

.content-col:last-child { border-right: none; }

.content-col-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.content-col p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-col p:last-child { margin-bottom: 0; }

.content-col p strong {
  font-weight: 700;
  color: var(--text-dark);
}

.built-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.built-list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.built-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-dark);
  font-weight: 700;
}

/* =====================================================================
   SECTION 4 — PRODUCT EXPERIENCE
===================================================================== */
.product-experience {
  background-color: #F5F5F5;
  color: var(--text-dark);
  padding: 80px clamp(2rem, 6vw, 6rem) 32px;
  overflow: hidden;
}

.product-experience-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.product-exp-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 24px;
}

.product-exp-label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-buckster-yellow);
  text-transform: uppercase;
}

.product-exp-headline {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.product-exp-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-exp-logo-row img {
  height: 110px;
  width: auto;
}

.product-exp-badges {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 14px;
}

.badge-link {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s var(--transition-smooth);
}

.badge-link:hover { transform: translateY(-2px); opacity: 1; }

.badge-link img {
  height: 42px;
  width: auto;
  display: block;
}

.product-exp-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
}

.screenshots-img {
  max-width: 80%;
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  object-fit: contain;
  object-position: bottom;
}

/* =====================================================================
   RESPONSIVE
===================================================================== */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .project-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-meta-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .meta-cell:nth-child(3) { border-right: none; }
  .meta-cell:nth-child(4) { border-top: 1px solid var(--border-light); }
  .meta-cell:nth-child(5) {
    border-top: 1px solid var(--border-light);
    border-right: none;
  }

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

  .content-col {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .content-col:last-child { border-bottom: none; }

  .product-experience-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-exp-left { padding-bottom: 0; }
  .product-exp-right { justify-content: center; }
  .screenshots-img { max-width: 100%; margin: 0 auto; }
}

@media (max-width: 900px) {
  .side-menu-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .side-menu-right {
    align-items: flex-start;
    text-align: left;
  }
  .side-nav-links {
    align-items: flex-start;
  }
  .side-nav-item {
    text-align: left;
  }
  .side-nav-item:hover {
    transform: translateX(8px);
  }
  .side-menu-footer-links {
    align-items: flex-start;
  }
  .side-menu-footer-item {
    align-items: flex-start;
  }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-logo-link { position: relative; left: 0; transform: none; }

  .project-intro-section { padding-top: 48px; padding-bottom: 36px; }
  .project-content-section { padding-top: 48px; padding-bottom: 48px; }
  .product-experience { padding-top: 60px; padding-bottom: 32px; }

  .project-meta-inner { grid-template-columns: repeat(2, 1fr); }

  .meta-cell:nth-child(2) { border-right: none; }
  .meta-cell:nth-child(3) {
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
  }
  .meta-cell:nth-child(4) { border-top: 1px solid var(--border-light); border-right: none; }
  .meta-cell:nth-child(5) {
    border-top: 1px solid var(--border-light);
    grid-column: 1 / -1;
    border-right: none;
  }

  .content-col { padding: 32px 24px; }
  .product-exp-headline { font-size: 26px; }
  .project-logo-icon { width: 220px; }
  .project-intro-right p { font-size: 15px; }
}

/* Small Mobile — 480px */
@media (max-width: 480px) {
  .header-nav { gap: 12px; }

  .project-meta-inner { grid-template-columns: 1fr; }

  .meta-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    border-top: none !important;
    padding: 24px 16px;
  }
  .meta-cell:last-child { border-bottom: none !important; }

  .project-logo-block { flex-direction: column; align-items: flex-start; }
}
