/* Todd Gorang portfolio - styled to match the original Weebly "Birdseye" theme */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 88px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: transparent;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: #fff;
  color: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.site-logo {
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .9px;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a, .site-nav button {
  font: 700 12px/12px 'Quicksand', sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: none;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { opacity: .75; }
.site-nav .active { border-color: currentColor; }
.site-nav .icon-link { display: inline-flex; align-items: center; padding: 9px 12px; }

.icon-link { display: inline-flex; align-items: center; vertical-align: middle; color: inherit; }
.icon-link svg { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px 0;
  background: currentColor;
}

@media (max-width: 767px) {
  .site-header { padding: 16px 20px; height: 72px; }
  .site-logo { font-size: 22px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav button { text-align: left; padding: 14px 12px; }
  .site-nav .icon-link { padding: 14px 12px; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 40px 80px;
}
@media (max-width: 767px) {
  .container { padding: 72px 20px 56px; }
}

/* Hero */
.hero {
  min-height: 100vh;
  background-position: 50% 100%;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}
.hero .container { padding-top: 120px; }
.hero-title {
  font-weight: 400;
  font-size: 80px;
  line-height: 92px;
  margin: 0 0 40px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
}
.hero-collection { margin: 0 auto; width: 929px; }
@media (max-width: 1024px) {
  /* Fixed backgrounds are unreliable on touch devices */
  .hero { background-attachment: scroll; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 48px; line-height: 56px; }
}

/* Buttons (outlined, like the Weebly theme) */
.btn {
  display: inline-block;
  justify-self: center;
  font: 700 16px/16px 'Quicksand', sans-serif;
  letter-spacing: .48px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: rgba(255, 255, 255, .15); }
.btn-dark { color: #000; }
.btn-dark:hover { background: rgba(0, 0, 0, .06); }

/* Game sections */
.game { text-align: center; }
.game-title {
  font-weight: 400;
  font-size: 40px;
  line-height: 50px;
  color: #fff;
  margin: 0 0 30px;
}
.game-title strong { font-weight: 700; }
.game-title small { font-size: 32px; }
.game-credits {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 40px;
}
.game-box { margin: 0 auto 24px; }
.game > .container > * + .slideshow,
.game > .container > * + .video { margin-top: 24px; }

@media (max-width: 767px) {
  .game-title { font-size: 30px; line-height: 38px; }
  .game-title small { font-size: 24px; }
  .game-credits { font-size: 19px; }
}

/* Slideshow */
.slideshow {
  position: relative;
  max-width: 929px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  user-select: none;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s;
  margin: 0;
}
.slideshow .slide.current { opacity: 1; }
.slideshow .slide img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: contain;
}
.slideshow figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 15px;
}
.slideshow .ss-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 64px;
  border: 0;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background-color .2s;
  z-index: 2;
}
.slideshow:hover .ss-arrow, .slideshow .ss-arrow:focus-visible { opacity: 1; }
.slideshow .ss-arrow:hover { background: rgba(0, 0, 0, .6); }
.slideshow .ss-prev { left: 0; }
.slideshow .ss-next { right: 0; }
.slideshow .ss-dots {
  position: absolute;
  top: 10px; right: 12px;
  display: flex; gap: 6px;
  z-index: 2;
}
.slideshow .ss-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}
.slideshow .ss-dots button.current { background: #fff; }
@media (hover: none) {
  .slideshow .ss-arrow { opacity: 1; }
}

/* Video embeds */
.video {
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video + .video { margin-top: 24px; }

/* ---------- Résumé page ---------- */
.page-header {
  background: #020202;
  color: #fff;
  text-align: center;
}
.page-header .container { padding: 120px 40px 60px; }
.page-header h1 {
  font-weight: 400;
  font-size: 80px;
  line-height: 92px;
  margin: 0;
}
.resume-section.tint { background: #f8feff; }
.resume-section h2 {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.4;
  color: #515151;
  text-decoration: underline;
  margin: 0 0 8px;
}
.resume-section h3 { font-size: 16px; font-weight: 700; margin: 0; }
.resume-section p { margin: 0; }
.resume-section ul { margin: 4px 0 28px; padding-left: 40px; }
.resume-section a { color: #1155cc; }
.resume-entry { margin-bottom: 28px; }
.resume-entry .meta { display: block; }
.resume-skills dt { font-weight: 700; }
.resume-skills dd { margin: 0; }
.resume-edu p + p { margin-top: 28px; }
.resume-actions { text-align: center; padding-top: 20px; }
@media (max-width: 767px) {
  .page-header h1 { font-size: 52px; line-height: 60px; }
  .resume-section ul { padding-left: 22px; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  padding: 40px 20px;
  color: #555;
  background: #fff;
}
.site-footer nav { margin-bottom: 8px; }
.site-footer nav a, .site-footer nav button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 10px;
  cursor: pointer;
  text-decoration: none;
}
.site-footer nav a:hover, .site-footer nav button:hover { color: #000; text-decoration: underline; }

/* ---------- Print (résumé "Save as PDF") ---------- */
@media print {
  .site-header, .site-footer, .resume-actions { display: none !important; }
  .page-header { background: none; color: #000; }
  .page-header .container { padding: 0 0 12px; }
  .page-header h1 { font-size: 36px; line-height: 1.2; }
  .container { padding: 12px 0; max-width: none; }
  .resume-section.tint { background: none; }
  .resume-section a { color: #000; text-decoration: none; }
  .resume-entry, .resume-section h2 { break-inside: avoid-page; }
  body { font-size: 11pt; line-height: 1.45; }
}
