/* robotnick portfolio — recreated from the original Google Sites styling */

:root {
  --cream: #ece7e0;
  --dark: #45414a;
  --dark-2: #35323a;
  --orange: #f4a022;
  --maroon: #7a2e1d;
  --green-text: #2d4a2b;
  --text: #202020;
  --link: #b06a2a;
  --max-width: 900px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Inline links/emphasis in body copy use the site's orange accent, matching
   the original Google Sites theme. */
.content a:not(.btn) { color: var(--orange); }
.content em, .content strong { color: var(--orange); font-style: normal; font-weight: 600; }

/* ---------- Nav ---------- */
.topnav {
  background: var(--dark);
  color: #fff;
  position: relative;
  z-index: 20;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-links > li > a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}
.nav-links > li > a:hover,
.nav-links > li.has-dropdown:hover > a {
  border-bottom-color: var(--orange);
}
.has-dropdown { position: relative; }
.dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-2);
  min-width: 200px;
  display: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 8px 16px;
  color: #eee;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--dark); color: var(--orange); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 12px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; display: block; box-shadow: none; }
}

/* ---------- Banner ---------- */
.banner {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.15) 0%, transparent 40%),
    linear-gradient(-20deg, #59545e 0%, #38343c 60%);
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--orange);
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 5% 15%, rgba(200,170,110,0.35), transparent 30%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px);
}
.banner-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px 50px;
}
.banner h1 {
  color: #f2efe9;
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0;
}
/* The About Me (home) page title is bold orange in the original; other
   page banners keep the thin white/gray title. */
.banner h1.title-accent {
  color: var(--orange);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

/* ---------- Content ---------- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.intro h2 { font-weight: 400; font-size: 1.8rem; margin-bottom: 18px; color: var(--text); }
.intro .accent { color: var(--orange); font-weight: 600; }
.intro p { line-height: 1.7; font-size: 1.05rem; }

.split-section {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid #cfc9bd;
  flex-wrap: wrap;
}
.split-section:first-of-type { border-top: none; }
.split-section.reverse { flex-direction: row-reverse; }

/* Link-card variant: index pages ("Professional Projects", "School Projects",
   "Personal Projects" cards) render as plain-blue link text in the original
   site rather than themed orange/dark text. */
.split-text.link-card h2 { color: #3333cc; }
.split-text.link-card h2 a { color: inherit; text-decoration: none; }
.split-text.link-card p, .split-text.link-card p a { color: #3333cc; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #cfc9bd;
  overflow: hidden;
  margin-bottom: 10px;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  background: rgba(0,0,0,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.active { background: #fff; }
.split-media, .split-text { flex: 1 1 340px; min-width: 280px; }
.split-text h2 { color: var(--maroon); font-weight: 500; margin-top: 0; }
.split-text p { line-height: 1.7; }

.btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--orange);
  color: #2c2109;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 2px;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(0.92); }

.center-cta { text-align: center; padding: 30px 0 10px; }

/* Stacked project-detail blocks */
.stack-block {
  padding: 34px 0;
  border-top: 1px solid #cfc9bd;
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: 32px;
  align-items: start;
}
.stack-block:first-of-type { border-top: none; }
.block-text { line-height: 1.7; color: var(--green-text); margin: 0; }
@media (max-width: 680px) {
  .stack-block { grid-template-columns: 1fr; }
}

.media-block { width: 100%; }
.media-block .caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}
.media-block img,
.media-block video {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background: #000;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Game embed page */
.game-embed {
  position: relative;
  width: 100%;
  padding-top: 60%;
  margin-bottom: 30px;
  background: #111;
}
.game-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.story-text { line-height: 1.7; }
.story-text p { margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid #cfc9bd;
  padding: 30px 24px 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-right: 6px;
}
.footer-inner .icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}
