/* ============================================
   ROSES SRINAGAR BIOFUEL — ANIMATIONS
   ============================================ */

/* ---------- Password Gate ---------- */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1a0d;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.password-gate.unlocked {
  opacity: 0;
  transform: scale(1.15);
  pointer-events: none;
}

.password-bg {
  position: absolute;
  inset: 0;
  background: url('../images/common/password-bg.jpg') center/cover no-repeat;
  filter: blur(4px) brightness(0.5);
  transform: scale(1.1);
}

.password-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) translateX(100px);
    opacity: 0;
  }
}

.mist-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.3;
}

.mist-layer::before,
.mist-layer::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: mistDrift 20s linear infinite;
}

.mist-layer::after {
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes mistDrift {
  0% { transform: translate(-25%, -25%); }
  50% { transform: translate(-15%, -35%); }
  100% { transform: translate(-25%, -25%); }
}

.password-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 3.5rem 3rem;
  width: 90%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.password-card .lock-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.8rem;
}

.password-card h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.password-card .subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.password-input-wrap {
  position: relative;
  margin-bottom: var(--space-md);
}

.password-input-wrap input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
}

.password-input-wrap input::placeholder {
  color: rgba(255,255,255,0.35);
}

.password-input-wrap input:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
}

.password-input-wrap .toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.password-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2E7D32 0%, #0277BD 100%);
  color: var(--white);
  border: none;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.password-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.4);
}

.password-error {
  color: #ef5350;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-error.visible {
  opacity: 1;
}

.password-card .brand-text {
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Parallax ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  will-change: transform;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Counter Animation ---------- */
.counter-animated {
  display: inline-block;
}

/* ---------- Hover Effects ---------- */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(27, 94, 32, 0.15);
}

/* Image zoom on hover */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-zoom-wrap img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-zoom-wrap:hover img {
  transform: scale(1.08);
}

/* ---------- Loading Shimmer ---------- */
.shimmer {
  background: linear-gradient(90deg, var(--light-grey) 25%, var(--mid-grey) 50%, var(--light-grey) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Pulse ---------- */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--eco-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  height: 8px;
  background: var(--mid-grey);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--eco-gradient);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.progress-fill.animated {
  /* width set via data attribute */
}

/* ---------- Marquee ---------- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Blob Animation ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-green {
  background: var(--forest-green);
}

.blob-blue {
  background: var(--energy-blue);
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--eco-gradient);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}
