/* Duplex Pro - Main Stylesheet */
/* Modern dark theme with cosmic effects */

/* ========================================
   BASE STYLES
   ======================================== */

/* Hero Gradient */
.hero-gradient {
    background: radial-gradient(circle at center, rgba(24, 144, 255, 0.15) 0%, rgba(10, 22, 40, 0) 70%);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #1890FF 0%, #EB2F96 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-reverse {
    background: linear-gradient(135deg, #EB2F96 0%, #1890FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   COSMIC BACKGROUND EFFECTS
   ======================================== */

.cosmic-bg {
    position: relative;
    background: linear-gradient(135deg, #0A1628 0%, #0D1B3E 50%, #1A237E 100%);
}

.cosmic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(235, 47, 150, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(24, 144, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(82, 196, 26, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Stars Animation */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   TV MOCKUP STYLES
   ======================================== */

.tv-mockup {
    box-shadow: 
        0 0 50px rgba(24, 144, 255, 0.15),
        0 0 100px rgba(235, 47, 150, 0.1);
    border: 4px solid rgba(24, 144, 255, 0.5);
    border-radius: 1.5rem;
    position: relative;
    background: #0A1628;
}

/* TV Stand/Base */
.tv-mockup::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: linear-gradient(to bottom, #1A237E, #0D1B3E);
    border-radius: 0 0 20px 20px;
    z-index: -1;
}

/* Reflection effect */
.tv-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 1.5rem 1.5rem 0 0;
    pointer-events: none;
}

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.floating-orb {
    animation: float-orb 20s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 0 8px rgba(24, 144, 255, 0.1),
            0 30px 80px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(24, 144, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 0 8px rgba(24, 144, 255, 0.2),
            0 30px 80px rgba(0, 0, 0, 0.5),
            0 0 100px rgba(24, 144, 255, 0.4),
            0 0 150px rgba(235, 47, 150, 0.2);
    }
}

.tv-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ========================================
   CARD STYLES
   ======================================== */

/* Feature Card Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Glass Card */
.glass-card {
    background: rgba(13, 27, 62, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(24, 144, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(24, 144, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(24, 144, 255, 0.4);
}

/* ========================================
   BUTTON STYLES
   ======================================== */

/* Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, #1890FF 0%, #EB2F96 100%);
    box-shadow: 
        0 6px 20px rgba(24, 144, 255, 0.4),
        0 0 40px rgba(235, 47, 150, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 30px rgba(24, 144, 255, 0.5),
        0 0 60px rgba(235, 47, 150, 0.3);
}

/* Button Hover Glow */
.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(24, 144, 255, 0.4);
}

/* Outline Button */
.btn-outline {
    border: 2px solid rgba(24, 144, 255, 0.5);
    background: rgba(24, 144, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #1890FF;
    background: rgba(24, 144, 255, 0.2);
    box-shadow: 0 0 30px rgba(24, 144, 255, 0.3);
}

/* ========================================
   NAVIGATION
   ======================================== */

.glass-nav {
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 4px 30px rgba(24, 144, 255, 0.1);
}

/* ========================================
   ICON STYLES
   ======================================== */

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.2), rgba(235, 47, 150, 0.1));
    border: 2px solid rgba(24, 144, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.glass-card:hover .icon-circle {
    background: linear-gradient(135deg, #1890FF, #EB2F96);
    border-color: transparent;
    transform: scale(1.1);
}

.glass-card:hover .icon-circle svg {
    color: white;
}

/* ========================================
   PRICING STYLES
   ======================================== */

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    background: linear-gradient(135deg, #1890FF, #EB2F96);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4);
}

/* Neon Border Effect */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #1890FF, #EB2F96, #52C41A, #1890FF);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer-gradient {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.8) 20%, #0A1628 100%);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TIMELINE STYLES
   ======================================== */

.timeline-vertical {
    position: relative;
    padding-left: 50px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1890FF, #EB2F96, #1890FF);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1890FF, #EB2F96);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: 4px solid #0A1628;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4);
    z-index: 10;
}

/* ========================================
   POLICY PAGE STYLES
   ======================================== */

.policy-section {
    position: relative;
    padding-left: 24px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #1890FF, #EB2F96) 1;
    margin-bottom: 32px;
}

.policy-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.policy-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #1890FF, #EB2F96);
    border-radius: 50%;
}

/* ========================================
   DIAGONAL SECTIONS
   ======================================== */

.diagonal-section {
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.diagonal-top {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
    .diagonal-section {
        clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    }
    
    .diagonal-top {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1890FF;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 640px) {
    .glass-card {
        border-radius: 16px;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .timeline-vertical {
        padding-left: 40px;
    }
    
    .timeline-number {
        left: -40px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
