/* ===========================
     SJ 2024 Black/Red/White Portfolio Overhaul
     =========================== */

/* -- Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Oswald:wght@400;700&display=swap');

/* --- Variables --- */
:root {
  --primary-color: #e60000;    /* Red: Calls to action */
  --secondary-color: #fff;     /* White: Clean copy */
  --background-color: #181818; /* Deep black/charcoal */
  --accent-color: #262626;     /* Card backgrounds, panels */
  --hover-bg: #c40000;         /* Button/Link hover red */
  --quirk-color: #f7e4e4;      /* Quirky highlight (off-white) */
  --quirk-shadow: 0 0 10px #e6000050;
  --font-heading: 'Oswald', Arial, Helvetica, sans-serif;
  --font-body: 'Indie Flower', cursive;
  --transition: 0.24s cubic-bezier(.55,0,.1,1.1);
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--background-color);
  color: var(--secondary-color);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
  color: var(--secondary-color);
}

/* --- Links --- */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--quirk-color);
}

/* ===========================
   HEADER
   =========================== */

/* Wrapper header element */
.site-header {
  background: #101010;
  padding: 1.5rem 0 1rem 0;
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Inner container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; /* needed so mobile nav can anchor under it */
}

/* Logo (now usually an <a class="logo">) */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none; /* if it's a link */
}

.logo img {
  width: 58px;
  height: auto;
  filter: grayscale(0) drop-shadow(0 0 0 var(--primary-color));
  transition: filter var(--transition), transform var(--transition);
}

.logo h1 {
  font-size: 2.1rem;
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: text-shadow var(--transition), color var(--transition);
}

.logo:hover img {
  filter: drop-shadow(0 0 14px var(--primary-color));
  transform: scale(1.07) rotate(-3deg);
}

.logo:hover h1 {
  text-shadow: 0 0 12px var(--primary-color);
  color: var(--primary-color);
}

/* ===========================
   NAVIGATION - DESKTOP
   =========================== */

.main-nav {
  /* default: visible on desktop, inline in header */
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  color: var(--secondary-color);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 8px var(--primary-color);
  transform: translateY(-2px) scale(1.04);
}

/* Optional: highlight active page */
.main-nav li.active a {
  background: var(--primary-color);
  color: #fff;
}

/* ===========================
   MOBILE NAV TOGGLE (HAMBURGER)
   =========================== */

.nav-toggle {
  display: none;              /* shown only on mobile */
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary-color);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===========================
   RESPONSIVE (MOBILE)
   =========================== */

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1.25rem;
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: block;
  }

  /* Turn nav into dropdown panel */
  .main-nav {
    position: absolute;
    top: 100%;            /* directly under header-container */
    right: 0;
    left: 0;
    background: #101010;
    border-bottom: 2px solid var(--primary-color);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem 1.25rem;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
  }

  /* When JS adds .nav-open, the menu slides down */
  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}


/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px 20px;
  overflow: hidden;
  background: var(--background-color);
}
.hero::before {
  /* Cheeky diagonal lines for depth */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.11;
  z-index: 0;
  background:
    repeating-linear-gradient(
      110deg,
      #e60000 0 1.5px,
      transparent 3px 30px
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px #0009;
}
.hero h2 {
  font-size: 3.1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  text-shadow: 2px 2px 6px #000a;
  letter-spacing: 0.08em;
}

.hero p {
  font-size: 1.3rem;
  color: var(--quirk-color);
  margin: 0 auto 0.7em auto;
  max-width: 720px;
  text-shadow: 1px 2px 6px #0005;
}
.hero-slideshow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-slideshow img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeHeroSlideshow 18s infinite;
}

.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }

@keyframes fadeHeroSlideshow {
  0%, 100% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.4rem 0 1.8rem;
}

.hero-tags span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
  color: var(--secondary-color);
  box-shadow: 0 2px 10px #000a;
}

/* Buttons under the hero */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

/* Generic button-style anchor */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 12px #000c;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}

/* Primary CTA – solid red */

.btn.primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn.primary:hover,
.btn.primary:focus {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 0 16px #e60000;
  transform: translateY(-2px) scale(1.05);
}

/* Ghost CTA – outlined */

.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: #fff;
  color: #000;
  box-shadow: 0 0 16px #e60000;
  transform: translateY(-2px) scale(1.03);
}

/* Mobile tweaks for hero text */

@media (max-width: 650px) {
  .hero h2 {
    font-size: 2.1rem !important;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-tags {
    margin: 1rem 0 1.4rem;
  }
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */
.portfolio {
  padding: 70px 5vw 55px 5vw;
  background: var(--accent-color);
  min-height: 50vh;
}
.portfolio h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2.2em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.portfolio-item {
   min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #19191c;
  background: #19191c;
  border: 2.5px solid var(--accent-color);
  border-radius: 16px;
  overflow: hidden;
  color: var(--secondary-color);
  text-decoration: none;
  box-shadow: 0 4px 18px #0008;
  position: relative;
  transition: border var(--transition), box-shadow var(--transition), transform var(--transition);
}
@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px;}
  .portfolio-item { min-height: 220px; }
}
.portfolio-item:hover, .portfolio-item:focus-within {
  border: 2.5px solid var(--primary-color);
  box-shadow: 0 0 22px 2px #e6000099, 0 4px 24px #000a;
  transform: translateY(-8px) scale(1.035) rotate(-1.5deg);
  z-index: 3;
}
.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  filter: grayscale(22%) contrast(1.1) brightness(0.94);
  transition: filter var(--transition), transform var(--transition);
}
.portfolio-item:hover img,
.portfolio-item:focus-within img {
  filter: grayscale(0%) contrast(1.14) brightness(1.06) drop-shadow(0 0 7px #e6000030);
  transform: scale(1.05) rotate(-1deg);
}
.portfolio-item h3 {
  margin: 16px 0 10px 0;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portfolio-item p {
  padding: 0 18px 16px 18px;
  font-size: 1.03em;
  color: var(--quirk-color);
}
.portfolio-item .quirky-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--primary-color);
  color: #fff;
  padding: 2px 16px;
  border-radius: 18px 5px 16px 3px / 16px 8px 18px 4px;
  font-size: 0.92em;
  letter-spacing: 0.04em;
  font-family: var(--font-heading);
  box-shadow: var(--quirk-shadow);
  z-index: 6;
  pointer-events: none;
  user-select: none;
  animation: quirkyPop 0.42s cubic-bezier(.7,-0.6,.43,1.7) 1;
}
@keyframes quirkyPop {
  0% { transform: scale(0.7) rotate(-12deg); opacity: 0.1; }
  80% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* Feature highlight effect */
.portfolio-item.featured {
  border: 2.5px solid #fff;
  animation: redWhiteGlow 2.5s infinite alternate;
}
@keyframes redWhiteGlow {
  0%   { box-shadow: 0 0 18px #e60000, 0 0 0 #fff; }
  50%  { box-shadow: 0 0 34px #fff, 0 0 18px #e60000; }
  100% { box-shadow: 0 0 18px #e60000, 0 0 0 #fff; }
}
.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.image-container img.colored {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .4s, transform .4s;
}
.image-container img.grayscale {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  transition: opacity 0.5s;
  opacity: 1;
  object-fit: cover;
}
.portfolio-item:hover .image-container img.grayscale {
  opacity: 0;
}
.portfolio-item:hover .image-container img.colored {
  filter: contrast(1.14) brightness(1.09) saturate(1.2);
  transform: scale(1.03) rotate(-0.5deg);
}
/* ===========================
   PERSONAL MERCH
   =========================== */

.merch-hero {
  padding: 80px 5vw 40px 5vw;
  background: var(--background-color);
  border-bottom: 2px solid #000;
  text-align: center;
}

.merch-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.merch-hero h1 {
  font-size: 2.6rem;
  color: var(--primary-color);
  margin-bottom: 0.8em;
}

.merch-hero p {
  font-size: 1.15rem;
  color: var(--quirk-color);
  margin-bottom: 0.7em;
}

.merch-hero-note {
  font-size: 0.98rem;
  opacity: 0.8;
}

.merch-hero .btn {
  margin-top: 1.4rem;
}

/* Merch grid section */

.merch {
  padding: 70px 5vw 60px 5vw;
  background: var(--accent-color);
}

.merch h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2em;
}

.merch-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.merch-item {
  background: #19191c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px #0008;
  border: 2px solid #222;
  display: flex;
  flex-direction: column;
  transition: border var(--transition), box-shadow var(--transition), transform var(--transition);
}

.merch-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 22px 2px #e6000099, 0 4px 24px #000a;
  transform: translateY(-6px) scale(1.02) rotate(-0.7deg);
}

.merch-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(12%) contrast(1.05);
  transition: filter var(--transition), transform var(--transition);
}

.merch-item:hover .merch-image img {
  filter: grayscale(0%) contrast(1.12) brightness(1.04);
  transform: scale(1.03);
}

.merch-content {
  padding: 18px 18px 20px 18px;
}

.merch-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.merch-content p {
  font-size: 1.02rem;
  color: var(--quirk-color);
  margin-bottom: 1.1em;
}

/* Smaller button variant so it doesn’t overpower the card */

.btn.merch-btn {
  font-size: 0.8rem;
  padding: 0.55rem 1.2rem;
  letter-spacing: 0.12em;
}
/* ===========================
   SKETCHBOOK / PERSONAL ART
   =========================== */

.sketch-hero {
  padding: 80px 5vw 40px 5vw;
  background: var(--background-color);
  border-bottom: 2px solid #000;
  text-align: center;
}

.sketch-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.sketch-hero h1 {
  font-size: 2.6rem;
  color: var(--primary-color);
  margin-bottom: 0.8em;
}

.sketch-hero p {
  font-size: 1.15rem;
  color: var(--quirk-color);
  margin-bottom: 0.7em;
}

.sketch-hero-note {
  font-size: 0.98rem;
  opacity: 0.8;
}

/* Main sketch section */

.sketch {
  padding: 70px 5vw 60px 5vw;
  background: var(--accent-color);
}

.sketch h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2em;
}

.sketch-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.sketch-item {
  background: #19191c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px #0008;
  border: 2px solid #222;
  display: flex;
  flex-direction: column;
  transition: border var(--transition), box-shadow var(--transition), transform var(--transition);
}

.sketch-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 22px 2px #e6000099, 0 4px 24px #000a;
  transform: translateY(-6px) scale(1.02) rotate(-0.7deg);
}
.sketch-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;      /* consistent card height */
  overflow: hidden;
}

.sketch-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  filter: grayscale(8%) contrast(1.06);
  transition:
    opacity 0.6s ease-in-out,
    filter var(--transition),
    transform var(--transition);
}
.sketch-gallery img.active {
  opacity: 1;
}

.sketch-content {
  padding: 18px 18px 20px 18px;
}

.sketch-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.sketch-content p {
  font-size: 1.02rem;
  color: var(--quirk-color);
  margin-bottom: 1.1em;
}

/* Tags inside sketch items */

.sketch-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.sketch-tags li {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--secondary-color);
  background: rgba(0, 0, 0, 0.75);
}

/* Notes / current learning block */

.sketch-notes {
  padding: 60px 5vw 50px 5vw;
  background: var(--background-color);
}

.sketch-notes-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.sketch-notes h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.9em;
}

.sketch-notes p {
  font-size: 1.05rem;
  color: var(--quirk-color);
  margin-bottom: 0.7em;
}

/* Responsive tweaks */

@media (max-width: 650px) {
  .sketch-hero {
    padding: 60px 5vw 40px 5vw;
  }
  .sketch-hero h1 {
    font-size: 2.1rem;
  }
  .sketch p {
    font-size: 1rem;
  }
}


/* ===========================
   ABOUT SECTION (3-column layout)
   =========================== */

.about {
  padding: 80px 5vw 70px 5vw;
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

/* soft red glow behind the photo */
.about::before {
  content: "";
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(230,0,0,0.18) 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
}

/* faint diagonal texture on the right */
.about::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 10%;
  width: 520px;
  height: 520px;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 2px,
      transparent 4px,
      transparent 20px
    );
  opacity: 0.18;
  transform: rotate(3deg);
  pointer-events: none;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about h2 {
  text-align: center;
  font-size: 2.3rem;
  color: var(--primary-color);
  margin-bottom: 2.2rem;
}

/* main 3-column grid */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: flex-start;
}

/* LEFT: photo + facts */

/* ===========================
   ABOUT PHOTO BLOCK
   =========================== */

.about-photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* DEFAULT (circle) — kept for other pages if you ever use it again */
.about-photo {
  position: relative;
  display: inline-block;
  box-shadow: 0 8px 32px #0008;
  border-radius: 50%;
}

.about-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 24px #e6000066;
  transition:
    border var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    filter var(--transition);
  filter: grayscale(6%) contrast(1.08);
}

.about-photo:hover img {
  border-color: var(--primary-color);
  box-shadow: 0 0 32px 4px #e60000cc;
  filter: grayscale(0%) contrast(1.13) brightness(1.06);
  transform: scale(1.04) rotate(-1.5deg);
}

/* ===========================
   PORTRAIT: FLOATING IMAGE ONLY
   =========================== */

.about-photo.portrait {
  border-radius: 0 !important;
  overflow: hidden;
  width: 340px;           /* adjust size if needed */
  height: auto;
  padding: 0;
  background: none !important;   /* no card background */
  box-shadow: none !important;   /* removes the box */
}

/* main portrait image */
.about-photo.portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  
  /* remove old circle stuff */
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  
  /* START with subtle glow */
  filter: grayscale(4%) contrast(1.06);
  transition:
    transform 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.4s ease;
}

/* Hover glow (dual colour) */
.about-photo.portrait:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) brightness(1.06) contrast(1.12);

  /* this glow mimics your original circle glow but rectangular */
  box-shadow:
    0 0 22px 3px #ffffff55,
    0 0 40px 6px #e6000088;
}

/* ===================================
   QUICK FACTS (unchanged)
   =================================== */

.about-quickfacts {
  list-style: none;
  padding: 0.75rem 1rem 0.9rem;
  margin: 0;
  background: #202022;
  border-radius: 12px;
  box-shadow: 0 4px 16px #0009;
  border: 1px solid #303030;
  font-size: 0.98rem;
  color: var(--quirk-color);
}


.about-quickfacts li + li {
  margin-top: 0.25rem;
}

.about-quickfacts strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-color);
}

/* MIDDLE: main bio text */

.about-bio {
  max-width: 100%;
  font-size: 1.05rem;
  color: var(--quirk-color);
  line-height: 1.9;
}

.about-bio p {
  margin-bottom: 0.9rem;
}

/* RIGHT: timeline as grid of mini-cards */

.about-timeline-block {
  max-width: 100%;
}

.about-timeline-heading {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-heading);
  color: var(--secondary-color);
}

.about-timeline {
  margin-top: 0.4rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.about-timeline li {
  position: relative;
  background: #202024;
  border-radius: 10px;
  padding: 0.8rem 0.85rem 0.75rem;
  box-shadow: 0 4px 14px #0007;
  border: 1px solid #303030;
  overflow: hidden;
}

.about-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    rgba(230,0,0,0.1)
  );
}

.about-timeline-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary-color);
  margin-left: 0.7rem;
  margin-bottom: 0.2rem;
}

.about-timeline-text {
  display: block;
  font-size: 0.96rem;
  color: var(--quirk-color);
  margin-left: 0.7rem;
}

.about-timeline-aside {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===========================
   RESPONSIVE FOR ABOUT
   =========================== */

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    grid-template-areas:
      "photo bio"
      "timeline bio";
  }

  .about-photo-block { grid-area: photo; }
  .about-bio        { grid-area: bio; }
  .about-timeline-block { grid-area: timeline; }

  .about-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-photo img {
    width: 230px;
    height: 230px;
  }
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "bio"
      "timeline";
  }

  .about {
    padding: 60px 5vw 55px 5vw;
  }

  .about-photo-block {
    align-items: center;
  }

  .about-timeline {
    grid-template-columns: 1fr;
  }

  .about h2 {
    margin-bottom: 1.6rem;
  }
}


/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
  padding: 70px 5vw 50px 5vw;
  background: var(--accent-color);
}
.contact h2 {
  text-align: center;
  font-size: 2.1rem;
  color: var(--primary-color);
  margin-bottom: 1.3em;
}
.contact form {
  max-width: 540px;
  margin: 0 auto;
  background: #232323;
  border-radius: 10px;
  padding: 30px 22px 22px 22px;
  box-shadow: 0 2px 16px #0007;
}
.contact label {
  display: block;
  margin-bottom: 7px;
  font-size: 1.03em;
  letter-spacing: 0.01em;
  color: #fff;
}
.contact input,
.contact textarea {
  width: 100%;
  padding: 13px;
  margin-bottom: 22px;
  background: #202023;
  border: 1.7px solid #333;
  color: var(--secondary-color);
  font-size: 1.03em;
  border-radius: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px #e6000034;
}
.contact button, button, input[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 12px #000a;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact button:hover, button:hover, input[type="submit"]:hover {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 0 16px #e60000;
  transform: scale(1.06) translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  text-align: center;
  padding: 22px;
  background: #111;
  border-top: 2.5px solid var(--primary-color);
  font-size: 0.99em;
  color: #eee;
  margin-top: 0;
  letter-spacing: 0.02em;
  position: relative;
}
footer a, footer .social-icon img {
  filter: grayscale(100%);
  opacity: 0.87;
  transition: filter var(--transition), opacity var(--transition);
}
footer a:hover, footer .social-icon:hover img {
  filter: grayscale(0%) drop-shadow(0 0 10px #e60000);
  opacity: 1;
}
footer::after {
  /* Cheeky underline squiggle */
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #fff 60%, #e60000 100%);
  border-radius: 2px;
  margin: 18px auto 0 auto;
  opacity: 0.15;
}

/* Social links row */
.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.social-icon img {
  width: 40px; height: 40px;
  transition: transform var(--transition), filter var(--transition);
  border-radius: 50%;
}
.social-icon:hover img {
  transform: scale(1.13) rotate(-5deg);
  filter: drop-shadow(0 0 12px #e60000) brightness(1.09);
}
/* Container + background */
.site-footer {
  background: #101010;
  border-top: 2px solid var(--primary-color);
  padding: 2.5rem 0 1.5rem;
  color: #ddd;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3-column layout on desktop */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  flex: 1 1 0;
  min-width: 220px;
}

/* Headings */
.footer-col h4 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.9rem;
}

/* LEFT: nav – kill bullets, align left */
.footer-nav {
  text-align: left;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li {
  margin-top: 0.35rem;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--primary-color);
}

/* CENTRE: contact */
.footer-contact {
  text-align: center;
}

.footer-email {
  display: inline-block;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: color var(--transition), border-color var(--transition);
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.footer-contact-note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* RIGHT: socials */
.footer-social {
  text-align: right;
}

.footer-social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.footer-social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-social-icons .social-icon img {
  width: 20px;
  height: 20px;
}

.footer-social-icons .social-icon:hover,
.footer-social-icons .social-icon:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Meta + credit */
.footer-meta {
  text-align: center;
  padding: 1.1rem 0 0.9rem;
  line-height: 1.5;
}

.footer-business {
  opacity: 0.85;
}

.footer-legal {
  font-size: 0.9rem;
  opacity: 0.78;
}

.footer-legal a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--primary-color);
}

.footer-separator {
  margin: 0 0.35rem;
}

.footer-credit {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.76;
}

.footer-credit span {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Mobile: stack nicely */
@media (max-width: 800px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav,
  .footer-social {
    text-align: center;
  }

  .footer-social-icons {
    justify-content: center;
  }
}

/* ===========================
   GENERAL QUIRKINESS
   =========================== */

/* Tiny wiggle on portfolio badge hover */
.portfolio-item .quirky-badge:hover {
  animation: quirkyWiggle 0.4s linear infinite;
}
@keyframes quirkyWiggle {
  0% { transform: rotate(-2deg);}
  20% { transform: rotate(5deg);}
  50% { transform: rotate(-6deg);}
  80% { transform: rotate(2deg);}
  100% { transform: rotate(-2deg);}
}

/* Micro-hover wiggle for ALL buttons, because why not */
button:hover, .contact button:hover, input[type="submit"]:hover {
  animation: btnWiggle 0.36s linear 1;
}
@keyframes btnWiggle {
  0% { transform: scale(1.04) rotate(-1deg);}
  15% { transform: scale(1.1) rotate(1deg);}
  40% { transform: scale(1.06) rotate(-2deg);}
  70% { transform: scale(1.09) rotate(1.5deg);}
  100% { transform: scale(1.04) rotate(-1deg);}
}

/* Subtle float for feature portfolio cards */
.portfolio-item.featured {
  animation: featureFloat 3.7s ease-in-out infinite alternate;
}
@keyframes featureFloat {
  0% { transform: translateY(-8px) scale(1.04) rotate(-1.7deg);}
  60% { transform: translateY(2px) scale(1.03) rotate(1.1deg);}
  100% { transform: translateY(-7px) scale(1.045) rotate(-2.2deg);}
}

/* ===========================
   RESPONSIVE - Must stay pretty on mobile!
   =========================== */
@media (max-width: 900px) {
  .header-container { padding: 0 5vw;}
  .about-container { flex-direction: column; gap: 34px;}
  .about-photo img { width: 220px; height: 220px;}
}
@media (max-width: 650px) {
  .portfolio, .about, .contact { padding: 40px 3vw;}
  .hero { padding: 60px 5vw 50px 5vw;}
  .portfolio-grid { gap: 16px;}
  .about-photo img { width: 140px; height: 140px;}
  h1, h2 { font-size: 1.4em !important; }
}

/* ===========================
   FIN
   =========================== */
