/* ==========================================================================
   STUDIO ZERO BY EJ - DESIGN SYSTEM & STYLESHEET
   Aesthetic: Concrete Light Grey (#c2c4c6) & Black (#000000)
   ========================================================================== */

:root {
  --bg-color: #c2c4c6;
  --bg-card: #d2d4d6;
  --text-color: #0c0c0e;
  --text-secondary: #525458;
  --accent-color: #000000;
  --accent-rgb: 0, 0, 0;
  --border-color: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.25);
  --glass-bg: rgba(194, 196, 198, 0.85);
  --glass-blur: 16px;
  
  --font-primary: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: 'Pixelify Sans', monospace;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial; /* Managed by Lenis */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 750;
  line-height: 1.05;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Utilities */
.accent-color {
  color: var(--accent-color);
}
.font-pixel {
  font-family: var(--font-pixel) !important;
}

/* BACKGROUND DECORATIONS */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.03);
}

.floating-gear {
  position: absolute;
  transform-origin: center;
  top: 10%;
  left: 25%;
  animation: rotateGear 60s linear infinite;
}

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

/* LOADER OVERLAY */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.8s;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-title {
  font-family: var(--font-pixel);
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.loading-bar-container {
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
  transition: width 0.1s ease;
}

.loading-percent {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.logo-zero {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0.08rem;
}

.logo-ej {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* Group navigation menu and slider switch together on the right */
.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.menu-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.menu-link:hover {
  color: var(--text-color);
}

.menu-link:hover::after {
  width: 100%;
}

/* Pill styling for Contacts button */
.menu-link-pill {
  font-size: 0.95rem;
  font-weight: 600;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 20px;
  transition: var(--transition-fast);
  display: inline-block;
}

.menu-link-pill:hover {
  background-color: #2a2c30;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.25);
}

/* Sleek hardware slider/toggle representing Ambience */
.audio-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
}

.audio-toggle-track {
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background-color: rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-smooth);
}

.audio-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.audio-toggle-icon {
  color: var(--bg-color);
  transition: color 0.3s;
}

/* Hover/Active states */
.audio-toggle:hover .audio-toggle-track {
  border-color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.05);
}

.audio-toggle[aria-pressed="true"] .audio-toggle-track {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.audio-toggle[aria-pressed="true"] .audio-toggle-knob {
  transform: translateX(24px);
  background-color: #ffffff;
}

.audio-toggle[aria-pressed="true"] .audio-toggle-icon {
  color: var(--accent-color);
}

/* HERO SECTION */
.hero-section {
  min-height: calc(100vh - 80px);
  padding: 80px 5% 40px 5%;
  display: flex;
  align-items: stretch;
  position: relative;
}

.hero-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-section h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-color);
}


.hero-section .subtext {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 800px;
  margin-top: 28px;
}

/* INTERACTIVE 3D BLOCKY EJ & GLOW WIDGET */
.ej-interactive-container {
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

@media (max-width: 991px) {
  .ej-interactive-container {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    align-self: flex-start;
    width: 300px;
    height: 300px;
  }
}

.ej-glow-circle {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 55%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

.three-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
}

.three-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}



/* Reveal transition helpers */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0);
}

/* REDESIGNED PORTFOLIO SECTIONS */
.about-section {
  padding: 120px 5%;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--text-color);
  text-transform: uppercase;
  text-align: center;
}

.about-subheading {
  font-size: 1.15rem;
  font-weight: 450;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.01em;
}

.about-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 40px auto;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .about-content-wrapper {
    flex-direction: column;
    gap: 24px;
    min-height: auto;
  }
}

.about-3d-container {
  position: absolute;
  left: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .about-3d-container {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }
}

.about-canvas-container {
  width: 100%;
  height: 100%;
}

.about-text-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  text-align: center;
  pointer-events: auto;
}

.about-paragraph {
  font-size: 1.15rem;
  font-weight: 450;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.highlight-paragraph {
  margin-bottom: 12px;
}

.about-read-more-wrapper {
  margin-top: 10px;
}

.about-read-more-link {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.about-read-more-link:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.15);
}

/* SELECTED WORKS GRID */
.works-grid-section {
  padding: 120px 5% 120px;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 24px;
  letter-spacing: 0.15rem;
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 300px;
}

.all-works-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 120px;
}

.all-works-link {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.all-works-link:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.15);
}

/* SERVICES GRID */
.services-section {
  padding: 120px 5%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 36px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
  color: var(--accent-color);
  opacity: 0.8;
  display: flex;
  align-items: center;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 750;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
  padding: 120px 5%;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

@media (max-width: 991px) {
  .contact-container {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }
}

.contact-info-col {
  width: 48%;
}

.contact-media-col {
  width: 40%;
}

@media (max-width: 991px) {
  .contact-info-col,
  .contact-media-col {
    width: 100%;
  }
}

.contact-pitch {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-details {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-email {
  font-family: var(--font-pixel);
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  color: var(--accent-color);
  font-weight: 700;
  width: fit-content;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.contact-social-link {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--accent-color);
  font-weight: 700;
  width: fit-content;
  position: relative;
  transition: var(--transition-fast);
}

.contact-social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-social-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.whatsapp-link {
  color: #0e8a43;
}

.whatsapp-link::after {
  background-color: #0e8a43;
}

.instagram-link {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.instagram-link::after {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.contact-address {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Glassmorphic Play/Pause Button inside Audio Visualizer */
.visualizer-card-wrapper {
  position: relative;
}

.visualizer-audio-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 24px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  letter-spacing: 0.02em;
}

.visualizer-audio-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #000000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%) scale(1.05);
}

.visualizer-audio-btn .btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.visualizer-audio-btn.active {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.visualizer-audio-btn.active:hover {
  background: #000000;
  border-color: #ffffff;
}

/* PORTFOLIO CARD DETAILS */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  transition: var(--transition-smooth);
}

.project-card:nth-child(even) {
  flex-direction: row-reverse;
}

.project-card:nth-child(odd) .project-media {
  margin-left: 12.5%;
}

.project-media {
  position: relative;
  width: 22%;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-card:first-child .project-media {
  width: calc(48% + 3.5cm);
  margin-left: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

#thriftit-card {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 24%;
  align-self: flex-end;
  margin-right: 6cm;
}

.thriftit-dolphin-container {
  position: absolute;
  left: calc(-1100px + 2cm);
  top: calc(-200px + 4cm);
  width: 1000px;
  height: 800px;
  pointer-events: none;
  z-index: 1;
}

.dolphin-widget-canvas-container {
  width: 100%;
  height: 100%;
}

.dolphin-widget-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#thriftit-media {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

#thriftit-card .project-info {
  width: 100%;
  gap: 4px;
}

#thriftit-card .project-name {
  font-size: 1rem;
  font-weight: 700;
}

#thriftit-card .project-meta {
  font-size: 0.7rem;
}

#thriftit-card .project-summary {
  font-size: 0.8rem;
}

#thriftit-media video {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: grayscale(100%);
  transition: var(--transition-smooth), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#thriftit-card:hover #thriftit-media video {
  filter: grayscale(0%);
}

.project-card:first-child {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-left: 9%;
}

.project-card:first-child .project-info {
  width: calc(48% + 3.5cm);
  gap: 4px;
}

.project-card:first-child .project-name {
  font-size: 1rem;
  font-weight: 700;
}

.project-card:first-child .project-meta {
  font-size: 0.7rem;
}

.project-card:first-child .project-summary {
  font-size: 0.8rem;
}

/* Card 3: Clientness Custom Column Layout */
#clientness-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-left: calc(9% + 3cm);
}

#clientness-media {
  width: calc(52.8% + 3.85cm) !important;
  height: auto !important;
  margin-left: 0;
  aspect-ratio: auto !important;
  overflow: hidden;
}

#clientness-media video {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

#clientness-card .project-info {
  width: calc(52.8% + 3.85cm);
  gap: 4px;
}

#clientness-card .project-name {
  font-size: 1rem;
  font-weight: 700;
}

#clientness-card .project-meta {
  font-size: 0.7rem;
}

#clientness-card .project-summary {
  font-size: 0.8rem;
}

/* Card 4: Stealth Startup Custom Column Layout */
#stealth-card {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: calc(48% + 3.5cm);
  align-self: flex-end;
  margin-right: 9%;
}

.stealth-star-container {
  position: absolute;
  left: -700px;
  top: -350px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}

.star-widget-canvas-container {
  width: 100%;
  height: 100%;
}

#stealth-media {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden;
}

#stealth-media img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  filter: grayscale(100%);
  transition: var(--transition-smooth), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#stealth-card:hover #stealth-media img {
  filter: grayscale(0%);
}

#stealth-card .project-info {
  width: 100%;
  gap: 4px;
}

#stealth-card .project-name {
  font-size: 1rem;
  font-weight: 700;
}

#stealth-card .project-meta {
  font-size: 0.7rem;
}

#stealth-card .project-summary {
  font-size: 0.8rem;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  display: block;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
  display: block;
}

.project-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: transform;
}

.project-3d-canvas.loaded {
  opacity: 1;
}

.pixel-art-decor {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.12;
  transition: var(--transition-smooth);
}

.pixel-art-decor.thrifty {
  background-image: radial-gradient(var(--text-color) 20%, transparent 20%);
  background-size: 15px 15px;
}

.pixel-art-decor.gooby {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--text-color) 10px, var(--text-color) 20px);
}

.pixel-art-decor.clientness {
  background-image: repeating-linear-gradient(0deg, transparent, transparent 15px, var(--text-color) 15px, var(--text-color) 30px);
}

.media-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: rgba(0, 0, 0, 0.08);
  z-index: 1;
  transition: var(--transition-smooth);
}

.project-card:hover img,
.project-card:hover video {
  transform: scale(1.03);
}

.project-info {
  width: 54%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-meta {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent-color);
}

.project-name {
  font-size: 1.5rem;
  font-weight: 750;
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    gap: 28px;
  }
  .project-card:nth-child(even) {
    flex-direction: column;
  }
  .project-media {
    width: 100%;
  }
  #thriftit-card {
    width: 100%;
    margin-right: 0;
  }
  .thriftit-dolphin-container {
    display: none;
  }
  #thriftit-media {
    width: 100%;
  }
  .project-info {
    width: 100%;
  }
  .project-card:nth-child(odd) .project-media {
    margin-left: 0;
  }
  #clientness-card {
    margin-left: 0;
    width: 100%;
  }
  #clientness-media {
    width: 100% !important;
    margin-left: 0 !important;
  }
  #clientness-card .project-info {
    width: 100%;
  }
  #stealth-card {
    margin-right: 0;
    width: 100%;
  }
  #stealth-media {
    width: 100% !important;
    margin-right: 0 !important;
  }
  #stealth-card .project-info {
    width: 100%;
  }
  .stealth-star-container {
    display: none;
  }
  .all-works-wrapper {
    margin-top: 60px;
  }

}

/* MUSIC VISUALIZER CARD (BLOCK 4 RIGHT) */
.visualizer-card-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.visualizer-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
}

.visualizer-title {
  color: var(--text-color);
  font-weight: 700;
}

.visualizer-status {
  color: var(--accent-color);
}

/* FOOTER */
.footer {
  padding: 60px 0;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 5%;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.back-to-top {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 4px;
}

.back-to-top:hover {
  border-color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.05);
}

/* Glass Jellyfish Canvas Overlay */
.jellyfish-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  display: block;
}

/* Jellyfish Inversion Mask */
.jellyfish-mask {
  position: fixed;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* Header Controls Group */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Slider Switch */
.theme-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
}

.theme-toggle-track {
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background-color: rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-smooth);
}

.theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.theme-toggle-icon {
  color: var(--bg-color);
  transition: color 0.3s;
}

.theme-toggle:hover .theme-toggle-track {
  border-color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.05);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-knob {
  transform: translateX(24px);
  background-color: #ffffff;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon {
  color: var(--accent-color);
}

/* Sky Blue Color Theme Override (applies to html & body) */
html.theme-skyblue,
body.theme-skyblue {
  --bg-color: #d6e8f4;
  --bg-card: #e5f1f9;
  --text-color: #081d2c;
  --text-secondary: #44596b;
  --accent-color: #0088cc;
  --accent-rgb: 0, 136, 204;
  --border-color: rgba(0, 136, 204, 0.15);
  --border-hover: rgba(0, 136, 204, 0.3);
  --glass-bg: rgba(214, 232, 244, 0.85);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Header & Navigation Wrap */
  .header {
    height: auto !important;
    padding: 14px 6% !important;
    flex-flow: row wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px 0 !important;
  }
  .header-right {
    display: contents !important;
  }
  .logo {
    order: 1 !important;
    margin: 0 !important;
  }
  .header-controls {
    order: 2 !important;
    margin: 0 0 0 auto !important;
    gap: 12px !important;
  }
  .nav {
    order: 3 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 4px !important;
  }
  .menu {
    gap: 20px !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .menu-link {
    font-size: 0.85rem !important;
    padding: 6px 0 !important;
  }
  .menu-link-pill {
    font-size: 0.85rem !important;
    padding: 6px 14px !important;
  }

  /* 2. Hero Section Adjustments */
  .hero-section {
    min-height: auto !important;
    padding: 120px 6% 40px 6% !important;
  }
  .hero-section h1 {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }
  .ej-interactive-container {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 280px !important;
    height: 250px !important;
    margin: 30px auto 0 auto !important;
    align-self: center !important;
  }

  /* 3. About Section Adjustments */
  .about-section {
    padding: 60px 6% !important;
  }
  .about-3d-container {
    width: 100% !important;
    max-width: 220px !important;
    height: 220px !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto 16px auto !important;
  }
  .about-text-content .about-paragraph {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  /* 4. Selected Works Grid Overrides */
  .works-grid-section {
    padding: 60px 6% !important;
  }
  .works-grid {
    gap: 60px !important; /* Overriding desktop 300px gap */
  }
  .project-card {
    width: 100% !important;
    align-self: stretch !important;
    align-items: stretch !important;
    margin: 0 !important;
  }
  .project-media {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    margin: 0 !important;
  }
  .project-info {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Specific Resets for Card 1 (First Child) */
  .project-card:first-child {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .project-card:first-child .project-media {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    margin-left: 0 !important;
  }
  .project-card:first-child .project-info {
    width: 100% !important;
  }

  /* Resets for Card 2 */
  #thriftit-card {
    width: 100% !important;
    margin-right: 0 !important;
    align-self: stretch !important;
  }
  #thriftit-media {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
  }

  /* Resets for Card 3 */
  #clientness-card {
    width: 100% !important;
    margin-left: 0 !important;
  }
  #clientness-media {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
  }
  #clientness-card .project-info {
    width: 100% !important;
  }

  /* Resets for Card 4 */
  #stealth-card {
    width: 100% !important;
    margin-right: 0 !important;
    align-self: stretch !important;
  }
  #stealth-media {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
  }
  #stealth-card .project-info {
    width: 100% !important;
  }

  /* 5. Contact Section Overrides */
  .contact-section {
    padding: 60px 6% !important;
  }
  .contact-container {
    gap: 32px !important;
  }
  .contact-email {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    word-break: break-all !important;
  }
  .contact-socials {
    gap: 16px !important;
  }
  .contact-social-link {
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   FLUID RESPONSIVE WIDGETS (3D DOLPHIN & STAR)
   ========================================================================== */

/* 1. Fluid scaling rules for viewports under 1600px */
@media (max-width: 1600px) {
  .thriftit-dolphin-container {
    width: clamp(300px, 60vw, 1000px) !important;
    height: clamp(240px, 48vw, 800px) !important;
    left: clamp(-1100px, -65vw, -320px) !important;
    top: clamp(-200px, -15vw, -50px) !important;
  }

  .stealth-star-container {
    width: clamp(200px, 40vw, 600px) !important;
    height: clamp(200px, 40vw, 600px) !important;
    left: clamp(-700px, -46vw, -220px) !important;
    top: clamp(-350px, -22vw, -120px) !important;
  }
}

/* 2. Show widgets on tablets (601px to 768px) despite vertical stacking */
@media (min-width: 601px) {
  .thriftit-dolphin-container,
  .stealth-star-container {
    display: block !important;
  }
}

/* 3. Hide widgets on small mobile viewports (<= 600px) for layout clarity */
@media (max-width: 600px) {
  .thriftit-dolphin-container,
  .stealth-star-container {
    display: none !important;
  }
}

