/* Custom Premium Styles */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0c10;
}

::-webkit-scrollbar-thumb {
    background: #1a202a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d7ff2;
}

/* Base utilities */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Animations classes for JS observer */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Custom Glows */
.premium-glow {
    box-shadow: 0 0 40px -10px theme('colors.primary');
}

.premium-glow:hover {
    box-shadow: 0 0 60px -10px theme('colors.primary');
}

/* Service Card Flip-to-Modal Animations */
.service-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
    transform-style: preserve-3d;
    cursor: pointer;
    perspective: 1000px;
}

.service-card.flipping-out {
    transform: rotateY(90deg) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.service-card .expand-icon {
    display: none;
}

.service-card .expandable-content {
    display: none;
}

/* Modal Base */
#service-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    perspective: 1200px;
}

#service-modal.active {
    pointer-events: auto;
}

#service-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#service-modal.active .modal-backdrop {
    opacity: 1;
}

#service-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: theme('colors.surface-dark');
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transform: rotateY(-90deg) scale(0.9);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#service-modal.active .modal-content {
    transform: rotateY(0) scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

@media (min-width: 640px) {
    #service-modal .modal-content {
        padding: 3.5rem;
        border-radius: 2rem;
    }
}