/* Blog Archive Intro Section */
.blog-archive-intro {
  text-align: center;
  margin-bottom: 2.2rem;
}
.blog-archive-subtitle {
  color: #aaa;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
  opacity: 0.85;
}
.blog-archive-count {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

/* Blog Archive Meta and Tags */
.blog-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em 1.2em;
  align-items: center;
  margin-bottom: 0.5em;
}
.blog-tags {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
}
.blog-tag {
  background: rgba(0,255,127,0.13);
  color: var(--accent);
  font-size: 0.98em;
  font-weight: 500;
  padding: 0.18em 0.8em;
  border-radius: 1em;
  margin-right: 0.1em;
  margin-bottom: 0.1em;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 8px #00FF7F22;
  border: 1px solid rgba(0,255,127,0.18);
  transition: background 0.18s, color 0.18s;
  cursor: default;
}
.blog-tag:nth-child(1) {
  background: rgba(0,255,127,0.13);
  color: #00FF7F;
  border-color: rgba(0,255,127,0.18);
}
.blog-tag:nth-child(2) {
  background: rgba(0,207,255,0.13);
  color: #00CFFF;
  border-color: rgba(0,207,255,0.18);
}
.blog-tag:nth-child(3) {
  background: rgba(255,207,0,0.13);
  color: #FFD700;
  border-color: rgba(255,207,0,0.18);
}
.blog-tag:nth-child(4) {
  background: rgba(255,80,80,0.13);
  color: #FF5050;
  border-color: rgba(255,80,80,0.18);
}
.blog-tag:nth-child(5) {
  background: rgba(180,80,255,0.13);
  color: #B450FF;
  border-color: rgba(180,80,255,0.18);
}
.blog-tag:hover {
  filter: brightness(1.15) saturate(1.2);
  color: #000;
}
.blog-tag:nth-child(1):hover {
  background: #00FF7F;
  color: #000;
  box-shadow: 0 2px 12px #00FF7F55;
}
.blog-tag:nth-child(2):hover {
  background: #00CFFF;
  color: #000;
  box-shadow: 0 2px 12px #00CFFF55;
}
.blog-tag:nth-child(3):hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 2px 12px #FFD70055;
}
.blog-tag:nth-child(4):hover {
  background: #FF5050;
  color: #fff;
  box-shadow: 0 2px 12px #FF505055;
}
.blog-tag:nth-child(5):hover {
  background: #B450FF;
  color: #fff;
  box-shadow: 0 2px 12px #B450FF55;
}
/* --- Showcase Masonry Grid & Creative Effects --- */
.showcase-section {
  padding: 4rem 3vw 2rem 3vw;
  background: #000;
  min-height: 100vh;
  max-width: 1300px;
  margin: 0 auto;
}
.showcase-title {
  color: var(--accent);
  font-size: 4rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  filter: drop-shadow(0 8px 48px #00FF7F22);
  animation: fadeInUp 1.2s cubic-bezier(.4,2,.6,1) both;
}
.showcase-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.showcase-card {
  position: relative;
  display: block;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 48px #00FF7F22, 0 0 0 2px rgba(0,255,127,0.10);
  background: rgba(24,32,32,0.18);
  transition: transform 0.38s cubic-bezier(.77,.2,.32,1.01), box-shadow 0.38s cubic-bezier(.77,.2,.32,1.01);
  will-change: transform, box-shadow;
  cursor: pointer;
  animation: showcaseCardFadeIn 1.2s cubic-bezier(.4,2,.6,1) both;
}
.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 1.2rem;
  transition: filter 0.32s cubic-bezier(.77,.2,.32,1.01), transform 0.32s cubic-bezier(.77,.2,.32,1.01);
  will-change: filter, transform;
}
.showcase-card:hover,
.showcase-card:focus {
  transform: scale(1.06) rotate(-1.5deg) translateY(-8px);
  box-shadow: 0 16px 64px #00FF7F55, 0 0 0 3px var(--accent);
  z-index: 2;
}
.showcase-card:hover img,
.showcase-card:focus img {
  filter: brightness(1.08) saturate(1.2) blur(2px);
  transform: scale(1.04) rotate(1.5deg);
}
.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 1.2rem;
  background: linear-gradient(120deg, rgba(0,255,127,0.10) 0%, rgba(0,207,255,0.10) 100%);
  opacity: 0.7;
  transition: opacity 0.32s cubic-bezier(.77,.2,.32,1.01);
  z-index: 1;
}
.showcase-card:hover::after,
.showcase-card:focus::after {
  opacity: 1;
}
@keyframes showcaseCardFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .showcase-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  .showcase-masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 0 1vw;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .showcase-masonry-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0 0.5vw;
  }
  .showcase-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

.showcase-hero-glass {
  background: radial-gradient(circle at 20% 20%, rgba(0,255,127,0.12), rgba(0,0,0,0.9)) border-box;
  border: 1.5px solid rgba(0,255,127,0.28);
  border-radius: 1.8rem;
  padding: 2.6rem 2.4rem;
  box-shadow: 0 18px 60px rgba(0,0,0,0.85), 0 0 36px rgba(0,255,127,0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  text-align: center;
  margin: 0 auto 2.8rem auto;
}
.showcase-kicker {
  color: #c9fff0;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.showcase-lede {
  color: #f5fff9;
  opacity: 0.85;
  font-size: 1.25rem;
  max-width: 760px;
  margin: 0.8rem auto 0 auto;
}

.showcase-journey {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin: 0 auto;
}
.story-step {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: radial-gradient(circle at 10% 10%, rgba(0,255,127,0.08), rgba(0,0,0,0.92)) border-box;
  border: 1.2px solid rgba(0,255,127,0.22);
  border-radius: 1.6rem;
  padding: 1.8rem;
  box-shadow: 0 14px 48px rgba(0,0,0,0.8), 0 0 24px rgba(0,255,127,0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.story-step.flip {
  grid-template-columns: 0.9fr 1.1fr;
}
.story-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  box-shadow: 0 12px 38px rgba(0,0,0,0.8), 0 0 0 2px rgba(0,255,127,0.12);
}
.story-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,255,127,0.14), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.story-media:hover::after,
.story-media:focus-within::after {
  opacity: 0.8;
}
.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.2rem;
}
.story-copy {
  color: #f2fff8;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.story-tag {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bfbd8;
}
.story-copy h2 {
  color: var(--accent);
  font-size: 2rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.story-copy p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

@media (max-width: 1000px) {
  .story-step,
  .story-step.flip {
    grid-template-columns: 1fr;
  }
  .story-media {
    order: -1;
  }
}

@media (max-width: 700px) {
  .showcase-hero-glass {
    padding: 1.8rem 1.4rem;
  }
  .showcase-journey {
    gap: 1.6rem;
  }
  .story-step {
    padding: 1.2rem;
    gap: 1.2rem;
  }
  .story-copy h2 {
    font-size: 1.5rem;
  }
  .showcase-lede {
    font-size: 1.05rem;
  }
}
/* Portfolio Gallery Images: fit inside grid cell, not full width */
#portfolioGallery.gallery-grid img,
.gallery-grid#portfolioGallery img,
.gallery-grid img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}
/* Liquid glass hover effect for portfolio items */
.gallery-img-wrapper {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,0,0,0.45);
  transition: transform 0.28s cubic-bezier(.77,.2,.32,1.01), box-shadow 0.28s cubic-bezier(.77,.2,.32,1.01);
}
.gallery-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 0.8rem;
  background: linear-gradient(120deg, rgba(0,255,127,0.22) 0%, rgba(0,207,255,0.18) 100%);
  box-shadow: inset 0 0 0 2px rgba(0,255,127,0.38), 0 12px 36px #00FF7F33;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.28s cubic-bezier(.77,.2,.32,1.01);
}
.gallery-img-wrapper img {
  position: relative;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(.77,.2,.32,1.01), filter 0.28s cubic-bezier(.77,.2,.32,1.01);
}
.gallery-img-wrapper:hover,
.gallery-img-wrapper:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 54px #00FF7F44, 0 0 0 2px rgba(0,255,127,0.35);
}
.gallery-img-wrapper:hover::after,
.gallery-img-wrapper:focus-within::after {
  opacity: 1;
}
.gallery-img-wrapper:hover img,
.gallery-img-wrapper:focus-within img {
  filter: brightness(1.12) saturate(1.15) blur(2px);
  transform: scale(1.035);
}
.gallery-img-title {
  text-align: center;
  color: #b0ffda;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}
/* --- Portfolio Gallery Cinematic Grid --- */
#portfolioGallery.gallery-grid, .gallery-grid#portfolioGallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  width: 100%;
  max-width: 1400px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
/* Make category containers transparent to the grid so inner images become grid items */
.gallery-grid .gallery-category {
  display: contents;
}
@media (max-width: 900px) {
  #portfolioGallery.gallery-grid, .gallery-grid#portfolioGallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
    padding: 0 1vw;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  #portfolioGallery.gallery-grid, .gallery-grid#portfolioGallery {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    padding: 0 0.5vw;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #000;
  color: #fff;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
}

:root {
  --accent: #00FF7F;
}


/* --- Hamburger Menu Styles --- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(18, 24, 22, 0.62);
  box-shadow:
    0 8px 32px 0 rgba(0,255,127,0.08),
    0 1.5px 32px #00FF7F22,
    0 0 0 2px rgba(0,255,127,0.10);
  backdrop-filter: blur(18px) saturate(1.3) brightness(1.08) contrast(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.3) brightness(1.08) contrast(1.08);
  border-bottom: 1.5px solid rgba(0,255,127,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3vw;
  z-index: 100;
}
.logo {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: right 0.3s cubic-bezier(.77,.2,.32,1.01);
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.77,.2,.32,1.01);
}

@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100vw;
    height: 100vh;
    width: 70vw;
    max-width: 340px;
    background: rgba(0,0,0,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: -8px 0 32px #00FF7F22;
    transition: right 0.35s cubic-bezier(.77,.2,.32,1.01);
    z-index: 150;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    font-size: 1.2rem;
    color: #fff;
    padding: 0.7rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,255,127,0.08);
  }
}

/* Hamburger animation (X) */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Starry background styles */
.star-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* put behind the hero so hero background is visible */
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  will-change: transform;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 6px 2px #fff, 0 0 12px 4px #fff2;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
}
/* Remove global z-index for all content except overlays and navbar */
body > *:not(.star-bg):not(.navbar):not(.lightbox):not(.lightbox-overlay) {
  position: relative;
  z-index: auto;
}

.navbar {
  z-index: 100;
}
.lightbox, .lightbox-overlay {
  z-index: 9999;
}

.hero-section {
  /* reduce enormous height so background is visible without large scroll */
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Use Cloudinary-hosted hero background */
  background-image: url('https://res.cloudinary.com/duugpqtue/image/upload/v1766351140/Background_tt0ooh.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000;
  position: relative;
  /* make hero above star-bg so its background image is visible */
  z-index: 1;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* overlay should sit above the background but below content */
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
  rgba(0,0,0,0.44) 0%,
  rgba(0,0,0,0.32) 5%,
  rgba(0,0,0,0.22) 30%,
  rgba(0,0,0,0.12) 80%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(.77,.2,.32,1.01);
}

.hero-melt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.75) 80%,
    rgba(0,0,0,1) 100%
  );
  filter: blur(18px) brightness(1.08) saturate(1.1);
  opacity: 0.96;
  transition: opacity 0.7s cubic-bezier(.77,.2,.32,1.01);
}

@media (max-width: 700px) {
  .hero-melt {
    height: 64px;
    filter: blur(12px) brightness(1.05) saturate(1.05);
  }
}
.hero-glass {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  max-width: unset;
  margin: 0;
  position: static;
  overflow: visible;
  animation: none;
}
.hero-glass::before {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
.hero-content {
  text-align: center;
  z-index: 2;
}
.hero-content h1 {
  font-size: 7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  /* remove huge negative offset that pushes content off-screen */
  margin-top: 0;
  font-weight: 900;
  text-shadow: 0 0 32px #00FF7F66;
  animation: heroTitleFade 1.5s 0.2s cubic-bezier(.4,2,.6,1) both;
}
@keyframes heroTitleFade {
  0% { opacity: 0; transform: translateY(40px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}
.hero-content p {
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 2rem;
  animation: heroTextFade 1.5s 0.5s cubic-bezier(.4,2,.6,1) both;
}
@keyframes heroTextFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 0.85; transform: none; }
}

.gallery-section {
  padding: 4rem 3vw 2rem 3vw;
  background: #000;
}

.featured-featured-glass {
  position: relative;
  margin: 3rem auto 2rem auto;
  padding: 2.5rem 2.5rem 2.8rem 2.5rem;
  max-width: 1300px;
  background: radial-gradient(circle at top left, rgba(0,255,127,0.12), rgba(0,0,0,0.9))
              border-box;
  border-radius: 1.8rem;
  border: 1.5px solid rgba(0,255,127,0.32);
  box-shadow: 0 18px 60px rgba(0,0,0,0.85), 0 0 40px rgba(0,255,127,0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
}

.featured-featured-glass h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .featured-featured-glass {
    margin: 2.2rem 1.6rem 1.8rem 1.6rem;
    padding: 1.6rem 1.4rem 2rem 1.4rem;
    border-radius: 1.4rem;
  }
}

@media (max-width: 600px) {
  .featured-featured-glass {
    margin: 1.8rem 1rem 1.6rem 1rem;
    padding: 1.2rem 0.9rem 1.6rem 0.9rem;
    border-radius: 1.2rem;
  }
}
.gallery-section h2 {
  color: var(--accent);
  font-size: 20rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.gallery-category img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* glassmorphism effect in the bottom of the image, with the image title */


/* Glassmorphism hover effect: blur image and show title bar */
.portfolio-img-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transition: transform 0.32s cubic-bezier(.77,.2,.32,1.01), box-shadow 0.32s cubic-bezier(.77,.2,.32,1.01);
}
.portfolio-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.04);
  transition: box-shadow 0.2s;
  cursor: pointer;
  display: block;
}
/* Animated spring green border line with glow on hover for portfolio images */
.portfolio-img {
  border: 2.5px solid transparent;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.45);
  transition: border-color 0.38s cubic-bezier(.77,.2,.32,1.01), box-shadow 0.38s cubic-bezier(.77,.2,.32,1.01);
}
/* Spring green border line with glow on hover for portfolio images */
.portfolio-img-wrapper:hover .portfolio-img,
.portfolio-img-wrapper:focus-within .portfolio-img {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px #00FF7F55, 0 4px 32px 0 rgba(0,0,0,0.45), 0 0 24px 4px #00FF7F88;
  z-index: 1000;
}

.portfolio-img-wrapper:hover,
.portfolio-img-wrapper:focus-within {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 16px 64px #00FF7F55, 0 0 0 3px var(--accent);
}

/* Glassmorphism title bar at the bottom */
.portfolio-img-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 1.1em 0.7em 1.1em;
  background: rgba(18, 24, 22, 0.32);
  border-radius: 0 0 0.8rem 0.8rem;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) brightness(1.08) contrast(1.08);
  backdrop-filter: blur(18px) saturate(1.3) brightness(1.08) contrast(1.08);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(40%);
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.77,.2,.32,1.01), transform 0.32s cubic-bezier(.77,.2,.32,1.01);
  z-index: 2;
  text-shadow: 0 2px 12px #000a, 0 1.5px 12px #00FF7F22;
}

/* Show title bar on hover/focus */
.portfolio-img-wrapper:hover .portfolio-img-title,
.portfolio-img-wrapper:focus-within .portfolio-img-title {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.portfolio-section h1 {
    font-size: 8rem;
    text-align: center;
    margin: 2rem 0 2.5rem 0;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.05;
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    animation: portfolioTitleIntro 2.2s cubic-bezier(.77,.2,.32,1.01) 0.2s forwards;
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    filter: drop-shadow(0 8px 48px #fff2);
}

/* Lightbox Details Button: bottom right, floating, always visible when active */
.lightbox-details-btn {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(24,32,32,0.32);
  border: 1.5px solid rgba(0,255,127,0.18);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.7rem 0.25rem 0.7rem;
  border-radius: 50%;
  transition: background 0.22s, color 0.22s, border 0.22s, box-shadow 0.22s, opacity 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 2px 16px #00FF7F22, 0 0 0 1.5px #00FF7F33;
  outline: none;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.96;
  letter-spacing: 0.03em;
  width: 2.7rem;
  height: 2.7rem;
  min-width: 2.7rem;
  min-height: 2.7rem;
  z-index: 10003;
}
.lightbox-details-btn svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
  pointer-events: none;
}
.lightbox-details-btn:hover, .lightbox-details-btn:focus {
  background: rgba(0,255,127,0.13);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 24px #00FF7F44, 0 0 0 2px var(--accent);
  opacity: 1;
}
.lightbox-details-btn.fade {
  opacity: 0;
  pointer-events: none;
}
.lightbox-details-btn.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@keyframes portfolioTitleIntro {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    letter-spacing: 0.2em;
    filter: blur(18px) brightness(1.25);
  }
  40% {
    opacity: 0.7;
    transform: translateY(-18px) scale(1.06);
    letter-spacing: 0.09em;
    filter: blur(4px) brightness(1.12);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
    letter-spacing: 0.045em;
    filter: blur(0.2px) brightness(1.04);
  }
  100% {
    opacity: 1;
    transform: none;
    letter-spacing: 0.04em;
    filter: none;
  }
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.2rem;
    padding: 0 0.1rem;
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0 0.2rem;
  }
  .portfolio-section h1 {
    font-size: 5rem;
    text-align: center;
    margin: 2rem 0 2.5rem 0;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.05;
  }
  .portfolio-categories {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }
  .category-btn {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
    width: 100%;
  }
}

.about-section, .contact-section {
  padding: 4rem 3vw 2rem 3vw;
  background: #000;
  max-width: 900px;
  margin: 0 auto;
}
.about-section h2, .contact-section h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}
.about-content, .contact-content {
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.92;
}
.social-links {
  margin-top: 1.5rem;
}
.social-links a {
  margin: 0 0.5rem;
  display: inline-block;
  transition: transform 0.2s;
}
.social-links a:hover {
  transform: scale(1.2);
}
footer {
  text-align: center;
  color: #888;
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
  background: #000;
  border-top: 1px solid var(--accent);
  margin-top: 2rem;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0.4rem;
  box-shadow: 0 8px 64px #00FF7F55;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #fff;
}

/* Lightbox Overlay Styles */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(10, 15, 20, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.77,0,.18,1);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  background: rgba(24, 28, 32, 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 8px 48px #000a, 0 0 0 1.5px #00FF7F33;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightbox-fadein 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes lightbox-fadein {
  from { transform: translateY(30px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lightbox-img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 1rem;
  box-shadow: 0 4px 32px #0008;
  background: #111;
  margin-bottom: 1.2rem;
  object-fit: contain;
  outline: none;
  /* Remove any green glow or accent border in lightbox */
  box-shadow: 0 4px 32px #000a !important;
  border: none !important;
  filter: none !important;
}
.lightbox-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.7rem;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-shadow: 0 4px 32px #00FF7F33, 0 1.5px 32px #00FF7F22;
  filter: drop-shadow(0 8px 48px #00FF7F22);
  transition: font-size 0.3s cubic-bezier(.77,0,.18,1);
}

.lightbox-caption {
  font-size: 1rem;
  color: #b0ffda;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 400;
  opacity: 0.85;
}
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 2.1rem;
  color: #00FF7F;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  opacity: 0.85;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: #fff;
  opacity: 1;
}
/* Lightbox arrow buttons: position relative to image container, not absolute */
.lightbox-img-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #00FF7F;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
  padding: 0.2rem 0.7rem;
  border-radius: 50%;
}
.lightbox-arrow.left {
  left: 1.2rem;
}
.lightbox-arrow.right {
  right: 100;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus {
  color: #fff;
  opacity: 1;
  background: #00FF7F22;
}
@media (max-width: 700px) {
  .lightbox-content {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 99vw;
    max-height: 99vh;
  }
  .lightbox-img {
    max-width: 95vw;
    max-height: 45vh;
  }
  .lightbox-title {
    font-size: 2rem;
  }
  .lightbox-caption {
    font-size: 0.92rem;
  }
  .lightbox-arrow.left { left: -0.7rem; }
  .lightbox-arrow.right { right: -0.7rem; }
}

/* Portfolio Categories */
.portfolio-categories {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.portfolio-categories-desktop {
  display: flex;
  gap: 1.5rem;
}
.portfolio-categories-mobile {
  display: none;
}
@media (max-width: 700px) {
  .portfolio-categories-desktop {
    display: none;
  }
  .portfolio-categories-mobile {
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
  }
  .category-dropdown-toggle {
    background: none;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 2em;
    padding: 0.7em 2em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5em;
    box-shadow: none;
    outline: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .category-dropdown-toggle:active,
  .category-dropdown-toggle:focus {
    background: var(--accent);
    color: #000;
    box-shadow: 0 2px 16px #00FF7F44;
  }
  .category-dropdown-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 32, 32, 0.32);
    border-radius: 1.2em;
    box-shadow: 0 4px 32px #00FF7F22;
    padding: 0.5em 0.5em;
    z-index: 10;
    min-width: 180px;
    width: max-content;
    text-align: left;
    animation: dropdown-fadein 0.3s cubic-bezier(.77,0,.18,1);
    backdrop-filter: blur(18px) saturate(1.3) brightness(1.08) contrast(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.3) brightness(1.08) contrast(1.08);
    border: 1.5px solid rgba(0,255,127,0.18);
  }
  .category-dropdown-menu.open {
    display: block;
  }
  .category-dropdown-menu .category-btn {
    display: block;
    width: 100%;
    margin: 0.2em 0;
    border-radius: 2em;
    padding: 0.7em 1.2em;
    font-size: 1rem;
    text-align: left;
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .category-dropdown-menu .category-btn:active,
  .category-dropdown-menu .category-btn:focus,
  .category-dropdown-menu .category-btn.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 2px 16px #00FF7F44;
  }
  @keyframes dropdown-fadein {
    from { opacity: 0; transform: translateX(-50%) scaleY(0.8); }
    to { opacity: 1; transform: translateX(-50%) scaleY(1); }
  }
}

.category-btn {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.7em 2em;
  border-radius: 2em;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}
.category-btn.active,
.category-btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 16px #00FF7F44;
}

/* Blog Section */
.blog-section {
  padding: 4rem 3vw 2rem 3vw;
  background: #000;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-section h1 {
  color: white;
  font-size: 10rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(18px) brightness(1.25);
  animation: blogSectionH1Intro 1.7s cubic-bezier(.77,.2,.32,1.01) 0.2s forwards;
  /*glow effect*/
}

@keyframes blogSectionH1Intro {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    letter-spacing: 0.2em;
    filter: blur(18px) brightness(1.25);
  }
  40% {
    opacity: 0.7;
    transform: translateY(-18px) scale(1.06);
    letter-spacing: 0.09em;
    filter: blur(4px) brightness(1.12);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
    letter-spacing: 0.045em;
    filter: blur(0.2px) brightness(1.04);
  }
  100% {
    opacity: 1;
    transform: none;
    letter-spacing: 0.1em;
    filter: none;
  }
}

/* Blog Archive Searchbar */
.blog-archive-searchbar {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.blog-archive-searchbar input[type="text"] {
  width: 100%;
  max-width: 480px;
  padding: 1.1rem 1.5rem;
  border-radius: 2rem;
  border: 2px solid var(--accent);
  background: #181c22;
  color: #fff;
  font-size: 1.2rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px #00FF7F22;
}
.blog-archive-searchbar input[type="text"]:focus {
  border: 2px solid #00FF7F;
  box-shadow: 0 4px 32px #00FF7F44;
}

/* Blog Archive List (archive style, wide thumbnails) */
.blog-archive-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  max-width: 900px;
  margin: 0 auto;
}
.blog-archive-preview {
  display: flex;
  align-items: stretch;
  background: #111;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 32px #00FF7F22;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 180px;
}
.blog-archive-preview:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 48px #00FF7F55;
}
.blog-archive-preview a {
  display: flex;
  align-items: stretch;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.blog-archive-thumb {
  width: 260px;
  min-width: 180px;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #222;
  flex-shrink: 0;
}
.blog-archive-info {
  flex: 1 1 0%;
  padding: 1.5rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-archive-info h2 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.blog-archive-info .blog-date {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.blog-archive-info .blog-excerpt {
  color: #fff;
  opacity: 0.85;
  font-size: 1.08rem;
}
@media (max-width: 700px) {
  .blog-archive-list {
    gap: 1.2rem;
  }
  .blog-archive-preview, .blog-archive-preview a {
    flex-direction: column;
    min-height: unset;
  }
  .blog-archive-thumb {
    width: 100%;
    max-width: 100vw;
    height: 140px;
    min-width: unset;
    border-radius: 1.2rem 1.2rem 0 0;
  }
  .blog-archive-info {
    padding: 1.1rem 1.2rem 1.1rem 1.2rem;
  }
}

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 3rem auto 2rem auto;
  background: #111;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px #00FF7F22;
  padding: 2.5rem 2rem 2rem 2rem;
}
.blog-post h1 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.blog-date {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.blog-cover {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
.blog-content {
  color: #fff;
  opacity: 0.93;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.blog-content h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 1.5rem;
}
.blog-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}
.blog-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.blog-nav a:hover {
  color: #fff;
}


/* About Timeline & Bio */
.about-bio {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.about-portrait {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 32px #00FF7F22;
  background: #111;
}
.about-text {
  max-width: 400px;
  color: #fff;
  font-size: 1.15rem;
  opacity: 0.93;
}
/* About Hero Layout (image-first redesign) */
.about-hero {
  padding: 4rem 3vw 2rem 3vw;
  min-height: 70vh;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-hero-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 48px #00FF7F22, 0 0 0 2px rgba(0,255,127,0.12);
  background: #0b0b0b;
}
.about-hero-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  background: rgba(10, 18, 16, 0.35);
  box-shadow: 0 8px 48px #00FF7F22, 0 0 0 2px rgba(0,255,127,0.10);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
.about-hero-card h1 {
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.about-subheading {
  color: #b0ffda;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.about-tagline {
  color: #b0ffda;
  margin-bottom: 1rem;
}
.about-hero-card p {
  color: #fff;
  opacity: 0.92;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.about-hero-img img, .about-hero-card {
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: no-preference) {
  .about-hero-img img, .about-hero-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s cubic-bezier(.4,2,.6,1) forwards;
  }
}
.about-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.btn-accent,
.btn-outline {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.btn-accent {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 32px #00FF7F33;
}
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.about-details {
  max-width: 1000px;
  margin: 2rem auto 0 auto;
  padding: 0 3vw;
}
.timeline {
  margin-top: 2rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.timeline h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.timeline ul {
  list-style: none;
  padding: 0;
  border-left: 2px solid var(--accent);
}
.timeline li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: 1.1rem;
}
.timeline li span {
  position: absolute;
  left: -1.1rem;
  top: 0;
  background: var(--accent);
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Featured Images Gallery on Home */
.featured-gallery-section {
  padding: 3rem 3vw 2rem 3vw;
  background: none;
  max-width: 1200px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8vh;
  z-index: 10;
  pointer-events: auto;
}

.featured-gallery-section h2 {
  color: var(--accent);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(24,32,32,0.18);
  border-radius: 1.2em;
  padding: 0.7em 0;
}
.featured-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.featured-gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 32px #00FF7F22;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: #111;
}
.featured-gallery-grid img:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 48px #00FF7F55;
}
.see-more-link {
  text-align: center;
  margin-top: 0.5rem;
}
.see-more-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.see-more-link a:hover {
  color: #fff;
}

/* Latest Posts Section on Home */
.latest-posts-section {
  padding: 3rem 3vw 2rem 3vw;
  background: #000;
  max-width: 1200px;
  margin: 0 auto;
}
.latest-posts-section h2 {
  color: var(--accent);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.latest-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.latest-posts-list .blog-preview {
  background: #111;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 32px #00FF7F22;
  transition: transform 0.3s, box-shadow 0.3s;
}
.latest-posts-list .blog-preview:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 48px #00FF7F55;
}
.latest-posts-list .blog-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.latest-posts-list .blog-info {
  padding: 1.2rem 1.5rem 1.5rem 1.5rem;
}
.latest-posts-list .blog-info h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.latest-posts-list .blog-date {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.latest-posts-list .blog-excerpt {
  color: #fff;
  opacity: 0.85;
  font-size: 1.05rem;
}
@media (max-width: 700px) {
  .featured-gallery-section, .latest-posts-section {
    padding: 2rem 1vw 1rem 1vw;
  }
  .featured-gallery-grid img {
    height: 120px;
  }
  .latest-posts-list .blog-preview img {
    height: 100px;
  }
}

/* Responsive Portfolio Gallery Grid - Always Fit Screen */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100vw;
  max-width: 100vw;
  margin: 2rem 0 0 0;
  padding: 0 2vw;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0 1vw;
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0 0.5vw;
  }
}

/* Responsive category buttons */
.portfolio-categories {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0 2rem 0;
  flex-wrap: wrap;
}
.category-btn {
  background: rgba(0,0,0,0.5);
  color: #00FF7F;
  border: 1.5px solid #00FF7F;
  border-radius: 2rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  margin-bottom: 0.2rem;
}
.category-btn.active,
.category-btn:focus {
  background: rgba(0,255,127,0.12);
  color: #fff;
  border-color: #00FF7F;
  outline: none;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .gallery-grid img, .showcase-item, .blog-preview {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(.4,2,.6,1) forwards;
  }
  .gallery-grid img:nth-child(n) { animation-delay: calc(0.05s * var(--i, 1)); }
  .showcase-item:nth-child(n) { animation-delay: calc(0.1s * var(--i, 1)); }
  .blog-preview:nth-child(n) { animation-delay: calc(0.1s * var(--i, 1)); }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Tweaks */
@media (max-width: 900px) {
  .about-bio {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-hero-inner {
    grid-template-columns: 1fr;
  }
  .gallery-grid, .blog-list, .showcase-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .portfolio-categories {
    flex-direction: column;
    gap: 1rem;
  }
  .blog-section, .showcase-section {
    padding: 2rem 1vw 1rem 1vw;
  }
  .blog-post {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .about-bio {
    gap: 1rem;
  }
  .about-hero {
    padding: 2rem 2vw 1rem 2vw;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-glass {
    padding: 2rem 0.7rem;
    max-width: 98vw;
  }
}

/* Portfolio gallery grid: always 3 columns on desktop */
#portfolioGallery.gallery-grid, .gallery-grid#portfolioGallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  #portfolioGallery.gallery-grid, .gallery-grid#portfolioGallery {
    grid-template-columns: 1fr !important;
  }
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1002;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3.5px;
  margin: 4px 0;
  background: #00FF7F;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 800px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.2rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 20, 20, 0.98);
    box-shadow: -2px 0 24px #00FF7F22;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s cubic-bezier(.77,0,.18,1);
    z-index: 1001;
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .logo {
    font-size: 1.1rem;
    padding: 0.2rem 0;
  }
}

/* Responsive, animated, glassmorphism details panel for lightbox */
/* Lightbox details panel overlays the image and blurs the image when open */
.lightbox-img-container {
  position: relative;
}
.lightbox-details-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: rgba(18, 24, 22, 0.82);
  color: #fff;
  font-size: 1.08rem;
  padding: 2.2em 2.2em 2.2em 2.2em;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px #00FF7F22, 0 0 0 1.5px #00FF7F33;
  max-width: 100%;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.38s cubic-bezier(.77,.2,.32,1.01), transform 0.38s cubic-bezier(.77,.2,.32,1.01);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.2) brightness(1.08) contrast(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.2) brightness(1.08) contrast(1.08);
  z-index: 10002;
  word-break: break-word;
  line-height: 1.6;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.lightbox-details-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
/* Blur the image when details panel is open */
.lightbox-img-container.details-open .lightbox-img {
  filter: blur(8px) brightness(0.92) saturate(1.1);
  transition: filter 0.38s cubic-bezier(.77,.2,.32,1.01);
}
.lightbox-img-container .lightbox-img {
  transition: filter 0.38s cubic-bezier(.77,.2,.32,1.01);
}
.lightbox-details-panel strong {
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  min-width: 90px;
}
.lightbox-details-panel-row {
  margin-bottom: 0.7em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: baseline;
}
.lightbox-details-panel-row:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .lightbox-details-panel {
    font-size: 0.98rem;
    padding: 1.1em 0.7em 1.1em 0.7em;
    border-radius: 0.7rem;
  }
  .lightbox-details-panel strong {
    min-width: 70px;
  }
  .lightbox-details-btn {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
    min-height: 2.2rem;
    font-size: 1.2rem;
    z-index: 10003;
  }
}
