/* ==========================================================================
   MYUU STUDIO — ARCHITECTURE & DESIGN
   Hero Landing Page Stylesheet
   Designed for Hostinger deployment
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Theme Tokens
   (Facilita cambiar colores y tipografías en el futuro)
   -------------------------------------------------------------------------- */
:root {
  /* ------------------------------------------------------------------------
     Paleta Clásica Hatsune Miku (Sin Amarillo):
     - Teal / Turquesa Miku (Oficial):   #39C5BB
     - Negro Cyber / Azul Obsidiana:     #10141B
     - Pizarra / Superficie Bento:       #19212D
     - Blanco Hielo / Puro:              #FFFFFF
     - Gris Metálico / Tech:             #94A3B8
     ------------------------------------------------------------------------ */
  --miku-teal: #39C5BB;
  --miku-teal-hover: #4de6db;
  --miku-dark: #10141B;
  --miku-surface: #19212D;
  --miku-white: #FFFFFF;
  --miku-gray-text: #94A3B8;

  /* Fondo general */
  --bg-primary: var(--miku-dark);
  --bg-secondary: #0c0f14;
  
  /* Formas geométricas del fondo (Bento shapes) */
  --shape-fill: var(--miku-surface);
  --shape-border: rgba(57, 197, 187, 0.08);
  
  /* Colores de acento (Botón CTA y elementos destacados) */
  --accent-color: var(--miku-teal);
  --accent-hover: var(--miku-teal-hover);
  --accent-text: #0b1218;
  
  /* Textos principales */
  --text-primary: #FFFFFF;
  --text-muted: var(--miku-gray-text);
  --text-subtle: #64748B;
  
  /* Tarjetas inferiores (Pills) */
  --card-bg: var(--miku-white);
  --card-text: #0F172A;
  --card-subtext: #475569;
  
  /* Insignia / Hero Badge */
  --badge-bg: rgba(25, 33, 45, 0.7);
  --badge-border: rgba(57, 197, 187, 0.4);
  --badge-text: var(--miku-teal);
  
  /* Estrellas de reseña */
  --star-color: var(--miku-teal);
  
  /* Tipografía */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Sombras y transiciones */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Background: Gradient & Halftone Dot Pattern (Inspirado en Miku)
   -------------------------------------------------------------------------- */
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Capa de degradado: Azul/Cian -> Lavanda/Púrpura -> Magenta/Rosa cálido */
.hero-gradient-layer {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 15%, rgba(68, 163, 229, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(223, 59, 123, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(147, 98, 173, 0.35) 0%, transparent 65%),
    linear-gradient(135deg, #1b2644 0%, #302452 35%, #4f285f 70%, #682252 100%);
  background-size: 100% 100%;
}

/* Patrón de puntos (Halftone Screen-Tone) de respaldo */
.hero-dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(18, 11, 40, 0.48) 1.6px,
    transparent 1.6px
  );
  background-size: 10px 10px;
  background-position: 0 0;
  opacity: 0.95;
  display: none; /* Reemplazado por el lienzo dinámico hero-water-canvas */
}

/* Lienzo interactivo: Ondas de agua estilo mar y distorsión con mouse (Paleta Miku) */
.hero-water-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: block;
}

/* Viñeta sutil para enmarcar el contenido y dar profundidad */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 40%,
    rgba(12, 15, 23, 0.45) 80%,
    rgba(12, 15, 23, 0.8) 100%
  );
}

/* --------------------------------------------------------------------------
   4. Header / Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  padding: 20px 40px;
  background: rgba(16, 20, 27, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo "Myuu Studio" — Más grande y prominente con Mayúsculas */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-pill {
  background: transparent;
  color: var(--miku-teal);
  border: 1.5px solid rgba(57, 197, 187, 0.55);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-pill {
  border-color: var(--miku-teal);
  background-color: rgba(57, 197, 187, 0.15);
  box-shadow: 0 0 16px rgba(57, 197, 187, 0.45);
}

.logo-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Menú Central */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--miku-teal);
}

/* Botón CTA del Menú Superior (Teal Clásico Miku) */
.btn-cta {
  background-color: var(--accent-color);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(57, 197, 187, 0.35);
}

.btn-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(57, 197, 187, 0.55);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-drawer {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Small Pill Tag */
.hero-badge-wrapper {
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--badge-text);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

/* Main Headline */
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 42px;
}

.hero-title span {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   6. Action Cards Grid (3 White Pills)
   -------------------------------------------------------------------------- */
.action-cards-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  margin-bottom: 34px;
}

.action-card {
  background-color: var(--card-bg);
  border-radius: 9999px;
  padding: 8px 10px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 300px;
  max-width: 340px;
  min-height: 66px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-align: left;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(57, 197, 187, 0.22);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--card-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--card-subtext);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background-color: #f1f1f1;
}

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

.action-card:hover .card-thumb img {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   7. Social Proof & Trust Badge
   -------------------------------------------------------------------------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -9px;
  object-fit: cover;
  background-color: #2a2a2a;
}

.avatar:first-child {
  margin-left: 0;
}

.trust-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.stars {
  color: var(--star-color);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1;
}

.trust-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .site-header {
    padding: 20px 24px;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .action-cards-grid {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .header-action {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(16, 20, 27, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(57, 197, 187, 0.2);
    padding: 24px 20px;
    z-index: 99;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .mobile-drawer.active {
    transform: translateY(0);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .mobile-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .mobile-cta {
    width: 100%;
    margin-top: 10px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.18;
    margin-bottom: 32px;
  }

  .action-cards-grid {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 380px;
  }

  .action-card {
    max-width: 100%;
  }

  .trust-badge {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .trust-meta {
    align-items: center;
  }
}

/* ==========================================================================
   9. Hero Bottom Diffusion & Projects Section (Explora nuestros proyectos)
   ========================================================================== */

/* Difuminado suave en la parte superior del Hero (idéntico al inferior) */
.hero-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    rgba(16, 20, 27, 0.96) 20%,
    rgba(16, 20, 27, 0.75) 50%,
    rgba(16, 20, 27, 0.35) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* Difuminado suave en la parte inferior del Hero hacia la sección de Proyectos */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16, 20, 27, 0.45) 45%,
    rgba(16, 20, 27, 0.9) 80%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Sección de Proyectos */
.projects-section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-primary);
  padding: 40px 0 100px 0;
  overflow: hidden;
}

.projects-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Encabezado de la sección */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(25, 33, 45, 0.85);
  border: 1px solid rgba(57, 197, 187, 0.45);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--miku-teal);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.15;
}

.section-cta {
  background-color: var(--miku-teal);
  color: #0b1218;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(57, 197, 187, 0.35);
}

.section-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(57, 197, 187, 0.55);
}

/* ==========================================================================
   Carrusel de Categorías Arquitectónicas (Full-Bleed a lo largo de toda la página)
   Inspirado en el diseño de referencia con paleta Hatsune Miku
   ========================================================================== */
.carousel-wrapper.full-bleed,
.carousel-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  margin-top: 12px;
}

.projects-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 14px 0 38px 0; /* De borde a borde: sin espacio a la izquierda ni a la derecha */
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.projects-carousel.grabbing {
  cursor: grabbing;
  scroll-snap-type: none; /* Fluidez total al arrastrar */
  scroll-behavior: auto;
}

.projects-carousel img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Tarjeta Individual de Categoría (Forma Rectangular Horizontal Apaisada +20% - Paleta Hatsune Miku) */
.project-card {
  flex: 0 0 550px;
  max-width: 550px;
  min-width: 550px;
  background: rgba(20, 27, 37, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(57, 197, 187, 0.22);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 197, 187, 0.65);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.72), 0 0 28px rgba(57, 197, 187, 0.28);
}

/* Tarjetas de las Categorías */
.card-media {
  padding: 14px 14px 0 14px;
}

.card-media img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease;
}

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

.card-body {
  padding: 18px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-heading {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
  line-height: 1.28;
  transition: color 0.25s ease;
}

.project-card:hover .card-heading {
  color: var(--miku-teal);
}

.card-description {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.52;
  margin-bottom: 16px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background-color: rgba(25, 33, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 9999px;
}

.tag-item .tag-icon {
  color: var(--miku-teal);
}

.btn-card-action {
  width: 100%;
  background: rgba(57, 197, 187, 0.12);
  border: 1px solid rgba(57, 197, 187, 0.35);
  color: var(--miku-teal);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 12px 0;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  margin-top: auto;
  text-decoration: none;
  display: block;
}

.project-card:hover .btn-card-action {
  background-color: var(--miku-teal);
  color: #0b1218;
  border-color: var(--miku-teal);
  box-shadow: 0 4px 18px rgba(57, 197, 187, 0.45);
  transform: translateY(-2px);
}

/* Indicador de barra de desplazamiento (Minimalist Miku Teal Indicator) */
.carousel-scrollbar-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  margin: 20px auto 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel-scrollbar-thumb {
  width: 60px;
  height: 100%;
  background-color: var(--miku-teal);
  border-radius: 9999px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px var(--miku-teal);
  transition: left 0.05s linear;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
  .projects-container {
    padding: 0 20px;
  }
  
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .projects-carousel {
    padding: 12px 0 32px 0;
    gap: 16px;
  }
  
  .project-card {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
  }
}

/* ==========================================================================
   10. Category Filters & Project Preview Modal
   ========================================================================== */

/* Filtros de Categorías (Ramas y Especializaciones) */
.category-filter-wrapper {
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: wrap;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: rgba(25, 33, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: var(--miku-teal);
  color: #ffffff;
  background: rgba(57, 197, 187, 0.12);
  transform: translateY(-1px);
}

.cat-pill.active {
  background-color: var(--miku-teal);
  color: #0b1218;
  border-color: var(--miku-teal);
  box-shadow: 0 4px 16px rgba(57, 197, 187, 0.4);
}

.category-description {
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(25, 33, 45, 0.5);
  border-left: 3px solid var(--miku-teal);
  padding: 8px 16px;
  border-radius: 0 10px 10px 0;
  max-width: 900px;
  line-height: 1.45;
  transition: opacity 0.25s ease;
}

/* Modal de Vista Previa de Proyecto */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-card {
  background: #141b25;
  border: 1px solid rgba(57, 197, 187, 0.3);
  border-radius: 28px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(57, 197, 187, 0.25);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.active .project-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 20, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--miku-teal);
  color: #0b1218;
  border-color: var(--miku-teal);
  transform: rotate(90deg);
}

.modal-media {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background-color: #10141B;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 27, 37, 0.9) 0%, transparent 60%);
}

.modal-category-badge {
  position: absolute;
  bottom: 16px;
  left: 24px;
  background: rgba(16, 20, 27, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--miku-teal);
  color: var(--miku-teal);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.modal-body {
  padding: 26px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 12px;
}

.spec-box {
  background: rgba(25, 33, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
}

.modal-actions {
  margin-top: 6px;
}

.modal-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 14px;
  font-size: 14.5px;
}

@media (max-width: 600px) {
  .modal-media {
    height: 220px;
  }
  
  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
}


