/* ============================================================
   GÜRKAN ŞEF - ANİMASYONLAR & EFEKTLER
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(201,168,76,0.4), 0 0 40px rgba(201,168,76,0.2); }
  50% { text-shadow: 0 0 40px rgba(201,168,76,0.8), 0 0 80px rgba(201,168,76,0.4), 0 0 120px rgba(201,168,76,0.1); }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.5); }
}

@keyframes loadProgress {
  0%   { width: 0; }
  100% { width: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-15px) rotate(2deg); }
  66%       { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}

@keyframes pulseBurgundy {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,15,26,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(107,15,26,0); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes flicker {
  0%   { opacity: 1; }
  5%   { opacity: 0.8; }
  10%  { opacity: 1; }
  15%  { opacity: 0.9; }
  25%  { opacity: 1; }
  50%  { opacity: 0.95; }
  75%  { opacity: 1; }
  90%  { opacity: 0.85; }
  100% { opacity: 1; }
}

@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  50%  { transform: translateY(-60px) translateX(var(--drift, 10px)) scale(0.7); opacity: 0.6; }
  100% { transform: translateY(-120px) translateX(calc(var(--drift, 10px) * 2)) scale(0.3); opacity: 0; }
}

@keyframes smokeRise {
  0%   { transform: translateY(0) scale(1); opacity: 0.15; }
  50%  { transform: translateY(-80px) scale(2); opacity: 0.08; }
  100% { transform: translateY(-160px) scale(3); opacity: 0; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(201,168,76,0.2); }
  50%       { border-color: rgba(201,168,76,0.6); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(201,168,76,0.3); }
  50%       { text-shadow: 0 0 30px rgba(201,168,76,0.7), 0 0 60px rgba(201,168,76,0.3); }
}

@keyframes stampReveal {
  0%   { opacity: 0; transform: scale(1.5) rotate(-10deg); }
  60%  { opacity: 1; transform: scale(0.95) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ---- Gold Shimmer Text ---- */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold) 20%,
    var(--gold-pale) 40%,
    var(--gold-light) 50%,
    var(--gold-pale) 60%,
    var(--gold) 80%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
}

/* ---- Glowing Text ---- */
.glow-text {
  animation: textGlow 3s ease-in-out infinite;
}

/* ---- Ember Container ---- */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffaa00, #ff6600);
  box-shadow: 0 0 6px 2px rgba(255,100,0,0.6);
  animation: emberRise var(--duration, 4s) ease-out infinite;
  animation-delay: var(--delay, 0s);
  bottom: 0;
}

/* ---- Smoke Particles ---- */
.smoke-particle {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,80,60,0.3), transparent);
  filter: blur(20px);
  animation: smokeRise var(--duration, 8s) ease-out infinite;
  animation-delay: var(--delay, 0s);
  bottom: 0;
  pointer-events: none;
}

/* ---- Flame Glow on Hover ---- */
.flame-hover {
  position: relative;
  transition: all 0.3s ease;
}
.flame-hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,100,0,0), rgba(255,150,0,0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.flame-hover:hover::after {
  background: linear-gradient(135deg, rgba(255,80,0,0.3), rgba(201,168,76,0.3));
  opacity: 1;
  filter: blur(10px);
}

/* ---- Section Smoke Divider ---- */
.smoke-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: transparent;
}
.smoke-divider::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(to top, var(--black-deep) 0%, transparent 100%);
}

/* ---- Gold Border Animated ---- */
.gold-border-anim {
  border: 1px solid rgba(201,168,76,0.2);
  animation: borderGlow 3s ease-in-out infinite;
}

/* ---- Floating Elements ---- */
.float-slow { animation: floatSlow 6s ease-in-out infinite; }
.float-med  { animation: float 5s ease-in-out infinite; }

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

/* ---- Background Texture ---- */
.texture-overlay {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='transparent'/%3E%3Crect x='0' y='0' width='1' height='1' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Gold Line Separator ---- */
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 30%, var(--gold) 50%, var(--gold-dim) 70%, transparent 100%);
  margin: 40px 0;
}

/* ---- Pulse Ring ---- */
.pulse-ring {
  position: relative;
  display: inline-block;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  animation: pulseGold 2s ease-out infinite;
}

/* ---- Number Counter ---- */
.counter-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* ---- Stamp / Award Badge ---- */
.stamp-badge {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: stampReveal 0.8s ease-out forwards;
}
.stamp-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}
.stamp-badge::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(201,168,76,0.4);
  border-radius: 50%;
}

/* ---- Video Overlay ---- */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.video-overlay:hover { background: rgba(10,10,10,0.4); }

.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(201,168,76,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--black-deep);
  transition: all var(--transition);
  box-shadow: 0 0 30px rgba(201,168,76,0.5);
  animation: pulseGold 2s ease-in-out infinite;
}
.play-btn:hover { transform: scale(1.1); background: var(--gold); }

/* ---- Responsive animations ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
