:root {
  --bg: #070a12;
  --card: rgba(255, 255, 255, .06);
  --card2: rgba(255, 255, 255, .08);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .65);
  --border: rgba(255, 255, 255, .12);
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius2: 24px;
  --max: 1080px;
  --accent: 255, 255, 255;
}

[data-theme="light"] {
  --bg: #f7f8fb;
  --card: rgba(0, 0, 0, .04);
  --card2: rgba(0, 0, 0, .06);
  --text: rgba(0, 0, 0, .9);
  --muted: rgba(0, 0, 0, .6);
  --border: rgba(0, 0, 0, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .12);
  --accent: 0, 0, 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .9; }

/* --- BACKGROUND --- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .25;
  filter: blur(.2px);
}
[data-theme="light"] .grid {
  opacity: .18;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .08) 1px, transparent 1px);
}
.blob {
  position: absolute; width: 520px; height: 520px;
  border-radius: 50%; filter: blur(70px); opacity: .35;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 60%);
  animation: float 12s ease-in-out infinite;
}
.blob-a { top: -120px; left: -120px; }
.blob-b { bottom: -180px; right: -120px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.06); }
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero, .section, .marquee-section {
  width: 100%;
}

/* --- HEADER --- */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.lightbox-open .header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .2px; }
.dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(var(--accent), .9);
  box-shadow: 0 0 0 6px rgba(var(--accent), .12);
}
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { padding: 8px 10px; border-radius: 12px; color: var(--muted); font-size: 14px; }
.nav a:hover { background: var(--card); color: var(--text); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 6px; padding: 5px; z-index: 110;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background-color: var(--text); border-radius: 2px; transition: 0.3s;
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed; top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: color-mix(in srgb, var(--bg) 10%, black);
    border-left: 1px solid var(--border);
    flex-direction: column; padding: 80px 20px 20px; gap: 10px;
    transition: 0.3s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100; backdrop-filter: blur(15px); align-items: flex-start;
  }
  [data-theme="light"] .nav {
    background: #edf0f7;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  }
  [data-theme="light"] .nav a,
  [data-theme="light"] .nav button {
    color: #111827 !important;
  }
  .nav.active { right: 0; }
  .nav a { width: 100%; padding: 12px; font-size: 16px; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

.btn {
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text); cursor: pointer;
}
.btn-primary { background: rgba(var(--accent), .92); color: var(--bg); border-color: rgba(var(--accent), .8); }
.btn-ghost { background: var(--card); }
.btn:active { transform: translateY(1px); }
.icon { font-size: 16px; line-height: 1; }

/* --- HERO --- */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { margin: 0 0 10px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.title { margin: 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -0.03em; }
.subtitle { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 56ch; }
.cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.meta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); max-width: 100%; min-width: 0; overflow: hidden; }
.copy { padding: 6px 10px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.copy:hover { background: var(--card2); }
.links { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--muted); }
.chip:hover { color: var(--text); background: var(--card2); }

/* --- MARQUEE --- */
.marquee-section {
  width: 100%; overflow: hidden; background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 12px 0; margin-top: 40px; white-space: nowrap; position: relative;
}
.marquee-content {
  display: inline-block; animation: scrollText 25s linear infinite;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
}
.marquee-content span { margin: 0 15px; }
.marquee-content .dot { color: rgba(var(--accent), 0.3); }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); box-shadow: var(--shadow); padding: 18px; }
.hero-right { display: flex; flex-direction: column; gap: 12px; }
.profile { display: flex; gap: 14px; align-items: center; }
.avatar { width: 76px; height: 76px; flex-shrink: 0; border-radius: 22px; position: relative; background: rgba(var(--accent), .08); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.ring { position: absolute; inset: -20px; background: radial-gradient(circle at 30% 30%, rgba(var(--accent), .28), transparent 60%); transform: rotate(18deg); }
.face { position: relative; font-weight: 800; letter-spacing: -0.03em; font-size: 22px; }
.profile-text { flex: 1; min-width: 0; }
.profile-text h2 { margin: 0; font-size: 16px; }
.stats { margin-top: 12px; display: flex; gap: 8px; }
.stat { flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--card2); border-radius: 16px; padding: 10px 6px; text-align: center; }
.statNum { font-weight: 800; font-size: 18px; }
.statLabel { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.3; word-break: break-word; }
.mini { padding: 14px 16px; }
.miniRow { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; gap: 8px; flex-wrap: wrap; }
.miniRow strong { word-break: break-word; min-width: 0; }
.badge { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: #78ca72; font-weight: 700; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 600px) {
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile-text { width: 100%; text-align: center; }
  .stat { padding: 8px 2px; }
  .statNum { font-size: 15px; }
  .statLabel { font-size: 10px; }
  .miniRow { flex-direction: column; align-items: flex-start; gap: 2px; }
  .miniRow:first-child { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .subtitle { max-width: 100%; }
  .pill { flex-wrap: wrap; }
  #emailText { word-break: break-all; min-width: 0; flex: 1; font-size: 13px; }
}

.section { margin-top: 56px; }
.sectionHead { margin-bottom: 14px; }
.sectionHead h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 920px) { .grid2 { grid-template-columns: 1fr; } }
.bullets { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li { margin: 8px 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { border: 1px solid var(--border); background: var(--card2); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; } }

.projectTop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.projectLinks { display: flex; gap: 10px; }
.projectLinks a { color: var(--muted); padding: 6px 8px; border-radius: 12px; border: 1px solid transparent; }
.projectLinks a:hover { color: var(--text); border-color: var(--border); background: var(--card2); }

.contact { padding: 18px; }
.contactRow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.contactEmail { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; margin-top: 4px; }
.contactBtns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toast {
  position: fixed !important;
  /* Positions relative to the bottom of the visible screen */
  top: auto !important;
  bottom: 10% !important; 
  left: 50vw !important;
  
  /* translate uses the toast's own width/height to center itself */
  transform: translate(-50%, 20px) !important;
  
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 2147483647 !important; /* Maximum possible z-index */
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin: 0 !important;
}

.toast.show {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

/* Top variant — used when copying from the hero section */
.toast.toast--top {
  top: 80px !important;
  bottom: auto !important;
  transform: translate(-50%, -20px) !important;
}
.toast.toast--top.show {
  transform: translate(-50%, 0) !important;
}
.footer { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: center; }
.rowBetween { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.subhead { margin: 16px 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }


/* ------------------------------------- */
/* PHOTOGRAPHY (SCATTERED POLAROID)      */
/* ------------------------------------- */
.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;        /* Spacing for scatter */
  padding: 60px 0;  /* Extra breathing room */
  perspective: 1000px;
}

.shot {
  background: #fff; /* White Polaroid paper */
  padding: 12px 12px 50px 12px; /* Extra bottom padding for text */
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  width: 380px;     /* Fixed width */
  margin: 0;        /* Reset margin from old css */
  border: none;     /* Reset border from old css */
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  cursor: pointer;
  color: #222;      /* Dark text for the caption */
}

.shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  border-radius: 2px;
}

.shot figcaption {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  text-align: center;
  padding-bottom: 15px;
  font-weight: 600;
  font-size: 14px;
  color: #444; 
  letter-spacing: -0.01em;
}

/* Scatter Effect */
.shot:nth-child(odd) { transform: rotate(-3deg); }
.shot:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.shot:nth-child(3n) { transform: rotate(-5deg) translateX(-5px); }

/* Hover Effect (Lifts Up) */
.shot:hover {
  transform: scale(1.1) rotate(0deg) translateZ(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 10;
}

[data-theme="light"] .shot {
  background: #fdfdfd;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- TIMELINE --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Little more breathing room */
  position: relative;
}

/* The vertical grey line running down the middle */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  /* 120px column width + 6px (half of 12px gap) = 126px */
  left: 126px; 
  width: 1px;
  background: var(--border);
}

.titem {
  display: grid;
  /* 120px for year, 12px gap, rest for card */
  grid-template-columns: 120px 1fr;
  gap: 12px;
  /* THIS IS THE FIX: Centers the year vertically against the card */
  align-items: center; 
  position: relative;
}

.tyear {
  font-weight: 700;
  color: var(--muted);
  /* Push text to the right so it's close to the dot */
  text-align: right; 
  font-size: 14px;
  letter-spacing: -0.01em;
  position: relative;
  /* Ensure text doesn't touch the dot */
  padding-right: 15px; 
}

/* The Dot on the timeline */
.tyear::after {
  content: '';
  position: absolute;
  top: 50%;
  /* Positions the dot perfectly on the line */
  right: -11px; 
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: rgba(var(--accent), 1); /* Uses your theme accent color */
  border-radius: 50%;
  /* Creates a 'cutout' effect around the dot */
  box-shadow: 0 0 0 4px var(--bg); 
  z-index: 2;
}

.tcard {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 12px 14px;
  transition: transform 0.2s ease;
}

.tcard:hover {
  transform: translateX(4px);
  background: var(--card2);
}

.tTitle { 
  font-weight: 700; 
  margin-bottom: 4px; 
}

.card--row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 700px) {
  /* Hide the line and dots on small screens for a cleaner look */
  .timeline::before { display: none; }
  .tyear::after { display: none; }
  
  .titem { 
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 4px; 
  }
  
  .tyear { 
    text-align: left; 
    padding-right: 0;
    margin-bottom: 2px;
  }
}

/* --- 3D COIN ANIMATION --- */
.coin-scene {
  width: 100%; height: 260px;
  display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
  overflow: hidden;
  margin-bottom: 12px;
}
.coin-ring {
  position: relative; width: 100px; height: 100px;
  transform-style: preserve-3d;
  animation: spinRing 24s infinite linear;
}
@keyframes spinRing {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.coin {
  position: absolute; width: 110px; height: 110px;
  left: -5px; top: -5px;
  transform-style: preserve-3d;
}
.coin-face {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.05);
  backface-visibility: visible;
  overflow: hidden;
}
.coin-face img { width: 80%; height: 80%; object-fit: contain; pointer-events: none; }
[data-theme="light"] .coin-face {
  border-color: rgba(0,0,0,0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- PROJECT FILTER & SLIDER --- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 13px;
  transition: all 0.2s;
}
.filter-btn:hover { background: var(--card2); color: var(--text); }
.filter-btn.active { background: rgba(var(--accent), 0.9); color: var(--bg); border-color: transparent; }

.slider-container { display: flex; align-items: center; gap: 12px; position: relative; overflow: visible; }
.slider-fade { display: none; }
.slider-track {
  display: flex; gap: 14px; overflow-x: auto;
  width: 100%;
  padding: 0px;
  border-radius: 24px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .card { min-width: calc((100% - 28px) / 3); }
@media (max-width: 900px) { .slider-track .card { min-width: calc((100% - 14px) / 2); } }
@media (max-width: 768px) { .slider-track .card { min-width: 100%; } }

.slider-arrow {
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: 0.2s;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
}
.slider-arrow.prev { left: -56px; }
.slider-arrow.next { right: -56px; }
@media (max-width: 768px) {
  .slider-arrow.prev { left: -10px; }
  .slider-arrow.next { right: -10px; }
}
.slider-arrow:hover { background: var(--card); transform: translateY(-50%) scale(1.1); }
.hidden-project { display: none !important; }

/* ========================================= */
/* PHOTOGRAPHY SECTION (Vertical Mosaic)     */
/* ========================================= */

.photo-grid {
  display: grid;
  /* Switch to 3 columns to accommodate vertical images better */
  grid-template-columns: repeat(3, 1fr);
  /* Fixed row height */
  grid-auto-rows: 240px;
  gap: 16px;
  padding: 20px 0;
}

.photo-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  transition: transform 0.3s ease;
}

/* Hover Effect */
.photo-card:hover {
  transform: scale(1.02) translateY(-4px); /* Fixed syntax error */
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- COLLAGE SIZES --- */

/* Tall: Perfect for your vertical phone shots */
/* Spans 1 column wide, but 2 rows high */
.photo-card.tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* Wide: (Optional) Spans 2 cols, 1 row */
.photo-card.wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* Image Fit */
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures no empty space */
  display: block;
  transition: transform 0.5s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

/* Caption Overlay */
.photo-card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.photo-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */

@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    grid-auto-rows: 220px;
  }
  
  /* On tablet, 'tall' cards span 2 rows? 
     Let's reset them to flow naturally or keep them tall if they fit. */
}

@media (max-width: 600px) {
  .photo-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .photo-card {
    height: 300px; /* Give them plenty of height on mobile */
  }
}

.theme-logo-light { display: none !important; }
.theme-logo-dark { display: block !important; }

[data-theme="light"] .theme-logo-light { display: block !important; }
[data-theme="light"] .theme-logo-dark { display: none !important; }

/* ========================================= */
/* LIGHTBOX (FULLSCREEN VIEW)                */
/* ========================================= */

/* ========================================= */
/* LIGHTBOX (FULLSCREEN VIEW)                */
/* ========================================= */

.lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;      /* Fallback for older browsers */
  height: 100dvh;     /* Modern mobile viewport height */
  background-color: rgba(0, 0, 0, 0.95); /* Slightly darker for better contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;      /* Prevents image from touching edges */
  box-sizing: border-box;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  /* Use viewport units to ensure it fits on mobile screens */
  max-width: 100%;
  max-height: 85vh; 
  object-fit: contain;
  /* Visual lift */
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
  /* Fix: Remove margin: auto and let flexbox handle centering */
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0,0,0,0.2); /* Slight background to make it visible on bright images */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

#lightbox-close:hover {
  color: var(--primary);
}

/* ========================================= */
/* THEME LOGO SWAP                           */
/* ========================================= */

/* Default state (Dark Mode) */
.theme-logo-light {
  display: none;
}
.theme-logo-dark {
  display: block;
}

/* Light Mode state */
[data-theme="light"] .theme-logo-light {
  display: block;
}
[data-theme="light"] .theme-logo-dark {
  display: none;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS FIXES               */
/* ========================================= */

@media (max-width: 768px) {
  /* 1. Stack Education/Research cards vertically */
  .card--row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px;
  }
  .card--row h3 {
    flex-direction: column !important; /* Stack Logo on top of Text */
    align-items: center !important;    /* Center align everything */
    text-align: center !important;     /* Center the text */
    gap: 12px !important;              /* Add space between logo and text */
  }

  /* Ensures the logo doesn't get distorted */
  .card--row h3 img {
    margin: 0 !important;
  }

  /* 2. Reset widths for the inner divs so they fill the screen */
  .card--row > div {
    width: 100%;
    padding-right: 0 !important; /* Removes the inline padding you had */
  }

  /* 3. Make images responsive and centered */
  .card--row img {
    width: 100% !important;   /* Overrides inline width="200px" */
    max-width: 100%;          /* Ensures it doesn't overflow */
    height: auto !important;
    display: block;
    margin: 10px auto 0;      /* Centers the image */
    border-radius: 12px;
  }

  /* 4. Fix "Title to one side" issue by ensuring no horizontal overflow */
  .container {
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden; /* Cuts off any rogue elements pushing width */
  }
  
  /* 5. Adjust Project Slider Card width for mobile */
  .slider-track .card {
    /* Show 1 full card + a tiny peek of the next one (optional) */
    min-width: 100% !important; 
  }
}
/* =========================================
   CONTENT PROTECTION
   ========================================= */

/* Block text selection everywhere except inputs/buttons */
body, p, h1, h2, h3, h4, h5, h6, span, li, a, div, section, article, figcaption {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Keep interactive elements fully functional */
input, textarea, button, select, [role="button"], .btn, .copy, .filter-btn, .slider-arrow, .nav-link {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
}

/* Block image dragging */
img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Re-enable pointer events on interactive images (lightbox) */
.photo-card img, .shot img {
  pointer-events: none;
}

/* Block text dragging */
* {
  -webkit-user-drag: none;
}