/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-black: #000000;
  --color-bg-card: #0c0c0c;
  --color-bg-expertise: #050505;
  --color-white: #ffffff;
  --color-zinc-200: #e4e4e7;
  --color-zinc-300: #d4d4d8;
  --color-zinc-400: #a1a1aa;
  --color-zinc-500: #71717a;
  --color-zinc-900: #18181b;
  --color-emerald-500: #10b981;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.1);
  --bg-white-5: rgba(255, 255, 255, 0.05);
  --bg-white-10: rgba(255, 255, 255, 0.1);
  --max-width: 72rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-black);
  color: var(--color-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.navbar-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.logo-text {
  color: var(--color-white);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.logo-wordmark {
  height: 1.125rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--color-zinc-400);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-contact {
  height: 2.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 9999px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-contact:hover {
  background-color: var(--color-zinc-200);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: 13rem;
  padding-bottom: 9rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 48rem;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.05);
  filter: blur(120px);
  pointer-events: none;
  border-radius: 9999px;
}

.hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo-wrap {
  flex-shrink: 0;
  display: block;
}

.hero-photo {
  width: 280px;
  height: 360px;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--bg-white-5);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.availability-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--color-emerald-500);
  flex-shrink: 0;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.availability-badge span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-zinc-300);
  letter-spacing: 0.025em;
}

.availability-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.availability-link:hover {
  opacity: 0.6;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 56rem;
  line-height: 1.05;
}

.hero-title-dim {
  color: var(--color-zinc-500);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-zinc-400);
  max-width: 26rem;
  line-height: 1.625;
}

/* ==========================================================================
   Work Section
   ========================================================================== */
.work-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.025em;
}

.section-date {
  display: none;
  color: var(--color-zinc-500);
  font-size: 0.875rem;
}

.btn-all-work {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--color-zinc-300);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-all-work:hover {
  background-color: var(--color-zinc-800, #27272a);
  color: var(--color-white);
  border-color: var(--color-zinc-600, #52525b);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: var(--border-light);
}

.project-arrow-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--bg-white-5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.project-card:hover .project-arrow-btn {
  opacity: 1;
}

.project-preview {
  width: 100%;
  height: 16rem;
  background-color: rgba(24, 24, 27, 0.5);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

.project-mockup {
  width: 75%;
  height: 75%;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  background-color: var(--color-black);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mockup-titlebar {
  height: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--color-zinc-900);
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  gap: 0.375rem;
  flex-shrink: 0;
}

.mockup-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--bg-white-10);
}

.mockup-content {
  flex: 1;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
  opacity: 0.2;
}

.mockup-sidebar {
  border: 1px solid var(--border-light);
  border-radius: 0.25rem;
}

.mockup-main {
  border: 1px solid var(--border-light);
  border-radius: 0.25rem;
}

.project-info {
  padding: 0 1rem 1rem;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-white);
}

.project-type {
  font-size: 0.75rem;
  color: var(--color-zinc-500);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-role {
  font-size: 0.875rem;
  color: var(--color-zinc-400);
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.about-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--border-subtle);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-text .section-title {
  margin-bottom: 1.5rem;
}

.about-bio {
  font-size: 1rem;
  color: var(--color-zinc-400);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 52rem;
}

.about-bio:last-of-type {
  margin-bottom: 2rem;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-skill {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--color-zinc-300);
  font-size: 0.8125rem;
  font-weight: 500;
}

.about-photo-wrap {
  flex-shrink: 0;
  display: block;
}

.about-photo {
  width: 280px;
  height: 360px;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.about-photo:hover {
  opacity: 0.85;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-img {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  cursor: default;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--color-black);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-zinc-500);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Responsive — mobile (<768px)
   ========================================================================== */
@media (max-width: 767px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-photo-wrap {
    align-self: center;
  }

  .about-photo-wrap {
    align-self: center;
  }
}

/* ==========================================================================
   Responsive — md (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-title {
    font-size: 6rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .section-date {
    display: block;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-wide {
    grid-column: span 2;
  }

  .project-narrow {
    grid-column: span 1;
  }

  .project-preview {
    height: 20rem;
  }

  .about-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: row;
  }
}
