@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Syne:wght@600;700;800&display=swap');

:root {
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: #050505;
  color: #f4f4f5;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.modal-open { overflow: hidden; }

/* ================= THEME TRANSITION ================= */
#theme-transition {
  position: fixed; top: 50%; left: 50%; width: 20px; height: 20px;
  background: #ffffff; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  z-index: 9999999; pointer-events: none; transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  box-shadow: 0 0 50px 20px #ffffff;
}
.theme-transition-active { transform: translate(-50%, -50%) scale(250); }

/* ================= SMOOTH TRAILING CURSOR ================= */
.cursor-outline {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background-color: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  border-radius: 50%; transform: translate(-50%, -50%); z-index: 99999998;
  pointer-events: none; transition: background-color 0.4s ease, box-shadow 0.4s ease;
  will-change: left, top;
}
.cursor-pulse {
  position: fixed; width: 20px; height: 20px; border: 1.5px solid #ffffff;
  border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  z-index: 99999998; animation: clickPulseAnim 0.4s ease-out forwards;
}
@keyframes clickPulseAnim {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* ================= NAV BAR ================= */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; position: fixed; width: 100%; height: 70px; top: 0;
  background-color: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s ease;
}
.nav-logo-link {
  width: 120px; height: 40px; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(-20px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.nav-logo-link.visible { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-logo { width: 100%; height: 100%; object-fit: contain; transition: filter 0.4s ease; }
.menu-toggle { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: #e4e4e7; font-size: 1rem; font-weight: 500; }
.nav-auth-logout {
  background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171; padding: 0.4rem 0.9rem; border-radius: 20px; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 4px; transition: all 0.3s;
}
.nav-auth-logout:hover { background: rgba(239, 68, 68, 0.3); color: #fff; }
.nav-auth-logout.hidden { display: none; }
.theme-toggle-btn { font-size: 1.4rem; color: #fff; display: flex; align-items: center; transition: transform 0.3s ease, color 0.3s ease; margin-left: 0.5rem; }
.theme-toggle-btn:hover { transform: scale(1.15) rotate(15deg); }
.rolling-link { display: inline-flex; overflow: hidden; color: #a1a1aa; font-size: 0.95rem; font-weight: 500; height: 1.2rem; line-height: 1.2rem; vertical-align: top; }
.rolling-link .char { position: relative; display: inline-block; transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1); white-space: pre; }
.rolling-link .char::after { content: attr(data-char); position: absolute; left: 0; top: 100%; color: #ffffff; }
.rolling-link:hover .char { transform: translateY(-100%); }

/* ================= VIDEO HERO ================= */
.video-hero { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 1; }
.video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 2; transition: background 0.4s ease; }
.hero-content { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 100vw; padding: 0 1rem; }
.hero-logo-wrapper { position: relative; width: 100%; max-width: 420px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.hero-logo-wrapper::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 85%; height: 85%; background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%); filter: blur(40px); pointer-events: none; z-index: 0; transition: opacity 0.4s ease;
}
.hero-logo-base { width: 100%; height: auto; display: block; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 4px 18px rgba(255, 255, 255, 0.22)); transition: filter 0.4s ease; }
.hero-logo-neon {
  position: absolute; inset: 0; z-index: 2; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.8) 50%, transparent 65%);
  background-size: 200% 100%; -webkit-mask-image: url('assets/logo.png'); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; mask-image: url('assets/logo.png'); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
  animation: neonSweep 3s linear infinite; pointer-events: none;
}
@keyframes neonSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.hero-subtitle-wrapper { position: relative; height: 30px; width: 100%; display: flex; justify-content: center; align-items: center; margin-top: -0.25rem; margin-bottom: 2rem; overflow: hidden; }
#hero-subtitle { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.animated-word { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; white-space: nowrap; }
.animated-word .char { display: inline-block; font-size: 1.15rem; font-weight: 500; color: #e4e4e7; letter-spacing: 1px; transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease, color 0.4s ease; }
.animated-word.next .char { transform: translateY(100%); opacity: 0; }
.animated-word.visible .char { transform: translateY(0); opacity: 1; }
.animated-word.out .char { transform: translateY(-100%); opacity: 0; }
.hero-socials { display: flex; gap: 1.25rem; align-items: center; justify-content: center; position: relative; z-index: 10; }
.hero-socials a { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); display: flex; justify-content: center; align-items: center; color: #ffffff; font-size: 1.4rem; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.hero-socials a:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-3px); }

.scroll-indicator { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); width: 88%; max-width: 850px; display: flex; align-items: center; justify-content: center; gap: 1.25rem; color: #a1a1aa; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.5px; z-index: 4; transition: color 0.4s ease; }
.scroll-line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.18); transition: background 0.4s ease; }
.mouse-icon { width: 18px; height: 28px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 12px; display: flex; justify-content: center; padding-top: 5px; flex-shrink: 0; transition: border-color 0.4s ease; }
.mouse-wheel { width: 2px; height: 6px; background-color: #ffffff; border-radius: 2px; animation: scrollWheel 1.6s ease-in-out infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

.bottom-blur-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 280px; z-index: 50; pointer-events: none; background: rgba(5, 5, 5, 0.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%); mask-image: linear-gradient(to top, black 20%, transparent 100%); transition: opacity 0.5s ease, visibility 0.5s ease, background 0.4s ease; }
.bottom-blur-bar.hidden { opacity: 0; visibility: hidden; }

/* ================= SECTIONS ================= */
section:not(#home) { padding: 6rem 5%; position: relative; }
section:not(#home):after { content: ''; position: absolute; bottom: 0; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }
h2 { font-family: var(--title-font); margin-bottom: 2.5rem; font-size: 2.8rem; font-weight: 700; color: #ffffff; transition: color 0.4s ease; }
.section-sub { margin: 1rem 0 1.5rem; color: #e4e4e7; font-family: var(--title-font); transition: color 0.4s ease; }
.section-sub-desc { color: #a1a1aa; font-size: 1rem; margin-top: -2rem; margin-bottom: 2rem; }

/* ================= ABOUT ME ================= */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text-wrapper { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.about-text-block { grid-column: 1; grid-row: 1; opacity: 0; visibility: hidden; pointer-events: none; }
.about-text-block.active-persona { visibility: visible; pointer-events: auto; animation: fadeInText 0.6s ease forwards; }
@keyframes fadeInText { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.about-content h2 { font-family: var(--title-font); }
.about-content p { font-family: var(--body-font); color: #d4d4d8; font-size: 1.05rem; margin-bottom: 1.25rem; line-height: 1.7; transition: color 0.4s ease; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.about-tags span { font-size: 0.85rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.5rem 1rem; border-radius: 8px; color: #e4e4e7; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.about-image-wrapper { position: relative; width: 100%; display: flex; justify-content: center; }
#about-image { width: 100%; max-width: 500px; height: auto; border-radius: 16px; object-fit: cover; cursor: pointer; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
#about-image:hover { transform: scale(1.03); filter: brightness(1.1); }
.pulse-hint { animation: imgPulseHint 2.5s infinite; }
@keyframes imgPulseHint { 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } 50% { transform: scale(1.015); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)); } 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } }

/* ================= PUBMATS ================= */
.pubmat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.pubmat-card { background: rgba(18, 18, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, background 0.4s ease; }
.pubmat-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.pubmat-img-container { width: 100%; aspect-ratio: 1080 / 1300; background: #111; overflow: hidden; cursor: pointer; }
.pubmat-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pubmat-card:hover .pubmat-img { transform: scale(1.05); }
.pubmat-actions { display: flex; justify-content: space-around; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.action-btn { background: none; border: none; color: #a1a1aa; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; transition: color 0.3s ease, transform 0.2s ease; }
.action-btn:hover { color: #fff; transform: scale(1.1); }
.react-btn.reacted { color: #ef4444 !important; }

/* ================= EXPANDED CREATIONS ================= */
.expand-btn-container { display: flex; justify-content: center; margin: 1rem 0; }
.toggle-expansion-btn {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #e4e4e7;
  padding: 0.8rem 2rem; border-radius: 30px; font-weight: 500; font-size: 0.95rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.toggle-expansion-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.expanded-section { transition: opacity 0.5s ease, max-height 0.8s ease; overflow: hidden; opacity: 1; }
.expanded-section.hidden { max-height: 0; opacity: 0; display: none; }

/* FOLDER STYLES */
.folder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.folder-card { cursor: pointer; transition: transform 0.3s ease; }
.folder-card:hover { transform: translateY(-8px); }
.folder-cover {
  position: relative; width: 100%; aspect-ratio: 4/5; background: #18181b; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.folder-cover::before { content: ""; position: absolute; top: -6px; right: -6px; bottom: 6px; left: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; z-index: -1; }
.folder-cover::after { content: ""; position: absolute; top: -12px; right: -12px; bottom: 12px; left: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; z-index: -2; }
.folder-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: opacity 0.3s ease; }
.folder-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; padding: 0.3rem 0.6rem; border-radius: 20px; font-size: 0.8rem; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.folder-info { padding: 1rem 0; text-align: center; }
.folder-info h4 { font-family: var(--title-font); font-size: 1.1rem; color: #e4e4e7; transition: color 0.3s; }
.folder-card:hover .folder-info h4 { color: #fff; }

/* HARDWARE ACCELERATED MARQUEE STYLES */
.marquee-container { width: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 2rem; position: relative; }
.marquee-container::before, .marquee-container::after { content: ''; position: absolute; top: 0; width: 15%; height: 100%; z-index: 2; pointer-events: none; }
.marquee-container::before { left: 0; background: linear-gradient(to right, #050505, transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, #050505, transparent); }

.marquee-wrapper { display: flex; width: max-content; }
.marquee-track { 
  display: flex; 
  gap: 1.5rem; 
  padding-right: 1.5rem;
  will-change: transform; 
}
.track-right { animation: scrollRight 40s linear infinite; }
.track-left { animation: scrollLeft 40s linear infinite; }

.marquee-link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.marquee-link:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 10;
}
.marquee-img { 
  width: 220px; 
  height: 220px; 
  object-fit: cover; 
  background: #111; 
  display: block;
}

@keyframes scrollRight { 
  from { transform: translate3d(-50%, 0, 0); } 
  to { transform: translate3d(0, 0, 0); } 
}
@keyframes scrollLeft { 
  from { transform: translate3d(0, 0, 0); } 
  to { transform: translate3d(-50%, 0, 0); } 
}

/* ================= TESTIMONIALS SECTION ================= */
.testimonials-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}
.testimonials-marquee-container::before, .testimonials-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 12%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.testimonials-marquee-container::before { left: 0; background: linear-gradient(to right, #050505, transparent); }
.testimonials-marquee-container::after { right: 0; background: linear-gradient(to left, #050505, transparent); }

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: testimonialsInfiniteScroll 35s linear infinite;
  will-change: transform;
}
.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes testimonialsInfiniteScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.testimonial-card {
  width: 320px;
  background: rgba(18, 18, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-pfp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.testimonial-info {
  display: flex;
  flex-direction: column;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}
.testimonial-date {
  font-size: 0.75rem;
  color: #71717a;
}
.testimonial-msg {
  font-size: 0.9rem;
  color: #d4d4d8;
  line-height: 1.5;
  font-style: italic;
  word-break: break-word;
}
.loading-card {
  text-align: center;
  color: #a1a1aa;
}

/* Action Box */
.testimonial-action-box {
  background: rgba(18, 18, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  max-width: 650px;
  margin: 0 auto;
}
.testimonial-prompt {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.testimonial-prompt p {
  color: #a1a1aa;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.testimonial-login-trigger {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s;
}
.testimonial-login-trigger:hover {
  background: #2563eb;
  transform: scale(1.03);
}

.testimonial-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.user-pfp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.user-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.logout-btn-inline {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #a1a1aa;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.logout-btn-inline:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.testimonial-input-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#testimonial-input {
  width: 100%;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  outline: none;
  resize: none;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
#testimonial-input:focus {
  border-color: #3b82f6;
}
.testimonial-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.char-counter {
  font-size: 0.8rem;
  color: #71717a;
}
.send-testimonial-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.3s;
}
.send-testimonial-btn:hover {
  background: #2563eb;
}

.status-msg {
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
}
.status-msg.success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-msg.error { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Admin Dashboard */
.admin-panel {
  margin-top: 3rem;
  background: rgba(30, 27, 75, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}
.admin-header h3 {
  font-size: 1.2rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.badge {
  background: #6366f1;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pending-item {
  background: rgba(18, 18, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pending-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pending-user {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.pending-msg {
  font-size: 0.85rem;
  color: #d4d4d8;
}
.pending-actions {
  display: flex;
  gap: 0.5rem;
}
.admin-btn {
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
}
.admin-btn:hover { opacity: 0.85; }
.approve-btn { background: #22c55e; color: #fff; }
.decline-btn { background: #ef4444; color: #fff; }

/* ================= OTHER CARDS ================= */
.contact-card, .card, .tiktok-card { background: rgba(18, 18, 20, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; transition: border-color 0.3s ease, background-color 0.4s ease, color 0.4s ease; }
.contact-card { padding: 2.5rem; }
.card { padding: 1.5rem; min-height: 200px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.tiktok-card { overflow: hidden; display: flex; flex-direction: column; }
.thumbnail-container { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #0a0a0c; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.card-video { width: 100%; height: 100%; object-fit: cover; }
.tiktok-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.tiktok-title { font-size: 1.1rem; font-weight: 500; color: #e4e4e7; margin-bottom: 1rem; transition: color 0.4s ease; }
.tiktok-stats { display: flex; gap: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1rem; }
.stat { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: #a1a1aa; transition: color 0.4s ease; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.contact-item { display: flex; flex-direction: column; background: rgba(10, 10, 12, 0.6); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); transition: border-color 0.3s ease, background 0.4s ease; }
.contact-item:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.03); }
.contact-item .label { font-size: 0.85rem; font-weight: 500; color: #71717a; text-transform: uppercase; letter-spacing: 1px; }
.contact-item .val { color: #ffffff; font-weight: 500; margin-top: 0.5rem; transition: color 0.4s ease; }
.reveal { opacity: 0; transform: translateY(50px) scale(0.95); transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* ================= LIGHT MODE OVERRIDES ================= */
body.light-mode { background-color: #ffffff; color: #111111; }
body.light-mode .cursor-outline { background-color: #000000; box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); }
body.light-mode .cursor-pulse { border-color: #000000; }
body.light-mode h2 { color: #000; }
body.light-mode .section-sub { color: #222; }
body.light-mode nav { background-color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
body.light-mode .nav-logo { filter: invert(1); }
body.light-mode .nav-links a { color: #111; }
body.light-mode .theme-toggle-btn { color: #000; }
body.light-mode .rolling-link { color: #555; }
body.light-mode .rolling-link .char::after { color: #000; }
body.light-mode section:not(#home):after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent); }
body.light-mode .contact-card, body.light-mode .card, body.light-mode .tiktok-card, body.light-mode .pubmat-card { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.08); }
body.light-mode .contact-item { background: rgba(240, 240, 240, 0.8); border: 1px solid rgba(0, 0, 0, 0.05); }
body.light-mode .contact-item:hover { border-color: rgba(0, 0, 0, 0.3); background: rgba(255, 255, 255, 1); }
body.light-mode .contact-item .val { color: #000; }
body.light-mode .about-content p { color: #444; }
body.light-mode .about-tags span { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.15); color: #111; }
body.light-mode #about-image { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
body.light-mode .pulse-hint { animation: imgPulseHintLight 2.5s infinite; }
@keyframes imgPulseHintLight { 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); } 50% { transform: scale(1.015); filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.15)); } 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); } }
body.light-mode .tiktok-title { color: #111; }
body.light-mode .stat { color: #444; }
body.light-mode .bottom-blur-bar { background: rgba(255, 255, 255, 0.3); }

/* Testimonials Light Mode */
body.light-mode .testimonial-card { background: rgba(245, 245, 247, 0.9); border-color: rgba(0,0,0,0.1); }
body.light-mode .testimonial-name { color: #111; }
body.light-mode .testimonial-msg { color: #333; }
body.light-mode .testimonials-marquee-container::before { background: linear-gradient(to right, #ffffff, transparent); }
body.light-mode .testimonials-marquee-container::after { background: linear-gradient(to left, #ffffff, transparent); }
body.light-mode .testimonial-action-box { background: rgba(245, 245, 247, 0.9); border-color: rgba(0,0,0,0.1); }
body.light-mode #testimonial-input { background: #fff; color: #111; border-color: #ccc; }
body.light-mode .user-name { color: #111; }

body.light-mode .toggle-expansion-btn { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1); color: #333; }
body.light-mode .toggle-expansion-btn:hover { background: rgba(0, 0, 0, 0.1); border-color: rgba(0, 0, 0, 0.2); color: #000; }
body.light-mode .folder-cover { background: #f8f8f8; border-color: rgba(0,0,0,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
body.light-mode .folder-cover::before { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.05); }
body.light-mode .folder-cover::after { background: rgba(0,0,0,0.01); border-color: rgba(0,0,0,0.03); }
body.light-mode .folder-badge { background: rgba(255,255,255,0.9); color: #000; border-color: rgba(0,0,0,0.1); }
body.light-mode .folder-info h4 { color: #333; }
body.light-mode .folder-card:hover .folder-info h4 { color: #000; }
body.light-mode .marquee-link { border-color: rgba(0,0,0,0.08); background: #eee; }
body.light-mode .marquee-container::before { background: linear-gradient(to right, #ffffff, transparent); }
body.light-mode .marquee-container::after { background: linear-gradient(to left, #ffffff, transparent); }
body.light-mode .action-btn:hover { color: #000; }

/* ================= MODALS GLOBAL ================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.close-modal-btn, .close-folder-btn { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,0.5); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center; transition: background 0.3s ease; }
.close-modal-btn:hover, .close-folder-btn:hover { background: rgba(0,0,0,0.8); }

/* ================= POST MODAL ================= */
.post-modal-content { display: flex; width: 90%; max-width: 1200px; height: 85vh; background: #18181b; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.post-left { flex: 1.5; background: #000; display: flex; justify-content: center; align-items: center; transition: background 0.4s ease; }
.post-left img { max-width: 100%; max-height: 100%; object-fit: contain; }
.post-right { flex: 1; display: flex; flex-direction: column; background: #18181b; border-left: 1px solid rgba(255,255,255,0.05); min-width: 350px; }
.post-header { display: flex; align-items: center; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.poster-pfp, .comment-pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 1rem; background: #333; }
.poster-info h4 { font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 4px; }
.verified-icon { color: #3b82f6; font-size: 1.1rem; }
.post-caption-area { padding: 1rem; font-size: 0.95rem; color: #d4d4d8; border-bottom: 1px solid rgba(255,255,255,0.05); }
.post-link { color: #3b82f6; text-decoration: underline; }
.modal-inline-actions { margin-top: 1rem; }
.post-comments-area { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.comment-item { display: flex; margin-bottom: 1rem; }
.comment-content { flex: 1; }
.comment-bubble { background: #27272a; padding: 0.6rem 0.8rem; border-radius: 16px; display: inline-block; }
.comment-name { display: block; font-weight: 600; font-size: 0.85rem; color: #fff; margin-bottom: 2px; }
.comment-text { font-size: 0.9rem; color: #e4e4e7; }
.comment-actions { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: #a1a1aa; margin-top: 4px; margin-left: 8px; font-weight: 500; }
.comment-like-btn, .comment-reply-btn { cursor: pointer; transition: color 0.3s; }
.comment-like-btn:hover, .comment-reply-btn:hover { color: #fff; }
.comment-like-btn.liked { color: #3b82f6 !important; font-weight: bold; }
.replies-section { margin-top: 0.5rem; }
.view-replies-btn, .hide-replies-btn { font-size: 0.85rem; color: #a1a1aa; cursor: pointer; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.view-replies-btn:hover, .hide-replies-btn:hover { text-decoration: underline; }
.replies-list { margin-top: 0.8rem; padding-left: 1rem; border-left: 2px solid #3f3f46; margin-left: 0.5rem; transition: border-color 0.4s ease; }
.replies-list.hidden { display: none; }
.post-input-area { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.05); background: #18181b; transition: background 0.4s ease; }
.login-prompt p { font-size: 0.95rem; color: #a1a1aa; text-align: center; }
.login-prompt.hidden { display: none; }
.text-link-btn { background: none; border: none; color: #3b82f6; font-weight: 600; font-size: inherit; cursor: pointer; }
.comment-input-box { display: flex; align-items: center; gap: 0.5rem; }
.comment-input-box.hidden { display: none !important; }
.comment-input { flex: 1; background: #27272a; border: none; padding: 0.7rem 1rem; border-radius: 20px; color: #fff; outline: none; }
.send-comment-btn { background: none; border: none; color: #3b82f6; font-size: 1.5rem; cursor: pointer; }

/* ================= FOLDER MODAL ================= */
.folder-modal-content { display: flex; width: 90%; max-width: 1200px; height: 85vh; background: #18181b; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.folder-left { flex: 1.5; background: #050505; display: flex; justify-content: center; align-items: center; padding: 2rem; position: relative; }
.folder-left img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: opacity 0.3s ease; }
.folder-right { flex: 1; display: flex; flex-direction: column; background: #18181b; border-left: 1px solid rgba(255,255,255,0.05); min-width: 350px; }
.folder-header { padding: 1.5rem 1.5rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 0.5rem; }
.folder-header h3 { font-family: var(--title-font); font-size: 1.6rem; color: #fff; }
.folder-external-link { color: #3b82f6; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; transition: color 0.3s; }
.folder-external-link:hover { color: #60a5fa; text-decoration: underline; }
.folder-instructions { padding: 0.5rem 1.5rem; font-size: 0.85rem; color: #a1a1aa; }
.folder-thumbnails { flex-grow: 1; overflow-y: auto; padding: 1rem 1.5rem 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-content: start; }
.folder-thumb-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s, border-color 0.2s; background: #27272a; }
.folder-thumb-img:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.3); }
.folder-thumb-img.active-thumb { border-color: #3b82f6; transform: scale(1.02); }

/* Light Mode specific fixes for modals */
body.light-mode .post-modal-content, body.light-mode .folder-modal-content { background: #ffffff; border-color: #e2e8f0; }
body.light-mode .post-left, body.light-mode .folder-left { background: #f8fafc; }
body.light-mode .post-right, body.light-mode .folder-right { background: #ffffff; border-left: 1px solid #e2e8f0; }
body.light-mode .post-header, body.light-mode .post-caption-area, body.light-mode .post-input-area, body.light-mode .folder-header { border-color: #e2e8f0; background: #ffffff; }
body.light-mode .poster-info h4, body.light-mode .folder-header h3 { color: #0f172a; }
body.light-mode .post-caption-area { color: #334155; }
body.light-mode .comment-bubble { background: #f1f5f9; }
body.light-mode .comment-name { color: #0f172a; }
body.light-mode .comment-text { color: #334155; }
body.light-mode .comment-input { background: #f1f5f9; color: #0f172a; }
body.light-mode .comment-like-btn:hover, body.light-mode .comment-reply-btn:hover { color: #000; }
body.light-mode .replies-list { border-color: #e2e8f0; }
body.light-mode .folder-instructions { color: #64748b; }
body.light-mode .folder-thumb-img { background: #e2e8f0; }
body.light-mode .folder-thumb-img:hover { border-color: #94a3b8; }
body.light-mode .folder-thumb-img.active-thumb { border-color: #3b82f6; }

/* ================= AUTH MODALS ================= */
#auth-modal { z-index: 2000; }
.auth-card { background: #18181b; width: 90%; max-width: 400px; border-radius: 16px; padding: 2.5rem 2rem; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); color: #e4e4e7; text-align: center; transition: background 0.4s ease, color 0.4s ease; }
.auth-card.hidden { display: none; }
.close-auth-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: #94a3b8; cursor: pointer; }
.auth-card h3 { font-family: var(--title-font); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.input-group { position: relative; display: flex; align-items: center; background: #27272a; border-radius: 8px; padding: 0 1rem; transition: background 0.4s ease; }
.input-group i { color: #94a3b8; font-size: 1.2rem; }
.input-group input { width: 100%; background: transparent; border: none; padding: 0.8rem 0.8rem; font-size: 0.95rem; color: #fff; outline: none; }
.toggle-password { cursor: pointer; }
.name-row { display: flex; gap: 0.8rem; }
.name-row .input-group { flex: 1; }
.auth-submit-btn { background: #3b82f6; color: #fff; border: none; padding: 0.8rem; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.3s ease; margin-top: 0.5rem; }
.auth-submit-btn:hover { background: #2563eb; }
.auth-divider { display: flex; align-items: center; margin: 1.5rem 0; color: #a1a1aa; font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.auth-divider span { padding: 0 1rem; }
.google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #27272a; border: 1px solid #3f3f46; padding: 0.7rem; border-radius: 8px; font-weight: 600; color: #e4e4e7; cursor: pointer; transition: background 0.3s ease; }
.google-btn img { width: 18px; }
.google-btn:hover { background: #3f3f46; }
.auth-footer { margin-top: 1.5rem; font-size: 0.9rem; color: #94a3b8; }

body.light-mode .auth-card { background: #ffffff; color: #1e293b; }
body.light-mode .auth-card h3 { color: #0f172a; }
body.light-mode .input-group { background: #f1f5f9; }
body.light-mode .input-group input { color: #334155; }
body.light-mode .auth-divider::before, body.light-mode .auth-divider::after { background: #e2e8f0; }
body.light-mode .google-btn { background: #fff; color: #475569; border-color: #e2e8f0; }
body.light-mode .google-btn:hover { background: #f8fafc; }

@media (max-width: 900px) {
  .pubmat-grid, .folder-grid { grid-template-columns: repeat(2, 1fr); }
  .post-modal-content, .folder-modal-content { flex-direction: column; overflow-y: auto; height: 90vh; }
  .post-left, .folder-left { flex: none; height: 50vh; }
  .close-modal-btn, .close-folder-btn { background: rgba(0,0,0,0.7); }
}
@media (max-width: 600px) {
  .pubmat-grid, .folder-grid { grid-template-columns: 1fr; }
  .name-row { flex-direction: column; }
  .folder-thumbnails { grid-template-columns: 1fr 1fr; }
  .pending-item { flex-direction: column; align-items: flex-start; }
}

/* ================= EDITS & ANIMATIONS SECTION ================= */
.edits-main-title {
  font-family: var(--title-font);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}
.edits-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.edits-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.edits-profile h4 {
  font-family: var(--body-font);
  font-size: 1.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.verified-badge {
  color: #1da1f2;
  font-size: 1.2rem;
}

.personal-edits-row {
  display: flex;
  gap: 1.5rem;
  height: 280px; 
}
.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.vid-card, .thumb-wrapper {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.vid-card:hover, .thumb-wrapper:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
}

.personal-edits-row .square {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  height: 100%;
}
.personal-edits-row .landscape {
  flex-grow: 1;
  height: 100%;
}
.four-col-grid .landscape, .four-col-grid .thumb-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.vid-card video, .thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0.8;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vid-card:hover .play-overlay {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}
.thumb-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.thumb-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-decoration: none;
}
.thumb-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e4e4e7;
  text-align: center;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.thumb-card:hover .thumb-title {
  color: #3b82f6;
}

.tiktok-promo-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}
.tiktok-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.tiktok-promo-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
}
.tiktok-anim-icon {
  font-size: 1.5rem;
  animation: shake 1.5s infinite;
}
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.close-video-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.close-video-btn:hover {
  transform: scale(1.1);
}
#modal-video-player {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  outline: none;
}

body.light-mode .edits-main-title { color: #111; }
body.light-mode .edits-profile h4 { color: #111; }
body.light-mode .vid-card, body.light-mode .thumb-wrapper { background: #eee; border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .thumb-title { color: #333; }
body.light-mode .thumb-card:hover .thumb-title { color: #2563eb; }
body.light-mode .tiktok-promo-btn { border-color: #111; color: #111; }
body.light-mode .tiktok-promo-btn:hover { background: #111; color: #fff; }
body.light-mode .close-video-btn { color: #111; }

@media (max-width: 900px) {
  .personal-edits-row { flex-direction: column; height: auto; }
  .personal-edits-row .square, .personal-edits-row .landscape { width: 100%; aspect-ratio: 16/9; height: auto; }
  .four-col-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .four-col-grid { grid-template-columns: 1fr; }
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Syne:wght@600;700;800&display=swap');

:root {
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: #050505;
  color: #f4f4f5;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.modal-open { overflow: hidden; }

/* ================= THEME TRANSITION ================= */
#theme-transition {
  position: fixed; top: 50%; left: 50%; width: 20px; height: 20px;
  background: #ffffff; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  z-index: 9999999; pointer-events: none; transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  box-shadow: 0 0 50px 20px #ffffff;
}
.theme-transition-active { transform: translate(-50%, -50%) scale(250); }

/* ================= SMOOTH TRAILING CURSOR ================= */
.cursor-outline {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background-color: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  border-radius: 50%; transform: translate(-50%, -50%); z-index: 99999998;
  pointer-events: none; transition: background-color 0.4s ease, box-shadow 0.4s ease;
  will-change: left, top;
}
.cursor-pulse {
  position: fixed; width: 20px; height: 20px; border: 1.5px solid #ffffff;
  border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  z-index: 99999998; animation: clickPulseAnim 0.4s ease-out forwards;
}
@keyframes clickPulseAnim {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* ================= NAV BAR ================= */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; position: fixed; width: 100%; height: 70px; top: 0;
  background-color: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s ease;
}
.nav-logo-link {
  width: 120px; height: 40px; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(-20px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.nav-logo-link.visible { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-logo { width: 100%; height: 100%; object-fit: contain; transition: filter 0.4s ease; }
.menu-toggle { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: #e4e4e7; font-size: 1rem; font-weight: 500; }
.nav-auth-logout {
  background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171; padding: 0.4rem 0.9rem; border-radius: 20px; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 4px; transition: all 0.3s;
}
.nav-auth-logout:hover { background: rgba(239, 68, 68, 0.3); color: #fff; }
.nav-auth-logout.hidden { display: none; }
.theme-toggle-btn { font-size: 1.4rem; color: #fff; display: flex; align-items: center; transition: transform 0.3s ease, color 0.3s ease; margin-left: 0.5rem; }
.theme-toggle-btn:hover { transform: scale(1.15) rotate(15deg); }
.rolling-link { display: inline-flex; overflow: hidden; color: #a1a1aa; font-size: 0.95rem; font-weight: 500; height: 1.2rem; line-height: 1.2rem; vertical-align: top; }
.rolling-link .char { position: relative; display: inline-block; transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1); white-space: pre; }
.rolling-link .char::after { content: attr(data-char); position: absolute; left: 0; top: 100%; color: #ffffff; }
.rolling-link:hover .char { transform: translateY(-100%); }

/* ================= VIDEO HERO ================= */
.video-hero { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 1; }
.video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 2; transition: background 0.4s ease; }
.hero-content { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 100vw; padding: 0 1rem; }
.hero-logo-wrapper { position: relative; width: 100%; max-width: 420px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.hero-logo-wrapper::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 85%; height: 85%; background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%); filter: blur(40px); pointer-events: none; z-index: 0; transition: opacity 0.4s ease;
}
.hero-logo-base { width: 100%; height: auto; display: block; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 4px 18px rgba(255, 255, 255, 0.22)); transition: filter 0.4s ease; }
.hero-logo-neon {
  position: absolute; inset: 0; z-index: 2; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.8) 50%, transparent 65%);
  background-size: 200% 100%; -webkit-mask-image: url('assets/logo.png'); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; mask-image: url('assets/logo.png'); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
  animation: neonSweep 3s linear infinite; pointer-events: none;
}
@keyframes neonSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.hero-subtitle-wrapper { position: relative; height: 30px; width: 100%; display: flex; justify-content: center; align-items: center; margin-top: -0.25rem; margin-bottom: 2rem; overflow: hidden; }
#hero-subtitle { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.animated-word { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; white-space: nowrap; }
.animated-word .char { display: inline-block; font-size: 1.15rem; font-weight: 500; color: #e4e4e7; letter-spacing: 1px; transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease, color 0.4s ease; }
.animated-word.next .char { transform: translateY(100%); opacity: 0; }
.animated-word.visible .char { transform: translateY(0); opacity: 1; }
.animated-word.out .char { transform: translateY(-100%); opacity: 0; }
.hero-socials { display: flex; gap: 1.25rem; align-items: center; justify-content: center; position: relative; z-index: 10; }
.hero-socials a { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); display: flex; justify-content: center; align-items: center; color: #ffffff; font-size: 1.4rem; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.hero-socials a:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-3px); }

.scroll-indicator { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); width: 88%; max-width: 850px; display: flex; align-items: center; justify-content: center; gap: 1.25rem; color: #a1a1aa; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.5px; z-index: 4; transition: color 0.4s ease; }
.scroll-line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.18); transition: background 0.4s ease; }
.mouse-icon { width: 18px; height: 28px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 12px; display: flex; justify-content: center; padding-top: 5px; flex-shrink: 0; transition: border-color 0.4s ease; }
.mouse-wheel { width: 2px; height: 6px; background-color: #ffffff; border-radius: 2px; animation: scrollWheel 1.6s ease-in-out infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

.bottom-blur-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 280px; z-index: 50; pointer-events: none; background: rgba(5, 5, 5, 0.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%); mask-image: linear-gradient(to top, black 20%, transparent 100%); transition: opacity 0.5s ease, visibility 0.5s ease, background 0.4s ease; }
.bottom-blur-bar.hidden { opacity: 0; visibility: hidden; }

/* ================= SECTIONS ================= */
section:not(#home) { padding: 6rem 5%; position: relative; }
section:not(#home):after { content: ''; position: absolute; bottom: 0; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }
h2 { font-family: var(--title-font); margin-bottom: 2.5rem; font-size: 2.8rem; font-weight: 700; color: #ffffff; transition: color 0.4s ease; }
.section-sub { margin: 1rem 0 1.5rem; color: #e4e4e7; font-family: var(--title-font); transition: color 0.4s ease; }
.section-sub-desc { color: #a1a1aa; font-size: 1rem; margin-top: -2rem; margin-bottom: 2rem; }

/* ================= ABOUT ME ================= */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text-wrapper { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.about-text-block { grid-column: 1; grid-row: 1; opacity: 0; visibility: hidden; pointer-events: none; }
.about-text-block.active-persona { visibility: visible; pointer-events: auto; animation: fadeInText 0.6s ease forwards; }
@keyframes fadeInText { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.about-content h2 { font-family: var(--title-font); }
.about-content p { font-family: var(--body-font); color: #d4d4d8; font-size: 1.05rem; margin-bottom: 1.25rem; line-height: 1.7; transition: color 0.4s ease; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.about-tags span { font-size: 0.85rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.5rem 1rem; border-radius: 8px; color: #e4e4e7; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.about-image-wrapper { position: relative; width: 100%; display: flex; justify-content: center; }
#about-image { width: 100%; max-width: 500px; height: auto; border-radius: 16px; object-fit: cover; cursor: pointer; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
#about-image:hover { transform: scale(1.03); filter: brightness(1.1); }
.pulse-hint { animation: imgPulseHint 2.5s infinite; }
@keyframes imgPulseHint { 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } 50% { transform: scale(1.015); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)); } 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } }

/* ================= PUBMATS ================= */
.pubmat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.pubmat-card { background: rgba(18, 18, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, background 0.4s ease; }
.pubmat-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.pubmat-img-container { width: 100%; aspect-ratio: 1080 / 1300; background: #111; overflow: hidden; cursor: pointer; }
.pubmat-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pubmat-card:hover .pubmat-img { transform: scale(1.05); }
.pubmat-actions { display: flex; justify-content: space-around; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.action-btn { background: none; border: none; color: #a1a1aa; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; transition: color 0.3s ease, transform 0.2s ease; }
.action-btn:hover { color: #fff; transform: scale(1.1); }
.react-btn.reacted { color: #ef4444 !important; }

/* ================= EXPANDED CREATIONS ================= */
.expand-btn-container { display: flex; justify-content: center; margin: 1rem 0; }
.toggle-expansion-btn {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #e4e4e7;
  padding: 0.8rem 2rem; border-radius: 30px; font-weight: 500; font-size: 0.95rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.toggle-expansion-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.expanded-section { transition: opacity 0.5s ease, max-height 0.8s ease; overflow: hidden; opacity: 1; }
.expanded-section.hidden { max-height: 0; opacity: 0; display: none; }

/* FOLDER STYLES */
.folder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.folder-card { cursor: pointer; transition: transform 0.3s ease; }
.folder-card:hover { transform: translateY(-8px); }
.folder-cover {
  position: relative; width: 100%; aspect-ratio: 4/5; background: #18181b; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.folder-cover::before { content: ""; position: absolute; top: -6px; right: -6px; bottom: 6px; left: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; z-index: -1; }
.folder-cover::after { content: ""; position: absolute; top: -12px; right: -12px; bottom: 12px; left: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; z-index: -2; }
.folder-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: opacity 0.3s ease; }
.folder-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; padding: 0.3rem 0.6rem; border-radius: 20px; font-size: 0.8rem; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.folder-info { padding: 1rem 0; text-align: center; }
.folder-info h4 { font-family: var(--title-font); font-size: 1.1rem; color: #e4e4e7; transition: color 0.3s; }
.folder-card:hover .folder-info h4 { color: #fff; }

/* TIKTOK & PROMO BUTTONS */
.tiktok-promo-wrapper, .testimonial-promo-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.tiktok-promo-btn, .testimonial-promo-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.tiktok-promo-btn:hover, .testimonial-promo-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* MARQUEE STYLES */
.marquee-container { width: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 2rem; position: relative; }
.marquee-container::before, .marquee-container::after { content: ''; position: absolute; top: 0; width: 15%; height: 100%; z-index: 2; pointer-events: none; }
.marquee-container::before { left: 0; background: linear-gradient(to right, #050505, transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, #050505, transparent); }

.marquee-wrapper { display: flex; width: max-content; }
.marquee-track { 
  display: flex; 
  gap: 1.5rem; 
  padding-right: 1.5rem;
  will-change: transform; 
}
.track-right { animation: scrollRight 40s linear infinite; }
.track-left { animation: scrollLeft 40s linear infinite; }

.marquee-link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.marquee-link:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 10;
}
.marquee-img { 
  width: 220px; 
  height: 220px; 
  object-fit: cover; 
  background: #111; 
  display: block;
}

@keyframes scrollRight { 
  from { transform: translate3d(-50%, 0, 0); } 
  to { transform: translate3d(0, 0, 0); } 
}
@keyframes scrollLeft { 
  from { transform: translate3d(0, 0, 0); } 
  to { transform: translate3d(-50%, 0, 0); } 
}

/* ================= TESTIMONIALS SECTION ================= */
.testimonials-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}
.testimonials-marquee-container::before, .testimonials-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 12%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.testimonials-marquee-container::before { left: 0; background: linear-gradient(to right, #050505, transparent); }
.testimonials-marquee-container::after { right: 0; background: linear-gradient(to left, #050505, transparent); }

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: testimonialsInfiniteScroll 35s linear infinite;
  will-change: transform;
}

@keyframes testimonialsInfiniteScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.testimonial-card {
  width: 320px;
  background: rgba(18, 18, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-pfp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.testimonial-info {
  display: flex;
  flex-direction: column;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}
.testimonial-msg {
  font-size: 0.9rem;
  color: #d4d4d8;
  line-height: 1.5;
  font-style: italic;
  word-break: break-word;
}
.loading-card {
  text-align: center;
  color: #a1a1aa;
}

/* Modal form for testimonials */
.testimonial-modal-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.2rem;
  width: 90%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.testimonial-modal-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: #fff;
}
.close-testimonial-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-testimonial-modal-btn:hover { color: #fff; }

.testimonial-prompt {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}
.testimonial-prompt p {
  color: #a1a1aa;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.testimonial-login-trigger {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s;
}
.testimonial-login-trigger:hover {
  background: #2563eb;
  transform: scale(1.03);
}

.testimonial-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.user-pfp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.user-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.logout-btn-inline {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #a1a1aa;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.logout-btn-inline:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.testimonial-input-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#testimonial-input {
  width: 100%;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  outline: none;
  resize: none;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
#testimonial-input:focus {
  border-color: #3b82f6;
}
.testimonial-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.char-counter {
  font-size: 0.8rem;
  color: #71717a;
}
.send-testimonial-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.3s;
}
.send-testimonial-btn:hover { background: #2563eb; }

.status-msg {
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
}
.status-msg.success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-msg.error { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Admin Dashboard Moderation Panel */
.admin-panel {
  margin-top: 3rem;
  background: rgba(30, 27, 75, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}
.admin-header h3 {
  font-size: 1.2rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.badge {
  background: #6366f1;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pending-item {
  background: rgba(18, 18, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pending-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pending-user {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.pending-msg {
  font-size: 0.85rem;
  color: #d4d4d8;
}
.pending-actions {
  display: flex;
  gap: 0.5rem;
}
.admin-btn {
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
}
.admin-btn:hover { opacity: 0.85; }
.approve-btn { background: #22c55e; color: #fff; }
.decline-btn { background: #ef4444; color: #fff; }


.reveal { opacity: 0; transform: translateY(50px) scale(0.95); transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* ================= LIGHT MODE OVERRIDES ================= */
body.light-mode { background-color: #ffffff; color: #111111; }
body.light-mode .cursor-outline { background-color: #000000; box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); }
body.light-mode .cursor-pulse { border-color: #000000; }
body.light-mode h2 { color: #000000; }
body.light-mode .section-sub { color: #333333; }
body.light-mode nav { background-color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
body.light-mode .nav-logo { filter: invert(1); }
body.light-mode .contact-form-card, body.light-mode .testimonial-card, body.light-mode .pubmat-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
body.light-mode .about-tags span, body.light-mode .contact-input-group { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #111; }
body.light-mode .contact-input-group input, body.light-mode .contact-input-group textarea, body.light-mode #testimonial-input { color: #111; }
body.light-mode .contact-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
body.light-mode .contact-item .val { color: #111; }
body.light-mode .testimonial-modal-card { background: #ffffff; }
body.light-mode .testimonial-modal-card h3, body.light-mode .user-name { color: #111; }
body.light-mode .close-testimonial-modal-btn { color: #555; }
body.light-mode .bottom-blur-bar { background: rgba(255,255,255,0.2); }
body.light-mode .bottom-nav-footer { background: #f4f4f5; border-top-color: rgba(0,0,0,0.1); }
body.light-mode .footer-logo-large { filter: invert(1); }
body.light-mode .footer-explore h4, body.light-mode .footer-socials-container h4 { color: #111111; }
body.light-mode .footer-tagline, body.light-mode .footer-nav-links-vertical a, body.light-mode .footer-socials a, body.light-mode .copyright-text { color: #555555; }
body.light-mode .footer-socials a { border-color: rgba(0,0,0,0.2); }
body.light-mode .footer-divider { background: rgba(0,0,0,0.1); }

/* ================= FINAL PORTFOLIO FIXES ================= */

/* Growtopia Animation TikTok button:
   keep the existing size, animation and UI, but force the intended
   white background / black content hover state in dark mode. */
body:not(.light-mode) .tiktok-promo-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}
body:not(.light-mode) .tiktok-promo-btn:hover i {
  color: #000000 !important;
}

/* Testimonials marquee should never pause, lift, or behave like a clickable card. */
.testimonials-track:hover {
  animation-play-state: running !important;
}
.testimonial-card,
.testimonial-card:hover {
  cursor: default !important;
}
.testimonial-card:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body.light-mode .testimonial-card:hover {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Keep the feedback CTA visible and readable in light mode. */
body.light-mode .testimonial-promo-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.18);
}
body.light-mode .testimonial-promo-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Light-mode moderation panel. */
body.light-mode .admin-panel {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.22);
}
body.light-mode .admin-header {
  border-bottom-color: rgba(79, 70, 229, 0.18);
}
body.light-mode .admin-header h3 {
  color: #3730a3;
}
body.light-mode .pending-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.09);
}
body.light-mode .pending-user {
  color: #111111;
}
body.light-mode .pending-msg,
body.light-mode .empty-pending {
  color: #444444;
}

/* Delete button for approved testimonial cards, rendered only for the admin by app.js. */
.admin-delete-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  z-index: 3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.admin-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.06);
}
body.light-mode .admin-delete-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.28);
}

/* =====================================================================
   CONTACT + FOOTER — COPIED FROM contactfooter(1).css
   Only Contact and Footer are changed here.
   ===================================================================== */

/* ================= CONTACT SECTION ================= */
/* ================= CONTACT SECTION ================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.contact-form-card {
  background: rgba(18, 18, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.contact-form-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: var(--title-font);
}
.contact-input-group {
  display: flex;
  align-items: center;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.contact-input-group.align-top {
  align-items: flex-start;
}
.contact-input-group i {
  color: #a1a1aa; /* Set to gray instead of blue */
  margin-right: 0.8rem;
  font-size: 1.2rem;
}
.contact-input-group.align-top i {
  margin-top: 5px; /* Ensures alignment with textarea text */
}
.contact-input-group input, 
.contact-input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}
.send-contact-btn {
  width: 100%;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: background 0.3s;
}
.send-contact-btn:hover {
  background: #2563eb;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}
.contact-item {
  padding: 1.8rem;
  background: rgba(18, 18, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.contact-item .label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.contact-item .val {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}

.visitor-stats-card {
  padding: 1.5rem 1.8rem;
  background: rgba(18, 18, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #e4e4e7;
  font-weight: 500;
  font-size: 1.05rem;
}
.stat-badge.active-live {
  color: #4ade80;
}
.pulse-icon {
  animation: livePulse 2s infinite;
  color: #4ade80;
}
@keyframes livePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}


/* ================= FOOTER SECTION ================= */
.bottom-nav-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 5% 1.5rem;
  margin-top: 2rem;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-logo-large {
  width: 140px;
  margin-left: -10px; /* Align to equal the text */
  margin-bottom: 15px;
}
.footer-tagline {
  color: #a1a1aa;
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
}
.footer-explore {
  transform: translateX(-35px); /* Move left to equal center alignment */
}
.footer-explore h4, 
.footer-socials-container h4 {
  color: #fff;
  font-family: var(--title-font);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}
.footer-nav-links-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-nav-links-vertical a {
  color: #a1a1aa;
  transition: color 0.3s ease;
}
.footer-nav-links-vertical a:hover {
  color: #fff;
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  background: #fff;
  color: #000;
}
.footer-bottom {
  text-align: center;
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}
.copyright-text {
  color: #71717a;
  font-size: 0.9rem;
}

/* ================= REQUESTED FOOTER CHANGES ================= */

/* Reduced footer height compared with the reference. */
.bottom-nav-footer {
  padding: 2rem 5% 1rem;
  margin-top: 1rem;
}

/* Bigger footer logo. */
.footer-logo-large {
  width: 170px;
  height: auto;
  object-fit: contain;
}

/* Keep the existing social-icon hover movement. */
.footer-socials a:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-3px);
}

/* ================= CONTACT + FOOTER LIGHT MODE ================= */

/* "Send a Direct Message" must remain visible in light mode. */
body.light-mode .contact-form-card {
  background: #fff;
  border-color: #e2e8f0;
}

body.light-mode .contact-form-card h3,
body.light-mode .contact-form-card h3 i {
  color: #000 !important;
}

body.light-mode .contact-input-group {
  background: #f4f4f5;
  border-color: #cbd5e1;
}

body.light-mode .contact-input-group i {
  color: #000;
}

body.light-mode .contact-input-group input,
body.light-mode .contact-input-group textarea {
  color: #000;
}

body.light-mode .contact-input-group input::placeholder,
body.light-mode .contact-input-group textarea::placeholder {
  color: #71717a;
}

body.light-mode .contact-item,
body.light-mode .visitor-stats-card {
  background: #fff;
  border-color: #e2e8f0;
}

body.light-mode .contact-item .label,
body.light-mode .contact-item .val,
body.light-mode .stat-badge {
  color: #000;
}

body.light-mode .visitor-stats-card .stat-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #222;
}

body.light-mode .visitor-stats-card .stat-badge.active-live {
  border-color: rgba(34, 197, 94, 0.4);
  color: #15803d;
}

/* Footer light mode. */
body.light-mode .bottom-nav-footer {
  background: #fff;
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Make the footer logo black in light mode. */
body.light-mode .footer-logo-large {
  filter: invert(1) !important;
}

body.light-mode .footer-explore h4,
body.light-mode .footer-socials-container h4 {
  color: #000;
}

body.light-mode .footer-tagline,
body.light-mode .copyright-text {
  color: #555;
}

body.light-mode .footer-nav-links-vertical a {
  color: #555;
}

body.light-mode .footer-nav-links-vertical a:hover {
  color: #000;
}

body.light-mode .footer-socials a {
  background: #f4f4f5;
  color: #000;
  border-color: #ccc;
}

body.light-mode .footer-socials a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-3px);
}

body.light-mode .footer-divider {
  background: rgba(0, 0, 0, 0.1);
}

/* ================= CONTACT + FOOTER RESPONSIVE ================= */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr !important;
  }

  .visitor-stats-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .footer-logo-large {
    align-self: center;
    margin-left: 0;
    width: 170px;
    transform: none !important;
  }

  .footer-explore {
    transform: none !important;
  }

  .footer-explore,
  .footer-socials-container {
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-tagline {
    margin: 0 auto;
  }

  .bottom-nav-footer {
    padding: 1.75rem 5% 0.9rem;
    margin-top: 1rem;
  }
}

/* ================================================================
   CONTACT SECTION UPDATE — FROM style_updated_v2 (1).css
   Only Contact-related styles are included here.
   ================================================================ */

/* ---------- CONTACT: DIFFERENT MOVING LIQUID/SCAN OVERLAY ---------- */
#contact {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(120deg, #050505 0%, #080808 52%, #050505 100%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05), transparent 35%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.10);
}

#contact::before {
  content: "";
  position: absolute;
  width: 65vw;
  height: 65vw;
  max-width: 900px;
  max-height: 900px;
  left: -22%;
  top: 12%;
  z-index: -2;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 46% 54% 62% 38% / 42% 45% 55% 58%;
  background:
    radial-gradient(circle at 65% 40%, rgba(255,255,255,.10), transparent 18%),
    radial-gradient(circle at 35% 70%, rgba(255,255,255,.045), transparent 25%),
    transparent;
  filter: blur(.2px);
  box-shadow:
    0 0 80px rgba(255,255,255,.025),
    inset 0 0 70px rgba(255,255,255,.025);
  animation: contactOrbitalFloat 16s ease-in-out infinite alternate;
}

#contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 8px,
      rgba(255,255,255,.018) 9px,
      transparent 10px 18px
    ),
    linear-gradient(
      115deg,
      transparent 0 28%,
      rgba(255,255,255,.055) 43%,
      transparent 58%
    );
  background-size: 100% 100%, 240% 100%;
  mix-blend-mode: screen;
  animation: contactScanGlitch 13s ease-in-out infinite;
}

@keyframes contactOrbitalFloat {
  0% { transform: translate3d(-2%, 0, 0) rotate(-8deg) scale(.96); }
  50% { transform: translate3d(8%, 4%, 0) rotate(5deg) scale(1.04); }
  100% { transform: translate3d(1%, -4%, 0) rotate(12deg) scale(1); }
}

@keyframes contactScanGlitch {
  0%, 60%, 100% { background-position: 0 0, -80% 0; transform: translate3d(0,0,0); }
  68% { background-position: 0 0, 15% 0; transform: translate3d(4px,0,0); }
  70% { background-position: 0 0, -5% 0; transform: translate3d(-3px,0,0); }
  72% { background-position: 0 0, 35% 0; transform: translate3d(2px,0,0); }
  75% { background-position: 0 0, -80% 0; transform: translate3d(0,0,0); }
}

/* ---------- TRUE EQUAL-HEIGHT CONTACT COLUMNS ---------- */
#contact .contact-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 3rem;
}

#contact .contact-form-card,
#contact .contact-info-wrapper {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  align-self: stretch;
}

#contact .contact-form-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.5rem;
}

#contact .contact-form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#contact .contact-input-group {
  flex-shrink: 0;
}

#contact .contact-input-group.align-top textarea {
  min-height: 112px;
}

#contact .send-contact-btn {
  margin-top: auto;
}

#contact .contact-status-msg {
  margin-bottom: 0;
}

#contact .contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contact .contact-grid {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
}

#contact .visitor-stats-card {
  flex-shrink: 0;
}

/* ---------- CONTACT RESPONSIVE ---------- */
@media (max-width: 900px) {
  #contact .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #contact .contact-form-card,
  #contact .contact-info-wrapper {
    height: auto;
  }

  #contact .contact-form-card form {
    flex: initial;
  }

  #contact .send-contact-btn {
    margin-top: 0;
  }
}

/* ---------- CONTACT REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  #contact::before,
  #contact::after {
    animation: none !important;
  }
}

/* ---------- CONTACT LIGHT MODE FOR THE NEW BACKGROUND ---------- */
body.light-mode #contact {
  background:
    linear-gradient(120deg, #ffffff 0%, #f7f7f7 52%, #ffffff 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.10);
}

body.light-mode #contact::before {
  border-color: rgba(0,0,0,.045);
  background:
    radial-gradient(circle at 65% 40%, rgba(0,0,0,.07), transparent 18%),
    radial-gradient(circle at 35% 70%, rgba(0,0,0,.035), transparent 25%),
    transparent;
  box-shadow:
    0 0 80px rgba(0,0,0,.02),
    inset 0 0 70px rgba(0,0,0,.02);
}

body.light-mode #contact::after {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 8px,
      rgba(0,0,0,.014) 9px,
      transparent 10px 18px
    ),
    linear-gradient(
      115deg,
      transparent 0 28%,
      rgba(0,0,0,.035) 43%,
      transparent 58%
    );
}



/* ================================================================
   PERSONAL PORTFOLIO POLISH — REQUESTED INTERACTIONS
   These rules are additive and intentionally avoid changing the
   existing grid/layout structure.
   ================================================================ */

/* ---------- Progress streaks on nav/footer ---------- */
nav {
  position: fixed;
}
.nav-progress-line,
.footer-progress-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
}
.nav-progress-line { bottom: -1px; }
.footer-progress-line { top: -1px; }

.nav-progress-line::before,
.footer-progress-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
}

.nav-progress-line span,
.footer-progress-line span {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 20%, #fff 50%, rgba(255,255,255,.35) 80%, transparent 100%);
  box-shadow: 0 0 7px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.35);
  will-change: transform;
}
.nav-progress-line span::after,
.footer-progress-line span::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 70px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  filter: blur(3px);
  box-shadow: 0 0 12px 3px #fff;
}

body.light-mode .nav-progress-line::before,
body.light-mode .footer-progress-line::before {
  background: rgba(0,0,0,.1);
}
body.light-mode .nav-progress-line span,
body.light-mode .footer-progress-line span {
  background: linear-gradient(90deg, transparent, #111 50%, transparent);
  box-shadow: 0 0 7px rgba(0,0,0,.45);
}
body.light-mode .nav-progress-line span::after,
body.light-mode .footer-progress-line span::after {
  background: #111;
  box-shadow: 0 0 12px 3px #111;
}

/* ---------- Watch cursor ---------- */
.cursor-outline {
  transition:
    background-color .4s ease,
    box-shadow .4s ease,
    width .35s cubic-bezier(.22,1,.36,1),
    height .35s cubic-bezier(.22,1,.36,1),
    border-radius .35s ease;
}
.cursor-outline.cursor-watch-active {
  width: 0;
  height: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.cursor-watch-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999999;
  pointer-events: none;
  color: #fff;
  font: 600 11px/1 Poppins, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.cursor-watch-label.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
body.light-mode .cursor-watch-label { color: #000; }

/* ---------- Black/gray 3D-ish dynamic titles ---------- */
.gradient-title {
  --title-angle: 135deg;
  color: transparent !important;
  background: linear-gradient(
    var(--title-angle),
    #050505 0%,
    #3f3f46 25%,
    #f4f4f5 49%,
    #71717a 63%,
    #111 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255,255,255,.12),
    0 5px 14px rgba(0,0,0,.32);
  transition: background .18s linear, text-shadow .3s ease;
}
body.light-mode .gradient-title {
  background: linear-gradient(
    var(--title-angle),
    #111 0%,
    #52525b 30%,
    #f8fafc 50%,
    #71717a 68%,
    #222 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 7px rgba(0,0,0,.14);
}

/* ---------- Neon corner streak for buttons/cards ---------- */
.neon-hover-target {
  position: relative;
  isolation: isolate;
}
.neon-hover-target::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 275deg,
    rgba(255,255,255,.05) 300deg,
    #fff 320deg,
    rgba(255,255,255,.25) 342deg,
    transparent 360deg
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.neon-hover-target:hover::before {
  opacity: 1;
  animation: neonCornerSweep 1.35s linear infinite;
}
@keyframes neonCornerSweep {
  to { transform: rotate(360deg); }
}
.neon-hover-target::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  right: 8px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px 2px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.45);
  opacity: 0;
  transform: translateX(15px);
  pointer-events: none;
  z-index: 6;
}
.neon-hover-target:hover::after {
  opacity: .95;
  animation: neonStreakTravel 1.35s linear infinite;
}
@keyframes neonStreakTravel {
  0% { transform: translate(16px, -1px) rotate(0deg); }
  25% { transform: translate(0, 0) rotate(90deg); }
  50% { transform: translate(-100%, 0) rotate(180deg); }
  75% { transform: translate(-100%, 100%) rotate(270deg); }
  100% { transform: translate(16px, -1px) rotate(360deg); }
}
body.light-mode .neon-hover-target::before {
  background: conic-gradient(from 0deg, transparent 0 275deg, rgba(0,0,0,.08) 300deg, #111 320deg, rgba(0,0,0,.2) 342deg, transparent 360deg);
}
body.light-mode .neon-hover-target::after {
  background: #111;
  box-shadow: 0 0 7px 2px rgba(0,0,0,.45);
}

/* ---------- Section-specific entrance motion ---------- */
.section-reveal-1.active .about-content {
  animation: sectionAboutText .9s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-1.active .about-image-wrapper {
  animation: sectionAboutImage 1s cubic-bezier(.22,1,.36,1) .12s both;
}
.section-reveal-2.active > h2,
.section-reveal-2.active > .section-sub {
  animation: sectionCreationsTitle .8s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-2.active .pubmat-card,
.section-reveal-2.active .folder-card,
.section-reveal-2.active .vid-card,
.section-reveal-2.active .thumb-card {
  animation: sectionCreationsItems .8s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-2.active .pubmat-card:nth-child(2),
.section-reveal-2.active .folder-card:nth-child(2),
.section-reveal-2.active .vid-card:nth-child(2),
.section-reveal-2.active .thumb-card:nth-child(2) { animation-delay: .08s; }
.section-reveal-2.active .pubmat-card:nth-child(3),
.section-reveal-2.active .folder-card:nth-child(3),
.section-reveal-2.active .vid-card:nth-child(3),
.section-reveal-2.active .thumb-card:nth-child(3) { animation-delay: .16s; }
.section-reveal-2.active .pubmat-card:nth-child(4),
.section-reveal-2.active .folder-card:nth-child(4),
.section-reveal-2.active .vid-card:nth-child(4),
.section-reveal-2.active .thumb-card:nth-child(4) { animation-delay: .24s; }
.section-reveal-3.active > * {
  animation: sectionTestimonials .85s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-3.active > *:nth-child(2) { animation-delay: .1s; }
.section-reveal-3.active > *:nth-child(3) { animation-delay: .2s; }
.section-reveal-4.active > h2,
.section-reveal-4.active > .section-sub-desc {
  animation: sectionContactTitle .85s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-4.active .contact-form-card {
  animation: contactFormIn .95s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-4.active .contact-grid .contact-item {
  animation: contactInfoIn .85s cubic-bezier(.22,1,.36,1) var(--contact-delay, .22s) both;
}

@keyframes sectionAboutText {
  from { opacity: 0; transform: translateX(-45px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes sectionAboutImage {
  from { opacity: 0; transform: translateX(45px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes sectionCreationsTitle {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sectionCreationsItems {
  from { opacity: 0; transform: translateY(34px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sectionTestimonials {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sectionContactTitle {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes contactFormIn {
  from { opacity: 0; transform: translateX(-90px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes contactInfoIn {
  from { opacity: 0; transform: translateX(90px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Compact one-line footer ---------- */
.bottom-nav-footer {
  position: relative;
  padding: 1.15rem 5% .8rem;
  margin-top: .5rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: .65rem;
}
.footer-brand {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 1.15rem;
}
.footer-logo-large {
  width: 92px;
  max-width: 92px;
  margin: 0;
  flex: 0 0 auto;
}
.footer-tagline {
  max-width: none;
  font-size: .82rem;
  line-height: 1.3;
  white-space: nowrap;
}
.footer-socials-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.footer-socials-container h4 {
  margin: 0;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-socials {
  gap: .55rem;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-align: left;
}
.footer-divider {
  flex: 1;
  margin: 0;
  height: 1px;
}
.copyright-text {
  font-size: .65rem;
  white-space: nowrap;
}

/* Email is deliberately plain/non-clickable. */
#contact .contact-item {
  cursor: default;
}
#contact .contact-item:hover {
  font-weight: inherit;
  transform: none;
}

/* Mobile: preserve the compact footer while allowing a clean wrap. */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    margin-bottom: .7rem;
  }
  .footer-brand {
    flex-direction: column;
    gap: .35rem;
    text-align: center;
  }
  .footer-logo-large {
    width: 90px;
    max-width: 90px;
  }
  .footer-tagline {
    white-space: normal;
    font-size: .75rem;
  }
  .footer-socials-container {
    justify-content: center;
  }
  .footer-socials-container h4 { font-size: .72rem; }
  .footer-socials a { width: 30px; height: 30px; }
  .footer-bottom {
    flex-direction: column;
    gap: .45rem;
    text-align: center;
  }
  .footer-divider { width: 100%; }
  .copyright-text { white-space: normal; }
}

/* Reduced-motion accessibility. */
@media (prefers-reduced-motion: reduce) {
  .neon-hover-target:hover::before,
  .neon-hover-target:hover::after {
    animation: none;
  }
  .cursor-watch-label {
    transition: none;
  }
  .section-reveal-1.active .about-content,
  .section-reveal-1.active .about-image-wrapper,
  .section-reveal-2.active > h2,
  .section-reveal-2.active > .section-sub,
  .section-reveal-2.active .pubmat-card,
  .section-reveal-2.active .folder-card,
  .section-reveal-2.active .vid-card,
  .section-reveal-2.active .thumb-card,
  .section-reveal-3.active > *,
  .section-reveal-4.active > h2,
  .section-reveal-4.active > .section-sub-desc,
  .section-reveal-4.active .contact-form-card,
  .section-reveal-4.active .contact-grid .contact-item {
    animation: none !important;
  }
}

/* ---------- Nav/footer entrance motion ---------- */
nav {
  animation: navEntrance .75s cubic-bezier(.22,1,.36,1) both;
}
.bottom-nav-footer {
  animation: footerEntrance .9s cubic-bezier(.22,1,.36,1) .15s both;
}
@keyframes navEntrance {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes footerEntrance {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  nav, .bottom-nav-footer { animation: none !important; }
}


/* ================================================================
   FINAL INTERACTION POLISH — SLOWER, CLEANER, CENTER-OUT PROGRESS
   ================================================================ */

/* Native wheel scrolling: no custom interception or delayed scrolling. */
html {
  scroll-behavior: smooth;
}

/* ---------- Center-out scroll progress ---------- */
.nav-progress-line span,
.footer-progress-line span {
  left: calc(50% - (var(--progress, 0) * 50%));
  right: auto;
  width: calc(var(--progress, 0) * 100%);
  inset-block: 0;
  transform: none;
  transform-origin: center;
  transition: left .08s linear, width .08s linear;
}

.nav-progress-line span::after,
.footer-progress-line span::after {
  right: 0;
}

/* ---------- Watch cursor: visible pill instead of bare text ---------- */
.cursor-watch-label {
  min-width: 72px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(12,12,14,.86);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 8px 24px rgba(0,0,0,.35),
    0 0 18px rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .9px;
  text-align: center;
  white-space: nowrap;
}
.cursor-watch-label.active {
  transform: translate(-50%, -50%) scale(1);
}
body.light-mode .cursor-watch-label {
  color: #111;
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.28);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.04) inset,
    0 8px 24px rgba(0,0,0,.14),
    0 0 18px rgba(0,0,0,.08);
}

/* ---------- Automatically moving, highly visible title texture ---------- */
.gradient-title {
  color: transparent !important;
  background: linear-gradient(
    115deg,
    #f8fafc 0%,
    #9ca3af 18%,
    #ffffff 34%,
    #55565c 50%,
    #f4f4f5 67%,
    #8b8d93 82%,
    #ffffff 100%
  );
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255,255,255,.18),
    0 5px 18px rgba(0,0,0,.3);
  animation: titleTextureMove 9s ease-in-out infinite alternate;
}
@keyframes titleTextureMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 55% 50%; }
  100% { background-position: 100% 50%; }
}
body.light-mode .gradient-title {
  background: linear-gradient(
    115deg,
    #111827 0%,
    #6b7280 20%,
    #ffffff 38%,
    #4b5563 52%,
    #111827 70%,
    #9ca3af 84%,
    #111827 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ---------- Clean neon border that actually follows the button/card ---------- */
.neon-hover-target,
button:not(.nav-auth-logout),
.toggle-expansion-btn,
.tiktok-promo-btn,
.testimonial-promo-btn,
.send-contact-btn,
.testimonial-login-trigger,
.send-testimonial-btn,
.auth-submit-btn,
.google-btn,
.pubmat-card,
.folder-card,
.vid-card,
.thumb-card,
.footer-socials a,
.hero-socials a {
  position: relative;
  isolation: isolate;
}

.neon-hover-target::before,
button:not(.nav-auth-logout)::before,
.toggle-expansion-btn::before,
.tiktok-promo-btn::before,
.testimonial-promo-btn::before,
.send-contact-btn::before,
.testimonial-login-trigger::before,
.send-testimonial-btn::before,
.auth-submit-btn::before,
.google-btn::before,
.pubmat-card::before,
.folder-card::before,
.vid-card::before,
.thumb-card::before,
.footer-socials a::before,
.hero-socials a::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(255,255,255,.10) 314deg,
    rgba(255,255,255,.65) 326deg,
    #fff 338deg,
    rgba(255,255,255,.18) 350deg,
    transparent 360deg
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity .2s ease;
}

.neon-hover-target:hover::before,
button:not(.nav-auth-logout):hover::before,
.toggle-expansion-btn:hover::before,
.tiktok-promo-btn:hover::before,
.testimonial-promo-btn:hover::before,
.send-contact-btn:hover::before,
.testimonial-login-trigger:hover::before,
.send-testimonial-btn:hover::before,
.auth-submit-btn:hover::before,
.google-btn:hover::before,
.pubmat-card:hover::before,
.folder-card:hover::before,
.vid-card:hover::before,
.thumb-card:hover::before,
.footer-socials a:hover::before,
.hero-socials a:hover::before {
  opacity: 1;
  animation: neonBorderOrbit 2.2s linear infinite;
}

/* The old floating streak is disabled for the helper class. */
.neon-hover-target::after {
  content: none !important;
}

@keyframes neonBorderOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body.light-mode .neon-hover-target::before,
body.light-mode button:not(.nav-auth-logout)::before,
body.light-mode .toggle-expansion-btn::before,
body.light-mode .tiktok-promo-btn::before,
body.light-mode .testimonial-promo-btn::before,
body.light-mode .send-contact-btn::before,
body.light-mode .testimonial-login-trigger::before,
body.light-mode .send-testimonial-btn::before,
body.light-mode .auth-submit-btn::before,
body.light-mode .google-btn::before,
body.light-mode .pubmat-card::before,
body.light-mode .folder-card::before,
body.light-mode .vid-card::before,
body.light-mode .thumb-card::before,
body.light-mode .footer-socials a::before,
body.light-mode .hero-socials a::before {
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(0,0,0,.06) 314deg,
    rgba(0,0,0,.5) 326deg,
    #111 338deg,
    rgba(0,0,0,.12) 350deg,
    transparent 360deg
  );
}

/* ---------- Slow, clearly visible section entrances ---------- */
.reveal {
  transition:
    opacity 1.5s cubic-bezier(.22,1,.36,1),
    transform 1.5s cubic-bezier(.22,1,.36,1);
}

.section-reveal-0.active .hero-content {
  animation: homeEntrance 1.65s cubic-bezier(.22,1,.36,1) .35s both;
}
.section-reveal-0.active .scroll-indicator {
  animation: homeIndicatorIn 1.45s cubic-bezier(.22,1,.36,1) 1s both;
}

.section-reveal-1.active .about-content {
  animation: sectionAboutText 1.5s cubic-bezier(.22,1,.36,1) .2s both;
}
.section-reveal-1.active .about-image-wrapper {
  animation: sectionAboutImage 1.55s cubic-bezier(.22,1,.36,1) .45s both;
}

.section-reveal-2.active > h2,
.section-reveal-2.active > .section-sub {
  animation: sectionCreationsTitle 1.5s cubic-bezier(.22,1,.36,1) .2s both;
}
.section-reveal-2.active .pubmat-card,
.section-reveal-2.active .folder-card,
.section-reveal-2.active .vid-card,
.section-reveal-2.active .thumb-card {
  animation: sectionCreationsItems 1.55s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-2.active .pubmat-card:nth-child(1),
.section-reveal-2.active .folder-card:nth-child(1),
.section-reveal-2.active .vid-card:nth-child(1),
.section-reveal-2.active .thumb-card:nth-child(1) { animation-delay: .55s; }
.section-reveal-2.active .pubmat-card:nth-child(2),
.section-reveal-2.active .folder-card:nth-child(2),
.section-reveal-2.active .vid-card:nth-child(2),
.section-reveal-2.active .thumb-card:nth-child(2) { animation-delay: .78s; }
.section-reveal-2.active .pubmat-card:nth-child(3),
.section-reveal-2.active .folder-card:nth-child(3),
.section-reveal-2.active .vid-card:nth-child(3),
.section-reveal-2.active .thumb-card:nth-child(3) { animation-delay: 1.01s; }
.section-reveal-2.active .pubmat-card:nth-child(4),
.section-reveal-2.active .folder-card:nth-child(4),
.section-reveal-2.active .vid-card:nth-child(4),
.section-reveal-2.active .thumb-card:nth-child(4) { animation-delay: 1.24s; }

.section-reveal-3.active > * {
  animation: sectionTestimonials 1.45s cubic-bezier(.22,1,.36,1) both;
}
.section-reveal-3.active > *:nth-child(1) { animation-delay: .2s; }
.section-reveal-3.active > *:nth-child(2) { animation-delay: .55s; }
.section-reveal-3.active > *:nth-child(3) { animation-delay: .9s; }

.section-reveal-4.active > h2,
.section-reveal-4.active > .section-sub-desc {
  animation: sectionContactTitle 1.5s cubic-bezier(.22,1,.36,1) .2s both;
}
.section-reveal-4.active .contact-form-card {
  animation: contactFormIn 1.6s cubic-bezier(.22,1,.36,1) .5s both;
}
.section-reveal-4.active .contact-grid .contact-item {
  animation: contactInfoIn 1.5s cubic-bezier(.22,1,.36,1) var(--contact-delay, .65s) both;
}

@keyframes homeEntrance {
  from { opacity: 0; transform: translateY(38px) scale(.96); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes homeIndicatorIn {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes sectionAboutText {
  from { opacity: 0; transform: translateX(-65px); filter: blur(4px); }
  to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes sectionAboutImage {
  from { opacity: 0; transform: translateX(65px) scale(.94); filter: blur(4px); }
  to   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes sectionCreationsTitle {
  from { opacity: 0; transform: translateY(34px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes sectionCreationsItems {
  from { opacity: 0; filter: blur(7px); clip-path: inset(12% 0 0 0 round 12px); }
  to   { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0 round 12px); }
}
@keyframes sectionTestimonials {
  from { opacity: 0; transform: translateY(35px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes sectionContactTitle {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes contactFormIn {
  from { opacity: 0; transform: translateX(-110px); filter: blur(5px); }
  to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes contactInfoIn {
  from { opacity: 0; transform: translateX(110px); filter: blur(5px); }
  to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* Nav and footer are deliberately slower so the entrance is actually noticeable. */
nav {
  animation: navEntrance 1.35s cubic-bezier(.22,1,.36,1) both;
}
.bottom-nav-footer {
  animation: footerEntrance 1.5s cubic-bezier(.22,1,.36,1) .25s both;
}
@keyframes navEntrance {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes footerEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gradient-title { animation: none !important; }
  nav, .bottom-nav-footer { animation: none !important; }
  .section-reveal-0.active .hero-content,
  .section-reveal-0.active .scroll-indicator,
  .section-reveal-1.active .about-content,
  .section-reveal-1.active .about-image-wrapper,
  .section-reveal-2.active > h2,
  .section-reveal-2.active > .section-sub,
  .section-reveal-2.active .pubmat-card,
  .section-reveal-2.active .folder-card,
  .section-reveal-2.active .vid-card,
  .section-reveal-2.active .thumb-card,
  .section-reveal-3.active > *,
  .section-reveal-4.active > h2,
  .section-reveal-4.active > .section-sub-desc,
  .section-reveal-4.active .contact-form-card,
  .section-reveal-4.active .contact-grid .contact-item {
    animation: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}


/* ================================================================
   2026 MOTION + UI CLEANUP
   Final overrides for the requested portfolio interaction pass.
   ================================================================ */

/* ---------- 1. REMOVE THE GLOBAL NEON BUTTON/CARD GLOW ---------- */
button:not(.nav-auth-logout),
.toggle-expansion-btn,
.tiktok-promo-btn,
.testimonial-promo-btn,
.send-contact-btn,
.testimonial-login-trigger,
.send-testimonial-btn,
.auth-submit-btn,
.google-btn,
.pubmat-card,
.folder-card,
.vid-card,
.thumb-card,
.footer-socials a,
.hero-socials a,
.neon-hover-target {
  box-shadow: none !important;
}

button:not(.nav-auth-logout)::before,
button:not(.nav-auth-logout)::after,
.toggle-expansion-btn::before,
.toggle-expansion-btn::after,
.tiktok-promo-btn::before,
.tiktok-promo-btn::after,
.testimonial-promo-btn::before,
.testimonial-promo-btn::after,
.send-contact-btn::before,
.send-contact-btn::after,
.testimonial-login-trigger::before,
.testimonial-login-trigger::after,
.send-testimonial-btn::before,
.send-testimonial-btn::after,
.auth-submit-btn::before,
.auth-submit-btn::after,
.google-btn::before,
.google-btn::after,
.pubmat-card::before,
.pubmat-card::after,
.folder-card::before,
.folder-card::after,
.vid-card::before,
.vid-card::after,
.thumb-card::before,
.thumb-card::after,
.footer-socials a::before,
.footer-socials a::after,
.hero-socials a::before,
.hero-socials a::after,
.neon-hover-target::before,
.neon-hover-target::after {
  content: none !important;
  animation: none !important;
  box-shadow: none !important;
}

/* Keep interaction feedback through movement/color, not glow. */
button:not(.nav-auth-logout):hover {
  box-shadow: none !important;
}
.toggle-expansion-btn:hover,
.tiktok-promo-btn:hover,
.testimonial-promo-btn:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
}

/* ---------- 2. RESTORE A REAL FOLDER / BOOK-LIKE CARD ---------- */
.folder-grid {
  perspective: 1200px;
}

.folder-card {
  position: relative;
  padding-top: 10px;
  transition:
    transform .55s cubic-bezier(.22,1,.36,1),
    filter .35s ease;
  transform-origin: center bottom;
}

.folder-card::before {
  content: "" !important;
  position: absolute;
  z-index: -3;
  left: 8%;
  top: 0;
  width: 38%;
  height: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #242428, #18181b);
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none;
}

.folder-cover {
  overflow: visible;
  border-radius: 4px 12px 12px 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025) 38%, rgba(0,0,0,.18)),
    #17171a;
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 18px 35px rgba(0,0,0,.32),
    0 2px 0 rgba(255,255,255,.06) inset;
  transform: rotateX(0deg);
  transition:
    transform .55s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    box-shadow .35s ease;
}

.folder-cover::before {
  top: -7px;
  left: 8%;
  right: auto;
  bottom: auto;
  width: 38%;
  height: 16px;
  border-radius: 8px 8px 0 0;
  background: #202024;
  border: 1px solid rgba(255,255,255,.12);
  border-bottom: 0;
  z-index: -1;
  box-shadow: none;
}

.folder-cover::after {
  top: 8px;
  right: -5px;
  bottom: -5px;
  left: 5px;
  border-radius: 4px 12px 12px 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  z-index: -2;
  box-shadow: none;
}

.folder-cover img {
  border-radius: 3px 11px 11px 11px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.folder-card:hover {
  transform: translateY(-9px) rotateX(2deg);
  filter: none;
}

.folder-card:hover .folder-cover {
  border-color: rgba(255,255,255,.25);
  box-shadow:
    0 24px 45px rgba(0,0,0,.38),
    0 2px 0 rgba(255,255,255,.08) inset;
}

/* ---------- 3. ALL X BUTTONS: CLEAN, CONSISTENT, CLICKABLE ---------- */
.close-video-btn,
.close-folder-btn,
.close-modal-btn,
.close-auth-btn,
.close-testimonial-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(12,12,14,.78);
  color: #e4e4e7;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
  isolation: auto;
  transition:
    transform .25s cubic-bezier(.22,1,.36,1),
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease;
  box-shadow: none !important;
}

.close-video-btn:hover,
.close-folder-btn:hover,
.close-modal-btn:hover,
.close-auth-btn:hover,
.close-testimonial-modal-btn:hover {
  transform: rotate(90deg) scale(1.04);
  background: #fff;
  color: #050505;
  border-color: #fff;
  box-shadow: none !important;
}

.close-video-btn::before,
.close-video-btn::after,
.close-folder-btn::before,
.close-folder-btn::after,
.close-modal-btn::before,
.close-modal-btn::after,
.close-auth-btn::before,
.close-auth-btn::after,
.close-testimonial-modal-btn::before,
.close-testimonial-modal-btn::after {
  content: none !important;
}

body.light-mode .close-video-btn,
body.light-mode .close-folder-btn,
body.light-mode .close-modal-btn,
body.light-mode .close-auth-btn,
body.light-mode .close-testimonial-modal-btn {
  background: rgba(255,255,255,.88);
  color: #111;
  border-color: rgba(0,0,0,.16);
}

body.light-mode .close-video-btn:hover,
body.light-mode .close-folder-btn:hover,
body.light-mode .close-modal-btn:hover,
body.light-mode .close-auth-btn:hover,
body.light-mode .close-testimonial-modal-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ---------- 4. PROGRESS BAR: SOFT FADE, NO THICK RIGHT GLOW ---------- */
.nav-progress-line span,
.footer-progress-line span {
  height: 100%;
  box-shadow: none !important;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.20) 12%,
    rgba(255,255,255,.72) 52%,
    rgba(255,255,255,.20) 88%,
    rgba(255,255,255,0) 100%
  ) !important;
}

.nav-progress-line span::after,
.footer-progress-line span::after {
  content: none !important;
}

body.light-mode .nav-progress-line span,
body.light-mode .footer-progress-line span {
  box-shadow: none !important;
  background: linear-gradient(
    90deg,
    rgba(17,17,17,0) 0%,
    rgba(17,17,17,.16) 12%,
    rgba(17,17,17,.62) 52%,
    rgba(17,17,17,.16) 88%,
    rgba(17,17,17,0) 100%
  ) !important;
}

/* ---------- 5. SEE MORE: UNIQUE EXPAND / REVEAL MOTION ---------- */
.expanded-section {
  max-height: 5000px;
  opacity: 1;
  overflow: hidden;
  transform-origin: top center;
  transition:
    opacity .38s ease,
    transform .55s cubic-bezier(.22,1,.36,1),
    max-height .55s cubic-bezier(.22,1,.36,1);
}

.expanded-section.hidden {
  display: none;
}

.expanded-section:not(.is-expanded) {
  opacity: 0;
  transform: translateY(-14px) scaleY(.985);
}

.expanded-section.is-expanded {
  animation: campaignExpandIn .65s cubic-bezier(.22,1,.36,1) both;
}

.expanded-section.is-closing {
  animation: campaignCollapseOut .38s ease both;
}

@keyframes campaignExpandIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scaleY(.975);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes campaignCollapseOut {
  from {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scaleY(.985);
  }
}

.folder-enter {
  animation: folderStackIn .72s cubic-bezier(.22,1,.36,1) both;
}

@keyframes folderStackIn {
  from {
    opacity: 0;
    transform: translateY(26px) rotateX(-7deg) rotateZ(-1.5deg) scale(.965);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) rotateZ(0) scale(1);
    filter: blur(0);
  }
}

.marquee-enter {
  animation: marqueeReveal .8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes marqueeReveal {
  from {
    opacity: 0;
    transform: translateX(-32px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* ---------- 6. DISTINCT SUBSECTION MOTION ---------- */
.motion-pubmats,
.motion-personal,
.motion-organization,
.motion-growtopia-title,
.motion-growtopia-profile,
.motion-growtopia,
.motion-visitor-stats,
.motion-footer {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.motion-pubmats.motion-visible {
  animation: pubmatsIn .72s cubic-bezier(.22,1,.36,1) both;
}

.motion-personal.motion-visible {
  animation: personalIn .82s cubic-bezier(.16,1,.3,1) both;
}

.motion-organization.motion-visible {
  animation: organizationIn .78s cubic-bezier(.22,1,.36,1) both;
}

.motion-growtopia-title.motion-visible {
  animation: growtopiaTitleIn .7s cubic-bezier(.22,1,.36,1) both;
}

.motion-growtopia-profile.motion-visible {
  animation: growtopiaProfileIn .65s cubic-bezier(.34,1.56,.64,1) .08s both;
}

.motion-growtopia.motion-visible {
  animation: growtopiaCardsIn .82s cubic-bezier(.22,1,.36,1) .14s both;
}

.motion-visitor-stats.motion-visible {
  animation: visitorStatsIn .72s cubic-bezier(.34,1.56,.64,1) both;
}

.motion-footer.motion-visible {
  animation: footerReveal .85s cubic-bezier(.22,1,.36,1) both;
}

@keyframes pubmatsIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.975);
    clip-path: inset(0 0 10% 0 round 18px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 18px);
  }
}

@keyframes personalIn {
  from {
    opacity: 0;
    transform: translateX(-42px) skewX(-1deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) skewX(0);
    filter: blur(0);
  }
}

@keyframes organizationIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.985);
    clip-path: inset(0 7% 0 0 round 20px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 20px);
  }
}

@keyframes growtopiaTitleIn {
  from {
    opacity: 0;
    transform: translateX(34px);
    letter-spacing: .12em;
  }
  to {
    opacity: 1;
    transform: translateX(0);
    letter-spacing: normal;
  }
}

@keyframes growtopiaProfileIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.88);
  }
  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes growtopiaCardsIn {
  from {
    opacity: 0;
    transform: translateY(26px) rotateX(5deg);
    transform-origin: center bottom;
    filter: saturate(.7) blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: saturate(1) blur(0);
  }
}

@keyframes visitorStatsIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.9);
    filter: blur(5px);
  }
  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.015);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes footerReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
    clip-path: inset(8% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

/* The old section-wide slow motion is intentionally neutralized.
   These subsection motions are quicker and more distinct. */
.section-reveal-2.active .pubmat-card,
.section-reveal-2.active .folder-card,
.section-reveal-2.active .vid-card,
.section-reveal-2.active .thumb-card {
  animation: none !important;
}

.section-reveal-2.active > h2,
.section-reveal-2.active > .section-sub {
  animation-duration: .72s !important;
}

.bottom-nav-footer {
  animation: none !important;
}

.bottom-nav-footer.motion-visible {
  animation: footerReveal .85s cubic-bezier(.22,1,.36,1) both !important;
}

/* Prevent the footer's initial global animation from making it appear twice. */
.motion-footer {
  animation: none !important;
}

/* Keep cards clean on hover. */
.pubmat-card:hover,
.vid-card:hover,
.thumb-card:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,.28) !important;
}

/* ---------- 7. LIGHT MODE FOLDER CLEANUP ---------- */
body.light-mode .folder-cover {
  background:
    linear-gradient(145deg, rgba(0,0,0,.04), rgba(0,0,0,.01) 38%, rgba(0,0,0,.04)),
    #f4f4f5;
  border-color: rgba(0,0,0,.12);
  box-shadow:
    0 18px 35px rgba(0,0,0,.10),
    0 2px 0 rgba(255,255,255,.9) inset;
}

body.light-mode .folder-card::before,
body.light-mode .folder-cover::before {
  background: #e9e9ec;
  border-color: rgba(0,0,0,.10);
}

body.light-mode .folder-cover::after {
  background: rgba(0,0,0,.025);
  border-color: rgba(0,0,0,.07);
}

/* ---------- 8. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  .expanded-section,
  .folder-enter,
  .marquee-enter,
  .motion-pubmats.motion-visible,
  .motion-personal.motion-visible,
  .motion-organization.motion-visible,
  .motion-growtopia-title.motion-visible,
  .motion-growtopia-profile.motion-visible,
  .motion-growtopia.motion-visible,
  .motion-visitor-stats.motion-visible,
  .motion-footer.motion-visible {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

/* Mobile folder proportions stay book/folder-like. */
@media (max-width: 768px) {
  .folder-card:hover {
    transform: translateY(-5px);
  }

  .close-video-btn,
  .close-folder-btn,
  .close-modal-btn,
  .close-auth-btn,
  .close-testimonial-modal-btn {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}


/* ================================================================
   2026 POLISH — MODAL CLOSE BUTTONS, SEQUENTIAL STATS,
   MOVING TITLE TEXTURE + SCROLL-LINKED SPACE OVERLAYS
   ================================================================ */

/* ---------- MODAL CLOSE BUTTONS: ANCHORED TO THE ACTUAL MODAL ---------- */
.auth-card,
.video-modal-content,
.testimonial-modal-card,
.post-modal-content,
.folder-modal-content {
  position: relative !important;
}

.close-auth-btn,
.close-video-btn,
.close-testimonial-modal-btn,
.close-modal-btn,
.close-folder-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  z-index: 999 !important;
  transform: none;
}

.close-auth-btn i,
.close-video-btn i,
.close-testimonial-modal-btn i,
.close-modal-btn i,
.close-folder-btn i {
  display: block;
  line-height: 1;
  margin: 0;
  transform: translateY(0);
}

.close-auth-btn:hover,
.close-video-btn:hover,
.close-testimonial-modal-btn:hover,
.close-modal-btn:hover,
.close-folder-btn:hover {
  transform: rotate(90deg) scale(1.04) !important;
}

/* The video close button belongs INSIDE the video frame, not above it. */
.video-modal-content .close-video-btn {
  top: 12px !important;
  right: 12px !important;
}

/* Keep enough breathing room for the modal headings. */
.auth-card h3,
.testimonial-modal-card h3,
.folder-modal-content .folder-header h3 {
  padding-right: 44px;
}

@media (max-width: 768px) {
  .close-auth-btn,
  .close-video-btn,
  .close-testimonial-modal-btn,
  .close-modal-btn,
  .close-folder-btn,
  .video-modal-content .close-video-btn {
    top: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* ---------- CONTACT INFO → VISITOR STATS: ONE CONTINUOUS SEQUENCE ---------- */
#contact.section-reveal-4.active .contact-grid .contact-item,
#contact.section-reveal-4.active .visitor-stats-card {
  opacity: 0;
  animation-name: contactInfoCascade !important;
  animation-duration: .62s !important;
  animation-timing-function: cubic-bezier(.22,1,.36,1) !important;
  animation-fill-mode: both !important;
}

#contact.section-reveal-4.active .contact-grid .contact-item:nth-child(1) {
  animation-delay: .18s !important;
}
#contact.section-reveal-4.active .contact-grid .contact-item:nth-child(2) {
  animation-delay: .34s !important;
}
#contact.section-reveal-4.active .contact-grid .contact-item:nth-child(3) {
  animation-delay: .50s !important;
}
#contact.section-reveal-4.active .visitor-stats-card {
  animation-delay: .68s !important;
}

@keyframes contactInfoCascade {
  from {
    opacity: 0;
    transform: translateX(34px) translateY(4px);
    filter: blur(5px);
  }
  70% {
    opacity: 1;
    transform: translateX(-3px) translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
}

/* ---------- MOVING, TEXTURED TITLES ---------- */
:root {
  --title-texture-a: #ffffff;
  --title-texture-b: #bfc3ca;
  --title-texture-c: #ffffff;
}

h2,
.section-sub,
.edits-main-title {
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(255,255,255,.00) 0px,
      rgba(255,255,255,.00) 5px,
      rgba(255,255,255,.24) 6px,
      rgba(255,255,255,.00) 8px,
      rgba(255,255,255,.00) 13px
    ),
    linear-gradient(
      110deg,
      var(--title-texture-b) 0%,
      var(--title-texture-a) 22%,
      var(--title-texture-c) 42%,
      #8f949d 54%,
      #ffffff 72%,
      #aeb3bb 100%
    );
  background-size: 150% 100%, 260% 100%;
  background-position: 120% 0, 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: titleTextureFlow 7s linear infinite;
  text-shadow: none !important;
}

@keyframes titleTextureFlow {
  0% {
    background-position: 120% 0, 100% 0;
  }
  50% {
    background-position: 0% 0, 0% 0;
  }
  100% {
    background-position: -120% 0, -100% 0;
  }
}

body.light-mode {
  --title-texture-a: #111111;
  --title-texture-b: #565b63;
  --title-texture-c: #1d2127;
}

body.light-mode h2,
body.light-mode .section-sub,
body.light-mode .edits-main-title {
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 5px,
      rgba(0,0,0,.18) 6px,
      rgba(0,0,0,0) 8px,
      rgba(0,0,0,0) 13px
    ),
    linear-gradient(
      110deg,
      #555b63 0%,
      #111111 24%,
      #2a2f36 48%,
      #000000 62%,
      #515760 78%,
      #111111 100%
    );
}

/* ---------- SCROLL-LINKED 3D GALAXY / ZODIAC BACKGROUND ---------- */
.space-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  mix-blend-mode: screen;
  transition: opacity .8s ease, visibility .8s ease;
}

.space-overlay.is-visible {
  opacity: .48;
  visibility: visible;
}

#creations,
#testimonials-section {
  isolation: isolate;
}

#creations > *,
#testimonials-section > * {
  position: relative;
  z-index: 1;
}

/* Give the two sections a little depth without changing their layout. */
#creations::before,
#testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.035), transparent 42%),
    linear-gradient(to bottom, rgba(5,5,5,.02), rgba(5,5,5,.16));
}

/* ---------- CONTACT-ONLY SPACE OVERLAY ---------- */
#contact {
  isolation: isolate;
  overflow: hidden;
}

.contact-space-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: screen;
}

#contact > *:not(.contact-space-overlay) {
  position: relative;
  z-index: 1;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 55%, rgba(255,255,255,.055), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(120,150,255,.045), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 40%, rgba(255,255,255,.018));
}

body.light-mode .space-overlay,
body.light-mode .contact-space-overlay {
  mix-blend-mode: multiply;
  opacity: .18;
}

body.light-mode #creations::before,
body.light-mode #testimonials-section::before,
body.light-mode #contact::before {
  background:
    radial-gradient(circle at 50% 30%, rgba(0,0,0,.025), transparent 42%),
    linear-gradient(to bottom, rgba(255,255,255,.02), rgba(255,255,255,.20));
}

@media (prefers-reduced-motion: reduce) {
  h2,
  .section-sub,
  .edits-main-title {
    animation: none !important;
  }
  .space-overlay,
  .contact-space-overlay {
    opacity: .12 !important;
  }
}


/* FINAL CREATIONS MOTION + MORE-DESIGNS FALLBACK */
.motion-personal,.motion-organization,.motion-growtopia-title,.motion-growtopia-profile,.motion-growtopia{opacity:0;transform:translateY(22px);filter:blur(3px);will-change:transform,opacity,filter;}
.motion-personal.motion-visible,.motion-organization.motion-visible,.motion-growtopia-title.motion-visible,.motion-growtopia-profile.motion-visible,.motion-growtopia.motion-visible{animation:modernCreationReveal .65s cubic-bezier(.22,1,.36,1) both !important;}
@keyframes modernCreationReveal{from{opacity:0;transform:translateY(22px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
.motion-personal.motion-visible>.vid-card,.motion-organization.motion-visible>.thumb-card,.motion-growtopia.motion-visible>.vid-card,.motion-growtopia.motion-visible>.thumb-card{animation:modernMediaCardIn .58s cubic-bezier(.22,1,.36,1) both !important;animation-delay:var(--motion-delay,0s) !important;}
@keyframes modernMediaCardIn{from{opacity:0;transform:translateY(18px) scale(.985);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
.vid-card,.thumb-wrapper{transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .35s ease,box-shadow .35s ease;}
.vid-card:hover,.thumb-wrapper:hover{transform:translateY(-4px) scale(1.015);}
.design-image-modal-content{position:relative;width:min(92vw,1100px);height:min(92vh,900px);display:flex;align-items:center;justify-content:center;padding:1.25rem;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(10,10,12,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 25px 70px rgba(0,0,0,.55);}
.design-image-modal-content img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:12px;}
.close-design-image-btn{position:absolute;top:12px;right:12px;width:42px;height:42px;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:1.6rem;cursor:pointer;z-index:3;display:flex;align-items:center;justify-content:center;transition:transform .25s ease,background .25s ease;}
.close-design-image-btn:hover{transform:rotate(90deg) scale(1.05);background:rgba(255,255,255,.12);}
body.light-mode .design-image-modal-content{background:rgba(250,250,250,.94);border-color:rgba(0,0,0,.12);}
body.light-mode .close-design-image-btn{background:rgba(255,255,255,.85);color:#111;border-color:rgba(0,0,0,.15);}
@media(max-width:768px){.design-image-modal-content{width:94vw;height:88vh;padding:.75rem;border-radius:16px;}}
@media(prefers-reduced-motion:reduce){.motion-personal,.motion-organization,.motion-growtopia-title,.motion-growtopia-profile,.motion-growtopia,.motion-personal.motion-visible>.vid-card,.motion-organization.motion-visible>.thumb-card,.motion-growtopia.motion-visible>.vid-card,.motion-growtopia.motion-visible>.thumb-card{animation:none !important;opacity:1 !important;transform:none !important;filter:none !important;}}


/* Unified profile entrance for both Kier Vincent and Cheapier. */
.motion-profile {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  will-change: transform, opacity, filter;
}
.motion-profile.motion-visible {
  animation: modernProfileReveal .55s cubic-bezier(.22,1,.36,1) both !important;
}
@keyframes modernProfileReveal {
  from { opacity: 0; transform: translateY(14px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media(prefers-reduced-motion:reduce){.motion-profile.motion-visible{animation:none !important;opacity:1 !important;transform:none !important;filter:none !important;}}


/* ============================================================
   FINAL MEDIA PERFORMANCE PASS
   Keeps the existing layout while reducing rendering contention.
   ============================================================ */

.hero-bg-video,
.vid-card video {
  backface-visibility: hidden;
}

.hero-bg-video {
  transform: translate3d(-50%, -50%, 0);
}

/* Avoid expensive blur filters on frequently animated media controls. */
.vid-card .play-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(0, 0, 0, 0.68);
}

/* Let the browser promote animated cards without forcing huge paint areas. */
.motion-pubmats,
.motion-personal,
.motion-organization,
.motion-growtopia-title,
.motion-growtopia-profile,
.motion-growtopia,
.motion-visitor-stats,
.motion-footer,
.pubmat-card,
.folder-card,
.vid-card,
.thumb-card {
  backface-visibility: hidden;
}

/* The page keeps smooth anchor scrolling, but media itself does not
   receive unnecessary layout work during playback. */
video {
  contain: paint;
}

/* Do not run decorative continuous motion while the user asks for
   reduced motion. */
@media (prefers-reduced-motion: reduce) {
  video {
    scroll-behavior: auto;
  }
}

/* ================================================================
   FINAL FUNCTIONAL/UI FIXES — AUTH, COMMENTS, ROLES, MOBILE NAV
   ================================================================ */

body.auth-modal-open { overflow: hidden !important; overscroll-behavior: none; }
#auth-modal { overflow: hidden !important; overscroll-behavior: contain; }
#auth-modal .auth-card { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.auth-success-icon { width:72px; height:72px; margin:0 auto 1rem; border-radius:50%; display:grid; place-items:center; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.35); color:#4ade80; font-size:2rem; }
.auth-success-text { color:#a1a1aa; line-height:1.7; margin:0 auto; max-width:330px; }
.auth-action-notice { position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); opacity:0; pointer-events:none; z-index:10000000; padding:.75rem 1.1rem; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(18,18,20,.94); color:#f4f4f5; backdrop-filter:blur(12px); transition:opacity .25s ease,transform .25s ease; }
.auth-action-notice.show { opacity:1; transform:translate(-50%,0); }
.comments-list { display:flex; flex-direction:column; }
.comments-empty { padding:2rem 1rem; text-align:center; color:#71717a; font-size:.9rem; }
.comment-actions button { background:none; border:0; padding:0; margin:0; color:inherit; font:inherit; cursor:pointer; }
.comment-actions .comment-like-btn.liked { color:#3b82f6 !important; }
.comment-edit-btn,.comment-delete-btn { width:24px; height:24px; display:inline-grid !important; place-items:center; border-radius:6px !important; margin-left:3px !important; }
.comment-edit-btn:hover { color:#60a5fa !important; background:rgba(59,130,246,.1) !important; }
.comment-delete-btn:hover { color:#f87171 !important; background:rgba(239,68,68,.1) !important; }
.role-badge { display:inline-flex; align-items:center; margin-left:4px; font-size:.72rem; font-weight:700; white-space:nowrap; }
.role-admin { color:#60a5fa; }
.role-mod { color:#4ade80; }
.testimonial-card-actions { position:absolute; top:.65rem; right:.65rem; display:flex; gap:.35rem; z-index:4; }
.testimonial-edit-btn,.testimonial-delete-btn { width:32px; height:32px; border-radius:9px; display:grid; place-items:center; cursor:pointer; border:1px solid rgba(255,255,255,.1); background:rgba(0,0,0,.3); color:#a1a1aa; transition:background .2s ease,color .2s ease,transform .2s ease; }
.testimonial-edit-btn:hover { color:#60a5fa; background:rgba(59,130,246,.12); transform:translateY(-1px); }
.testimonial-delete-btn:hover { color:#f87171; background:rgba(239,68,68,.12); transform:translateY(-1px); }
body.privileged-session #contact,body.privileged-session #testimonials-section,body.privileged-session #nav-contact-link { display:none !important; }
body.privileged-session .bottom-nav-footer { margin-top:0 !important; }
.video-modal-content { overflow:visible !important; }
.video-modal-content .close-video-btn { top:-52px !important; right:0 !important; }

@media (max-width:768px) {
  nav { top:auto !important; bottom:14px !important; left:50% !important; width:min(92vw,430px) !important; height:64px !important; padding:7px 9px !important; border:1px solid rgba(255,255,255,.16) !important; border-radius:36px !important; background:rgba(18,36,43,.72) !important; backdrop-filter:blur(18px) saturate(130%) !important; -webkit-backdrop-filter:blur(18px) saturate(130%) !important; box-shadow:0 16px 38px rgba(0,0,0,.28) !important; transform:translateX(-50%) !important; justify-content:center !important; z-index:5000 !important; }
  .nav-logo-link,.menu-toggle,.theme-toggle-btn,.nav-progress-line { display:none !important; }
  .nav-links { width:100% !important; height:100% !important; margin:0 !important; display:grid !important; grid-template-columns:repeat(4,1fr) !important; align-items:center !important; justify-items:center !important; gap:4px !important; }
  .nav-links .nav-icon-link { width:100% !important; height:50px !important; display:flex !important; align-items:center !important; justify-content:center !important; border-radius:28px !important; color:rgba(244,244,245,.72) !important; font-size:1.55rem !important; transition:background .25s ease,color .25s ease,transform .25s ease !important; }
  .nav-links .nav-icon-link span { display:none !important; }
  .nav-links .nav-icon-link i { margin:0 !important; line-height:1 !important; }
  .nav-links .nav-icon-link.active { color:#fff !important; background:rgba(255,255,255,.14) !important; }
  .nav-links .nav-icon-link:active { transform:scale(.92) !important; }
  .nav-auth-logout { position:absolute !important; right:9px !important; top:-42px !important; width:38px !important; height:38px !important; padding:0 !important; justify-content:center !important; border-radius:50% !important; background:rgba(18,18,20,.8) !important; font-size:0 !important; }
  .nav-auth-logout i { margin:0 !important; font-size:1.1rem !important; }
  .bottom-nav-footer { padding-bottom:1.25rem !important; }
  .post-modal-content,.folder-modal-content { width:94vw !important; height:88vh !important; max-height:88vh !important; }
  .post-right,.folder-right { min-width:0 !important; }
  .video-modal-content .close-video-btn { top:-46px !important; right:0 !important; }
  #auth-modal .auth-card { width:min(92vw,410px) !important; max-height:calc(100vh - 24px) !important; padding:2.1rem 1.15rem !important; }
  .name-row { flex-direction:column; gap:.8rem; }
}
@media (max-width:420px) {
  nav { width:94vw !important; height:60px !important; bottom:10px !important; }
  .nav-links .nav-icon-link { height:46px !important; font-size:1.4rem !important; }
}
body.light-mode nav { background:rgba(245,248,250,.78); border-color:rgba(0,0,0,.12); }
body.light-mode .nav-links .nav-icon-link { color:rgba(15,23,42,.62) !important; }
body.light-mode .nav-links .nav-icon-link.active { color:#111827 !important; background:rgba(0,0,0,.08) !important; }
body.light-mode .auth-action-notice { background:rgba(255,255,255,.96); color:#111; border-color:rgba(0,0,0,.12); }

.nav-links .nav-icon-link > i { display:none; }
@media (max-width:768px) {
  .nav-links .nav-icon-link > i { display:block !important; }
}

/* ================================================================
   FINAL REPAIR PASS — AUTH / MODERATION / TESTIMONIALS / MOBILE
   ================================================================ */

/* The .hidden class is used by the UI state logic throughout the app. */
.hidden { display: none !important; }

/* Admin/Mod: hide ONLY Contact. Testimonials stay visible so moderation can be used. */
body.privileged-session #contact,
body.privileged-session #nav-contact-link { display: none !important; }
body.privileged-session #testimonials-section { display: block !important; visibility: visible !important; opacity: 1 !important; }
body.privileged-session #admin-approval-panel { display: block !important; }
body:not(.privileged-session) #admin-approval-panel { display: none !important; }

/* Keep the two testimonial states mutually exclusive. */
#testimonial-logout-view.hidden,
#testimonial-login-view.hidden { display: none !important; }

/* Clean testimonial login/user card. */
.testimonial-prompt,
.testimonial-form-wrapper { width: 100%; }
.testimonial-form-wrapper .user-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.testimonial-form-wrapper .user-info { min-width:0; display:flex; align-items:center; gap:.75rem; }
.testimonial-form-wrapper .user-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.logout-btn-inline { flex:0 0 auto; }

/* No accidental page scrolling behind any modal. */
body.modal-open,
body.auth-modal-open { overflow:hidden !important; }

/* Reset status when cards are reopened. */
#testimonial-input { min-height:120px; resize:vertical; }
#comments-list { min-height:0; }

/* ================================================================
   MOBILE NAV — ORIGINAL TOP HAMBURGER / X BEHAVIOR
   ================================================================ */
@media (max-width: 768px) {
  nav {
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    padding: 0 1rem !important;
    transform: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 0 !important;
    background: rgba(0,0,0,.78) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 5000 !important;
  }

  .nav-logo-link { display:flex !important; width:105px !important; height:36px !important; opacity:1 !important; visibility:visible !important; transform:none !important; }
  .menu-toggle {
    display:flex !important;
    position:absolute !important;
    right:1rem !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:42px !important;
    height:42px !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    gap:6px !important;
    cursor:pointer !important;
    z-index:5003 !important;
    border-radius:10px !important;
  }
  .menu-toggle .bar {
    display:block !important;
    width:25px !important;
    height:2px !important;
    border-radius:2px !important;
    background:#fff !important;
    transition:transform .28s ease, opacity .2s ease !important;
  }
  .menu-toggle.active .bar:first-child { transform:translateY(4px) rotate(45deg) !important; }
  .menu-toggle.active .bar:last-child { transform:translateY(-4px) rotate(-45deg) !important; }

  .nav-links {
    position:absolute !important;
    top:64px !important;
    left:0 !important;
    width:100% !important;
    height:auto !important;
    margin:0 !important;
    padding:1rem 1rem 1.15rem !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:.35rem !important;
    background:rgba(8,8,10,.96) !important;
    border-top:1px solid rgba(255,255,255,.08) !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
    box-shadow:0 18px 30px rgba(0,0,0,.25) !important;
    transform:translateY(-16px) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:opacity .28s ease, transform .28s ease, visibility .28s ease !important;
  }
  .nav-links.active {
    transform:translateY(0) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }
  .nav-links .nav-icon-link {
    width:100% !important;
    height:46px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:.75rem !important;
    padding:0 .9rem !important;
    border-radius:10px !important;
    font-size:.98rem !important;
    color:#e4e4e7 !important;
  }
  .nav-links .nav-icon-link > i { display:none !important; }
  .nav-links .nav-icon-link span { display:inline !important; }
  .nav-links .nav-icon-link.active { background:rgba(255,255,255,.09) !important; color:#fff !important; }
  .nav-auth-logout {
    position:static !important;
    width:100% !important;
    height:44px !important;
    justify-content:flex-start !important;
    padding:0 .9rem !important;
    margin-top:.25rem !important;
    border-radius:10px !important;
    font-size:.9rem !important;
  }
  .theme-toggle-btn { display:flex !important; height:44px !important; justify-content:flex-start !important; padding:0 .9rem !important; margin:0 !important; font-size:1.25rem !important; }
  .nav-progress-line { display:block !important; }

  /* About: one clean column, readable text, no overlap. */
  #about { overflow:hidden !important; }
  #about .about-container {
    display:flex !important;
    flex-direction:column !important;
    gap:2rem !important;
    width:100% !important;
    align-items:center !important;
  }
  #about .about-content { width:100% !important; max-width:680px !important; text-align:left !important; }
  #about .about-content h2 { text-align:center !important; margin-bottom:1.25rem !important; }
  #about .about-text-wrapper { width:100% !important; }
  #about .about-text-block { width:100% !important; }
  #about .about-content p { font-size:.96rem !important; line-height:1.7 !important; margin-bottom:1rem !important; }
  #about .about-tags { gap:.55rem !important; margin-top:1.35rem !important; }
  #about .about-tags span { font-size:.75rem !important; padding:.42rem .72rem !important; }
  #about .about-image-wrapper { width:min(78vw,330px) !important; margin:0 auto !important; order:2 !important; }
  #about .about-image-wrapper img { width:100% !important; height:auto !important; }

  /* Graphic & Pubmat Designs: two-column cards that fit phones. */
  #creations { overflow:hidden !important; }
  #creations .pubmat-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:.8rem !important;
    width:100% !important;
  }
  #creations .pubmat-card { min-width:0 !important; border-radius:10px !important; }
  #creations .pubmat-actions { padding:.6rem 0 !important; }
  #creations .pubmat-actions .action-btn { width:38px !important; height:38px !important; }

  /* Campaign & Collections: stacked folder cards with no horizontal overflow. */
  #expanded-creations { width:100% !important; overflow:hidden !important; }
  #expanded-creations .folder-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:.8rem !important;
    width:100% !important;
  }
  #expanded-creations .folder-card { min-width:0 !important; }
  #expanded-creations .folder-cover { width:100% !important; }
  #expanded-creations .folder-info h4 { font-size:.9rem !important; line-height:1.3 !important; }
  #expanded-creations .marquee-wrapper { max-width:100% !important; overflow:hidden !important; }

  .post-modal-content,
  .folder-modal-content { width:94vw !important; max-width:94vw !important; height:90vh !important; max-height:90vh !important; }
  .folder-modal-content { flex-direction:column !important; }
  .folder-left { flex:none !important; height:48% !important; padding:1rem !important; }
  .folder-right { flex:1 !important; min-width:0 !important; }
}

@media (max-width:420px) {
  #about .about-content p { font-size:.91rem !important; }
  #creations .pubmat-grid,
  #expanded-creations .folder-grid { gap:.6rem !important; }
  #creations .pubmat-actions .action-btn { width:34px !important; height:34px !important; }
}

body.light-mode nav { background:rgba(245,245,247,.94) !important; }
body.light-mode .menu-toggle .bar { background:#111 !important; }
body.light-mode .nav-links { background:rgba(250,250,252,.98) !important; border-color:rgba(0,0,0,.08) !important; }
body.light-mode .nav-links .nav-icon-link { color:#222 !important; }
body.light-mode .nav-links .nav-icon-link.active { background:rgba(0,0,0,.06) !important; color:#111 !important; }

/* ================================================================
   FINAL FIX PASS — REACTIONS / ROLE BADGES / MOBILE / MEDIA
   ================================================================ */

/* ---------- Admin / Mod role pills ---------- */
.role-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  margin-left: 6px !important;
  padding: 3px 9px !important;
  min-height: 22px !important;
  border-radius: 999px !important;
  font-size: .68rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: .1px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border: 1px solid transparent !important;
}
.role-badge i {
  font-size: .86rem !important;
  line-height: 1 !important;
}
.role-admin {
  color: #fff !important;
  background: #3b82f6 !important;
  border-color: rgba(96,165,250,.55) !important;
}
.role-mod {
  color: #fff !important;
  background: #22c55e !important;
  border-color: rgba(74,222,128,.55) !important;
}

/* Manual account placeholder avatars adapt to the current theme. */
.manual-avatar {
  background: transparent !important;
}
body.light-mode .manual-avatar {
  filter: none !important;
}

/* Firestore reaction buttons should always remain clickable. */
.pubmat-card .react-btn,
#modal-heart-btn,
.comment-like-btn {
  pointer-events: auto !important;
  user-select: none;
}

/* ---------- Modals must sit above the mobile nav ---------- */
.modal-overlay {
  z-index: 12000 !important;
}
#video-modal,
#post-modal,
#folder-modal,
#design-image-modal,
#testimonial-modal,
#auth-modal {
  z-index: 12000 !important;
}

/* ---------- Video playback ---------- */
.video-modal-content {
  width: min(92vw, 1100px) !important;
  max-width: 1100px !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 82vh !important;
  overflow: visible !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}
#modal-video-player {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  background: #000 !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.close-video-btn {
  top: -50px !important;
  right: 0 !important;
  z-index: 100 !important;
}

/* ================================================================
   MOBILE CLEANUP
   ================================================================ */
@media (max-width: 768px) {
  html, body {
    font-size: 14px !important;
  }

  body {
    line-height: 1.55 !important;
  }

  /* No custom/trailing/watch cursor on touch devices. */
  .cursor-outline,
  .cursor-watch-label,
  .cursor-pulse {
    display: none !important;
  }

  /* Top navigation with the hamburger on the RIGHT. */
  nav {
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 12px !important;
    border-radius: 0 !important;
    transform: none !important;
    justify-content: space-between !important;
    z-index: 11000 !important;
  }

  .nav-logo-link {
    width: 92px !important;
    height: 32px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .menu-toggle {
    display: flex !important;
    position: absolute !important;
    right: 10px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 11003 !important;
  }

  .menu-toggle .bar {
    width: 24px !important;
    height: 2px !important;
    background: #fff !important;
  }

  .menu-toggle.active .bar:first-child {
    transform: translateY(4px) rotate(45deg) !important;
  }
  .menu-toggle.active .bar:last-child {
    transform: translateY(-4px) rotate(-45deg) !important;
  }

  .nav-links {
    top: 58px !important;
    left: 0 !important;
    width: 100% !important;
    padding: 8px 10px 10px !important;
    gap: 2px !important;
    background: rgba(8,8,10,.98) !important;
    z-index: 11002 !important;
    transform: translateY(-12px) !important;
  }

  .nav-links.active {
    transform: translateY(0) !important;
  }

  /* Rolling text was being clipped by the desktop rolling animation. */
  .nav-links .nav-icon-link.rolling-link {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    color: #f4f4f5 !important;
    font-size: .92rem !important;
    line-height: 1 !important;
    padding: 0 12px !important;
    gap: 8px !important;
    transform: none !important;
  }

  .nav-links .nav-icon-link.rolling-link > i {
    display: block !important;
    flex: 0 0 auto !important;
    font-size: 1.05rem !important;
    color: currentColor !important;
  }

  .nav-links .nav-icon-link.rolling-link .char {
    display: inline !important;
    position: static !important;
    transform: none !important;
    transition: none !important;
    color: #f4f4f5 !important;
    font-size: .92rem !important;
    line-height: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .nav-links .nav-icon-link.rolling-link .char::after {
    display: none !important;
    content: none !important;
  }

  .nav-links .nav-icon-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
  }

  .nav-auth-logout {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    margin-top: 2px !important;
    justify-content: flex-start !important;
    font-size: .86rem !important;
    border-radius: 9px !important;
  }

  .theme-toggle-btn {
    width: 100% !important;
    height: 42px !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 1.05rem !important;
  }

  /* Smaller section typography and spacing. */
  section:not(#home) {
    padding: 4.2rem 1rem !important;
  }

  h2 {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
  }

  .section-sub {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin: .8rem 0 1rem !important;
  }

  .section-sub-desc {
    font-size: .82rem !important;
    line-height: 1.5 !important;
  }

  .edits-main-title {
    font-size: 1.2rem !important;
    line-height: 1.25 !important;
  }

  .about-content p {
    font-size: .88rem !important;
    line-height: 1.65 !important;
  }

  .about-tags span {
    font-size: .68rem !important;
    padding: .32rem .55rem !important;
  }

  /* Smaller hero for a cleaner first-screen mobile experience. */
  .video-hero {
    min-height: 88vh !important;
    height: 88vh !important;
  }

  .hero-logo-wrapper {
    max-width: min(72vw, 300px) !important;
  }

  .hero-subtitle-wrapper {
    margin-bottom: 1.25rem !important;
  }

  .animated-word .char {
    font-size: .86rem !important;
  }

  .hero-socials a {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
  }

  /* Pubmat cards and buttons. */
  #creations .pubmat-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: .55rem !important;
  }

  #creations .pubmat-card {
    border-radius: 9px !important;
  }

  #creations .pubmat-actions {
    padding: .38rem 0 !important;
  }

  #creations .pubmat-actions .action-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: .98rem !important;
  }

  .toggle-expansion-btn {
    min-height: 36px !important;
    padding: .5rem 1rem !important;
    font-size: .78rem !important;
  }

  /* Campaign / Collections folders. */
  #expanded-creations .folder-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: .55rem !important;
  }

  #expanded-creations .folder-info {
    padding: .5rem 0 !important;
  }

  #expanded-creations .folder-info h4 {
    font-size: .72rem !important;
    line-height: 1.25 !important;
  }

  /* Smaller moving More Designs images. */
  #expanded-creations .marquee-container {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    width: calc(100% + 2rem) !important;
    padding: .25rem 0 !important;
  }

  #expanded-creations .marquee-track {
    gap: .55rem !important;
    padding-right: .55rem !important;
  }

  #expanded-creations .marquee-link {
    border-radius: 9px !important;
  }

  #expanded-creations .marquee-img {
    width: 125px !important;
    height: 125px !important;
  }

  /* Smaller testimonial carousel and CTA. */
  .testimonials-marquee-container {
    padding: .7rem 0 !important;
    margin-bottom: 1.4rem !important;
  }

  .testimonials-track {
    gap: .65rem !important;
  }

  .testimonial-card {
    width: 245px !important;
    padding: .85rem !important;
    gap: .55rem !important;
    border-radius: 12px !important;
  }

  .testimonial-pfp {
    width: 34px !important;
    height: 34px !important;
  }

  .testimonial-name {
    font-size: .78rem !important;
  }

  .testimonial-msg {
    font-size: .75rem !important;
    line-height: 1.45 !important;
  }

  .testimonial-action-box {
    padding: 1rem !important;
    border-radius: 14px !important;
  }

  .testimonial-action-box h3 {
    font-size: 1rem !important;
  }

  .testimonial-promo-btn,
  .testimonial-login-trigger,
  .send-testimonial-btn,
  .logout-btn-inline {
    min-height: 36px !important;
    padding: .45rem .8rem !important;
    font-size: .75rem !important;
  }

  .testimonial-modal-card {
    width: calc(100vw - 28px) !important;
    max-width: 430px !important;
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    padding: 1.2rem !important;
    border-radius: 15px !important;
  }

  .testimonial-modal-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: .85rem !important;
  }

  .testimonial-prompt p {
    font-size: .82rem !important;
  }

  #testimonial-input {
    min-height: 95px !important;
    font-size: .82rem !important;
    padding: .75rem !important;
  }

  /* Contact / visitor cards. */
  .visitor-stats-card {
    padding: .9rem 1rem !important;
    gap: .65rem !important;
  }

  .stat-badge {
    font-size: .82rem !important;
  }

  /* Post/comment viewer: keep X visible and content scrollable. */
  .post-modal-content {
    width: calc(100vw - 20px) !important;
    max-width: 560px !important;
    height: calc(100vh - 78px) !important;
    max-height: calc(100vh - 78px) !important;
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .post-left {
    flex: 0 0 39% !important;
    min-height: 150px !important;
    max-height: 39% !important;
  }

  .post-right {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .post-header {
    padding: .65rem .8rem !important;
  }

  .poster-pfp,
  .comment-pfp {
    width: 32px !important;
    height: 32px !important;
    margin-right: .65rem !important;
  }

  .poster-info h4 {
    font-size: .82rem !important;
  }

  .post-caption-area {
    padding: .7rem .8rem !important;
    font-size: .78rem !important;
  }

  .post-comments-area {
    padding: .65rem .75rem !important;
  }

  .comment-bubble {
    padding: .55rem .7rem !important;
    font-size: .76rem !important;
  }

  .comment-actions {
    font-size: .68rem !important;
  }

  .comment-input-box {
    padding: .5rem .65rem !important;
  }

  .comment-input {
    font-size: .78rem !important;
  }

  .send-comment-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  /* Folder viewer. */
  .folder-modal-content {
    width: calc(100vw - 20px) !important;
    max-width: 560px !important;
    height: calc(100vh - 78px) !important;
    max-height: calc(100vh - 78px) !important;
    margin-top: 12px !important;
    flex-direction: column !important;
  }

  .folder-left {
    flex: 0 0 42% !important;
    height: auto !important;
    min-height: 150px !important;
    padding: .7rem !important;
  }

  .folder-right {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
  }

  .folder-header {
    padding: .8rem .9rem .4rem !important;
  }

  .folder-header h3 {
    font-size: 1rem !important;
  }

  .folder-instructions {
    padding: .35rem .9rem !important;
    font-size: .72rem !important;
  }

  .folder-thumbnails {
    padding: .6rem .8rem 1rem !important;
    gap: .5rem !important;
  }

  /* Video viewer. */
  .video-modal-content {
    width: calc(100vw - 20px) !important;
    max-width: 560px !important;
    max-height: 72vh !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 10px !important;
  }

  #modal-video-player {
    border-radius: 10px !important;
  }

  .close-video-btn,
  .close-modal-btn,
  .close-folder-btn,
  .close-testimonial-modal-btn,
  .close-design-image-btn,
  .close-auth-btn {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 1.05rem !important;
  }

  .video-modal-content .close-video-btn {
    top: -42px !important;
    right: 0 !important;
  }

  /* Keep the modal overlay above the navigation so the close button cannot be covered. */
  .modal-overlay {
    z-index: 12000 !important;
  }

  /* Footer stays compact on phones. */
  .bottom-nav-footer {
    padding: 1.25rem 1rem !important;
  }

  .footer-top {
    gap: 1rem !important;
  }

  .footer-tagline {
    font-size: .72rem !important;
  }

  .footer-socials a {
    width: 32px !important;
    height: 32px !important;
    font-size: .9rem !important;
  }
}

@media (max-width: 420px) {
  html, body { font-size: 13px !important; }

  h2 {
    font-size: 1.65rem !important;
  }

  .video-hero {
    height: 84vh !important;
    min-height: 84vh !important;
  }

  .hero-logo-wrapper {
    max-width: 68vw !important;
  }

  #about .about-image-wrapper {
    width: min(66vw, 270px) !important;
  }

  #expanded-creations .marquee-img {
    width: 105px !important;
    height: 105px !important;
  }

  .testimonial-card {
    width: 225px !important;
  }

  .post-modal-content,
  .folder-modal-content {
    width: calc(100vw - 12px) !important;
    height: calc(100vh - 70px) !important;
    max-height: calc(100vh - 70px) !important;
  }
}

/* ================================================================
   FINAL RESPONSIVE + PERFORMANCE PATCH
   Keeps the existing visual style/layout while fixing mobile nav,
   spacing, modal sizing, light-mode nav transitions and media load.
   ================================================================ */

/* Desktop navigation: active-section tracking must not create a button
   background. The navigation keeps the original text-only appearance. */
.nav-links .nav-icon-link.active {
  background: transparent !important;
  color: inherit !important;
}

body.light-mode .nav-links .nav-icon-link.active {
  background: transparent !important;
  color: #111 !important;
}

.nav-links .nav-icon-link,
.nav-links .nav-icon-link .char,
.nav-links .nav-icon-link .char::after,
.theme-toggle-btn {
  transition-property: color, opacity, transform;
  transition-duration: .3s;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}

/* Reduce expensive backdrop filtering on small screens without changing
   the overall glass appearance. */
@media (max-width: 768px) {
  nav {
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
  }

  .bottom-blur-bar {
    height: 170px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}

/* ================================================================
   MOBILE NAV — TOP HAMBURGER + RIGHT-SIDE SLIDE PANEL
   ================================================================ */
@media (max-width: 768px) {
  nav {
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 14px !important;
    border-radius: 0 !important;
    transform: none !important;
    justify-content: space-between !important;
    background: rgba(0,0,0,.78) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    z-index: 11000 !important;
  }

  /* Match desktop behavior: logo is hidden on the Home screen and appears
     after scrolling down. */
  .nav-logo-link {
    width: 92px !important;
    height: 32px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-18px) !important;
    transition: opacity .4s ease, transform .4s ease, visibility .4s ease !important;
  }

  .nav-logo-link.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  .menu-toggle {
    display: flex !important;
    position: absolute !important;
    right: 10px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    z-index: 11003 !important;
  }

  .menu-toggle .bar {
    display: block !important;
    width: 25px !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s ease !important;
  }

  .menu-toggle.active .bar:first-child {
    transform: translateY(4px) rotate(45deg) !important;
  }

  .menu-toggle.active .bar:last-child {
    transform: translateY(-4px) rotate(-45deg) !important;
  }

  /* Compact panel: it comes from the right and does NOT cover the page. */
  .nav-links {
    position: absolute !important;
    top: 66px !important;
    right: 10px !important;
    left: auto !important;
    width: min(220px, calc(100vw - 28px)) !important;
    height: auto !important;
    max-height: calc(100vh - 86px) !important;
    padding: 8px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 3px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 15px !important;
    background: rgba(8,8,10,.94) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.35) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(24px) scale(.98) !important;
    transform-origin: top right !important;
    transition: opacity .32s ease, transform .32s cubic-bezier(.22,1,.36,1), visibility .32s ease !important;
  }

  .nav-links.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) scale(1) !important;
  }

  /* Mobile uses the same text navigation as desktop; icons are hidden. */
  .nav-links .nav-icon-link.rolling-link {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 13px !important;
    overflow: visible !important;
    border-radius: 9px !important;
    color: #e4e4e7 !important;
    background: transparent !important;
    font-size: .92rem !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .nav-links .nav-icon-link.rolling-link > i {
    display: none !important;
  }

  .nav-links .nav-icon-link.rolling-link .char {
    display: inline !important;
    position: static !important;
    transform: none !important;
    transition: none !important;
    color: currentColor !important;
    font-size: .92rem !important;
    line-height: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .nav-links .nav-icon-link.rolling-link .char::after {
    display: none !important;
    content: none !important;
  }

  .nav-links .nav-icon-link:hover,
  .nav-links .nav-icon-link.active {
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
  }

  .nav-auth-logout,
  .theme-toggle-btn {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    border-radius: 9px !important;
  }

  .theme-toggle-btn {
    font-size: 1.05rem !important;
  }

  body.light-mode nav {
    background: rgba(245,245,247,.92) !important;
    border-bottom-color: rgba(0,0,0,.09) !important;
  }

  body.light-mode .menu-toggle .bar {
    background: #111 !important;
  }

  body.light-mode .nav-links {
    background: rgba(250,250,252,.96) !important;
    border-color: rgba(0,0,0,.09) !important;
  }

  body.light-mode .nav-links .nav-icon-link,
  body.light-mode .nav-links .nav-icon-link .char {
    color: #222 !important;
  }

  body.light-mode .nav-links .nav-icon-link:hover,
  body.light-mode .nav-links .nav-icon-link.active {
    background: rgba(0,0,0,.055) !important;
    color: #111 !important;
  }
}

/* ================================================================
   MOBILE TYPOGRAPHY / SPACING
   ================================================================ */
@media (max-width: 768px) {
  section:not(#home) {
    padding: 4.5rem 1rem !important;
  }

  section:not(#home) > h2 {
    margin-bottom: 1.25rem !important;
  }

  .section-sub {
    margin-top: 1rem !important;
    margin-bottom: .55rem !important;
  }

  .section-sub-desc {
    margin-top: .25rem !important;
    margin-bottom: 1.6rem !important;
    line-height: 1.6 !important;
  }

  .about-content h2 {
    margin-bottom: 1.35rem !important;
  }

  .about-content p {
    margin-bottom: 1.15rem !important;
  }

  #new-edits-section {
    margin-top: 3rem !important;
  }

  .edits-main-title {
    margin-top: 2.4rem !important;
    margin-bottom: 1rem !important;
  }

  #expanded-creations .expand-btn-container {
    margin-top: 2.2rem !important;
    margin-bottom: 0 !important;
  }

  /* More Designs: give the moving row breathing room from the section text. */
  #expanded-creations .marquee-container {
    margin-top: 1.15rem !important;
    margin-bottom: 1.4rem !important;
  }

  /* Contact title/description spacing. */
  #contact > h2 {
    margin-bottom: .7rem !important;
  }

  #contact > .section-sub-desc {
    margin-top: .2rem !important;
    margin-bottom: 1.8rem !important;
  }
}

/* ================================================================
   MOBILE PUBMAT / COMMENT MODAL
   ================================================================ */
@media (max-width: 768px) {
  .post-modal-content {
    width: calc(100vw - 18px) !important;
    height: min(82vh, 680px) !important;
    max-height: min(82vh, 680px) !important;
    margin: 9vh auto 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  .post-left {
    flex: 0 0 auto !important;
    height: min(34vh, 285px) !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .post-left img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
  }

  .post-right {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .post-header {
    flex: 0 0 auto !important;
  }

  .post-caption-area {
    flex: 0 0 auto !important;
    max-height: 24% !important;
    overflow-y: auto !important;
  }

  .post-comments-area {
    flex: 1 1 0 !important;
    min-height: 90px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .post-input-area {
    flex: 0 0 auto !important;
  }

  .comments-list {
    min-height: 0 !important;
  }

  .comment-item {
    min-width: 0 !important;
  }

  .comment-content {
    min-width: 0 !important;
  }

  .comment-bubble {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 420px) {
  .post-modal-content {
    width: calc(100vw - 12px) !important;
    height: min(84vh, 650px) !important;
    max-height: min(84vh, 650px) !important;
    margin-top: 8vh !important;
  }

  .post-left {
    height: min(31vh, 235px) !important;
  }
}

/* ================================================================
   HOME VIDEO RELIABILITY / PERFORMANCE
   ================================================================ */
.hero-bg-video {
  transform: translate3d(-50%, -50%, 0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  will-change: transform !important;
}

@media (max-width: 768px) {
  .video-hero {
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: 100svh !important;
  }

  .hero-bg-video {
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
  }

  .hero-logo-wrapper::before {
    filter: blur(28px) !important;
  }
}

/* Avoid keeping hidden modal media in memory after closing. */
.modal-overlay.hidden .video-modal-content,
.modal-overlay.hidden .post-modal-content {
  contain: layout paint style !important;
}

/* ================================================================
   CREATIONS IN-ANIMATION — EARLIER TRIGGER
   ================================================================ */
#creations.section-reveal-2 > h2,
#creations.section-reveal-2 > .section-sub,
#creations.section-reveal-2 .motion-pubmats,
#creations.section-reveal-2 #expanded-creations,
#creations.section-reveal-2 #new-edits-section {
  will-change: transform, opacity, filter;
}

@media (min-width: 769px) {
  #creations.section-reveal-2.active > h2,
  #creations.section-reveal-2.active > .section-sub,
  #creations.section-reveal-2.active .motion-pubmats {
    animation-delay: 0s !important;
  }
}
