/* =============================================
   Unicorn Media - Main Stylesheet
   ============================================= */

/* =============================================
   CSS Variables (Theme Colors)
   ============================================= */
:root {
    --midnight: #0a0a1a;
    --deep-space: #12122a;
    --nebula: #1a1a3a;
    --aurora-pink: #ff6b9d;
    --aurora-purple: #c56bff;
    --aurora-cyan: #6bfff0;
    --aurora-gold: #ffd06b;
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
}

/* =============================================
   Base Styles
   ============================================= */
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #0a0a1a;
}

.font-syne { font-family: 'Syne', system-ui, sans-serif; }
.font-dm { font-family: 'DM Sans', system-ui, sans-serif; }

/* =============================================
   Navigation Styles
   ============================================= */

/* Navigation glass effect */
.nav-glass {
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav-glass.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Dropdown menus */
.nav-dropdown {
    background: rgba(18, 18, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.nav-dropdown a:hover {
    background: rgba(255, 107, 157, 0.1);
}

/* CTA button glow */
.nav-cta {
    background: linear-gradient(135deg, #ff6b9d 0%, #c56bff 100%);
    box-shadow: 0 0 20px -5px rgba(255, 107, 157, 0.5);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    box-shadow: 0 0 30px -5px rgba(197, 107, 255, 0.6);
    transform: scale(1.05);
}

/* Mobile menu */
.mobile-menu {
    background: rgba(10, 10, 26, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Link hover effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, #c56bff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* =============================================
   Aurora Background & Effects
   ============================================= */

/* Aurora gradient backgrounds */
.aurora-bg {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-space) 50%, var(--nebula) 100%);
    position: relative;
    overflow: hidden;
}

.aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.aurora-glow:nth-child(1) {
    animation: float-glow-1 8s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
}
.aurora-glow:nth-child(2) {
    animation: float-glow-2 10s ease-in-out infinite, pulse-glow 5s ease-in-out infinite 1s;
}
.aurora-glow:nth-child(3) {
    animation: float-glow-3 9s ease-in-out infinite, pulse-glow 6s ease-in-out infinite 2s;
}

@keyframes float-glow-1 {
    0%, 100% { transform: translate(0, 0) translateZ(0); }
    25% { transform: translate(30px, -20px) translateZ(0); }
    50% { transform: translate(50px, 10px) translateZ(0); }
    75% { transform: translate(20px, 30px) translateZ(0); }
}

@keyframes float-glow-2 {
    0%, 100% { transform: translate(0, 0) translateZ(0); }
    25% { transform: translate(-40px, 20px) translateZ(0); }
    50% { transform: translate(-20px, -30px) translateZ(0); }
    75% { transform: translate(30px, -10px) translateZ(0); }
}

@keyframes float-glow-3 {
    0%, 100% { transform: translate(0, 0) translateZ(0); }
    33% { transform: translate(25px, 35px) translateZ(0); }
    66% { transform: translate(-30px, 15px) translateZ(0); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.35; filter: blur(80px); }
    50% { opacity: 0.5; filter: blur(90px); }
}

/* =============================================
   Text Effects
   ============================================= */

/* Iridescent text with shimmer animation */
.text-iridescent {
    background: linear-gradient(90deg, var(--aurora-pink), var(--aurora-purple), var(--aurora-cyan), var(--aurora-gold), var(--aurora-pink));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s linear infinite;
}

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

/* Stats counter */
.stat-number {
    background: linear-gradient(180deg, white 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Card Styles
   ============================================= */

/* Glassmorphism cards */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 20px 40px -12px rgba(197, 107, 255, 0.2);
}

/* Prismatic border effect */
.prismatic-border {
    position: relative;
}

.prismatic-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--aurora-pink), var(--aurora-purple), var(--aurora-cyan), var(--aurora-gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.prismatic-border:hover::before {
    opacity: 1;
}

/* Sector cards hover effect */
.sector-card {
    transition: transform 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
}

.sector-icon {
    transition: transform 0.3s ease;
}

.sector-card:hover .sector-icon {
    transform: scale(1.1);
}

/* =============================================
   Buttons
   ============================================= */

/* Magnetic button with glow */
.btn-magnetic {
    background: linear-gradient(135deg, var(--aurora-pink) 0%, var(--aurora-purple) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 30px -10px rgba(255, 107, 157, 0.5);
}

.btn-magnetic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px -5px rgba(197, 107, 255, 0.6);
}

/* =============================================
   Icons
   ============================================= */

/* Icon containers with subtle pulse */
.icon-aurora {
    background: linear-gradient(135deg, var(--aurora-pink), var(--aurora-purple));
    box-shadow: 0 10px 30px -5px rgba(197, 107, 255, 0.4);
    animation: icon-pulse 4s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 10px 30px -5px rgba(197, 107, 255, 0.4); }
    50% { box-shadow: 0 10px 40px -5px rgba(255, 107, 157, 0.5); }
}

/* =============================================
   Particles
   ============================================= */

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 12s linear infinite;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.3);
}

.particle:nth-child(4) { left: 5%; animation-delay: -2s; }
.particle:nth-child(5) { left: 15%; animation-delay: -5s; width: 5px; height: 5px; background: var(--aurora-cyan); box-shadow: 0 0 10px 3px rgba(107, 255, 240, 0.5); }
.particle:nth-child(6) { left: 25%; animation-delay: -8s; width: 3px; height: 3px; }
.particle:nth-child(7) { left: 35%; animation-delay: -1s; width: 5px; height: 5px; background: var(--aurora-pink); box-shadow: 0 0 10px 3px rgba(255, 107, 157, 0.5); }
.particle:nth-child(8) { left: 45%; animation-delay: -4s; }
.particle:nth-child(9) { left: 55%; animation-delay: -10s; width: 3px; height: 3px; background: var(--aurora-purple); box-shadow: 0 0 10px 3px rgba(197, 107, 255, 0.5); }
.particle:nth-child(10) { left: 65%; animation-delay: -3s; width: 5px; height: 5px; }
.particle:nth-child(11) { left: 75%; animation-delay: -7s; background: var(--aurora-gold); box-shadow: 0 0 10px 3px rgba(255, 208, 107, 0.5); }
.particle:nth-child(12) { left: 85%; animation-delay: -9s; width: 3px; height: 3px; }
.particle:nth-child(13) { left: 95%; animation-delay: -6s; width: 5px; height: 5px; background: var(--aurora-cyan); box-shadow: 0 0 10px 3px rgba(107, 255, 240, 0.5); }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    2% {
        opacity: 0.8;
        transform: translateY(95vh) scale(1);
    }
    50% {
        opacity: 1;
    }
    98% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-5vh) scale(0.5);
        opacity: 0;
    }
}

/* =============================================
   Animations
   ============================================= */

/* Entrance animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Scroll indicator */
.scroll-indicator {
    animation: bounce-fade 2s ease-in-out infinite;
}

@keyframes bounce-fade {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* =============================================
   Decorative Elements
   ============================================= */

/* Line decoration */
.line-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aurora-purple), transparent);
}

/* =============================================
   Device Mockups
   ============================================= */
.device-wrapper {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.device {
  position: relative;
  background-size: cover;
  width: 100%;
  height: 0;
}

.device::after {
  position: absolute;
  background-size: cover;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.device .screen {
  position: absolute;
  background-size: cover;
  pointer-events: auto;
  overflow: hidden;
  border-radius: 8px;
}

.device .button {
  position: absolute;
  cursor: pointer;
}

.device[data-device=iPhoneX][data-orientation=portrait][data-color=black] {
  padding-bottom: 198.898071625%;
}

.device[data-device=iPhoneX][data-orientation=portrait][data-color=black] .screen {
  top: 3.1855955679%;
  left: 6.8870523416%;
  width: 86.2258953168%;
  height: 93.6288088643%;
}

.device[data-device=iPhoneX][data-orientation=portrait][data-color=black]::after {
  content: "";
  background-image: url("../images/rental-iphone-mockup.png");
}

.device[data-device=iPhoneX][data-orientation=portrait][data-color=black] .button {
  display: none;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
}

/* =============================================
   Typography Utilities
   ============================================= */
.text-5xl {
  font-size: 3rem;
  line-height: 1;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Mobile */
@media (max-width: 640px) {
  .text-5xl {
    font-size: 2.4rem!important;
  }
}
