/* Veritas Quaesitor Global Stylesheet - 2026 
   Unified Glass Morphism & Mobile Responsive Framework
*/

:root {
    --primary-bg: #1a1a3e;
    --accent-orange: #ff8c42;
    --accent-orange-hover: #ffa55f;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-white: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- UNIVERSAL NAVIGATION (Desktop & Mobile) --- */
nav, .navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.8rem 5% !important;
    background: rgba(26, 26, 62, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Standardizing both sub-page and home-page list classes */
nav ul, .nav-links {
    display: flex !important;
    list-style: none !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

nav ul li a, .nav-links li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

/* --- UNIVERSAL LIVING STONE INDICATOR (Desktop Only) --- */
@media (min-width: 769px) {
    nav a.active, 
    .nav-links a.active,
    nav ul li a.active {
        position: relative;
        color: var(--accent-orange) !important;
        font-weight: 700;
    }

    /* The Pulsating Cross Emoji */
    nav a.active::before,
    .nav-links a.active::before,
    nav ul li a.active::before {
        content: '✝️';
        position: absolute;
        left: -22px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.85rem;
        opacity: 0.9;
        animation: crossGlow 3s ease-in-out infinite;
    }

    /* The Pulsating Foundation (Light Trail) */
    nav a.active::after,
    .nav-links a.active::after,
    nav ul li a.active::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 140, 66, 0.3) 20%,
            rgba(255, 140, 66, 0.9) 50%,
            rgba(255, 140, 66, 0.3) 80%,
            transparent 100%);
        box-shadow: 
            0 0 10px rgba(255, 140, 66, 0.7),
            0 2px 4px rgba(255, 140, 66, 0.4);
        border-radius: 4px;
        animation: lightPulse 2s ease-in-out infinite;
    }
}

/* --- MOBILE RESCUE MENU --- */
@media (max-width: 1024px) {
    nav, .navbar {
        flex-direction: column !important;
        padding: 10px 0 !important;
    }

    .logo {
        margin-bottom: 10px !important;
    }

    /* Swipable Row Logic */
    nav ul, .nav-links {
        width: 100% !important;
        overflow-x: auto !important;
        display: flex !important;
        flex-direction: row !important;
        padding: 5px 20px 15px 20px !important;
        gap: 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    nav ul::-webkit-scrollbar, .nav-links::-webkit-scrollbar {
        display: none;
    }

    nav ul li, .nav-links li {
        flex: 0 0 auto !important;
    }

    /* Mobile Pill Styling */
    nav ul li a, .nav-links li a {
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        font-size: 0.8rem !important;
    }

    nav ul li a.active, .nav-links li a.active {
        background: rgba(255, 140, 66, 0.15) !important;
        border-color: var(--accent-orange) !important;
        color: var(--accent-orange) !important;
    }

    .social-nav {
        display: none !important;
    }
}

/* --- ANIMATIONS --- */
@keyframes crossGlow {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 4px rgba(255, 140, 66, 0.4); }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255, 140, 66, 0.8); }
}

@keyframes lightPulse {
    0%, 100% { opacity: 0.6; width: 80%; box-shadow: 0 0 8px rgba(255, 140, 66, 0.5); }
    50% { opacity: 1; width: 110%; box-shadow: 0 0 15px rgba(255, 140, 66, 0.9); }
}

/* --- CORE CONTENT STYLES --- */
.page-header, .hero {
    min-height: 450px;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.glass-card, .content, .core-message {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

h2, h3 { color: var(--accent-orange); margin-bottom: 1rem; }
