:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --text: #111111;
  --muted: #555555;
  --line: rgba(17, 17, 17, 0.12);
  --max: 1440px;
  --transition: 260ms cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── SITE HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 243, 243, 0.96);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 380ms cubic-bezier(.2, .8, .2, 1);
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 86px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ─── BRAND WATER FILL ─── */
.brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-fill {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.25);
}

.brand-fill::before {
  content: "JDESIGNLABS";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  color: #111111;
  -webkit-text-stroke: 0px transparent;
  overflow: hidden;
  white-space: nowrap;
  animation: waterFill 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes waterFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.98rem;
}

.menu a {
  position: relative;
  color: #656565;
  transition: color var(--transition);
}

.menu a:hover,
.menu a.active {
  color: #111111;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #111111;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.menu a.active::after,
.menu a:hover::after {
  transform: scaleX(1);
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 72px 52px;
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08),
              0 24px 60px rgba(0,0,0,0.6);
  transition: box-shadow 520ms cubic-bezier(.2, .8, .2, 1),
              transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.hero-photo-wrap:hover {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18),
              0 32px 80px rgba(0,0,0,0.7);
  transform: translateY(-5px);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.hero-text {
  flex: 0 1 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.7s ease 0.35s forwards;
}

.hero-tagline span {
  color: rgba(255,255,255,0.2);
  margin: 0 10px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.5s forwards;
}

.hero-btn {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.5);
  text-decoration: none;
  display: inline-block;
  transition: all 0.28s ease;
  background: transparent;
  color: #ffffff;
  min-width: 120px;
  text-align: center;
}

.hero-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

.hero-btn.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
}

.hero-btn.ghost:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── PAGE SHELL ─── */
.page-shell {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 38px 120px;
  background: var(--bg);
}

/* ─── PAGE HEADING ─── */
.page-heading {
  text-align: left;
  margin-bottom: 56px;
  border-left: 3px solid #111111;
  padding-left: 20px;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.heading-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: #111111;
  margin-bottom: 10px;
  opacity: 0.3;
}

.page-subheading {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ─── ABOUT LEFT ─── */
.about-left {
  display: flex;
  justify-content: flex-start;
}

.about-content-left {
  max-width: 720px;
  width: 100%;
  text-align: left;
}

.about-content-left h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-content-left p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about-content-left p:last-child {
  margin-bottom: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.about-tag {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 6px 14px;
  border-radius: 2px;
}

/* ─── PORTFOLIO ─── */
.portfolio-grid-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  margin: 0;
  padding: 18px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ─── CONNECT ─── */
.connect-list {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.connect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 1.06rem;
  transition: background var(--transition), padding-left var(--transition);
}

.connect-item:last-child {
  border-bottom: 0;
}

.connect-item:hover {
  background: #ececec;
  padding-left: 32px;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 720px) {
  .nav {
    min-height: 60px;
    flex-direction: row;
    padding: 0 18px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .menu {
    gap: 14px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: unset;
    height: auto;
    padding: 0;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    padding: 24px 20px;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-photo-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .hero-text {
    align-items: flex-start;
  }

  .hero-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-align: left;
  }

  .hero-btns {
    gap: 8px;
    justify-content: flex-start;
  }

  .hero-btn {
    font-size: 0.68rem;
    padding: 7px 14px;
    min-width: 80px;
  }

  .page-shell {
    padding: 36px 18px 72px;
  }

  .about-tags {
    flex-direction: column;
  }

  .portfolio-grid-images {
    grid-template-columns: 1fr;
  }

  .connect-item {
    padding: 18px;
    font-size: 0.98rem;
  }
}