/* ============================================
   MOBILE PREMIUM PRO - Mind Blowing Edition
   Top Model Styling with 3D & Animations
   ============================================ */

@media (max-width: 768px) {
  /* ============================================
     SMOOTH SCROLLING & BASE
     ============================================ */
  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  /* ============================================
     PREMIUM GLASS MORPHISM NAVBAR - SMART HIDE/SHOW
     ============================================ */
  .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  }

  .navbar.nav-hidden {
    transform: translateY(-100%);
  }

  .navbar.nav-visible {
    transform: translateY(0);
  }

  /* Hide scroll indicator on mobile */
  .hero-scroll {
    display: none !important;
  }

  /* ============================================
     HERO SECTION - Cinematic Entrance
     ============================================ */
  .hero {
    position: relative;
    padding: 140px 24px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ef 0%, #f8f6f2 50%, #f0ede8 100%);
  }

  /* Animated Red Glow Background */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 80%, rgba(229, 57, 53, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(229, 57, 53, 0.08) 0%, transparent 40%);
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
  }

  @keyframes hero-gradient-shift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(2deg); }
  }

  /* Hero badge */
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 24px;
  }

  @keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(229, 57, 53, 0.1); }
  }

  .hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
  }

  @keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
  }

  /* Hero text reveal animation */
  .hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--dark);
    animation: text-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
  }

  .hero h1 em {
    color: var(--primary);
    position: relative;
    display: inline-block;
  }

  @keyframes text-reveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 32px;
    animation: text-reveal 1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
  }

  /* Premium CTA Buttons - Side by side on mobile */
  .hero-cta {
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    animation: text-reveal 1s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
  }

  .hero-cta .btn {
    position: relative;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 160px;
  }

  .hero-cta .btn--primary {
    background: linear-gradient(135deg, #E84A3C 0%, #FF8C42 100%);
    color: white;
    box-shadow: 
      0 10px 30px rgba(232, 74, 60, 0.35),
      0 4px 10px rgba(255, 140, 66, 0.2);
    border: none;
  }

  .hero-cta .btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    transition: left 0.6s ease;
  }

  .hero-cta .btn--primary:hover::before,
  .hero-cta .btn--primary:active::before {
    left: 100%;
  }

  .hero-cta .btn--primary:active {
    transform: scale(0.97);
    box-shadow: 0 5px 15px rgba(232, 74, 60, 0.3);
  }

  .hero-cta .btn--secondary {
    background: white;
    color: var(--dark);
    border: 1.5px solid var(--gray-200);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .hero-cta .btn--secondary:active {
    background: var(--gray-50);
    transform: scale(0.97);
  }

  /* ============================================
     SCROLL REVEAL ANIMATIONS
     ============================================ */
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  /* Stagger children */
  .stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
  .stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
  .stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
  .stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
  .stagger-children > *:nth-child(5) { transition-delay: 0.5s; }

  /* ============================================
     PREMIUM CARDS - 3D Hover Effects
     ============================================ */
  .card-3d-premium {
    position: relative;
    background: white;
    border-radius: 28px;
    padding: 32px 28px;
    margin-bottom: 20px;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.06),
      0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
  }

  .card-3d-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .card-3d-premium:hover,
  .card-3d-premium:active {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 8px 20px rgba(229, 57, 53, 0.1);
  }

  .card-3d-premium:hover::before,
  .card-3d-premium:active::before {
    opacity: 1;
  }

  /* Shimmer effect on cards */
  .card-3d-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
  }

  .card-3d-premium:hover::after {
    left: 150%;
  }

  /* Card icon with 3D float */
  .card-icon-float {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.3);
    animation: icon-float 4s ease-in-out infinite;
  }

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

  /* ============================================
     FEATURE PILLS - Premium Tags
     ============================================ */
  .feature-pill-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .feature-pill-premium:active {
    transform: scale(0.95);
    background: var(--primary-lighter);
    border-color: var(--primary);
    color: var(--primary);
  }

  .feature-pill-premium i {
    color: var(--primary);
    font-size: 12px;
  }

  /* ============================================
     GLASS MORPHISM CARDS
     ============================================ */
  .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
  }

  .glass-card:active {
    transform: translateY(-4px) scale(0.99);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  }

  /* ============================================
     PARALLAX SCROLL EFFECTS
     ============================================ */
  .parallax-slow {
    will-change: transform;
  }

  .parallax-fast {
    will-change: transform;
  }

  /* ============================================
     MAGNETIC BUTTON EFFECT
     ============================================ */
  .btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .btn-magnetic:active {
    transform: scale(0.95);
  }

  /* ============================================
     PREMIUM SECTION HEADERS
     ============================================ */
  .section-header-premium {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .section-label-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(229, 57, 53, 0.05) 100%);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 16px;
  }

  .section-title-premium {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .section-subtitle-premium {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
  }

  /* ============================================
     TESTIMONIAL CARDS - Premium
     ============================================ */
  .testimonial-card-premium {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.08),
      0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
  }

  .testimonial-card-premium::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
  }

  .testimonial-stars {
    color: #FFB800;
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 16px;
  }

  .testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 24px;
  }

  /* ============================================
     STATS COUNTER - Animated
     ============================================ */
  .stat-card-premium {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .stat-number-premium {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .stat-label-premium {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  /* ============================================
     SWIPE INDICATORS
     ============================================ */
  .swipe-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
  }

  .swipe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .swipe-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary);
  }

  /* ============================================
     FOOTER - Premium Dark
     ============================================ */
  .footer-premium {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    padding: 60px 24px 30px;
    position: relative;
    overflow: hidden;
  }

  .footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.5), transparent);
  }

  /* ============================================
     LOADING SKELETON
     ============================================ */
  .skeleton {
    background: linear-gradient(
      90deg,
      var(--gray-100) 0%,
      var(--gray-200) 50%,
      var(--gray-100) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
  }

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

  /* ============================================
     TOUCH FEEDBACK
     ============================================ */
  .touch-scale {
    transition: transform 0.15s ease;
  }

  .touch-scale:active {
    transform: scale(0.96);
  }

  /* ============================================
     FLOATING ELEMENTS
     ============================================ */
  .float-gentle {
    animation: float-gentle 6s ease-in-out infinite;
  }

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

  /* ============================================
     GRADIENT TEXT
     ============================================ */
  .text-gradient-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary, #FF6F00) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ============================================
     GLOW EFFECTS
     ============================================ */
  .glow-red {
    box-shadow: 0 0 40px rgba(229, 57, 53, 0.3);
  }

  .glow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }
}

/* Extra Small Screens */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 30px;
  }

  .section-title-premium {
    font-size: 26px;
  }

  .card-3d-premium {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .stat-number-premium {
    font-size: 36px;
  }
}
