/* ================================================
   STAR YAZILIM - Animasyonlar
   ================================================ */

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

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

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

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

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

@keyframes heroGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2) translate(5%, 5%);
    opacity: 0.6;
  }
}

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

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--border-color);
    box-shadow: none;
  }
  50% {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 50% { border-color: var(--accent); }
  51%, 100% { border-color: transparent; }
}

/* ---- Animation Classes ---- */
.anim-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.anim-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.anim-fade-down {
  animation: fadeInDown 0.6s ease forwards;
}

.anim-fade-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.anim-fade-right {
  animation: fadeInRight 0.6s ease forwards;
}

.anim-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.anim-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.anim-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(14, 210, 247, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.anim-border-glow {
  animation: borderGlow 3s ease-in-out infinite;
}

/* ---- Staggered Delays ---- */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ---- Hover Animations ---- */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

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

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

.hover-scale {
  transition: transform var(--transition-base);
}

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

/* ---- Logo Star Spin on Hover ---- */
.logo:hover svg {
  animation: rotate 1.5s ease-in-out;
}

/* ---- Number Counter Animation ---- */
.stat-number[data-count] {
  transition: all 0.3s ease;
}

/* ---- Particle dot base styles ---- */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  animation: starTwinkle 3s ease-in-out infinite;
}

/* ---- Mobile Menu Animation ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-nav.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav a:hover {
  color: var(--text-accent);
}

/* ---- Sub-page entrance animations ---- */
.page-hero .section-label {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

.page-hero .section-title {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.25s backwards;
}

.page-hero .section-subtitle {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.page-hero .breadcrumb {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.55s backwards;
}

.page-anim-1 { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards; }
.page-anim-2 { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s backwards; }
.page-anim-3 { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards; }
.page-anim-4 { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.65s backwards; }
