/* Compiled fallback CSS (generated from SCSS in this scaffold) */
* {
  box-sizing: border-box;
}

.container {
  max-width: none;
  margin: 0 auto;
  padding: 0 48px;
}

html,
body {
  height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--muted);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}

:root {
  --bg: #252629;
  /* Blend of Original (#1a1a1b) and Discord (#313338) */
  --muted: #9f9fa3;
  --text: #f3f4f5;
  --accent: #22c55e;
  --accent-rgb: 34, 197, 94;
  --card: #2b2c30;
  /* Slightly lighter than BG */
  --glass: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-muted: rgba(255, 255, 255, 0.06);
  --hover-bg: rgba(255, 255, 255, 0.15);
  --hover-border: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] {
  --bg: #eef0f3;
  --text: #1a1a1b;
  --muted: #5c5c5c;
  --card: #ffffff;
  --glass: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-muted: rgba(0, 0, 0, 0.06);
  --hover-bg: rgba(0, 0, 0, 0.1);
  --hover-border: rgba(0, 0, 0, 0.2);
}

.site-header {
  background: var(--bg);
  padding: 18px 0;
  color: var(--text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: inline-block;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #7bd389, #4fc3f7);
  color: #071018;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-title .title {
  font-weight: 700;
  color: var(--text);
}

.site-title .subtitle {
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  background: var(--hover-bg);
  border-color: var(--hover-border);
}

.main-nav .cta {
  background: var(--accent);
  color: #071018;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.hero {
  padding: 48px 0;
}

.hero .container {
  display: block;
}

.hero h1 {
  color: var(--text);
  font-size: 44px;
  margin: 0 0 12px;
}

.hero .lead {
  max-width: 800px;
  color: var(--muted);
  margin: 0;
}

/* Projects grid */
#projects {
  padding: 36px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 450px));
  gap: 24px;
  justify-content: center;
}

.project-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.project-card:hover h3 {
  color: var(--accent);
  transition: color 0.2s ease;
}

.project-media {
  position: relative;
  padding-top: 56.25%;
  background: #0b0b0b;
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 12px;
  z-index: 5;
}

.project-play {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px 6px 6px;
  border-radius: 30px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

.project-play:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.project-play .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #071018;
  flex-shrink: 0;
}

.project-play .dot svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.project-body {
  padding: 20px;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-muted);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.project-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.project-subtitle .separator {
  margin: 0 6px;
  opacity: 0.5;
}

.project-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.project-meta {
  margin-top: 14px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tech-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  background: var(--glass);
  color: var(--text);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}


hr {
  border: 0;
  border-top: 1px solid var(--border-muted);
  margin: 36px 0;
}

.site-footer {
  padding: 26px 0;
  color: var(--muted);
  border-top: 1px solid var(--border-muted);
}

main {
  flex: 1;
  padding-top: 92px;
}

/* Ensure content sections use the same background to avoid seams while scrolling */
main,
.projects,
.hero,
.site-footer {
  background: var(--bg);
}

/* Modal styling */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
}

.modal-panel {
  position: relative;
  width: 90%;
  max-width: 1400px;
  border-radius: 12px;
  overflow: hidden;
}

.modal-body {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  z-index: 4;
}

/* Small screens */
@media (max-width: 720px) {
  .hero h1 {
    font-size: 32px;
  }

  .main-nav a {
    display: none;
  }

  .site-title .title {
    display: none;
  }

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

/* Gallery Modal Styles */
.gallery-body {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  margin: 0 auto;
  overflow: hidden;
  /* Prevent any bleed */
}

#gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  /* Don't squash the image */
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 48px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 3;
  line-height: 1;
  padding: 0;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  padding: 40px 20px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  z-index: 3;
  pointer-events: none;
}

/* Responsive gallery styles */
@media (max-width: 720px) {
  .gallery-body {
    aspect-ratio: 16 / 9;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }
}