:root {
  /* Colors */
  --main-bg: #0a0a0a;
  --surface: #222222;
  --surface-2: #2a2a2a;
  --surface-3: #303030;
  --text-color: #f0f0f0;
  --text-muted: #888;
  --accent-color: #ffc107;
  --accent-secondary: #ff9800;
  --gold-gradient: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(255,193,7,0.15);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* === Global === */
* {
  box-sizing: border-box;
}

::selection {
  background: rgba(255, 193, 7, 0.3);
  color: #fff;
}

body {
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  overflow-x: hidden;
  padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--main-bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

h1, h4, p {
  text-shadow: none;
}

h1 {
  font-weight: 700;
}
h4 {
  color: var(--text-color);
  font-weight: 600;
}
p {
  line-height: 1.7;
  color: #ccc;
}

/* === Navbar & Header (Glassmorphism) === */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.custom-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

main {
  position: relative;
  z-index: 1;
  border: none;
  outline: none;
  box-shadow: none;
}

footer {
  position: relative;
  z-index: 1;
  background-color: transparent;
  color: var(--text-muted);
  border: none;
  box-shadow: none;
  font-size: 0.85rem;
}

.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.3), 0 0 40px rgba(255, 193, 7, 0.1);
  transition: all 0.4s var(--ease-out);
}

.gt .navbar-brand {
  background: linear-gradient(90deg, #fff, #ffc107, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.navbar-brand:hover {
  background-position: right center;
}

.navbar-nav .nav-item {
  margin-left: 8px;
}

.navbar-nav .nav-link {
  color: #bbb !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.3s var(--ease-out);
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  background: rgba(255, 193, 7, 0.08);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
  border-radius: 1px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

/* Mobile nav menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  .navbar-nav .nav-item {
    margin-left: 0;
    margin-bottom: 2px;
  }

  .navbar-nav .nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: #ccc !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link.active {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.12);
    border-left: 3px solid #ffc107;
    padding-left: 13px;
  }

  .navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
  }
}

/* === Preloader === */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

#preloader.fade-out {
  opacity: 0;
  transform: scale(1.05);
}

#greeting {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.1);
  animation: fade 1s ease-in-out infinite alternate;
}

.gt #greeting {
  background: linear-gradient(135deg, #e8e8e8, #ffffff, #b0b0b0, #ffffff, #e8e8e8);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: shimmer 3s linear infinite, fade 1s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* === Scroll Reveal Animation System === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HOME: Hero Section === */
.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

/* === Liquid Ether Global Background === */
#liquid-ether-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

#liquid-ether-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* === Hero Split Layout === */
.hero-split {
  width: 100%;
  padding: 0 2rem;
}

.hero-split-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex: 1;
  justify-content: center;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-right {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  margin: 1.5rem 0;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 0.7s forwards;
}


/* Floating Orbs (subtle) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 350px;
  height: 350px;
  background: var(--accent-color);
  top: -120px;
  right: -80px;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-secondary);
  bottom: -80px;
  left: -60px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.03); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

/* Hero Text */
.hero-greeting {
  font-size: 1rem;
  color: #ffd54f;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 16px rgba(255, 193, 7, 0.35);
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 0.2s forwards;
}

.hero-name {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #ffd54f;
  text-shadow: 0 0 30px rgba(255, 193, 7, 0.4), 0 0 60px rgba(255, 152, 0, 0.15);
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 0.4s forwards;
}

.gt .hero-name {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: heroFadeIn 0.8s var(--ease-out) 0.4s forwards, shimmer 3s linear infinite;
}

.hero-subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: #aaa;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 0.6s forwards;
}

.hero-subtitle-wrap .typing-text {
  color: #ffd54f;
  font-weight: 600;
  border-right: 2px solid #ffc107;
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-description {
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 0.8s forwards;
}

.hero-description p {
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.8;
  color: #ccc;
}


.hero-footer {
  margin-top: auto;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Social Icons with Glow */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 1s forwards;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s var(--ease-out);
  font-size: 1.1rem;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(255, 193, 7, 0.1);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.2), 0 0 40px rgba(255, 193, 7, 0.1);
  transform: translateY(-3px);
}

/* === Ueki Video === */
.ueki-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 1s forwards;
}

.ueki-video-wrap video {
  display: block;
  width: 114%;
  height: 114%;
  margin: -7%;
  object-fit: cover;
  pointer-events: none;
}

/* Vignette overlay — fades all edges into the dark background */
.ueki-video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(10,10,10,0.65) 80%, rgba(10,10,10,0.95) 100%);
  border-radius: var(--radius-lg);
}

/* Watermark cover — extra gradient on bottom edge */
.ueki-video-wm-cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 40%, transparent 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* === BLOG PAGE === */
.blog-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.blog-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffd54f;
  text-shadow: 0 0 25px rgba(255, 193, 7, 0.3);
  margin-bottom: 0.5rem;
}

.gt .blog-header h1 {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
  background-size: 200% auto;
  text-shadow: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.category-pill:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.category-pill.active {
  color: #000;
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.25);
}

.category-pill i {
  font-size: 0.8rem;
}

/* Search Input */
.search-wrapper {
  position: relative;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.search-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--surface);
  color: var(--text-color);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s var(--ease-out);
}

.search-wrapper input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.search-wrapper input:focus ~ i {
  color: var(--accent-color);
}

.search-wrapper input::placeholder {
  color: #555;
}

/* Blog Cards */
.blog-card-glass {
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.blog-card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,193,7,0.1);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
}

.blog-card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.15);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

/* Stretched link: makes entire card clickable */
.blog-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card-glass:hover .blog-card-title a {
  color: var(--accent-color);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
}

.blog-card-read {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease-out);
}

.blog-card-glass:hover .blog-card-read {
  opacity: 1;
  transform: translateX(0);
}

/* Simple stagger animation for cards */
.blog-cards-grid .col {
  opacity: 0;
  transform: translateY(20px);
  animation: cardReveal 0.5s var(--ease-out) forwards;
}

.blog-cards-grid .col:nth-child(1) { animation-delay: 0.05s; }
.blog-cards-grid .col:nth-child(2) { animation-delay: 0.1s; }
.blog-cards-grid .col:nth-child(3) { animation-delay: 0.15s; }
.blog-cards-grid .col:nth-child(4) { animation-delay: 0.2s; }
.blog-cards-grid .col:nth-child(5) { animation-delay: 0.25s; }
.blog-cards-grid .col:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.blog-empty i {
  font-size: 3rem;
  color: #333;
  margin-bottom: 1rem;
}

.blog-empty p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* === BLOG DETAIL === */
.blog-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.blog-detail-back:hover {
  color: var(--accent-color);
}

.blog-detail h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
}

.blog-detail-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-detail-divider {
  height: 3px;
  width: 60px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* Blog Detail Typography */
.blog-detail .post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #d0d0d0;
}

.blog-detail .post-content h1,
.blog-detail .post-content h2,
.blog-detail .post-content h3,
.blog-detail .post-content h4 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-detail .post-content h2 { font-size: 1.6rem; }
.blog-detail .post-content h3 { font-size: 1.3rem; }
.blog-detail .post-content h4 { font-size: 1.1rem; }

.blog-detail .post-content a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.blog-detail .post-content a:hover {
  color: var(--accent-secondary);
}

.blog-detail .post-content blockquote {
  border-left: 3px solid var(--accent-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255, 193, 7, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #bbb;
  font-style: italic;
}

.blog-detail .post-content code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: #e5c07b;
}

.blog-detail .post-content pre {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-detail .post-content pre code {
  background: none;
  padding: 0;
  color: #abb2bf;
  font-size: 0.88rem;
  line-height: 1.6;
}

.blog-detail .post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.blog-detail .post-content ul,
.blog-detail .post-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.blog-detail .post-content li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: auto;
}

.modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

#closeModal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2001;
}

#closeModal:hover {
  color: var(--accent-color);
}

/* === GALLERY PAGE === */
.gallery-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.gallery-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffd54f;
  text-shadow: 0 0 25px rgba(255, 193, 7, 0.3);
  margin-bottom: 0.5rem;
}

.gt .gallery-header h1 {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.gallery-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Masonry Grid */
.gallery-masonry {
  column-count: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Empty State */
.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.gallery-empty i {
  font-size: 3rem;
  color: #333;
  margin-bottom: 1rem;
}

.gallery-empty p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 12px;
  color: #ccc;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(255, 193, 7, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.hidden {
  display: none !important;
}

/* === Buttons === */
.btn {
  border-radius: var(--radius-lg);
  padding: 6px 16px;
  transition: all 0.3s var(--ease-out);
}

.btn-secondary {
  background-color: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

.btn-outline-light {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  border: 1.5px solid rgba(255,255,255,0.15);
  transition: all 0.3s var(--ease-out);
}

.btn-outline-light:hover {
  background-color: rgba(255,193,7,0.1);
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(255,193,7,0.2);
}

/* === Image Styling === */
img {
  border-radius: var(--radius-sm);
}

.profile-image, .img-fluid {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* === Legacy Card Support === */
.card-title a {
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.card-title a:hover {
  color: var(--accent-color);
}

.card-footer {
  font-size: 0.85rem;
  background-color: transparent;
  border: none;
  color: #666;
}

/* === Form Styling === */
.form-control {
  background-color: var(--surface);
  color: var(--text-color);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
}

input.form-control:focus {
  background-color: var(--surface-2);
  color: var(--text-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

/* === Code Blocks === */
.code-block {
  background: var(--surface);
  color: #f8f8f2;
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,0.12);
}

/* === Text Overrides === */
.text-light {
  color: #f1f1f1 !important;
}

.text-secondary {
  color: var(--text-muted) !important;
}

.text-muted {
  color: #777 !important;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-section {
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
  }

  .hero-split-row {
    flex-direction: column;
    text-align: center;
  }

  .hero-right {
    flex: 0 0 auto;
    margin-top: 2rem;
  }

  .hero-divider {
    margin: 1.5rem auto;
  }

  .hero-left .social-icons {
    justify-content: center;
  }

  .hero-left .hero-subtitle-wrap {
    justify-content: center;
  }

  .hero-left .hero-description p {
    margin: 0 auto;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-card-glass:hover {
    transform: translateY(-2px);
  }

  .gallery-masonry {
    column-count: 2;
  }

  .blog-detail h2 {
    font-size: 1.7rem;
  }

  .blog-detail {
    padding: 1rem 0.5rem;
  }

  body {
    padding-top: 70px;
  }
}

@media (max-width: 576px) {
  .hero-name {
    font-size: 2rem;
  }

  .gallery-masonry {
    column-count: 1;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* Liquid ether (legacy) */
.liquid-ether-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  touch-action: none;
}
