/* ==========================================================================
   D-GART (Art & Technology Laboratory) - MAIN STYLESHEET
   100% Modern Vanilla CSS3 - Responsive, Fluid, Zero-CMS Dependencies
   ========================================================================== */

/* Font Faces (Using existing local webfonts) */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* CSS Reset & Variables */
:root {
  --primary-purple: #9f00bf;
  --primary-indigo: #4d4fa7;
  --space-dark: #09071c;
  --accent-cyan: #38bdf8;
  --accent-amber: #f7931e;
  --glass-bg: rgba(59, 130, 246, 0.18);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: blur(10px);
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #cbd5e1;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  min-height: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text-white);
  background-color: var(--space-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Layers */
#cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 40%, rgba(147, 51, 234, 0.85) 0%, rgba(79, 70, 229, 0.6) 45%, var(--space-dark) 85%);
  z-index: -2;
  pointer-events: none;
  transition: background 0.1s ease;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Site Wrapper */
.site-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
  z-index: 100;
}

.brand-logo-wrap {
  margin-bottom: 12px;
}

.brand-logo {
  height: 95px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.03);
}

/* Primary Glass Navbar */
.glass-nav-container {
  width: 100%;
  max-width: 900px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
  margin-bottom: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  list-style: none;
}

.nav-links li a {
  display: inline-block;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 9999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links li a:hover {
  background-color: rgba(247, 147, 30, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.nav-links li a.active {
  background-color: rgba(27, 20, 100, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

/* Secondary Service Sub-Nav */
.service-subnav {
  width: 100%;
  max-width: 1080px;
  background: rgba(30, 27, 75, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 5px 12px;
  margin-bottom: 25px;
}

.subnav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.subnav-links li a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subnav-links li a:hover {
  background: rgba(46, 49, 146, 0.6);
  color: #ffffff;
}

.subnav-links li a.active {
  background: rgba(251, 176, 59, 0.7);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(251, 176, 59, 0.5);
}

/* Mobile Nav Toggle */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ==========================================================================
   GLASS CARDS & CONTAINERS
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 12px 35px 0 rgba(31, 38, 135, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px 0 rgba(31, 38, 135, 0.35);
}

.page-title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   ASTRONAUTS (Zero-Gravity Floaters)
   ========================================================================== */
.astronaut-float {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  animation: floatVertical 6s ease-in-out infinite;
  user-select: none;
  pointer-events: auto;
}

.astronaut-float.diag {
  animation: floatDiagonal 7s ease-in-out infinite;
}

@keyframes floatVertical {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatDiagonal {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  50% { transform: translate(-8px, -14px) rotate(-3deg); }
}

/* ==========================================================================
   INDEX HOMEPAGE: CONSTELLATION & INTERACTIVE PLANETS
   ========================================================================== */
.hero-index {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.slogan-pill {
  text-align: center;
  max-width: 800px;
  padding: 14px 28px;
  margin-bottom: 30px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f8fafc;
}

.slogan-pill .en {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Planet Interactive Station */
.planets-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.planets-orbit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
  z-index: 10;
}

.planet-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.planet-thumb img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.planet-thumb:hover img {
  transform: scale(1.18) rotate(4deg);
  filter: drop-shadow(0 10px 22px rgba(56, 189, 248, 0.6));
}

.planet-thumb.selected img {
  transform: scale(1.22);
  filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.8));
}

/* Service Detail Modal/Card */
.service-details-container {
  width: 100%;
  max-width: 900px;
  min-height: 220px;
  position: relative;
}

.service-info-panel {
  display: none;
  animation: fadeInPanel 0.4s ease forwards;
}

.service-info-panel.active {
  display: block;
}

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

.service-info-panel h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 12px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.service-info-panel p {
  font-size: 0.98rem;
  color: #f1f5f9;
  margin-bottom: 10px;
  line-height: 1.7;
}

.service-info-panel .en-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 8px;
  margin-top: 10px;
}

/* Metaverso / Hubs / Spatial External Pills */
.metaverse-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.metaverse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(147, 51, 234, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.metaverse-btn:hover {
  background: rgba(147, 51, 234, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

/* ==========================================================================
   PORTFOLIO & SERVICE GRID STYLES
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.project-card p {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.project-btn-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 18px;
  background: rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.project-btn-link:hover {
  background: rgba(59, 130, 246, 0.6);
  border-color: #ffffff;
}

.project-tag-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Client & Partner Logos Grid */
.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 10px;
}

.logos-grid img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.1);
  transition: transform 0.25s ease;
}

.logos-grid img:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding-top: 30px;
}

.footer-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: 9999px;
}

.regulatory-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.regulatory-logos img {
  max-height: 38px;
  width: auto;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
}

.social-icon-btn img {
  width: 38px;
  height: 38px;
  display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Smartphones)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-toggle-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .glass-nav-container {
    position: relative;
    border-radius: 20px;
  }

  .planet-thumb img {
    width: 80px;
    height: 80px;
  }

  .footer-glass {
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    padding: 15px 14px 40px;
  }

  .brand-logo {
    height: 75px;
  }

  .glass-panel {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .planet-thumb img {
    width: 65px;
    height: 65px;
  }

  .service-info-panel h3 {
    font-size: 1.2rem;
  }

  .service-info-panel p {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   SOCIAL CHANNELS GRID (redes.html)
   ========================================================================== */
.social-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 25px;
}

.social-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 26px 20px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.social-channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.social-channel-card.card-instagram:hover {
  border-color: rgba(225, 48, 108, 0.7);
  box-shadow: 0 12px 35px rgba(225, 48, 108, 0.25);
  transform: translateY(-5px);
}
.social-channel-card.card-instagram::before {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-channel-card.card-linkedin:hover {
  border-color: rgba(10, 102, 194, 0.7);
  box-shadow: 0 12px 35px rgba(10, 102, 194, 0.25);
  transform: translateY(-5px);
}
.social-channel-card.card-linkedin::before {
  background: #0a66c2;
}

.social-channel-card.card-youtube:hover {
  border-color: rgba(255, 0, 0, 0.7);
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.25);
  transform: translateY(-5px);
}
.social-channel-card.card-youtube::before {
  background: #ff0000;
}

.social-channel-card.card-facebook:hover {
  border-color: rgba(24, 119, 242, 0.7);
  box-shadow: 0 12px 35px rgba(24, 119, 242, 0.25);
  transform: translateY(-5px);
}
.social-channel-card.card-facebook::before {
  background: #1877f2;
}

.social-card-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.social-channel-card:hover .social-card-icon-wrap {
  transform: scale(1.12) rotate(4deg);
}

.social-card-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.social-card-body {
  margin-bottom: 20px;
}

.social-platform-name {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.social-handle {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.social-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.social-action-btn {
  display: inline-block;
  margin-top: auto;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.social-channel-card:hover .social-action-btn {
  background: #ffffff;
  color: #0f172a;
}

/* ==========================================================================
   DGART MODAL & LIGHTBOX SYSTEM
   ========================================================================== */
.dgart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dgart-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dgart-modal-dialog {
  position: relative;
  background: rgba(20, 27, 45, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  max-width: 880px;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dgart-modal-overlay.active .dgart-modal-dialog {
  transform: scale(1);
}

.dgart-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.dgart-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Video Header & Tabs */
.dgart-modal-header {
  margin-bottom: 16px;
  padding-right: 45px;
}

.dgart-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.dgart-video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dgart-video-tab-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dgart-video-tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dgart-video-tab-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.dgart-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dgart-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image Dialog (Lightbox) */
.dgart-modal-dialog.image-dialog {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  padding: 18px;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dgart-lightbox-image-wrap {
  max-width: 86vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.dgart-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.2s ease-in-out;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.dgart-lightbox-caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.dgart-lightbox-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
}

.dgart-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.dgart-lightbox-nav:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  transform: translateY(-50%) scale(1.1);
}

.dgart-lightbox-nav.prev {
  left: 10px;
}

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

/* Interactive Project Cards with Thumbnails */
.interactive-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.interactive-project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.interactive-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.35);
}

.interactive-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #0f172a;
}

.interactive-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.interactive-project-card:hover .interactive-card-thumb-wrap img {
  transform: scale(1.08);
}

.interactive-card-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.interactive-project-card:hover .interactive-card-play-overlay {
  background: rgba(15, 23, 42, 0.25);
  opacity: 1;
}

.play-badge-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.9);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
  transition: transform 0.3s ease;
}

.interactive-project-card:hover .play-badge-icon {
  transform: scale(1.15);
}

.interactive-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.interactive-card-body h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  color: #ffffff;
}

.interactive-card-body p {
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
  flex: 1;
}

.interactive-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.interactive-project-card:hover .interactive-trigger-pill {
  background: #3b82f6;
  color: #ffffff;
  border-color: #ffffff;
}

/* AI Gallery Grid (43 items) */
.ai-gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.ai-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-gallery-item:hover {
  transform: scale(1.06);
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
  z-index: 5;
}

.ai-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ai-gallery-item:hover img {
  transform: scale(1.1);
}

.ai-gallery-item::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 22px;
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
}

.ai-gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
