:root {
  color-scheme: dark;
  color: #f5f5f5;
  background: #070707;
  font-family: Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-image: linear-gradient(120deg, rgba(7,7,7,0.9), rgba(7,7,7,0.8)), url('images/Squiggle.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  color: #f8f8f8;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -10%;
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008), rgba(255,255,255,0.01));
  transform: translate3d(-1%, -0.5%, 0) scale(1.02);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}
.taskbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  color: inherit;
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  border-radius: 14px;
  margin: 0.6rem auto;
  max-width: 1100px;
  width: calc(100% - 1.2rem);
}
 .taskbar-left {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
 .taskbar-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.taskbar button {
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: inherit;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.24s ease;
  font-size: 0.95rem;
  font-weight: 700;
}
.taskbar button.active,
.taskbar button:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 4rem;
  text-align: center;
}
.hero {
  max-width: 1100px;
  width: 100%;
  display: grid;
  gap: 3.6rem;
}
.title-wrap {
  padding: 3rem 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}
.hero-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}
.hero-copy {
  text-align: left;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.72;
  font-weight: 700;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.7rem;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.hero-copy h2 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.95;
}
.hero-copy p {
  margin-top: 0.9rem;
  max-width: 620px;
  line-height: 1.75;
  opacity: 0.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.hero-cta {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #0b0b0b;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(2,6,23,0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.hero-cta.secondary {
  background: transparent;
  color: #f8f8f8;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.28);
}
.hero-visual {
  display: grid;
  gap: 0.8rem;
}
.hero-visual img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}
.hero-visual-caption {
  padding: 0.9rem 1rem;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
}
.hero-visual-caption strong {
  display: block;
  margin-bottom: 0.25rem;
}
.hero-visual-caption span {
  display: block;
  opacity: 0.8;
  line-height: 1.6;
}

.title-wrap h1 {
  font-size: clamp(2.6rem, 4vw, 5rem);
  letter-spacing: -0.08em;
  margin-bottom: 0.6rem;
  /* subtle shadow to add depth behind the main title */
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.title-wrap h2 {
  opacity: .9;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.title-wrap p {
  margin-top: 0.6rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.75;
  line-height: 1.7;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.grid-item {
  min-height: 200px;
  border-radius: 1.4rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.28)), #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 36px rgba(0,0,0,0.24);
  transition: transform 260ms cubic-bezier(.2,.9,.27,1), box-shadow 260ms ease, filter 260ms ease;
  cursor: pointer;
  will-change: transform;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
}
.grid-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 40%);
  pointer-events: none;
}
.grid-item:focus {
  outline: 3px solid rgba(255,255,255,0.06);
  outline-offset: 6px;
}
.grid-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 28px 60px rgba(0,0,0,0.42);
  filter: saturate(1.06) contrast(1.03);
}
.grid-item.pressed {
  transform: translateY(-2px) scale(0.99);
  transition: transform 120ms ease;
}
.grid-item span {
  position: relative;
  bottom: auto;
  left: auto;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.98);
  mix-blend-mode: screen;
  text-shadow: 0 6px 16px rgba(0,0,0,0.6);
  z-index: 2;
  font-weight: 600;
}
.page {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.page.active {
  display: block;
}
.page.about {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.92;
}
.about-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-copy,
.contact-panel {
  flex: 1 1 0;
  min-width: 0;
}
.about-copy {
  text-align: left;
  padding-right: 0.5rem;
}
.page.about h2 {
  font-size: 2.4rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  font-weight: 800;
  color: #ffffff;
}
.page.about p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

.contact-panel {
  margin-top: 0;
  padding: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  background: rgba(255,255,255,0.035);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.contact-panel__header {
  margin-bottom: 0.7rem;
}
.contact-panel__header h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.contact-panel__header p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.9rem;
}
.contact-form {
  display: grid;
  gap: 0.6rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}
.contact-form span {
  font-size: 0.84rem;
  opacity: 0.9;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.06);
  color: #f8f8f8;
  font: inherit;
  font-size: 0.92rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}
.contact-form textarea {
  resize: vertical;
  min-height: 88px;
}
.contact-form button {
  justify-self: start;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  color: #0b0b0b;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.contact-form button:hover {
  transform: translateY(-1px);
}
.form-status {
  margin-top: 0.3rem;
  color: #b8f5c2;
  font-size: 0.95rem;
}

/* Center the title and add subtle glow behind it */
.title-wrap {
  position: relative;
  text-align: center;
  overflow: visible;
}
.title-wrap * { position: relative; z-index: 2; }
.title-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%) scale(0.98);
  width: 60%;
  height: 46%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%, transparent 70%);
  filter: blur(28px);
  opacity: 0.45;
  transition: opacity 420ms ease, transform 420ms ease;
  z-index: 1;
  pointer-events: none;
}
.page:not(.active) .title-wrap::before { opacity: 0.12; transform: translate(-50%, -50%) scale(0.95); }
.page.active .title-wrap::before { opacity: 0.55; transform: translate(-50%, -50%) scale(1.03); }

/* Social buttons (white) on taskbar right */
.social-btn {
  background: #ffffff;
  color: #0b0b0b;
  border: none;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2,6,23,0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(2,6,23,0.32); }

/* Project detail panel styles */
.project-panel { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 280ms ease; z-index: 60; }
.project-panel[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.panel-backdrop { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.7)); backdrop-filter: blur(6px) saturate(1.05); }
.panel-content { position: relative; width: min(880px, calc(100% - 48px)); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border-radius: 14px; padding: 1.6rem; z-index: 2; box-shadow: 0 30px 80px rgba(3,7,20,0.6); border: 1px solid rgba(255,255,255,0.06); transform: translateY(12px); opacity: 0; transition: transform 320ms cubic-bezier(.2,.9,.27,1), opacity 320ms ease; }
.project-panel[aria-hidden="false"] .panel-content { transform: translateY(0); opacity: 1; }
.panel-close { position: absolute; right: 12px; top: 12px; background: transparent; border: none; color: rgba(255,255,255,0.9); font-size: 1.6rem; cursor: pointer; }
.panel-title { font-size: 1.6rem; margin-bottom: 0.6rem; }
.panel-desc { opacity: 0.9; margin-bottom: 1rem; }
.panel-media { width: 100%; height: 420px; background: #000; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.panel-media iframe, .panel-media video { width: 100%; height: 100%; border: 0; }

/* Dim the header/title when panel open */
.title-wrap.dim { opacity: 0.18; transform: translateY(-6px) scale(0.99); transition: opacity 300ms ease, transform 300ms ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0% { transform: translate3d(-0.8%, -0.3%, 0) scale(1.01); }
  100% { transform: translate3d(0.8%, 0.3%, 0) scale(1.015); }
}

@media (max-width: 860px) {
  .about-layout {
    flex-direction: column;
  }
  .about-copy {
    text-align: center;
  }
  .hero-intro {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual-caption {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .taskbar {
    flex-wrap: wrap;
  }
  .title-wrap {
    padding: 2rem 1.2rem;
  }
  .hero-intro {
    padding: 1.2rem;
  }
}
.site-footer {
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  opacity: 0.68;
  color: rgba(255,255,255,0.9);
}
