/* Animations CSS */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Fade In Down Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-down {
  animation: fadeInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Fade In Right Animation */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Zoom Out Animation */
@keyframes zoomOut {
  from {
    opacity: 0;
    transform: scale(1.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-out {
  animation: zoomOut 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide In Up Animation */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide In Down Animation */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.slide-in-down {
  animation: slideInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-35px);
  }
  60% {
    transform: translateY(-20px);
  }
}

.bounce {
  animation: bounce 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Button Pulse Animation */
.btn-pulse {
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-12px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(12px);
  }
}

.shake {
  animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Flip Animation */
@keyframes flip {
  0% {
    transform: perspective(400px) rotateY(0);
    animation-timing-function: ease-out;
  }
  40% {
    transform: perspective(400px) translateZ(150px) rotateY(170deg);
    animation-timing-function: ease-out;
  }
  50% {
    transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
    animation-timing-function: ease-in;
  }
  80% {
    transform: perspective(400px) rotateY(360deg) scale(0.95);
    animation-timing-function: ease-in;
  }
  100% {
    transform: perspective(400px) scale(1);
    animation-timing-function: ease-in;
  }
}

.flip {
  animation: flip 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  backface-visibility: visible;
}

/* Text Reveal Animation */
.text-reveal {
  position: relative;
  color: transparent;
  overflow: hidden;
}

.text-reveal::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  overflow: hidden;
  white-space: nowrap;
  animation: revealText 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  transform: translateX(-100%);
  animation: revealTextCover 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

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

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

/* Animation Delays */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

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

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 2s linear infinite;
}

/* Text Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--secondary-color);
  animation: 
    typing 3.5s steps(40, end),
    blink 0.75s step-end infinite;
}

/* Glitch Animation */
@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

.glitch {
  animation: glitch 0.5s ease-in-out infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Gradient Animation */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animation {
  background: linear-gradient(-45deg, 
    var(--primary-color), 
    var(--secondary-color), 
    var(--accent-color), 
    var(--primary-color));
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

/* Blur In Animation */
@keyframes blurIn {
  0% {
    opacity: 0;
    filter: blur(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.blur-in {
  animation: blurIn 1s ease forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scroll Animations */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
}

.reveal-left {
  transform: translateX(-100px);
}

.reveal-left.active {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(100px);
}

.reveal-right.active {
  transform: translateX(0);
}

.reveal-up {
  transform: translateY(100px);
}

.reveal-up.active {
  transform: translateY(0);
}

.reveal-down {
  transform: translateY(-100px);
}

.reveal-down.active {
  transform: translateY(0);
}

.reveal-scale {
  transform: scale(0.8);
}

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

/* Parallax Effect */
.parallax {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-slow {
  transform: translateY(var(--parallax-speed, 0));
  --parallax-speed: 0;
}

.parallax-medium {
  transform: translateY(calc(var(--parallax-speed, 0) * 1.5));
  --parallax-speed: 0;
}

.parallax-fast {
  transform: translateY(calc(var(--parallax-speed, 0) * 2.5));
  --parallax-speed: 0;
}

/* Cursor Animation */
.cursor-animation {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--secondary-color);
  margin-left: 2px;
  animation: blink 0.75s step-end infinite;
}

/* Spotlight Hover Effect */
.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

/* Yıldızlı Arka Plan Animasyonu */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(to bottom, #f0f4f8, #ffffff);
}

.star {
  position: absolute;
  background-color: rgba(74, 111, 165, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--duration, 5s) infinite var(--delay, 0s);
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: rgba(74, 111, 165, 0.8);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(45deg);
  animation: shootingStar var(--duration, 5s) infinite var(--delay, 0s) linear;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, rgba(74, 111, 165, 0.6), transparent);
  transform: translateX(-100%);
}

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: var(--opacity, 0.6);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(45deg);
  }
  10% {
    opacity: 0.8;
  }
  20% {
    opacity: 0.8;
  }
  30% {
    opacity: 0;
    transform: translateX(calc(var(--distance, 500) * 1px)) translateY(calc(var(--distance, 500) * 1px)) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(var(--distance, 500) * 1px)) translateY(calc(var(--distance, 500) * 1px)) rotate(45deg);
  }
}

/* Yıldız Boyutları */
.star-tiny {
  width: 1px;
  height: 1px;
}

.star-small {
  width: 2px;
  height: 2px;
}

.star-medium {
  width: 3px;
  height: 3px;
}

.star-large {
  width: 4px;
  height: 4px;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Text Scramble Effect */
.text-scramble .text {
  display: inline-block;
}

/* Particle Animation */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(74, 111, 165, 0.3);
  pointer-events: none;
}

/* Loading Animation */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Progress Bar Animation */
@keyframes progressAnimation {
  0% {
    width: 0%;
  }
  100% {
    width: var(--progress-width, 100%);
  }
}

.progress-bar {
  height: 4px;
  background-color: var(--secondary-color);
  width: 0;
  animation: progressAnimation 1.5s ease-out forwards;
}

/* Ripple Effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect .ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.8s linear;
}

/* 3D Tilt Effect */
.tilt-effect {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
} 