/* 5:13 Bar - Custom Styles */

/* Pulse animation for the live dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Mobile link transition */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in 0.3s ease forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(2, 8, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image hover overlay */
.overflow-hidden {
    position: relative;
}

/* Selection color */
::selection {
    background: rgba(244, 185, 48, 0.3);
    color: #f4b930;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal.hidden-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-diagonal {
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 span {
        display: block;
    }
    
    .img-mask-diagonal {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
    .img-mask-diagonal {
        clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 94%);
    }
}
