/* Custom Config for Tailwind Colors */
:root {
    --neon-red: #D6001C; /* Logo Red */
    --electric-blue: #3b82f6;
    --neon-lime: #a3e635;
    --deep-black: #050505;
    --dark-grey: #121212;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Font Families */
.font-display {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Noise Texture & Backgrounds */
.bg-noise {
    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)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Radial Gradients for Depth */
body {
    background: radial-gradient(circle at 50% 0%, #3c1010 0%, #050505 40%), /* Red tint */
                radial-gradient(circle at 80% 80%, #1a0f0f 0%, #050505 40%);
    background-attachment: fixed;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

@keyframes pulseSlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(214, 0, 28, 0.6); /* Red Shadow */
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(214, 0, 28, 0.8);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #D6001C; /* Red Glitch */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(70px, 9999px, 90px, 0); }
    10% { clip: rect(10px, 9999px, 50px, 0); }
    15% { clip: rect(80px, 9999px, 20px, 0); }
    20% { clip: rect(40px, 9999px, 60px, 0); }
    25% { clip: rect(20px, 9999px, 80px, 0); }
    30% { clip: rect(60px, 9999px, 30px, 0); }
    35% { clip: rect(90px, 9999px, 10px, 0); }
    40% { clip: rect(50px, 9999px, 70px, 0); }
    45% { clip: rect(10px, 9999px, 40px, 0); }
    50% { clip: rect(70px, 9999px, 20px, 0); }
    55% { clip: rect(30px, 9999px, 60px, 0); }
    60% { clip: rect(80px, 9999px, 10px, 0); }
    65% { clip: rect(20px, 9999px, 50px, 0); }
    70% { clip: rect(60px, 9999px, 90px, 0); }
    75% { clip: rect(40px, 9999px, 30px, 0); }
    80% { clip: rect(90px, 9999px, 70px, 0); }
    85% { clip: rect(10px, 9999px, 20px, 0); }
    90% { clip: rect(50px, 9999px, 80px, 0); }
    95% { clip: rect(30px, 9999px, 60px, 0); }
    100% { clip: rect(70px, 9999px, 40px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(60px, 9999px, 30px, 0); }
    5% { clip: rect(20px, 9999px, 80px, 0); }
    10% { clip: rect(90px, 9999px, 10px, 0); }
    15% { clip: rect(40px, 9999px, 60px, 0); }
    20% { clip: rect(80px, 9999px, 20px, 0); }
    25% { clip: rect(10px, 9999px, 50px, 0); }
    30% { clip: rect(50px, 9999px, 90px, 0); }
    35% { clip: rect(30px, 9999px, 40px, 0); }
    40% { clip: rect(70px, 9999px, 10px, 0); }
    45% { clip: rect(20px, 9999px, 60px, 0); }
    50% { clip: rect(60px, 9999px, 30px, 0); }
    55% { clip: rect(90px, 9999px, 70px, 0); }
    60% { clip: rect(10px, 9999px, 50px, 0); }
    65% { clip: rect(50px, 9999px, 20px, 0); }
    70% { clip: rect(80px, 9999px, 60px, 0); }
    75% { clip: rect(30px, 9999px, 90px, 0); }
    80% { clip: rect(70px, 9999px, 10px, 0); }
    85% { clip: rect(20px, 9999px, 50px, 0); }
    90% { clip: rect(60px, 9999px, 80px, 0); }
    95% { clip: rect(10px, 9999px, 30px, 0); }
    100% { clip: rect(40px, 9999px, 70px, 0); }
}

/* Custom Utilities */
.text-metallic-white {
    color: #e0e0e0;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.bg-deep-black { background-color: #050505; }
.bg-dark-grey { background-color: #121212; }

.text-neon-red {
    color: #D6001C;
    text-shadow: 0 0 15px rgba(214, 0, 28, 0.6);
}

.text-electric-blue {
    color: #3b82f6;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.text-neon-lime {
    color: #a3e635;
    text-shadow: 0 0 15px rgba(163, 230, 53, 0.6);
}

.text-danger-red {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Calendar Grid Styling */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #9ca3af;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled) {
    background-color: rgba(214, 0, 28, 0.1); /* Red Hover */
    color: #D6001C; /* Red Text */
    box-shadow: 0 0 10px rgba(214, 0, 28, 0.2);
    border-color: rgba(214, 0, 28, 0.3);
}

.calendar-day.selected {
    background-color: #D6001C; /* Red Background */
    color: white; /* Contrast text */
    box-shadow: 0 0 20px rgba(214, 0, 28, 0.6);
    border-color: #D6001C;
    transform: scale(1.1);
    z-index: 10;
}

.calendar-day.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 1px solid #D6001C;
    color: #D6001C;
}

/* Time Slot Styling */
.time-slot {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    color: #d1d5db;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.time-slot:hover {
    background-color: rgba(214, 0, 28, 0.1);
    border-color: rgba(214, 0, 28, 0.4);
    color: #D6001C;
    box-shadow: 0 0 10px rgba(214, 0, 28, 0.2);
}

.time-slot.selected {
    background-color: #D6001C; /* Red */
    color: white;
    box-shadow: 0 0 20px rgba(214, 0, 28, 0.6);
    border-color: #D6001C;
    transform: scale(1.05);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    background-color: rgba(255, 255, 255, 0.01);
    border-color: transparent;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Menu Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.animate-slide-up {
    animation: slideUp 0.3s ease-in forwards;
}
