/**
 * Alukor Premium Design Effects
 * Glassmorphism, Animations, and Premium Visual Enhancements
 * 
 * Usage: Import this file after your main styles.css
 * <link rel="stylesheet" href="assets/css/premium-effects.css">
 */

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Typography */
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Enhanced Font Sizes (Premium Scale) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px) saturate(180%);
  --glass-blur-strong: blur(30px) saturate(200%);
  
  /* Animation Timing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Apply Premium Typography */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.75;
  font-weight: 400;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

/* Base Glass Container */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Strong Glass Effect */
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glass with Accent Glow */
.glass-accent {
  background: linear-gradient(
    135deg,
    rgba(240, 112, 0, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(240, 112, 0, 0.2);
  box-shadow: 
    0 8px 32px rgba(240, 112, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Header Glass */
.header {
  background: rgba(10, 12, 15, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Glass Card Enhancement */
.card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass Input Fields */
.input.glass {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--ease-smooth);
}

.input.glass:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 112, 0, 0.4);
  box-shadow: 
    0 0 0 3px rgba(240, 112, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass Button */
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s var(--ease-smooth);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PARALLAX BACKGROUNDS
   ============================================ */

/* Parallax Container */
.parallax-container {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  will-change: transform;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Video Background */
.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  z-index: -1;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 15, 18, 0.7) 0%,
    rgba(13, 15, 18, 0.5) 50%,
    rgba(13, 15, 18, 0.8) 100%
  );
  z-index: -1;
}

/* Animated Gradient Background */
.animated-gradient {
  background: linear-gradient(
    -45deg,
    #0d0f12,
    #0f1318,
    #11151b,
    #0d0f12
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Geometric Shapes */
.floating-shape {
  position: absolute;
  opacity: 0.03;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Scale In */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.scale-in.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Slide In Left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.slide-in-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In Right */
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.slide-in-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Animation (for grid items) */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.stagger-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   DRAWING LINE EFFECT (SVG)
   ============================================ */

.drawing-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-in-out forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Trigger drawing on scroll */
.drawing-line.animate {
  animation: drawLine 2s ease-in-out forwards;
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Magnetic Hover Effect */
.magnetic {
  transition: transform 0.3s var(--ease-smooth);
  will-change: transform;
}

.magnetic:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Button Hover Glow */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(240, 112, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* Card Lift Effect */
.card-lift {
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Image Tilt on Hover */
.image-tilt {
  transition: transform 0.5s var(--ease-smooth);
  transform-style: preserve-3d;
}

.image-tilt:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.05);
}

/* Shimmer Loading Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(240, 112, 0, 0.5);
}

/* ============================================
   NUMBER COUNT-UP ANIMATION
   ============================================ */

.count-up {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   PREMIUM BUTTON ENHANCEMENTS
   ============================================ */

.btn--accent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(240, 112, 0, 1), rgba(240, 112, 0, 0.9));
  border: 1px solid rgba(240, 112, 0, 0.5);
  box-shadow: 
    0 4px 16px rgba(240, 112, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s var(--ease-smooth);
}

.btn--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(240, 112, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--accent:hover::before {
  left: 100%;
}

.btn--accent:active {
  transform: translateY(0);
}

/* ============================================
   RESPECT REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .parallax-bg,
  .parallax {
    transform: none !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing Scale */
.space-xs { margin-bottom: 0.5rem; }
.space-sm { margin-bottom: 1rem; }
.space-md { margin-bottom: 1.5rem; }
.space-lg { margin-bottom: 2rem; }
.space-xl { margin-bottom: 3rem; }
.space-2xl { margin-bottom: 4rem; }

/* Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 20px rgba(240, 112, 0, 0.3);
}

.glow-strong {
  box-shadow: 0 0 40px rgba(240, 112, 0, 0.5);
}
