/* ============================================================
   WardTechLLC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Permanent+Marker&display=swap');

/*  CSS Variables  */
:root {
  --grid-line: #009dff;
  --grid-bg: #e5e5f7;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.13);
  --ink: #1a1a2e;
  --ink-light: #252538;
  --tape: rgba(255, 255, 200, 0.55);
}

/*  Body — graph paper with grain overlay  */
body {
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line) 1px, var(--grid-bg) 1px);
  background-size: 20px 20px;
  font-family: 'Courier Prime', 'Courier New', monospace;
  color: var(--ink);
  min-height: 100vh;
  margin: 0;
  padding: 24px 0 60px;
  position: relative;
}

/* Grain / paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

/* above the grain */
body>* {
  position: relative;
  z-index: 1;
}

/* Header*/
#header {
  width: clamp(100px, 45%, 1000px);
  margin: 0 auto 10px;
  padding: clamp(60px, 1vw, 100px);
  padding-bottom: 0%;
  padding-top: 2%;
  background-color: whitesmoke;
  border: 1px solid darkgrey;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-0.5deg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#header:hover {
  box-shadow: var(--card-shadow-hover);
  transform: rotate(-0.2deg) translateY(-2px);
}

#header img {
  height: clamp(80px, 13vw, 300px);
  margin-right: clamp(10px, 2vw, 30px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

/*  Navigation  */
#navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 15%;
  row-gap: 12px;
  width: 70%;
  margin: 0 auto;
  padding: clamp(5px, 2vw, 30px);
  background-color: whitesmoke;
  border: 1px solid darkgrey;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  margin-bottom: -60px;
  transform: rotate(0.4deg);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
}

#navigation:hover {
  box-shadow: var(--card-shadow-hover);
}

#navigation a {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Special Elite', serif;
  font-size: clamp(14px, 2.5vw, 22px);
  letter-spacing: 0.04em;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

#navigation a:hover {
  color: var(--grid-line);
  transform: rotate(-1deg) scale(1.05);
}

/*  Layout wrapper (projects page)  */
#layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 95%;
  margin: 0px auto;
}

#content-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 95%;
  max-width: 1600px;
  margin: 50px auto;
}

/*  Left Navigation — pinned note card  */
#leftnavigation {
  min-width: 200px;
  width: fit-content;
  height: fit-content;
  min-height: 700px;
  position: sticky;
  top: 300px;
  padding: 20px;
  align-self: flex-start;
  background: url("../images/leftnav.png") no-repeat center center;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: rotate(2deg);
  filter: drop-shadow(4px 8px 18px rgba(0, 0, 0, 0.22));
  transition: filter 0.3s ease, transform 0.3s ease;
}

#leftnavigation:hover {
  transform: rotate(1.2deg) translateY(-3px);
  filter: drop-shadow(6px 12px 24px rgba(0, 0, 0, 0.28));
}

#leftnavigation a {
  text-decoration: none;
  color: var(--ink);
  padding-left: 40%;
  padding-top: 16%;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(13px, 2vw, 20px);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pushpin icon before each nav item */
#leftnavigation a::before {
  font-size: 0.85em;
  display: inline-block;
  transform: rotate(-10deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}

#leftnavigation a:hover {
  color: #b22222;
  transform: translateX(3px);
}

#leftnavigation a:hover::before {
  transform: rotate(5deg) scale(1.2);
}

/*  Main card — cardboard box  */
#main {
  width: 100%;
  margin: 50px auto;
}

.main-top {
  background: url("../images/cardboardtop.png") no-repeat center top;
  background-size: 100% auto;
  height: clamp(60px, 10vw, 150px);
  /* drop-shadow follows image edges instead of bounding box */
  filter: drop-shadow(0 -4px 12px rgba(0, 0, 0, 0.10)) drop-shadow(4px 0 8px rgba(0, 0, 0, 0.08));
}

.main-middle {
  background: url("../images/cardboardmiddle.png") repeat-y center top;
  background-size: 100% auto;
  padding: 40px 3%;
  transform: rotate(-0.4deg);
  margin-top: clamp(-30px, -3.5vw, -50px);
  margin-bottom: clamp(-60px, -5vw, -100px);
  filter: drop-shadow(6px 16px 28px rgba(0, 0, 0, 0.20)) drop-shadow(-2px 0 8px rgba(0, 0, 0, 0.08));
}

.main-bottom {
  background: url("../images/cardboardbottom.png") no-repeat center bottom;
  background-size: 100% auto;
  height: clamp(80px, 10vw, 160px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18)) drop-shadow(4px 0 8px rgba(0, 0, 0, 0.08));
}

/*  Content area  */
.content {
  width: 80%;
  max-width: 1800px;
  margin: 0 auto;
}

.content-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.content-text {
  flex: 1;
}

.content-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.content-image iframe {
  width: 1000%;
  max-width: 1560px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: none;
}
/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: -1.5rem;
}

.feature-card {
  background: url("../images/cardboard.png") no-repeat center 80%;
  background-size: 110% 125%;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: rotate(-0.3deg) translateY(-2px);
}

.feature-card h3 {
  font-family: 'Special Elite', serif;
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--ink);
  margin: 0 0 0.4rem 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-card p {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(13px, 1.3vw, 17px) !important;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0.6rem 0;
}

/* Stack vertically on small screens */
@media (max-width: 768px) {
  .content-row {
    flex-direction: column;
  }

  .content-image {
    flex: unset;
    max-width: 100%;
  }
}

/*  Typography  */
#main h1 {
  font-family: 'Permanent Marker', cursive;
  text-align: center;
  text-decoration: double underline;
  text-underline-offset: 6px;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-size: clamp(32px, 4vw, 56px);
}

#main h2 {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.8;
  color: var(--ink-light);
  font-weight: 400;
  text-decoration: underline;
}

/* Use <p> tags for body text going forward */
#main p {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.85;
  color: var(--ink-light);
}

#main li {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.download-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/*  Downloads  */
.download-btn {
  display: inline-block;
  background-color: var(--ink);
  color: white;
  font-family: 'Courier Prime', monospace;
  font-size: clamp(15px, 1.6vw, 19px);
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.download-btn:hover {
  opacity: 0.8;
}

.download-note {
  font-size: clamp(12px, 1.2vw, 15px);
  color: cornsilk;
  margin: 0;
}

/*  Page load fade-in  */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#header {
  animation: fadeUp 0.5s ease both;
}

#navigation {
  animation: fadeUp 0.5s 0.12s ease both;
}

#layout,
#content-area,
#main {
  animation: fadeUp 0.5s 0.24s ease both;
}

#leftnavigation {
  animation: fadeUp 0.5s 0.32s ease both;
}

/*  Mobile: hide left navigation  */
@media (max-width: 768px) {
  #leftnavigation {
    display: none;
  }

  #content-area {
    flex-direction: column;
    width: 95%;
  }
}