/* ==========================================================================
   Ekam Digital - Obsidian Lex Design System Stylesheet
   Theme: Futuristic Dark Courtroom (High-Contrast, Glassmorphism, Cyber Indigo & Lex Gold)
   ========================================================================== */

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

::-webkit-scrollbar-track {
    background: #09090B;
}

::-webkit-scrollbar-thumb {
    background: #27272A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3F3F46;
}

/* Base Body Styles */
body {
    background-color: #09090B;
    color: #FAFAFA;
    overflow-x: hidden;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */

.glass-nav {
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-nav.scrolled {
    background: rgba(9, 9, 11, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(79, 70, 229, 0.15);
}

.glass-card {
    background: rgba(24, 24, 27, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(79, 70, 229, 0.15);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Feature Card Enhancements */
.feature-card {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   Technical Grid Backgrounds
   ========================================================================== */

.grid-bg {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.grid-bg-dense {
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.5deg);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.08);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    75% {
        transform: translateY(16px);
        opacity: 0;
    }
    76% {
        transform: translateY(-8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(79, 70, 229, 0.3), 0 0 30px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(79, 70, 229, 0.6), 0 0 45px rgba(212, 175, 55, 0.3);
    }
}

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

.animate-pulse-slow {
    animation: pulse-slow 5s ease-in-out infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

.animate-scroll-down {
    animation: scroll-down 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 3s infinite;
}

/* Delay utilities */
.delay-500 { animation-delay: 500ms; }
.delay-1000 { animation-delay: 1000ms; }

/* ==========================================================================
   Form & Typography Formatting
   ========================================================================== */

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4), 0 0 15px rgba(79, 70, 229, 0.25);
}

/* Courtroom Draft Formatting in Output Panel */
#draft-content {
    font-family: 'Spectral', serif;
    color: #F4F4F5;
    text-align: justify;
    line-height: 1.85;
}

#draft-content h3, #draft-content h4 {
    font-weight: 700;
    color: #D4AF37;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#draft-content p {
    margin-bottom: 1.25rem;
    text-indent: 2.5rem;
}

#draft-content p.no-indent {
    text-indent: 0;
}

#draft-content .cause-title {
    text-align: center;
    font-weight: 700;
    color: #FAFAFA;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-indent: 0;
}

#draft-content .verification-clause {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-style: italic;
    color: #A1A1AA;
    text-indent: 0;
}

/* Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid #10B981;
    color: #FAFAFA;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}
