/* ============ KEYFRAME ANIMATIONS ============ */

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

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

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

@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 scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

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

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

@keyframes heroTextReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}

@keyframes borderDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes morphBg {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

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

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

/* ============ MAGNETIC BUTTON EFFECT ============ */
.magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ PAGE TRANSITION ============ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.page-transition__layer {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.page-transition__layer--1 {
  background: var(--primary);
  z-index: 3;
}

.page-transition__layer--2 {
  background: var(--accent);
  z-index: 2;
}

.page-transition__layer--3 {
  background: var(--bg);
  z-index: 1;
}

/* ============ CURSOR ============ */
/* Cursor removed */

/* ============ LOADING SCREEN ============ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s forwards;
}

.loader__logo span {
  color: var(--accent);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s forwards;
}

.loader__bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.loader__text {
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  animation: fadeInUp 0.6s 0.6s forwards;
}

/* ============ STAGGER CHILDREN ============ */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.animated > * {
  animation: fadeInUp 0.6s forwards;
}

.stagger-children.animated > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children.animated > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children.animated > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children.animated > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children.animated > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children.animated > *:nth-child(6) { animation-delay: 0.6s; }

/* ============ HOVER LIFT ============ */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* ============ IMAGE REVEAL ============ */
.image-reveal {
  position: relative;
  overflow: hidden;
}

/* ============ TEXT GRADIENT ============ */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__inner {
  display: inline-flex;
  animation: marqueeScroll 20s linear infinite;
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: rgba(201, 169, 110, 0.08);
  padding: 0 40px;
  text-transform: uppercase;
}

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