/*
 * css/style.css
 * Estilos definitivos para el concepto 'Pro', 'Minimalista' y 'Cin茅tico'
 * de The Julgebass Project.
 */

/* 1. RESET, FUENTE Y ESPACIADO DEL BODY */
body {
  background-color: #0b0c0a;
  color: #e0e0e0;
  font-family: 'Dancing Script', 'Segoe UI', sans-serif !important;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 40px;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* 2. HEADER Y NAVEGACI脫N (Transparente con efecto blur) */

.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 12, 10, 0.6); /* 馃敟 mismo color base pero con transparencia */
    backdrop-filter: blur(8px);         /* desenfoque de fondo */
    -webkit-backdrop-filter: blur(8px); /* compatibilidad Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    z-index: 1020;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Ajustamos el logo para mantener presencia sobre el fondo */
.header-logo {
    display: block;
    margin: 0 auto;
    width: 30%; /* leve ajuste de tama帽o para armon铆a */
    /* max-width: 340px; */
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 1;
}

/* 3. CONTENEDOR DE FOTOS */
#photo-container {
    padding-top: 40px;
    padding-bottom: 50px;
}

/* 4. TARJETA DE FOTO */
.photo-card {
    background-color: #0b0c0a;
    border: 1px solid #222; /* borde visible pero sutil */
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
    cursor: pointer;
}

.photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08);
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.5s ease, opacity 0.5s ease;
    border-radius: 5px;
}

.photo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.photo-info {
    padding: 15px 20px;
    text-align: center;
}

.photo-info small {
    color: #e0e0e0; /* m谩s claro y legible */
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* 5. LOADER Y MENSAJES FINALES */
.loader {
    padding: 60px 20px;
    font-style: normal;
}

.loader p {
    color: #bbb; /* antes #333 */
    font-size: 1rem;
    letter-spacing: 1px;
}

.spinner-border {
    color: #999 !important;
}

/* 6. MODAL/LIGHTBOX (CINEMATIC OVERLAY) */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    max-width: 95%;
    margin: auto;
}

.modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#modalImage {
    width: auto;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: scale(0.97);
}

.modal.show #modalImage {
    opacity: 1;
    transform: scale(1);
}

.modal-header {
    border: none;
    padding: 0;
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 10;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.btn-close:hover {
    opacity: 1;
}

.modal-title {
    color: #e0e0e0;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 400;
    margin-top: 15px;
    text-align: center;
    opacity: 0.9;
}


/* === 7. EFECTO FADE-IN CINEMÁTICO === */
.photo-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition:
    opacity 1.8s ease-out,
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 2s ease-out;
}

.photo-card.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


.lazy-photo {
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.5s ease, opacity 0.5s ease;
}


/* 8. MASONRY CENTRADO Y FLUIDO */

.photo-grid {
    column-count: 4;
    column-gap: 25px;
    max-width: 1800px;
    margin: 0 auto;            /* Centrado horizontal real */
    padding: 0 40px;
}

@media (max-width: 1400px) {
    .photo-grid { column-count: 3; max-width: 1200px; }
}

@media (max-width: 992px) {
    .photo-grid { column-count: 2; max-width: 900px; }
}

@media (max-width: 576px) {
    .photo-grid { column-count: 1; max-width: 500px; padding: 0 20px; }
}

.photo-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
    background-color: #0b0c0a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    break-inside: avoid; /* evita cortes entre columnas */
}


.photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08);
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.photo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* CAPTION FUERA DE LA TARJETA */
.photo-caption {
    text-align: center;
    margin-top: 8px;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.photo-caption small {
    font-family: 'Dancing Script', cursive;
    color: #e6e6e6;
}

/* 9. Textos y colores */

/* Subt铆tulo en cabecera (Portafolio Din谩mico) */
.fixed-header .text-muted {
    color: #e0e0e0 !important;
    opacity: 0.9;
    font-size: 1.6rem; /* 馃敟 tama帽o aumentado */
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Dancing Script', cursive; /* mantiene coherencia con el resto */
    margin-top: 8px;
    display: block;
}


/* === 10. CAPTION SOBRE LA FOTO CON DESENFOQUE === */
.photo-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.photo-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.photo-card:hover .photo-image-wrapper img {
    transform: scale(1.03);
}

/* Overlay del t铆tulo */
.photo-caption-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* 馃敟 margen lateral: evita que el blur toque los bordes */
    padding: 6px 16px;
    border-radius: 10px;
    backdrop-filter: blur(8px); /* desenfoque gaussiano */
    background-color: rgba(255, 255, 255, 0.15); /* leve transparencia */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: all 0.3s ease;
}

.photo-caption-overlay small {
    color: #f0f0f0;
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Efecto hover */
.photo-card:hover .photo-caption-overlay {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%) translateY(-2px);
}


/* === 11. MEN脷 GLASS PROFESIONAL === */

/* Bot贸n hamburguesa */
.menu-toggle {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: transparent;
  z-index: 1200;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #f0f0f0;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Animaci贸n al abrir */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Overlay glass */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 10, 0.35); /* igual que cabecera, transparente */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s ease;
  z-index: 1100;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Tarjeta interior (contenedor del men煤) */
/* === MEN脷 GLASS PRO EVOLUCIONADO === */
.menu-panel {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem 3rem;
  margin-right: 60px;
  margin-top: clamp(100px, 15vh, 200px); /* 馃敟 altura adaptable */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  transform: translateX(40px) scale(0.98);
  opacity: 0;
  transition: all 0.5s ease;
}

/* Animaci贸n de entrada */
.menu-overlay.open .menu-panel {
  transform: translateX(0) scale(1);
  opacity: 1;
}

/* Enlaces del men煤 */
.menu-panel .nav-link {
  color: #eaeaea;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 6px 0;
  transition: all 0.3s ease;
  position: relative;
}

.menu-panel .nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 1.2px;
}

/* Subrayado animado */
.menu-panel .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.9));
  transition: width 0.4s ease;
}

.menu-panel .nav-link:hover::after {
  width: 100%;
}

/* Adaptaci贸n m贸vil */
@media (max-width: 768px) {
  .menu-panel {
    margin-right: 0;
    margin-top: 10rem;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 80%;
  }
}

/* === SECCIÓN SOBRE MÍ === */
.about-section {
  padding-top: 220px; /* o 200px según la altura real del header */
  padding-bottom: 80px;
  background: linear-gradient(to bottom, #0b0c0a 0%, #111 100%);
  color: #e0e0e0;
  font-family: 'Dancing Script', cursive;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.about-photo {
  max-width: 90%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.9;
}

.about-photo:hover {
  transform: scale(1.03);
  opacity: 1;
}

.about-title {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.about-text {
  font-family: 'Dancing Script', 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  line-height: 1.8;
  color: #ccc;
  text-align: justify;
  margin-bottom: 1rem;
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .about-title {
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
}

/* === RETRATO CON TEXTO BLUR (INTEGRADO EN ESTILO EXISTENTE) === */
.about-photo-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.about-photo {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Bloque de texto con efecto blur */
.about-caption-blur {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 12px 20px;
  text-align: center;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.6s ease;
}

/* Título y subtítulo dentro del panel */
.about-caption-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #f5f5f5;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.about-caption-sub {
  font-family: 'Segoe UI', sans-serif;
  color: #ccc;
  font-size: 1rem;
  margin: 4px 0 0 0;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

/* Animación ligera al pasar el ratón */
.about-photo-wrapper:hover .about-caption-blur {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%) translateY(-2px);
}

