@font-face {
  font-family: 'MotorolaScreentype';
  src: url('https://olliware.dev/assets/fonts/motorola-screentype.woff2') format('woff2'),
       url('https://olliware.dev/assets/fonts/motorola-screentype.woff') format('woff'),
       url('https://olliware.dev/assets/fonts/motorola-screentype.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #000000;
  --text-main: #ffffff;
  --text-muted: #cccccc;
  
  --accent-orange: #ff5e3a;
  --accent-blue: #3a8eff;
  --accent-green: #3aff8b;
  --accent-purple: #bd3aff;
  --accent-pink: #ff3a85;

  --hue-1: 200;
  --hue-2: 30;
  --hue-3: 150;
  --hue-4: 280;
  
  --x-1: -10vw; --y-1: -10vw;
  --x-2: 60vw;  --y-2: 60vh;
  --x-3: 30vw;  --y-3: 20vh;
  --x-4: 80vw;  --y-4: 10vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
  position: relative;
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.ambient-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, #000000 100%);
    z-index: 1;
    pointer-events: none;
}

.blob-cont {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(100px); 
    opacity: 0.5;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    mix-blend-mode: hard-light; 
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: hsl(var(--hue-1), 60%, 40%);
    width: 70vw;
    height: 70vw;
    left: var(--x-1);
    top: var(--y-1);
    animation-duration: 34s;
    animation-delay: -5s;
}

.blob-2 {
    background: hsl(var(--hue-2), 60%, 40%);
    width: 80vw;
    height: 80vw;
    left: var(--x-2);
    top: var(--y-2);
    animation-duration: 40s;
    animation-delay: -10s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    background: hsl(var(--hue-3), 60%, 35%);
    width: 60vw;
    height: 60vw;
    left: var(--x-3);
    top: var(--y-3);
    animation-duration: 28s;
}

.blob-4 {
    background: hsl(var(--hue-4), 60%, 35%);
    width: 50vw;
    height: 50vw;
    left: var(--x-4);
    top: var(--y-4);
    animation-duration: 32s;
    animation-delay: -7s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    33% {
        transform: translate(10vw, -10vh) rotate(50deg) scale(1.1);
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }
    66% {
        transform: translate(-10vw, 20vh) rotate(120deg) scale(0.9);
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
    100% {
        transform: translate(5vw, 10vh) rotate(200deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header {
  margin-bottom: 40px;
  padding-left: 5px;
  background: radial-gradient(at top left, rgba(0,0,0,0.6), transparent);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(2px);
}

header h1 {
  font-family: 'MotorolaScreentype', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.back-link:hover {
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: block;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.8;
  z-index: 1;
}

.card:hover .card-bg {
  transform: scale(1.05);
  opacity: 0.6; 
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.1) 0%,
    rgba(5, 5, 5, 0.6) 50%,
    rgba(5, 5, 5, 0.95) 100%
  );
  z-index: 2;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 3;
}

.card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.8;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.card h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  z-index: 4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::after {
  transform: scaleX(1);
}