/* Antonella Epigenética - Premium UI Redesign */

:root {
  --primary-glow: rgba(74, 222, 128, 0.4);
  --secondary-glow: rgba(14, 165, 233, 0.4);
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

html {
  scroll-behavior: smooth;
  --bg-color: #f8f9ff;
  --text-color: #0b1c30;
}

/* Page Transitions */
.page-transition {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-blur-transition {
  transition: filter 0.4s ease-in-out, opacity 0.4s ease-in-out;
  filter: blur(0px);
  opacity: 1;
}

.page-blur-active {
  filter: blur(15px);
  opacity: 0.3;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* Fade In Smooth */
.fade-in-content {
  opacity: 1;
  animation: fadeInSmooth 0.8s ease-in forwards;
}
@keyframes fadeInSmooth {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Glassmorphism Styles */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.dark .glass {
  background: rgba(11, 28, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar Scrolled State */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  border-bottom: 1px solid rgba(200, 200, 200, 0.3) !important;
}

/* Premium Buttons */
button {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

/* Holographic DNA Overlay */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(1,1,3,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Cinematic Image Animations */
@keyframes cinematicPan {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1.02); }
}
.animate-pan {
    animation: cinematicPan 25s ease-in-out infinite;
}

@keyframes pulseBlur {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.animate-blur {
    animation: pulseBlur 10s ease-in-out infinite;
}

/* Animación de fade para el texto (Sugerida por usuario) */
.texto-fade {
    animation: aparecerDesaparecer 4s infinite;
}

@keyframes aparecerDesaparecer {
    0%   { opacity: 0; } /* Inicia invisible */
    50%  { opacity: 1; } /* A la mitad del tiempo está 100% visible */
    100% { opacity: 0; } /* Termina invisible para reiniciar el bucle sin cortes */
}

button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
}

button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px var(--primary-glow);
}

button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Typing Effect */
.typing-container {
  display: inline-block;
  position: relative;
}

.typing-text {
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: #4ADE80; }
}

/* Parallax Scrolling */
.parallax-container {
  overflow: hidden;
  position: relative;
  perspective: 1px;
  height: 100%;
}

.parallax-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  transform: translateZ(-0.5px) scale(1.5);
  background-size: cover;
  background-position: center;
}

/* Ken Burns Effect (Continuous Background Animation) */
.ken-burns-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s infinite alternate linear;
  z-index: -2;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}

/* Toggle Switch Animation */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 30px;
  position: relative;
  width: 54px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 24px;
  left: 3px;
  position: absolute;
  transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: 24px;
}

input:checked + .slider {
  background-color: #0EA5E9;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Hover Cards */
.hover-card {
  transition: all 0.4s ease;
}

.hover-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(74, 222, 128, 0.3);
}

/* Skeleton Screens */
.skeleton-loader {
  background: #eee;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  border-radius: 5px;
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}

.dark .skeleton-loader {
  background: #1a2c42;
  background: linear-gradient(110deg, #1a2c42 8%, #21364d 18%, #1a2c42 33%);
  background-size: 200% 100%;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

/* Smooth selection */
::selection {
  background: #4ADE80;
  color: #fff;
}

/* 3D CSS DNA Animation */
.dna-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  perspective: 1000px;
  width: 100%;
  height: 100%;
}

.dna-strand {
  position: relative;
  width: 180px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  animation: rotateDNA 4s linear infinite;
}

.dna-strand::before, .dna-strand::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dna-strand::before {
  left: -7px;
  background-color: #4ADE80; /* Primary */
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

.dna-strand::after {
  right: -7px;
  background-color: #0EA5E9; /* Secondary */
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

@keyframes rotateDNA {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Stagger delays to create helix shape */
.dna-strand:nth-child(1) { animation-delay: -0.0s; width: 60px; }
.dna-strand:nth-child(2) { animation-delay: -0.2s; width: 100px; }
.dna-strand:nth-child(3) { animation-delay: -0.4s; width: 140px; }
.dna-strand:nth-child(4) { animation-delay: -0.6s; width: 180px; }
.dna-strand:nth-child(5) { animation-delay: -0.8s; width: 200px; }
.dna-strand:nth-child(6) { animation-delay: -1.0s; width: 180px; }
.dna-strand:nth-child(7) { animation-delay: -1.2s; width: 140px; }
.dna-strand:nth-child(8) { animation-delay: -1.4s; width: 100px; }
.dna-strand:nth-child(9) { animation-delay: -1.6s; width: 60px; }
.dna-strand:nth-child(10) { animation-delay: -1.8s; width: 100px; }
.dna-strand:nth-child(11) { animation-delay: -2.0s; width: 140px; }
.dna-strand:nth-child(12) { animation-delay: -2.2s; width: 180px; }
.dna-strand:nth-child(13) { animation-delay: -2.4s; width: 200px; }
.dna-strand:nth-child(14) { animation-delay: -2.6s; width: 180px; }
.dna-strand:nth-child(15) { animation-delay: -2.8s; width: 140px; }
.dna-strand:nth-child(16) { animation-delay: -3.0s; width: 100px; }
.dna-strand:nth-child(17) { animation-delay: -3.2s; width: 60px; }

/* Mobile Bottom Navigation */
.nav-item-mobile.active {
    color: #D4AF37 !important; /* text-primary */
}
.nav-item-mobile.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1 !important;
}
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}
.pt-safe {
    padding-top: env(safe-area-inset-top, 0px);
}

/* Chat bubble animation */
@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade-in {
    animation: chatFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbar for clean chat input */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Animations on Scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Swipe from left */
.scroll-reveal.swipe-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.swipe-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Swipe from right */
.scroll-reveal.swipe-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.swipe-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* VSL Video Container - Full Coverage Without Side Black Bars */
#landing-video-container {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
}

#landing-video-container video,
#landing-video-container .vsl-video-player {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit;
    display: block;
}

#landing-video-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: inherit;
    display: block;
}

#landing-video-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit;
    display: block;
}

