/* CSS Keyframes & Initial States for GSAP */

/* Pulse Animation for dots */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Float Animation for 3D elements (Fallback if JS is off) */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-molecule {
  animation: float 8s ease-in-out infinite;
}

.floating-serum {
  animation: float 6s ease-in-out infinite reverse;
}

/* Hover effects for treatment cards */
.treatment-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}

.treatment-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
}

.treatment-card .card-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
  transition: transform 0.4s;
}

.treatment-card:hover .card-icon {
  transform: scale(1.1);
}

.explore-btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-sm);
  transition: all 0.3s;
}

.treatment-card:hover .explore-btn {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* About Doctor Image Glow */
.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.doctor-img {
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

.achievement-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.achievement-card i {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

/* AI Scan Scanner Line */
.scanner-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.ai-img {
  width: 100%;
  display: block;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px 5px rgba(0, 229, 255, 0.4);
  animation: scan 4s linear infinite;
  z-index: 2;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.floating-ui {
  position: absolute;
  z-index: 3;
}

.ui-1 {
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot.green {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
}

.ui-2 {
  bottom: 30px;
  left: 30px;
  width: 200px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: var(--gradient-medical);
}

/* Feature Cards Glow */
.feature-card {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
}

/* Gallery Overlay Hover */
.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,12,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

.gallery-item:hover .item-overlay {
  opacity: 1;
}

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

.item-overlay span {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .item-overlay span {
  transform: translateY(0);
}

/* GSAP Initial States (to avoid FOUC before JS loads) */
.fade-up, .reveal-up, .reveal-left, .reveal-right, .fade-in {
  opacity: 0;
}
