/* Base Styles */
:root {
    --blueprint-line: rgba(14, 165, 233, 0.1);
    --architectural-grid: rgba(0, 0, 0, 0.05);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Blueprint Grid Pattern */
#blueprint-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, var(--architectural-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--architectural-grid) 1px, transparent 1px);
}

/* Section Transitions */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Architectural typography tweaks */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

.font-mono {
    font-variant-numeric: tabular-nums;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
   /* Grid background for technical blueprint look */
#blueprint-grid {
    background-image: 
        linear-gradient(to right, #e7e5e4 1px, transparent 1px),
        linear-gradient(to bottom, #e7e5e4 1px, transparent 1px);
    background-size: 20px 20px;
}

@media (min-width: 768px) {
    #blueprint-grid {
        background-size: 40px 40px;
    }
}

/* Custom scrollbar hiding but keeping functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Linear mask for horizontal scroll indicator */
.mask-linear-right {
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

@media (min-width: 768px) {
    .mask-linear-right {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* Navigation active state */
.nav-active {
    border-color: #047857 !important;
    color: #1e293b !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Tab underline transition */
.transition-all {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toast behavior */
#toast.show {
    transform: translate(-50%, -2rem);
    opacity: 1;
}

/* ============================
   Mobile Bottom Navigation
   ============================ */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Bottom nav button base */
.mob-nav-btn {
    color: #94a3b8; /* slate-400 */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.mob-nav-btn:active {
    transform: scale(0.92);
}

/* Active state */
.mob-nav-btn.mob-nav-active {
    color: #047857; /* emerald-700 */
}

.mob-nav-btn.mob-nav-active svg {
    filter: drop-shadow(0 0 4px rgba(4, 120, 87, 0.25));
}

/* Active indicator dot */
.mob-nav-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 3px;
    background: #047857;
    border-radius: 99px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.mob-nav-btn.mob-nav-active .mob-nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* Ripple effect on tap */
.mob-nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(4, 120, 87, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mob-nav-btn:active::after {
    opacity: 1;
}

/* Glassmorphism enhancement for bottom nav */
#mobile-bottom-nav {
    box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.05);
}

/* Adjust toast on mobile to not overlap the bottom nav */
@media (max-width: 767px) {
    #toast.show {
        transform: translate(-50%, -6rem);
    }
}

