:root{
  --bg:#0b0b0c;
  --fg:#f2f2f2;
  --muted:#a4a4a7;
  --card:#141416;
  --card-border:#26262a;
  --accent:#ffffff;
  --ring: rgba(255,255,255,0.18);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 22px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--fg);
  background: var(--bg);
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background gradient vibes */
.bg-gradients{
  position:fixed; inset:0; pointer-events:none; z-index:-1;
}
.bg-gradients__layer{
  position:absolute; inset:0;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(59,130,246,0.15), transparent),
    radial-gradient(800px 400px at 90% 10%, rgba(236,72,153,0.15), transparent),
    radial-gradient(600px 300px at 50% 110%, rgba(34,197,94,0.12), transparent);
}
.bg-gradients__mask{
  position:absolute; inset:0; opacity:.4;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 70%);
          mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.container{
  max-width: 1120px;
  margin-inline:auto;
  padding: 0 16px;
}

.muted{ color:var(--muted); }
.lead{ color:#d7d7db; font-size:1.05rem; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(8px);
  background: rgba(11,11,12,0.6);
  border-bottom: 1px solid #1f1f23;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
}
.brand{
  color:var(--fg); text-decoration:none; font-weight:600; letter-spacing:.2px;
}
.nav a{
  color:#d1d1d6; text-decoration:none; margin-left:22px; font-size:.95rem;
}
.nav a:hover{ color:#fff; }

/* Hero */
.hero{ padding: 72px 0 48px; }
.hero-inner{
  display:grid; gap:28px; align-items:center;
  grid-template-columns: 1fr;
}


@media(min-width:900px){
  .hero-inner{ grid-template-columns: 1.1fr .9fr; gap:48px; }
}
.hero h1{
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height:1.1; margin:0 0 8px; font-weight:700;
}
.sub{ color:#c9c9cf; max-width: 52ch; }
.cta-row{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius: 16px; font-weight:600;
  text-decoration:none; border:1px solid transparent; transition: .2s ease;
}
.btn-primary{
  background:#fff; color:#111;
}
.btn-primary:hover{ filter:brightness(.95); }
.btn-ghost{
  color:#e6e6eb; border-color:#2a2a2e; background:transparent;
}
.btn-ghost:hover{ background:#1a1a1d; }

/* Showreel card */
.card{
  background:linear-gradient(0deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) , var(--card);
  border:1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.showreel{ padding: 14px; }
.showreel__meta{
  display:flex; align-items:center; justify-content:space-between;
  font-size:.9rem; color:#dcdce1; padding:4px 6px 8px;
}
.video-wrap{
  position:relative; width:100%; aspect-ratio: 16 / 9; background:black; border-radius: 14px; overflow:hidden;
}
.video-wrap iframe{ width:100%; height:100%; border:0; display:block; border-radius:14px; margin:0; }

/* Sections */
.section{ padding: 56px 0; }
.section-head{ margin-bottom: 18px; }
.section h2{
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin:0 0 6px;
}

.feature-list li.my-contribution {
  
  color: var(--accent); /* This changes it from blue to white */
  font-weight: 600;

}

/* Project grid */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns: repeat(1, minmax(0,1fr));
}
@media(min-width:700px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media(min-width:1040px){
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Card link (whole-card clickable, accessible) */
.card-link{
  position:relative; display:flex; flex-direction:column; text-decoration:none; color:inherit;
  outline: none;
}
.card-link:focus-visible{
  box-shadow: 0 0 0 3px var(--ring);
}
.card-link:hover{ transform: translateY(-3px); transition: transform .18s ease; }

/* Card media/body */
.card-media{
  overflow:hidden; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}
.card-media img{
  width:100%; height: 180px; object-fit:cover; display:block;
}
@media(min-width:700px){
  .card-media img{ height: 200px; }
}
.card-body{ padding: 12px 14px 16px; }
.card-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.card-top h3{ margin: 0; font-size:1.05rem; }
.year{ font-size:.8rem; color:var(--muted); }
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tags span{
  border:1px solid #2a2a2e; border-radius:10px; padding:4px 8px; font-size:.78rem; color:#dddde3;
}

/* About */
.about-grid{
  display:grid; gap:22px;
  grid-template-columns: 1fr;
}
@media(min-width:900px){
  .about-grid{ grid-template-columns: 1.1fr .9fr; }
}
.timeline{ padding: 16px; }
.timeline h3{ margin:0 0 8px; }
.timeline ol{ margin:0; padding-left: 16px; color:#d7d7dc; }
.timeline li{ margin-bottom:8px; }

/* Contact */
.contact-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }

/* Footer */
.site-footer{
  border-top:1px solid #1f1f23; padding:18px 0; margin-top:20px;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:.92rem;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .card-link:hover{ transform:none; }
}


.hero .btn-primary {
  padding: 12px 24px;
  font-size: 1.05rem;

}



.card-media {
  position: relative; 
}

/* The injected video iframe */
.card-video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 10;
  background: #000; /* Prevents white flash while loading */
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  
  /* CRITICAL: This allows the user to click "through" the video 
     to open the project link. Without this, clicking interacts with YouTube. */
  pointer-events: none; 
  
  /* Fade in animation */
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}