/**
 * NOTCH Professional Enhancements - CSS
 * Advanced styling for premium effects
 */

/* ===== Custom Cursor - NOTCH Logo ===== */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}

.cursor-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  background-image: url('/notch-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  opacity: 0.9;
}

.cursor-outline {
  display: none;
}

.custom-cursor.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
  opacity: 1;
}

/* ===== Loading Progress Bar ===== */
.loading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--notch-accent), 
    #25D366,
    var(--notch-accent));
  background-size: 200% 100%;
  animation: progressGradient 1.5s ease infinite;
  z-index: 99999;
  width: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(21, 63, 52, 0.5);
}

@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Text Reveal Animation ===== */
.text-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  animation: revealChar 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealChar {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ===== Reveal Animation Classes ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Stagger Animation for Grid Items ===== */
.values-grid .value,
.contact-grid .contact-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Enhanced Glass Morphism ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== Shimmer Effect ===== */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

/* ===== Floating Animation ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ===== Pulse Animation ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Gradient Border Animation ===== */
@keyframes gradientBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-border {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--notch-accent),
    #25D366,
    var(--notch-accent)
  );
  background-size: 200% 100%;
  animation: gradientBorder 3s ease infinite;
  z-index: -1;
}

/* ===== Glow Effect ===== */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    var(--notch-accent) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-effect:hover::before {
  opacity: 0.6;
}

/* ===== Smooth Hover Lift ===== */
.hover-lift {
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* ===== Ripple Effect ===== */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.ripple-effect:active::after {
  width: 300px;
  height: 300px;
}

/* ===== Smooth Scale on Hover ===== */
.scale-hover {
  transition: transform var(--transition-smooth);
}

.scale-hover:hover {
  transform: scale(1.05);
}

/* ===== Fade In Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 768px) {
  /* Disable custom cursor on mobile */
  .custom-cursor {
    display: none;
  }
  
  /* Reduce motion for better performance */
  .text-reveal span {
    animation-duration: 0.3s;
  }
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
